Frame 1
Stage.showMenu = false;
stop();
prio = 0;
playerColor = random(6) + 1;
Instance of Symbol 248 MovieClip in Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 275 MovieClip "Cursor" in Frame 1
onClipEvent (load) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
Instance of Symbol 289 MovieClip in Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 3;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.play();
}
m = 0;
}
}
Frame 3
stop();
Instance of Symbol 247 MovieClip in Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.nextFrame();
}
m = 0;
}
}
Instance of Symbol 247 MovieClip in Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.nextFrame();
}
m = 0;
}
}
Frame 4
stop();
Frame 5
stop();
Frame 6
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("732d5bf8", this, 10301);
pldm128947 = new LoadVars();
pldm128947.mv = _level0._url;
pldm128947.md = "24ee89e653e6e5cf2cd38b38353a9da2";
pldm128947.mid = 110;
pldm128947.sendAndLoad("http://bot.armorstudios.com/track.php", pldm128947, "POST");
function tra(c, c2) {
if (TRACE) {
if (c2 != undefined) {
trace(c + c2);
} else {
trace(c);
}
}
}
function Line() {
if (TRACE) {
trace("-----");
}
}
function err(e, e2) {
if (TRACE) {
if (e2 != undefined) {
trace("[ ERROR ] --------");
trace(e + e2);
trace("[ ERROR ] --------");
Line();
} else {
trace("[ ERROR ] --------");
trace(e);
trace("[ ERROR ] --------");
Line();
}
}
}
function newGame() {
tra("new game");
Line();
gameInfo = new Array();
allProfiles = new Array();
profileView = 0;
totalProfiles = 0;
heroCasque = 1;
heroArme = 1;
heroBouclier = 1;
heroArmure = 1;
itemsSets = new Array();
saveGame();
}
function saveGame() {
tra("save game:", saveName);
Line();
SAVE.data.firstSave = true;
saveProfile();
SAVE.data.scrollLow = scrollLow;
SAVE.data.gameInfo = gameInfo;
SAVE.data.allProfiles = allProfiles;
SAVE.data.profileView = profileView;
SAVE.data.totalProfiles = totalProfiles;
SAVE.data.itemsSets = itemsSets;
}
function loadGame() {
tra("load game:", saveName);
if (!(SAVE.data.firstSave === true)) {
tra("no game found");
Line();
newGame();
} else {
Line();
scrollLow = SAVE.data.scrollLow;
gameInfo = SAVE.data.gameInfo;
allProfiles = SAVE.data.allProfiles;
profileView = SAVE.data.profileView;
totalProfiles = SAVE.data.totalProfiles;
loadProfile(profileView - 1);
itemsSets = SAVE.data.itemsSets;
}
}
function newProfile() {
allProfiles[totalProfiles] = new Array();
allProfiles[totalProfiles].color = playerColor;
allProfiles[totalProfiles].name = newplayerName;
allProfiles[totalProfiles].heroName = newplayerHeroName;
allProfiles[totalProfiles].heroCasque = heroCasque;
allProfiles[totalProfiles].heroArme = heroArme;
allProfiles[totalProfiles].heroBouclier = heroBouclier;
allProfiles[totalProfiles].heroArmure = heroArmure;
allProfiles[totalProfiles].heroCasqueU = 0;
allProfiles[totalProfiles].heroArmeU = 0;
allProfiles[totalProfiles].heroBouclierU = 0;
allProfiles[totalProfiles].heroArmureU = 0;
allProfiles[totalProfiles].heroCasqueP = 0;
allProfiles[totalProfiles].heroArmeP = 0;
allProfiles[totalProfiles].heroBouclierP = 0;
allProfiles[totalProfiles].heroArmureP = 0;
allProfiles[totalProfiles].currentMission = 1;
allProfiles[totalProfiles].points = 0;
allProfiles[totalProfiles].beatenGame = false;
}
function loadProfile(ID) {
profileSelected = ID;
profileScroll = (profileView + "/") + totalProfiles;
playerName = allProfiles[ID].name;
newplayerName = allProfiles[ID].name;
heroName = allProfiles[ID].heroName;
newheroName = allProfiles[ID].heroName;
playerColor = allProfiles[ID].color;
currentMission = allProfiles[ID].currentMission;
points = allProfiles[ID].points;
heroCasque = allProfiles[ID].heroCasque;
heroArme = allProfiles[ID].heroArme;
heroBouclier = allProfiles[ID].heroBouclier;
heroArmure = allProfiles[ID].heroArmure;
heroCasqueU = allProfiles[ID].heroCasqueU;
heroArmeU = allProfiles[ID].heroArmeU;
heroBouclierU = allProfiles[ID].heroBouclierU;
heroArmureU = allProfiles[ID].heroArmureU;
heroCasqueP = allProfiles[ID].heroCasqueP;
heroArmeP = allProfiles[ID].heroArmeP;
heroBouclierP = allProfiles[ID].heroBouclierP;
heroArmureP = allProfiles[ID].heroArmureP;
Sample.play();
beatenGame = allProfiles[ID].beatenGame;
}
function saveProfile() {
allProfiles[profileSelected].name = playerName;
allProfiles[profileSelected].heroName = heroName;
allProfiles[profileSelected].color = playerColor;
allProfiles[profileSelected].currentMission = currentMission;
allProfiles[profileSelected].points = points;
allProfiles[profileSelected].heroCasque = heroCasque;
allProfiles[profileSelected].heroArme = heroArme;
allProfiles[profileSelected].heroBouclier = heroBouclier;
allProfiles[profileSelected].heroArmure = heroArmure;
allProfiles[profileSelected].heroCasqueU = heroCasqueU;
allProfiles[profileSelected].heroArmeU = heroArmeU;
allProfiles[profileSelected].heroBouclierU = heroBouclierU;
allProfiles[profileSelected].heroArmureU = heroArmureU;
allProfiles[profileSelected].heroCasqueP = heroCasqueP;
allProfiles[profileSelected].heroArmeP = heroArmeP;
allProfiles[profileSelected].heroBouclierP = heroBouclierP;
allProfiles[profileSelected].heroArmureP = heroArmureP;
allProfiles[profileSelected].beatenGame = beatenGame;
}
Music = true;
TRACE = false;
tra("GAME STARTED");
Line();
saveName = "Battlegrounds2File";
_global.SAVE = SharedObject.getLocal(saveName);
onEnterFrame = function () {
totalProfiles = allProfiles.length;
profileScroll = (profileView + "/") + totalProfiles;
};
loadGame();
if (beatenGame == undefined) {
beatenGame = false;
}
if (playerName == undefined) {
err("player info undefined");
playerName = "Profile name";
}
if (newplayerName == undefined) {
newplayerName = "Profile name";
}
if (playerColor == undefined) {
playerColor = random(6) + 1;
}
if (currentMission == undefined) {
currentMission = 1;
}
if (heroArme == undefined) {
heroCasque = 1;
heroArme = 1;
heroBouclier = 1;
heroArmure = 1;
}
if (scrollLow == undefined) {
scrollLow = true;
SAVE.data.scrollLow = scrollLow;
}
if (itemsSets == undefined) {
itemsSets = new Array();
SAVE.data.itemsSets = itemsSets;
}
soundEnabled = true;
saveGame();
nextFrame();
soundEnabled = true;
Frame 7
function initStats() {
Footman = new Array();
Footman.time = 300;
Footman.armor = 1.3;
Footman.speed = 3;
Footman.hp = 28;
Footman.dmg = 3;
Footman.cost = 100;
Footman.title = "Footman - " + Footman.cost;
Footman.desc = ((((((Footman.hp + " of health, ") + Footman.dmg) + " damage points, an armor of ") + Footman.armor) + " and ") + Footman.speed) + " of movement speed.";
Spearman = new Array();
Spearman.time = 350;
Spearman.armor = 1.2;
Spearman.speed = 3.2;
Spearman.hp = 30;
Spearman.dmg = 4;
Spearman.cost = 120;
Spearman.title = "Spearman - " + Spearman.cost;
Spearman.desc = ((((((Spearman.hp + " of health, ") + Spearman.dmg) + " damage points, an armor of ") + Spearman.armor) + " and ") + Spearman.speed) + " of movement speed.";
Archer = new Array();
Archer.time = 400;
Archer.armor = 1;
Archer.speed = 3.2;
Archer.hp = 32;
Archer.dmg = 3.8;
Archer.cost = 130;
Archer.title = "Archer - " + Archer.cost;
Archer.desc = ((((((Archer.hp + " of health, ") + Archer.dmg) + " damage points, an armor of ") + Archer.armor) + " and ") + Archer.speed) + " of movement speed.";
Apprentice = new Array();
Apprentice.time = 500;
Apprentice.armor = 1;
Apprentice.speed = 3.2;
Apprentice.hp = 30;
Apprentice.dmg = 4.2;
Apprentice.cost = 155;
Apprentice.title = "Apprentice - " + Apprentice.cost;
Apprentice.desc = ((((((Apprentice.hp + " of health, ") + Apprentice.dmg) + " damage points, an armor of ") + Apprentice.armor) + " and ") + Apprentice.speed) + " of movement speed.";
RoyalGuard = new Array();
RoyalGuard.time = 750;
RoyalGuard.armor = 2;
RoyalGuard.speed = 3.2;
RoyalGuard.hp = 50;
RoyalGuard.dmg = 5;
RoyalGuard.cost = 230;
RoyalGuard.title = "Royal guard - " + RoyalGuard.cost;
RoyalGuard.desc = ((((((RoyalGuard.hp + " of health, ") + RoyalGuard.dmg) + " damage points, an armor of ") + RoyalGuard.armor) + " and ") + RoyalGuard.speed) + " of movement speed.";
Mage = new Array();
Mage.time = 550;
Mage.armor = 1;
Mage.speed = 3;
Mage.hp = 50;
Mage.dmg = 2.5;
Mage.cost = 250;
Mage.title = "Mage - " + Mage.cost;
Mage.desc = "The Mage is a spell caster. He doesn't deal much damage. You can only have one Mage.";
Miner = new Array();
Miner.time = 650;
Miner.cost = 250;
Miner.title = "Miner - " + Miner.cost;
Miner.desc = "Works in the mine and gathers gold. Max : 3.";
Hero = new Array();
Hero.time = 750;
Hero.armor = (3 + allProfiles[profileSelected].heroCasqueU) + allProfiles[profileSelected].heroBouclierU;
Hero.speed = 3.3;
Hero.hp = 50 + allProfiles[profileSelected].heroArmureU;
Hero.dmg = 5 + allProfiles[profileSelected].heroArmeU;
Hero.cost = 350;
Hero.title = (heroName + " - ") + Hero.cost;
Hero.desc = ("Revive " + heroName) + ". You can only have one hero.";
Warrior = new Array();
Warrior.time = 100;
Warrior.armor = 1;
Warrior.speed = 3.2;
Warrior.hp = 32;
Warrior.dmg = 3;
Warrior.cost = 80;
Warrior2 = new Array();
Warrior2.time = 100;
Warrior2.armor = 1.5;
Warrior2.speed = 3.2;
Warrior2.hp = 70;
Warrior2.dmg = 4.5;
Warrior2.cost = 80;
FatOrc = new Array();
FatOrc.time = 140;
FatOrc.armor = 2;
FatOrc.speed = 3;
FatOrc.hp = 45;
FatOrc.dmg = 5;
FatOrc.cost = 100;
Troll = new Array();
Troll.time = 300;
Troll.armor = 2.5;
Troll.speed = 3;
Troll.hp = 100;
Troll.dmg = 6;
Troll.cost = 80;
house = new Array();
house.max = 5;
house.cost = 180;
house.time = 180;
house.hp = 80;
house.armor = 3;
house.sell = "Sell this building";
house.sellInfo = ("Sell this house for " + (house.cost / 2)) + " gold.";
barracks = new Array();
barracks.max = 1;
barracks.cost = 300;
barracks.time = 450;
barracks.hp = 150;
barracks.armor = 4;
barracks.sell = "Sell this building";
barracks.sellInfo = ("Sell those barracks for " + (barracks.cost / 2)) + " gold.";
forge = new Array();
forge.max = 1;
forge.cost = 340;
forge.time = 600;
forge.hp = 200;
forge.armor = 4;
forge.sell = "Sell this building";
forge.sellInfo = ("Sell this forge for " + (forge.cost / 2)) + " gold.";
archery = new Array();
archery.max = 1;
archery.cost = 400;
archery.time = 600;
archery.hp = 150;
archery.armor = 4;
archery.sell = "Sell this building";
archery.sellInfo = ("Sell this archery range for " + (archery.cost / 2)) + " gold.";
tower = new Array();
tower.max = 1;
tower.cost = 500;
tower.time = 750;
tower.hp = 200;
tower.armor = 4;
tower.sell = "Sell this building";
tower.sellInfo = ("Sell this tower for " + (tower.cost / 2)) + " gold.";
castle = new Array();
castle.cost = 1500;
castle.time = 1800;
castle.hp = 250;
castle.armor = 5;
castle.upgcost = 750;
castle.upg = "Upgrade armor - " + castle.upgcost;
castle.upgdesc = ((("Upgrade the castle's armor from " + castle.armor) + " to ") + (castle.armor * 2)) + ".";
castle.sell = "Sell this building";
castle.sellInfo = ("Sell this castle for " + (castle.cost / 2)) + " gold.";
hut = new Array();
hut.cost = 180;
hut.time = 180;
hut.hp = 80;
hut.armor = 3;
barracksOrc = new Array();
barracksOrc.cost = 350;
barracksOrc.time = 300;
barracksOrc.hp = 130;
barracksOrc.armor = 4;
fortress = new Array();
fortress.cost = 350;
fortress.time = 480;
fortress.hp = 300;
fortress.armor = 5;
MinerUPG = new Array();
MinerUPG.cost = 350;
MinerUPG.title = "Increase motivation - " + MinerUPG.cost;
MinerUPG.desc = "Increases the motivation of the mine workers, who will gather gold faster.";
ArmorsUPG = new Array();
ArmorsUPG.cost = 500;
ArmorsUPG.title = "Heavy armors - " + ArmorsUPG.cost;
ArmorsUPG.desc = "Increases the armor of Footmen, Spearmen, Archers, Royal Guards and your hero.";
WeaponUPG = new Array();
WeaponUPG.cost = 500;
WeaponUPG.title = "Mighty blades - " + WeaponUPG.cost;
WeaponUPG.desc = "Increases the damage of Footmen, Spearmen, Royal Guards and your hero.";
SpellsUPG = new Array();
SpellsUPG.cost = 500;
SpellsUPG.title = "Advanced magic - " + SpellsUPG.cost;
SpellsUPG.desc = "Increases the power of the spells cast by the apprentices.";
Repair = new Array();
Repair.cost = 500;
Repair.title = "Repair the castle - " + Repair.cost;
Repair.desc = "Repairs the castle : 2 gold per lost hit point.";
}
initStats();
stop();
saveGame();
Instance of Symbol 289 MovieClip in Frame 7
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.totalProfiles == 0) {
_root.CAP.nextFrame();
} else {
_root.saveGame();
_root.gotoAndStop("menu");
}
}
m = 0;
}
}
Instance of Symbol 512 MovieClip in Frame 7
onClipEvent (load) {
_visible = _root.beatenGame;
}
onClipEvent (enterFrame) {
_visible = _root.beatenGame;
}
Instance of Symbol 512 MovieClip in Frame 7
onClipEvent (load) {
_visible = _root.beatenGame;
}
onClipEvent (enterFrame) {
_visible = _root.beatenGame;
}
Instance of Symbol 275 MovieClip in Frame 7
onClipEvent (load) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
Frame 8
newheroName = "Hero";
Instance of Symbol 289 MovieClip in Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.loadProfile(_root.profileView - 1);
_root.prevFrame();
}
m = 0;
}
}
Instance of Symbol 289 MovieClip in Frame 9
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.prevFrame();
}
m = 0;
}
}
Frame 10
_quality = "high";
menuFrame = _currentframe;
prof = "Profile : " + playerName;
profH = "Hero : " + heroName;
stop();
Frame 11
stop();
Instance of Symbol 289 MovieClip in Frame 11
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.prevFrame();
}
m = 0;
}
}
Instance of Symbol 289 MovieClip in Frame 13
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("menu");
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 6;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.scrollLow = true;
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 7;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.scrollLow = false;
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 3;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "low";
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 2;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "medium";
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 1;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "high";
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 6;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Music = true;
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 7;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Music = false;
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 6;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.soundEnabled = true;
_root.SAVE.data.soundEnabled = _root.soundEnabled;
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Frame 14
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 7;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.soundEnabled = false;
_root.SAVE.data.soundEnabled = _root.soundEnabled;
}
m = 0;
}
}
Instance of Symbol 20 MovieClip in Frame 16
onClipEvent (load) {
_alpha = 0;
priority = -1;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
getURL ("http://www.armorgames.com", "_blank");
}
m = 0;
}
}
Instance of Symbol 612 MovieClip in Frame 17
onClipEvent (load) {
Url = "http://www.armorgames.com";
stop();
clic = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
clic = true;
}
}
onClipEvent (mouseUp) {
if (clic && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
getURL (Url, "_blank");
}
clic = false;
}
Instance of Symbol 612 MovieClip in Frame 17
onClipEvent (load) {
Url = "http://www.newgrounds.com";
stop();
clic = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
clic = true;
}
}
onClipEvent (mouseUp) {
if (clic && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
getURL (Url, "_blank");
}
clic = false;
}
Instance of Symbol 612 MovieClip in Frame 17
onClipEvent (load) {
Url = "http://www.armorstudios.com/";
stop();
clic = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
clic = true;
}
}
onClipEvent (mouseUp) {
if (clic && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
getURL (Url, "_blank");
}
clic = false;
}
Instance of Symbol 612 MovieClip in Frame 17
onClipEvent (load) {
Url = "http://www.mochibot.com";
stop();
clic = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
clic = true;
}
}
onClipEvent (mouseUp) {
if (clic && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
getURL (Url, "_blank");
}
clic = false;
}
Instance of Symbol 612 MovieClip in Frame 17
onClipEvent (load) {
Url = "http://www.dualidiocy.com";
stop();
clic = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
clic = true;
}
}
onClipEvent (mouseUp) {
if (clic && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
getURL (Url, "_blank");
}
clic = false;
}
Instance of Symbol 612 MovieClip in Frame 17
onClipEvent (load) {
Url = "http://www.blackgoldfish.com";
stop();
clic = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(_currentframe + 3 +5);
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
clic = true;
}
}
onClipEvent (mouseUp) {
if (clic && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
getURL (Url, "_blank");
}
clic = false;
}
Frame 37
frameGoto = _currentframe;
function newBuilding(building) {
canSelectSAVE = canSelect;
canSelect = false;
placingBuilding = true;
newPrio = prio;
_root.Cursor.Building.gotoAndStop(building);
}
function cancelBuilding() {
canSelect = true;
placingBuilding = false;
prio = newPrio;
_root.Cursor.Building.gotoAndStop(1);
}
function placeBuilding(building, batisse, cost, BuildingX, initSpawning, WidthBuilding) {
_root.Gold = _root.Gold - cost;
canSelect = true;
placingBuilding = false;
prio = newPrio;
_root.attachMovie(batisse, "human" + HumanID, getFreeDepth("building"));
if (batisse == "castle") {
CASTLE = "human" + HumanID;
}
_root["human" + HumanID]._x = BuildingX;
if (BuildingX == undefined) {
_root["human" + HumanID]._x = _root._xmouse;
}
_root["human" + HumanID]._y = FloorBuildings;
_root["human" + HumanID].depthToChange = depthToChange;
if (initSpawning) {
_root["human" + HumanID].gotoAndStop(2);
}
if (BuildingX == undefined) {
if (WidthBuilding == undefined) {
_root.NoBuild.newBlock(_root._xmouse, _root.Cursor._width);
} else {
_root.NoBuild.newBlock(_root._xmouse, WidthBuilding);
}
} else if (WidthBuilding == undefined) {
_root.NoBuild.newBlock(BuildingX, _root.Cursor._width);
} else {
_root.NoBuild.newBlock(BuildingX, WidthBuilding);
}
_root["human" + HumanID].BlockRemove = _root.NoBuild.i - 1;
HumanID++;
totalBuildings++;
_root.Cursor.Building.gotoAndStop(1);
}
function placeBuildingOrc(building, batisse, BuildingX, initSpawning, WidthBuilding) {
_root.attachMovie(batisse, "orc" + OrcID, getFreeDepth("building"));
_root["orc" + OrcID]._x = BuildingX;
_root["orc" + OrcID]._y = FloorBuildings;
_root["orc" + OrcID].depthToChange = depthToChange;
if (initSpawning) {
_root["orc" + OrcID].gotoAndStop(2);
}
if (WidthBuilding == undefined) {
_root.NoBuild.newBlock(BuildingX, _root["orc" + OrcID]._width + 10);
} else {
_root.NoBuild.newBlock(BuildingX, WidthBuilding);
}
_root["orc" + OrcID].BlockRemove = _root.NoBuild.i - 1;
OrcID++;
}
function newUnit(type, cost, X) {
if (_root.Spawn) {
soundSpawn(type);
}
_root.Gold = _root.Gold - cost;
_root.attachMovie(type, "human" + HumanID, getFreeDepth("unit"));
_root["human" + HumanID].MC.depthToChange = depthToChange;
_root["human" + HumanID]._x = X;
_root["human" + HumanID]._y = FloorUnits;
HumanID++;
totalUnits++;
}
function newUnitOrc(type, X) {
_root.attachMovie(type, "orc" + OrcID, getFreeDepth("unit"));
_root["orc" + OrcID].MC.depthToChange = depthToChange;
_root["orc" + OrcID]._x = X;
_root["orc" + OrcID]._y = FloorUnits;
OrcID++;
}
function getFreeDepth(type) {
if (type == "building") {
depth = depthBuildingsID - 1;
while (depth > -1) {
if (depthBuildings[depth] != "taken") {
freeDepth = depthBuildings[depth];
depthBuildings[depth] = "taken";
depthToChange = depth;
if ((freeDepth != undefined) && (freeDepth != 0)) {
return(freeDepth);
}
depth = 0;
}
depth--;
}
}
if (type == "unit") {
depth = depthUnitsID - 1;
while (depth > -1) {
if (depthUnits[depth] != "taken") {
freeDepth = depthUnits[depth];
depthUnits[depth] = "taken";
depthToChange = depth;
if ((freeDepth != undefined) && (freeDepth != 0)) {
return(freeDepth);
}
depth = 0;
}
depth--;
}
}
}
function Deselect() {
_root.unitsSelected = 0;
_root.selectedUnits = new Array();
_root.unitID = 0;
DES = 0;
while (DES < HumanID) {
_root["human" + DES].MC.Selected = false;
DES++;
}
_root.Interface.Selected.gotoAndStop(1);
}
function Disable() {
canSelectSAVE = canSelect;
canHireSAVE = canHire;
canBuildSAVE = canBuild;
ControlSAVE = Control;
canScrollSAVE = canScroll;
canSelect = false;
canHire = false;
canBuild = false;
Control = false;
canScroll = false;
}
function Enable() {
canSelect = canSelectSAVE;
canHire = canHireSAVE;
canBuild = canBuildSAVE;
Control = ControlSAVE;
canScroll = canScrollSAVE;
}
function EnableALL() {
canSelect = true;
canHire = true;
canBuild = true;
_global.Control = true;
canScroll = true;
}
function win() {
Disable();
Objectives._y = -1000;
BuildingMenu._y = -1000;
if (HeadingTo != "Tutorial") {
currentMission++;
if (currentMission == 10) {
HeadingTo = "CreditsGame";
}
}
WIN._y = 250;
WIN.gotoAndPlay(2);
}
function lose() {
Lost = true;
Disable();
Objectives._y = -1000;
BuildingMenu._y = -1000;
LOSE._y = 250;
LOSE.gotoAndPlay(2);
}
function soundSelect(unit) {
if (soundEnabled) {
if (SON <= 0) {
SON = SonDelay;
SonSelect.gotoAndStop(unit);
}
}
}
function soundOrder(unit) {
if (soundEnabled) {
if (SON2 <= 0) {
SON2 = SonDelay2;
SonOrder.gotoAndStop(unit + (random(2) + 1));
}
}
}
function soundSpawn(unit) {
if (soundEnabled) {
SonSpawn.gotoAndStop(unit);
}
}
Spawn = false;
if (GQUAL == undefined) {
GQUAL = "high";
}
_quality = GQUAL;
initStats();
UP1 = false;
UP2 = false;
UPApp = false;
TEAM1 = undefined;
TEAM2 = undefined;
TEAM3 = undefined;
TEAM4 = undefined;
TEAM5 = undefined;
TEAM6 = undefined;
TEAM7 = undefined;
TEAM8 = undefined;
TEAM9 = undefined;
Lost = false;
CASTLE = "none";
depthBuildings = new Array();
depthBuildingsID = 0;
depthUnits = new Array();
depthUnitsID = 0;
depthBuildingsINIT = new Array();
depthBuildingsIDINIT = 0;
depthUnitsINIT = new Array();
depthUnitsIDINIT = 0;
orcUnits = 0;
_global.Control = false;
_global.Paused = false;
canSelect = false;
_global.MX = 0;
prio = 0;
range = 10;
maxSelected = 12;
canScroll = false;
canScrollLeft = true;
canScrollRight = true;
totalUnits = 0;
maxUnits = 0;
canBuild = false;
placingBuilding = false;
BuildFrame = 2;
totalBuildings = 0;
maxBuildings = 10;
canHire = true;
totalHouses = 0;
rangeChase = 100;
rangeSee = 200;
goldUPG = 1;
motivationUPG = 0;
unitsSelected = 0;
selectedUnits = new Array();
unitID = 0;
ScrollSpeed = 15;
SmokeFX = true;
FloorBuildings = 464;
FloorUnits = 470;
ThingsToMove = new Array("Interface", "Cursor", "FPS", "Ciel", "Sol", "Objectives", "Objectives2", "BuildingMenu", "Build", "bordure", "Pos", "BuildQueue", "BMH", "MENU", "WIN", "LOSE", "OBJS", "NightMask", "returntobase");
HumanID = 0;
HumanBuildingID = 0;
OrcID = 0;
orcBuildings = 0;
doubleClick = false;
DC = false;
DCdelay = 10;
onEnterFrame = function () {
DCtime++;
if (DCtime > DCdelay) {
DC = false;
}
if (DCtime > (DCdelay + 2)) {
doubleClick = false;
}
};
onMouseDown = function () {
if (!Paused) {
if (DC == false) {
DCtime = 0;
DC = true;
doubleClick = false;
} else if (DCtime < DCdelay) {
DCtime = 0;
DC = false;
doubleClick = true;
if (unitsSelected >= 1) {
soundOrder(selectedUnits[0].Type);
}
}
}
};
SON = 0;
SON2 = 0;
SonDelay = 30;
SonDelay2 = 60;
Instance of Symbol 846 MovieClip "NoBuild" in Frame 37
onClipEvent (load) {
function newBlock(X, WIDTH) {
duplicateMovieClip (Block, "b" + i, i);
this["b" + i]._x = X - _x;
this["b" + i]._width = WIDTH;
i++;
}
this.gotoAndStop(_root.HeadingTo);
_visible = false;
i = 0;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthBuildings[_root.depthBuildingsID] = this.getDepth();
_root.depthBuildingsID++;
_root.depthBuildingsINIT[_root.depthBuildingsIDINIT] = this.getDepth();
_root.depthBuildingsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 60 MovieClip in Frame 38
onClipEvent (load) {
_root.depthUnits[_root.depthUnitsID] = this.getDepth();
_root.depthUnitsID++;
_root.depthUnitsINIT[_root.depthUnitsIDINIT] = this.getDepth();
_root.depthUnitsIDINIT++;
}
Instance of Symbol 10 MovieClip in Frame 38
onClipEvent (load) {
_root.gotoAndStop(_root.HeadingTo);
}
Frame 39
Gold = 2500;
totalhouse = 4;
totalbarracks = 1;
totalarchery = 1;
totalforge = 1;
totaltower = 1;
Instance of Symbol 409 MovieClip "Ciel" in Frame 39
onClipEvent (load) {
gotoAndStop ("Normal");
}
Instance of Symbol 416 MovieClip "Sol" in Frame 39
onClipEvent (load) {
gotoAndStop ("Gazon");
}
Instance of Symbol 896 MovieClip "attackTarget" in Frame 39
onClipEvent (load) {
stop();
}
Instance of Symbol 907 MovieClip "BuildQueue" in Frame 39
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
array = _root[_root.TargetBuilding].queue;
i = 1;
while (i < 6) {
this["m" + i].gotoAndStop(array[i - 1].nom);
if (array[i - 1].nom == undefined) {
this["m" + i].gotoAndStop(1);
}
i++;
}
Percent = int((_root[_root.TargetBuilding].temps / _root[_root.TargetBuilding].tempsTotal) * 100) + "%";
}
Instance of Symbol 919 MovieClip "select" in Frame 39
onClipEvent (load) {
xs = 0;
ys = 0;
_xscale = xs;
_yscale = ys;
drag = false;
go = false;
limit = 10;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_root.placingBuilding) {
if (drag) {
_root.selectedUnits = new Array();
_root.unitID = 0;
}
go = false;
_root.prio = jag;
drag = false;
_xscale = 0;
_yscale = 0;
xs = 0;
ys = 0;
_x = _root._xmouse;
_y = _root._ymouse;
}
if (go) {
if (((Math.abs(_root._xmouse - _x) + Math.abs(_root._ymouse - _y)) > limit) && (_root.canSelect)) {
_root.Deselect();
_root.unitsSelected = 0;
drag = true;
_x = X;
_y = Y;
}
}
_xscale = (xs * 3.33333333333333);
_yscale = (ys * 3.33333333333333);
if (drag) {
_root.prio = 1000;
go = false;
xs = _root._xmouse - _x;
ys = _root._ymouse - _y;
} else {
if (drag) {
_root.prio = jag;
}
if (!go) {
_x = _root._xmouse;
_y = _root._ymouse;
}
xs = 0;
ys = 0;
}
}
}
onClipEvent (mouseDown) {
if ((!Paused) && (_root.canSelect)) {
go = true;
X = _root._xmouse;
Y = _root._ymouse;
}
}
onClipEvent (mouseUp) {
if (!Paused) {
if (drag) {
_root.selectedUnits = new Array();
_root.unitID = 0;
}
go = false;
_root.prio = 0;
drag = false;
_xscale = 0;
_yscale = 0;
xs = 0;
ys = 0;
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Instance of Symbol 940 MovieClip "Build" in Frame 39
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(6);
this._visible = _root.canBuild;
}
onClipEvent (enterFrame) {
this._visible = _root.canBuild;
if ((_root.prio > priority) || (!_root.canBuild)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +36);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.canBuild && (_root.BuildingMenu._currentframe == 1)) {
_root.BuildingMenu.gotoAndStop(_root.BuildFrame);
} else {
_root.BuildingMenu.gotoAndStop(1);
}
}
m = 0;
}
}
Instance of Symbol 979 MovieClip "BuildingMenu" in Frame 39
onClipEvent (enterFrame) {
if (_currentframe != 1) {
_root.BuildFrame = _currentframe;
}
}
Instance of Symbol 275 MovieClip "Cursor" in Frame 39
onClipEvent (load) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
}
Instance of Symbol 1050 MovieClip in Frame 39
onClipEvent (load) {
Move = MX;
_root.CAMX = _x;
}
onClipEvent (enterFrame) {
_root.CAMX = _x;
Move = MX;
if (!blah) {
QUAL = _quality;
if (((Key.isDown(39) || (Key.isDown(37))) || (Key.isDown(65))) || (Key.isDown(68))) {
blah = true;
}
}
if (!Paused) {
if (((Key.isDown(39) || (Key.isDown(68))) && (_root.canScrollRight)) && (_root.canScroll)) {
if (_root.scrollLow) {
_quality = "low";
}
_root.Scroller.Time = _root.Scroller.Init;
_root.Cursor.gotoAndStop("right");
MX = _root.ScrollSpeed;
_x = (_x + _root.ScrollSpeed);
_root._x = _root._x - _root.ScrollSpeed;
X = 0;
while (X < _root.ThingsToMove.length) {
_root[_root.ThingsToMove[X]]._x = _root[_root.ThingsToMove[X]]._x + _root.ScrollSpeed;
X++;
}
} else if (((((Key.isDown(37) || (Key.isDown(65))) && (_root.canScrollLeft)) && (_root.canScroll)) && (!Key.isDown(39))) && (!Key.isDown(68))) {
if (_root.scrollLow) {
_quality = "low";
}
_root.Scroller.Time = _root.Scroller.Init;
_root.Cursor.gotoAndStop("left");
MX = -_root.ScrollSpeed;
_x = (_x - _root.ScrollSpeed);
_root._x = _root._x + _root.ScrollSpeed;
X = 0;
while (X < _root.ThingsToMove.length) {
_root[_root.ThingsToMove[X]]._x = _root[_root.ThingsToMove[X]]._x - _root.ScrollSpeed;
X++;
}
} else {
blah = false;
_quality = QUAL;
_root.Cursor.gotoAndStop("none");
MX = 0;
}
}
}
onClipEvent (unload) {
_root._x = 0;
}
Instance of Symbol 1058 MovieClip "SonSelect" in Frame 39
onClipEvent (enterFrame) {
_root.SON--;
if (_root.SON <= 2) {
gotoAndStop (37);
}
}
Instance of Symbol 1071 MovieClip "SonOrder" in Frame 39
onClipEvent (enterFrame) {
_root.SON2--;
if (_root.SON2 <= 2) {
gotoAndStop (37);
}
}
Frame 40
EnableALL();
Gold = 750;
totalhouse = 4;
totalbarracks = 0;
totalarchery = 1;
totalforge = 1;
totaltower = 1;
totalhut = 3;
Instance of Symbol 409 MovieClip "Ciel" in Frame 40
onClipEvent (load) {
gotoAndStop ("Light");
}
Instance of Symbol 416 MovieClip "Sol" in Frame 40
onClipEvent (load) {
gotoAndStop ("Sand");
}
Instance of Symbol 10 MovieClip in Frame 40
onClipEvent (load) {
Timer = 0;
won = false;
o1 = false;
o2 = false;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if (_root.totalhouse == 5) {
if (!o1) {
_root.OBJS.newObj("Build a house");
o1 = true;
}
} else {
o1 = false;
}
if (_root.totalbarracks == 1) {
if (!o2) {
_root.OBJS.newObj("Build barracks");
o2 = true;
}
} else {
o2 = false;
}
if ((((_root.orcBuildings == 0) && (o1)) && (o2)) && (!won)) {
_root.win();
won = true;
}
if ((_root[_root.CASTLE]._currentframe == 3) && (!lost)) {
_root.lose();
lost = true;
}
Timer++;
if (Timer == 100) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE3)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
if (Timer == 3600) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE1)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
}
}
Instance of Symbol 1094 MovieClip in Frame 40
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 41
EnableALL();
Gold = 0;
canBuild = false;
totalhouse = 5;
totalbarracks = 1;
totalarchery = 1;
totalforge = 1;
totaltower = 1;
totalhut = 0;
totalbarracksOrc = 0;
orcMax1 = 0;
orcMax2 = 0;
Instance of Symbol 409 MovieClip "Ciel" in Frame 41
onClipEvent (load) {
gotoAndStop ("Night");
}
Instance of Symbol 416 MovieClip "Sol" in Frame 41
onClipEvent (load) {
gotoAndStop ("Gazon");
}
Instance of Symbol 10 MovieClip in Frame 41
onClipEvent (load) {
Timer = 0;
won = false;
o1 = false;
o2 = false;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if ((_root.orcBuildings == 0) && (!won)) {
_root.win();
won = true;
}
if (_root[_root.HERO].MC.Dead && (!lost)) {
_root.lose();
lost = true;
}
if (_root.orcUnits < 5) {
Timer++;
found = false;
if (Timer > _root.Warrior.time) {
Timer = 0;
if (_root.orcMax1 < 4) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE1)) {
_root.newUnitOrc("warrior", _root.ZONE1._x + random(50));
found = true;
_root.orcMax1++;
}
i++;
}
}
if (_root.orcMax2 < 3) {
if (!found) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE2)) {
_root.newUnitOrc("warrior", _root.ZONE2._x + random(50));
_root.orcMax2++;
}
i++;
}
}
}
}
}
}
}
Instance of Symbol 1122 MovieClip in Frame 41
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 42
EnableALL();
Gold = 1000;
totalhouse = 3;
totalbarracks = 0;
totalarchery = 0;
totalforge = 0;
totaltower = 1;
totalhut = 0;
totalbarracksOrc = 0;
Instance of Symbol 409 MovieClip "Ciel" in Frame 42
onClipEvent (load) {
gotoAndStop ("Normal");
}
Instance of Symbol 416 MovieClip "Sol" in Frame 42
onClipEvent (load) {
gotoAndStop ("Sand");
}
Instance of Symbol 10 MovieClip in Frame 42
onClipEvent (load) {
Timer = 0;
Timer2 = 0;
Timer3 = 0;
won = false;
o1 = false;
d1 = false;
d2 = false;
d3 = false;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if ((((d3 && (o1)) && (Timer >= 550)) && (_root.orcUnits == 0)) && (!won)) {
_root.win();
won = true;
}
if (_root[_root.HERO].MC.Dead && (!lost)) {
_root.lose();
lost = true;
}
if ((_root.orcBuildings == 0) && (!o1)) {
_root.returntobase.play();
_root.OBJS.newObj("Destroy the orc base");
o1 = true;
}
if (o1) {
Timer++;
if ((Timer >= 450) && (!d1)) {
d1 = true;
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
}
if (d1) {
Timer2++;
}
if (((Timer2 >= 50) && (_root.orcUnits == 0)) && (!d2)) {
d2 = true;
_root.newUnitOrc("fatorc", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("fatorc", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
_root.newUnitOrc("Warrior", _root.leftLimit - (50 + random(100)));
}
if (d2) {
Timer3++;
}
if (((Timer3 >= 50) && (_root.orcUnits == 0)) && (!d3)) {
d3 = true;
_root.newUnitOrc("troll", _root.leftLimit - (50 + random(50)));
_root.newUnitOrc("fatorc", _root.leftLimit - (50 + random(50)));
_root.newUnitOrc("fatorc", _root.leftLimit - (50 + random(50)));
}
}
}
}
Instance of Symbol 1139 MovieClip in Frame 42
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 43
EnableALL();
Gold = 800;
totalhouse = 3;
totalbarracks = 0;
totalarchery = 0;
totalforge = 0;
totaltower = 1;
totalhut = 0;
totalbarracksOrc = 0;
Instance of Symbol 409 MovieClip "Ciel" in Frame 43
onClipEvent (load) {
gotoAndStop ("Light");
}
Instance of Symbol 416 MovieClip "Sol" in Frame 43
onClipEvent (load) {
gotoAndStop ("Gazon");
}
Instance of Symbol 10 MovieClip in Frame 43
onClipEvent (load) {
Timer = 0;
won = false;
lost = false;
o1 = false;
o2 = false;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if ((_root.totalUnits == 8) && (!o1)) {
_root.OBJS.newObj("Build a small army (8 soldiers)");
o1 = true;
}
if ((_root.totalUnits != 8) && (o1)) {
o1 = false;
}
if (((_root.orcBuildings == 0) && (!won)) && (o1)) {
_root.win();
won = true;
}
if ((_root[_root.CASTLE]._currentframe == 3) && (!lost)) {
_root.lose();
lost = true;
}
if (_root.orcUnits < 3) {
o2 = true;
}
if (o2) {
Timer++;
if (Timer == 200) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(40)) - random(40));
}
if (Timer == 400) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(40)) - random(40));
}
if (Timer == 600) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(40)) - random(40));
o2 = false;
}
}
}
}
Instance of Symbol 1154 MovieClip in Frame 43
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 44
EnableALL();
Gold = 0;
canBuild = false;
totalhouse = 5;
totalbarracks = 1;
totalarchery = 1;
totalforge = 1;
totaltower = 1;
totalhut = 0;
totalbarracksOrc = 0;
Instance of Symbol 1117 MovieClip "NightMask" in Frame 44
onClipEvent (load) {
nextFrame();
}
Instance of Symbol 10 MovieClip in Frame 44
onClipEvent (load) {
Timer = 0;
Timer2 = 0;
won = false;
lost = false;
o1 = false;
o2 = false;
o3 = false;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if (((_root.orcBuildings == 0) && (!won)) && (o1)) {
_root.win();
won = true;
}
if (_root[_root.HERO].MC.Dead && (!lost)) {
_root.lose();
lost = true;
}
if ((_root.orcBuildings < 3) && (!o2)) {
o2 = true;
_root.placeBuildingOrc("building", "barracksOrc", _root.ZONE3._x, false, _width);
}
if (o2) {
Timer2++;
if (Timer2 == 700) {
_root.newUnitOrc("fatorc", (_root.ZONE3._x + random(30)) - random(30));
}
if (Timer2 == 900) {
_root.newUnitOrc("fatorc", (_root.ZONE3._x + random(30)) - random(30));
}
if (Timer2 == 1100) {
_root.newUnitOrc("fatorc", (_root.ZONE3._x + random(30)) - random(30));
}
}
if (_root.orcUnits < 6) {
o1 = true;
}
if (o1) {
Timer++;
if (Timer == 200) {
_root.newUnitOrc("fatorc", _root.ZONE1._x);
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE1)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
if (Timer == 400) {
_root.newUnitOrc("fatorc", _root.ZONE1._x);
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE1)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
if (Timer == 600) {
_root.newUnitOrc("fatorc", _root.ZONE1._x);
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE1)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
o1 = false;
}
}
if (!o3) {
i = 0;
while (i < _root.HumanID) {
if (_root["human" + i].hitTest(_root.ZONE4)) {
o3 = true;
_root.CAVE1.nextFrame();
_root.newUnitOrc("troll", _root.CAVE1._x);
}
i++;
}
}
}
}
Instance of Symbol 1094 MovieClip in Frame 44
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 45
EnableALL();
Gold = 1000;
totalhouse = 3;
totalbarracks = 0;
totalarchery = 0;
totalforge = 0;
totaltower = 0;
totalhut = 0;
totalbarracksOrc = 0;
Instance of Symbol 409 MovieClip "Ciel" in Frame 45
onClipEvent (load) {
gotoAndStop ("Night");
}
Instance of Symbol 416 MovieClip "Sol" in Frame 45
onClipEvent (load) {
gotoAndStop ("Sand");
}
Instance of Symbol 10 MovieClip in Frame 45
onClipEvent (load) {
Timer = 0;
Timer2 = 0;
Timer3 = 0;
won = false;
lost = false;
o1 = false;
o2 = false;
o3 = false;
o4 = false;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if (_root.totalhouse == 5) {
if (!o1) {
_root.OBJS.newObj("Build 2 houses");
o1 = true;
}
} else {
o1 = false;
}
if (_root.totaltower == 1) {
if (!o2) {
_root.OBJS.newObj("Build a tower");
o2 = true;
}
} else {
o2 = false;
}
if ((((_root.orcBuildings == 0) && (o1)) && (o2)) && (!won)) {
_root.win();
won = true;
}
if ((_root[_root.CASTLE]._currentframe == 3) && (!lost)) {
_root.lose();
lost = true;
}
Timer++;
if (Timer == 2) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE3)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
if (Timer == 2400) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE5)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
if (_root.orcUnits < 5) {
o3 = true;
}
if (o3) {
Timer2++;
if (Timer2 == 200) {
_root.newUnitOrc("fatorc", (_root.ZONE6._x + random(30)) - random(30));
}
if (Timer2 == 400) {
_root.newUnitOrc("fatorc", (_root.ZONE6._x + random(30)) - random(30));
}
if (Timer2 == 600) {
_root.newUnitOrc("fatorc", (_root.ZONE6._x + random(30)) - random(30));
}
if (Timer2 == 800) {
_root.newUnitOrc("fatorc", (_root.ZONE6._x + random(30)) - random(30));
o3 = "done";
}
}
if ((_root.orcUnits < 5) && (o3 == "done")) {
o4 = true;
}
if (o4) {
Timer3++;
if (Timer3 == 200) {
_root.newUnitOrc("fatorc", (_root.ZONE4._x + random(30)) - random(30));
}
if (Timer3 == 400) {
_root.newUnitOrc("fatorc", (_root.ZONE4._x + random(30)) - random(30));
}
if (Timer3 == 600) {
_root.newUnitOrc("fatorc", (_root.ZONE4._x + random(30)) - random(30));
}
if (Timer3 == 800) {
_root.newUnitOrc("fatorc", (_root.ZONE4._x + random(30)) - random(30));
}
if (Timer3 == 1000) {
_root.newUnitOrc("fatorc", (_root.ZONE4._x + random(30)) - random(30));
}
if (Timer3 == 1200) {
_root.newUnitOrc("fatorc", (_root.ZONE4._x + random(30)) - random(30));
}
if (Timer3 == 1400) {
_root.newUnitOrc("fatorc", (_root.ZONE4._x + random(30)) - random(30));
}
if (Timer3 == 1600) {
_root.newUnitOrc("fatorc", (_root.ZONE4._x + random(30)) - random(30));
o4 = "done";
}
}
}
}
Instance of Symbol 1180 MovieClip in Frame 45
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 46
EnableALL();
Gold = 800;
canBuild = false;
totalhouse = 2;
totalbarracks = 0;
totalarchery = 0;
totalforge = 0;
totaltower = 0;
totalhut = 0;
totalbarracksOrc = 0;
Instance of Symbol 409 MovieClip "Ciel" in Frame 46
onClipEvent (load) {
gotoAndStop ("Light");
}
Instance of Symbol 10 MovieClip in Frame 46
onClipEvent (load) {
Timer = 0;
Timer2 = 0;
won = false;
lost = false;
o1 = false;
o2 = false;
Droite = 0;
Gauche = 0;
TimerD = 0;
TimerG = 0;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if ((_root.orcBuildings == 0) && (!won)) {
_root.win();
won = true;
}
if (_root[_root.HERO].MC.Dead && (!lost)) {
_root.lose();
lost = true;
}
if (Droite == 0) {
i = 0;
while (i < _root.HumanID) {
if (_root["human" + i].hitTest(_root.DD1)) {
Droite = 1;
TimerD = 0;
}
i++;
}
}
if (Droite == 1) {
TimerD++;
if (TimerD == 100) {
_root.newUnitOrc("fatorc", (_root.BD1._x + random(30)) - random(30));
}
if (TimerD == 200) {
_root.newUnitOrc("fatorc", (_root.BD1._x + random(30)) - random(30));
}
if (TimerD == 300) {
_root.newUnitOrc("fatorc", (_root.BD1._x + random(30)) - random(30));
}
if (TimerD == 400) {
_root.newUnitOrc("fatorc", (_root.BD1._x + random(30)) - random(30));
}
if (TimerD == 500) {
_root.newUnitOrc("fatorc", (_root.BD1._x + random(30)) - random(30));
}
if (TimerD == 600) {
_root.newUnitOrc("fatorc", (_root.BD1._x + random(30)) - random(30));
}
i = 0;
while (i < _root.HumanID) {
if (_root["human" + i].hitTest(_root.DD2)) {
Droite = 2;
TimerD = 0;
}
i++;
}
}
if (Droite == 2) {
TimerD++;
if (TimerD == 100) {
_root.newUnitOrc("warrior2", (_root.BD2._x + random(30)) - random(30));
}
if (TimerD == 200) {
_root.newUnitOrc("warrior2", (_root.BD2._x + random(30)) - random(30));
}
if (TimerD == 300) {
_root.newUnitOrc("warrior2", (_root.BD2._x + random(30)) - random(30));
}
if (TimerD == 400) {
_root.newUnitOrc("warrior2", (_root.BD2._x + random(30)) - random(30));
}
if (TimerD == 500) {
_root.newUnitOrc("fatorc", (_root.BD2._x + random(30)) - random(30));
}
if (TimerD == 600) {
_root.newUnitOrc("fatorc", (_root.BD2._x + random(30)) - random(30));
Droite = 3;
}
}
if (Gauche == 0) {
i = 0;
while (i < _root.HumanID) {
if (_root["human" + i].hitTest(_root.DG1)) {
Gauche = 1;
TimerG = 0;
}
i++;
}
}
if (Gauche == 1) {
TimerG++;
if (TimerG == 100) {
_root.newUnitOrc("fatorc", (_root.BG1._x + random(30)) - random(30));
}
if (TimerG == 200) {
_root.newUnitOrc("fatorc", (_root.BG1._x + random(30)) - random(30));
}
if (TimerG == 300) {
_root.newUnitOrc("fatorc", (_root.BG1._x + random(30)) - random(30));
}
if (TimerG == 400) {
_root.newUnitOrc("fatorc", (_root.BG1._x + random(30)) - random(30));
}
if (TimerG == 500) {
_root.newUnitOrc("fatorc", (_root.BG1._x + random(30)) - random(30));
}
if (TimerG == 600) {
_root.newUnitOrc("fatorc", (_root.BG1._x + random(30)) - random(30));
}
i = 0;
while (i < _root.HumanID) {
if (_root["human" + i].hitTest(_root.DG2)) {
Gauche = 2;
TimerG = 0;
}
i++;
}
}
if (Gauche == 2) {
TimerG++;
if (TimerG == 100) {
_root.newUnitOrc("warrior2", (_root.BG2._x + random(30)) - random(30));
}
if (TimerG == 200) {
_root.newUnitOrc("warrior2", (_root.BG2._x + random(30)) - random(30));
}
if (TimerG == 300) {
_root.newUnitOrc("warrior2", (_root.BG2._x + random(30)) - random(30));
}
if (TimerG == 400) {
_root.newUnitOrc("warrior2", (_root.BG2._x + random(30)) - random(30));
}
if (TimerG == 500) {
_root.newUnitOrc("fatorc", (_root.BG2._x + random(30)) - random(30));
}
if (TimerG == 600) {
_root.newUnitOrc("fatorc", (_root.BG2._x + random(30)) - random(30));
Gauche = 3;
}
}
Timer++;
if (Timer == 800) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE1)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
if (Timer == 1600) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE3)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
if (Timer == 2400) {
i = 0;
while (i < _root.OrcID) {
if (_root["orc" + i].hitTest(_root.ZONE4)) {
_root["orc" + i].MC.target = _root.ZONE2._x;
}
i++;
}
}
if ((Droite == 3) && (!o1)) {
i = 0;
while (i < _root.HumanID) {
if (_root["human" + i].hitTest(_root.ZONE5)) {
o1 = true;
_root.CAVE1.nextFrame();
}
i++;
}
}
if ((Gauche == 3) && (!o2)) {
i = 0;
while (i < _root.HumanID) {
if (_root["human" + i].hitTest(_root.ZONE9)) {
o2 = true;
_root.CAVE2.nextFrame();
}
i++;
}
}
}
}
Instance of Symbol 1139 MovieClip in Frame 46
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 47
EnableALL();
Gold = 0;
canBuild = false;
totalhouse = 2;
totalbarracks = 0;
totalarchery = 0;
totalforge = 0;
totaltower = 0;
MapsTaken = 0;
MapsSafe = 0;
Instance of Symbol 409 MovieClip "Ciel" in Frame 47
onClipEvent (load) {
gotoAndStop ("Night");
}
Instance of Symbol 416 MovieClip "Sol" in Frame 47
onClipEvent (load) {
gotoAndStop ("Gazon");
}
Instance of Symbol 1201 MovieClip in Frame 47
onClipEvent (load) {
_y = FloorBuildings;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (this.hitTest(_root[_root.HERO]) && (_root[_root.HERO].MC.map)) {
_root.MapsSafe++;
_root[_root.HERO].MC.map = false;
}
}
}
Instance of Symbol 1191 MovieClip "CAVE1" in Frame 47
onClipEvent (enterFrame) {
if ((_root.MapsTaken == 3) && (!order)) {
nextFrame();
order = true;
_root["orc" + (_root.OrcID - 1)].MC.target = _root.rightLimit;
}
}
Instance of Symbol 774 MovieClip "map2" in Frame 47
onClipEvent (load) {
_y = 800;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_visible)) {
if (this.hitTest(_root[_root.HERO]) && (!_root[_root.HERO].MC.map)) {
_visible = false;
_root[_root.HERO].MC.map = true;
_root.MapsTaken++;
}
}
}
Instance of Symbol 774 MovieClip "map1" in Frame 47
onClipEvent (load) {
_y = 800;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_visible)) {
if (this.hitTest(_root[_root.HERO]) && (!_root[_root.HERO].MC.map)) {
_visible = false;
_root[_root.HERO].MC.map = true;
_root.MapsTaken++;
}
}
}
Instance of Symbol 774 MovieClip "map3" in Frame 47
onClipEvent (load) {
_y = 800;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_visible)) {
if (this.hitTest(_root[_root.HERO]) && (!_root[_root.HERO].MC.map)) {
_visible = false;
_root[_root.HERO].MC.map = true;
_root.MapsTaken++;
}
}
}
Instance of Symbol 10 MovieClip in Frame 47
onClipEvent (load) {
Timer = 0;
won = false;
lost = false;
Kill = 0;
Maps = 0;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if ((_root.MapsSafe == 1) && (Maps == 0)) {
Maps++;
_root.OBJS.newObj("Steal the maps (1/3)");
}
if ((_root.MapsSafe == 2) && (Maps == 1)) {
Maps++;
_root.OBJS.newObj("Steal the maps (2/3)");
}
if ((_root.MapsSafe == 3) && (Maps == 2)) {
Maps++;
_root.OBJS.newObj("Steal the maps (3/3)");
}
if ((_root.MapsSafe == 3) && (!won)) {
_root.win();
won = true;
}
if (_root[_root.HERO].MC.Dead && (!lost)) {
_root.lose();
lost = true;
}
if ((Kill == 0) && (_root.orcUnits == 0)) {
Kill = 1;
}
if (Kill == 1) {
Timer++;
if (Timer == 100) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
}
if (Timer == 200) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
}
if (Timer == 300) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
}
if (Timer == 400) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
}
if (Timer == 500) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
}
if (Timer == 600) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
}
if (Timer == 700) {
Timer = 0;
Kill = 2;
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
}
}
if ((Kill == 2) && (_root.orcUnits == 0)) {
Timer = 0;
Kill = 3;
}
if (Kill == 3) {
Timer++;
if (Timer == 100) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 200) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 300) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 400) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 500) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 600) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 700) {
_root.newUnitOrc("warrior2", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 800) {
_root.newUnitOrc("warrior2", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 900) {
_root.newUnitOrc("warrior2", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 1000) {
Kill = 4;
_root.newUnitOrc("warrior2", (_root.ZONE2._x + random(30)) - random(30));
}
}
}
}
Instance of Symbol 1122 MovieClip in Frame 47
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 48
EnableALL();
Gold = 4000;
ATTACK = false;
totalhouse = 2;
totalbarracks = 0;
totalarchery = 0;
totalforge = 0;
totaltower = 0;
totalbarracksOrc = 0;
Instance of Symbol 409 MovieClip "Ciel" in Frame 48
onClipEvent (load) {
gotoAndStop ("Light");
}
Instance of Symbol 416 MovieClip "Sol" in Frame 48
onClipEvent (load) {
gotoAndStop ("Sand");
}
Instance of Symbol 1212 MovieClip "LimitSpecial" in Frame 48
onClipEvent (load) {
_visible = false;
_root.Limit2 = _x;
}
onClipEvent (enterFrame) {
_root.Limit2 = _x;
}
Instance of Symbol 10 MovieClip in Frame 48
onClipEvent (load) {
Timer = 0;
won = false;
lost = false;
o1 = false;
o2 = false;
}
onClipEvent (enterFrame) {
_root.Spawn = true;
if (!Paused) {
if ((_root.orcBuildings == 0) && (!won)) {
_root.win();
won = true;
}
if ((_root[_root.CASTLE]._currentframe == 3) && (!lost)) {
_root.lose();
lost = true;
}
if (((_root.orcUnits == 0) && (o1 == false)) && (o1 != "done")) {
o1 = true;
Timer = 0;
}
if (o1 && (o1 != "done")) {
Timer++;
if (Timer == 2) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (((((Timer == 3) || (Timer == 202)) || (Timer == 402)) || (Timer == 602)) || (Timer == 802)) {
_root["orc" + (_root.OrcID - 1)].MC.target = (_root.ZONE1._x - 40) - random(30);
}
if (Timer == 200) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 400) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 600) {
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 800) {
o1 = "done";
_root.newUnitOrc("fatorc", (_root.ZONE1._x + random(30)) - random(30));
}
}
if (((_root.orcUnits == 0) && (o1 == "done")) && (o2 == false)) {
o2 = true;
Timer = 0;
}
if ((o2 == true) && (o1 == "done")) {
Timer++;
if (Timer == 2) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 200) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 400) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 600) {
_root.newUnitOrc("fatorc", (_root.ZONE2._x + random(30)) - random(30));
}
if (Timer == 800) {
_root.newUnitOrc("troll", (_root.ZONE2._x + random(30)) - random(30));
_root["orc" + (_root.OrcID - 1)].MC.target = _root.ZONE2._x - random(30);
}
if (Timer == 1000) {
_root.newUnitOrc("troll", (_root.ZONE2._x + random(30)) - random(30));
_root["orc" + (_root.OrcID - 1)].MC.target = _root.ZONE2._x - random(30);
o2 = "done";
}
}
}
}
Instance of Symbol 1154 MovieClip in Frame 48
onClipEvent (load) {
act = _root.Music;
}
onClipEvent (enterFrame) {
if (_root.Music && (!act)) {
gotoAndPlay (38);
act = true;
}
if (!_root.Music) {
this.gotoAndStop(1);
act = false;
}
}
Frame 49
canSaveCredits = true;
allProfiles[profileSelected].beatenGame = true;
beatenGame = true;
currentMission = 1;
_quality = "high";
Instance of Symbol 1007 MovieClip in Frame 49
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
VISIBLE = true;
Text.gotoAndStop("continue");
}
onClipEvent (enterFrame) {
if ((_root.prio > priority) || (!VISIBLE)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3 +36);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.EndCredits.play();
_root.SaveGameCredits._visible = false;
_visible = false;
VISIBLE = false;
}
m = 0;
}
}
Frame 56
_quality = "high";
stopAllSounds();
Instance of Symbol 1321 MovieClip in Frame 56
onClipEvent (load) {
O1 = "";
O2 = "";
}
Instance of Symbol 278 MovieClip "bordure" in Frame 56
onClipEvent (load) {
_x = 400;
}
Symbol 8 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 1
_visible = false;
Symbol 20 MovieClip Frame 1
gotoAndStop(_root.playerColor);
Symbol 23 MovieClip Frame 1
gotoAndPlay (2);
Symbol 23 MovieClip Frame 11
stop();
Symbol 68 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.heroArmure);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_root.heroArmure);
}
Symbol 76 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.heroCasque);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_root.heroCasque);
}
Symbol 93 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.heroBouclier);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_root.heroBouclier);
}
Symbol 103 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.heroArme);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_root.heroArme);
}
Symbol 106 MovieClip [unitBox] Frame 1
stop();
Instance of Symbol 10 MovieClip in Symbol 106 MovieClip [unitBox] Frame 1
onClipEvent (load) {
Type = _root.selectedUnits[_parent._name].Type;
HP = _root.selectedUnits[_parent._name].hp;
MHP = _root.selectedUnits[_parent._name].maxhp;
Lev = _root.selectedUnits[_parent._name].Level;
if (_root.selectedUnits[_parent._name].Level == undefined) {
Lev = 0;
}
_parent.HP.gotoAndStop(int((HP / MHP) * 100) + 1);
_parent.Level.gotoAndStop(Lev + 1);
_parent.gotoAndStop(Type);
}
onClipEvent (enterFrame) {
if (!Paused) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root[_root.selectedUnits[_parent._name].path].sel.gotoAndStop(3);
}
}
Type = _root[_root.selectedUnits[_parent._name].path].Type;
HP = _root[_root.selectedUnits[_parent._name].path].MC.hp;
MHP = _root[_root.selectedUnits[_parent._name].path].MC.maxhp;
_parent.HP.gotoAndStop(int((HP / MHP) * 100) + 1);
if ((int((HP / MHP) * 100) + 1) <= 0) {
_root.unitsSelected--;
_root.selectedUnits.splice(_parent._name, 1);
}
_parent.gotoAndStop(Type);
}
onClipEvent (mouseDown) {
if (!Paused) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
except = _parent._name;
ID = 0;
while (ID < _root.unitsSelected) {
if (ID != except) {
_root[_root.selectedUnits[ID].path].MC.Selected = false;
}
ID++;
}
store = _root.selectedUnits[except];
_root.selectedUnits = new Array();
_root.selectedUnits[0] = new Array();
_root.selectedUnits[0] = store;
_root.unitsSelected = 1;
_parent._parent.gotoAndStop(2);
}
}
}
Instance of Symbol 23 MovieClip in Symbol 106 MovieClip [unitBox] Frame 2
onClipEvent (load) {
X = _parent._currentframe;
}
onClipEvent (enterFrame) {
if (X != _parent._currentframe) {
gotoAndPlay (2);
X = _parent._currentframe;
}
}
Instance of Symbol 38 MovieClip in Symbol 106 MovieClip [unitBox] Frame 4
onClipEvent (load) {
stop();
}
Instance of Symbol 45 MovieClip in Symbol 106 MovieClip [unitBox] Frame 5
onClipEvent (load) {
stop();
}
Instance of Symbol 57 MovieClip in Symbol 106 MovieClip [unitBox] Frame 6
onClipEvent (load) {
stop();
}
Symbol 112 MovieClip Frame 1
onEnterFrame = function () {
if (!_visible) {
_xscale = 0;
_yscale = 0;
}
_xscale = (_xscale + ((100 - _xscale) / 2.5));
_yscale = (_yscale + ((100 - _yscale) / 2.5));
};
stop();
Symbol 115 MovieClip Frame 24
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.RoyalGuard.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.RoyalGuard.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 115 MovieClip Frame 39
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 117 MovieClip Frame 23
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.RoyalGuard.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.RoyalGuard.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 117 MovieClip Frame 39
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
Scale = 100 + random(40);
_xscale = 0;
_x = (random(25) - random(25));
_yscale = (100 - random(40));
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((20 - _yscale) / 10));
_xscale = (_xscale + ((Scale - _xscale) / 10));
Scale = Scale + ((-Scale) / 10);
_alpha = Scale;
if (Scale < 3) {
Scale = undefined;
_alpha = 0;
}
}
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
Scale = 100 + random(40);
_xscale = 0;
_x = (random(25) - random(25));
_yscale = (100 - random(40));
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((20 - _yscale) / 10));
_xscale = (_xscale + ((Scale - _xscale) / 10));
Scale = Scale + ((-Scale) / 10);
_alpha = Scale;
if (Scale < 3) {
Scale = undefined;
_alpha = 0;
}
}
Symbol 122 MovieClip Frame 10
stop();
Symbol 123 MovieClip Frame 82
_parent.remove();
Symbol 124 MovieClip Frame 82
_parent.remove();
Symbol 125 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 125 MovieClip Frame 50
_parent.gotoAndStop("Stand");
Instance of Symbol 38 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 113 MovieClip in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(19) + 1);
}
Instance of Symbol 112 MovieClip "sel" in Symbol 127 MovieClip [royalguard] Frame 1
onClipEvent (enterFrame) {
prevFrame();
}
Instance of Symbol 126 MovieClip "MC" in Symbol 127 MovieClip [royalguard] Frame 1
onClipEvent (load) {
function resetEnnemy() {
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = _root.rangeChase;
rangeAttack = random(10) + 20;
attackTime = 20 + random(10);
orderTime = 0;
Order = false;
chasing = false;
attacked = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.HumanID++;
stop();
Mode = 1;
Selected = false;
_parent.sel._visible = false;
target = _parent._x;
addSelect = true;
team = 0;
Dead = false;
SelectInfo = "none";
_parent.Type = "royalguard";
Level = 1;
sc = (Math.random() * 10) + 105;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.RoyalGuard.speed;
hp = _root.RoyalGuard.hp;
Armor = _root.RoyalGuard.armor;
maxhp = hp;
timer = 30;
timer2 = 0;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
ADDtoUNITS = false;
}
onClipEvent (enterFrame) {
Armor = _root.RoyalGuard.armor;
if (target < _root.leftLimit) {
target = (_root.leftLimit + random(30)) + 10;
}
if (target == undefined) {
err("footman prob : target (_x) = undefined");
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
timer++;
timer2++;
if (timer2 == 100) {
timer2 = 0;
Armor = _root.RoyalGuard.armor;
}
target = target + MX;
if (Selected) {
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_parent.sel._visible = true;
if (Key.isDown(83)) {
target = _parent._x;
Order = false;
orderTime = -1;
Mode = "normal";
toKill = "none";
}
} else {
_parent.sel._visible = false;
}
if (_root.select.drag == true) {
addSelect = true;
if (_root.select.hitTest(_parent._x, _parent._y - 15, true)) {
Selected = true;
} else {
Selected = false;
}
}
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.OrcID) {
see = false;
if ((Math.abs(X - _root["orc" + i]._x) < rangeSee) && (!_root["orc" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["orc" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["orc" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "orc" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if ((!see) && (!attack)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
hp = 0;
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
Selected = false;
_parent.sel._visible = false;
_root.totalUnits--;
}
if (ADDtoUNITS) {
ADDtoUNITS = false;
addSelect = false;
if (_root.unitsSelected == 0) {
_root.soundSelect(_parent.Type);
}
_root.unitsSelected++;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.unitID++;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
}
onClipEvent (mouseDown) {
if (_root.canSelect && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.toSelect = _parent._name;
}
if (Selected) {
addSelect = false;
}
}
onClipEvent (mouseUp) {
if (!Paused) {
if ((_root.toSelect == _parent._name) && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
_root.soundSelect(_parent.Type);
_root.toSelect = "none";
_root.Deselect();
_root.Interface.Selected.gotoAndStop(5);
_root.unitsSelected = 1;
Selected = true;
addSelect = false;
_root.unitID = 0;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
if (Selected && (!Paused)) {
if (addSelect) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
ADDtoUNITS = true;
}
if (_root.doubleClick && (Control)) {
if (Mode == "fight") {
if (Key.isDown(16)) {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
Order = true;
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if ((_root.currentMission == 9) && (target > _root.Limit2)) {
target = _root.Limit2 - random(50);
}
}
}
if (Mode != "fight") {
Mode = "normal";
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
}
}
} else {
SelectInfo = "none";
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Instance of Symbol 134 MovieClip "f" in Symbol 135 MovieClip Frame 1
onClipEvent (load) {
m = false;
_parent.f.m = true;
if (m) {
i = 0;
_visible = false;
} else {
_x = (random((_parent.W / 2) + 25) - random((_parent.W / 2) + 25));
sc = random(15) + 50;
_yscale = 0;
_xscale = 0;
xs = (Math.random() * 5) - (Math.random() * 5);
}
}
onClipEvent (enterFrame) {
if (!Paused) {
if (m) {
if (_parent._parent.smoke || (_parent._parent._currentframe == 1)) {
duplicateMovieClip (this, i, i);
i++;
}
} else {
_x = (_x + xs);
xs = xs / 1.1;
sc = sc - 2;
_xscale = (_xscale + ((sc - _xscale) / 5));
_yscale = (_yscale + ((sc - _yscale) / 5));
if (_xscale < 0) {
removeMovieClip(this);
}
}
}
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
un = _root.Archer.title;
deux = _root.Archer.desc;
Symbol 151 MovieClip Frame 3
gotoAndStop (100);
Symbol 151 MovieClip Frame 4
un = _root.archery.sell;
deux = _root.archery.sellInfo;
Symbol 151 MovieClip Frame 6
stop();
Instance of Symbol 57 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 153 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe == 1) {
_root.BuildQueue._visible = true;
}
};
Instance of Symbol 143 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Sell");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.Gold = _root.Gold + (_root.archery.cost / 2);
_parent._parent.queue = new Array();
_root.BuildQueue._visible = false;
_parent._parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.Archer.cost)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Archer");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if ((_parent._parent.item < _parent._parent.maxitems) && (_root.Gold >= _root.Archer.cost)) {
_parent._parent.queue[_parent._parent.item] = new Array();
_parent._parent.queue[_parent._parent.item].nom = "Archer";
_parent._parent.queue[_parent._parent.item].cost = _root.Archer.cost;
_parent._parent.queue[_parent._parent.item].temps = _root.Archer.time;
_parent._parent.item++;
_root.Gold = _root.Gold - _root.Archer.cost;
}
}
m = 0;
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Symbol 162 MovieClip [archery] Frame 1
hp = 1;
maxhp = _root.archery.hp;
Armor = _root.archery.armor;
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
_root.totalarchery++;
stop();
Instance of Symbol 132 MovieClip in Symbol 162 MovieClip [archery] Frame 1
onClipEvent (load) {
time = _root.archery.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.hp = (time2 / time) * _root.archery.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 162 MovieClip [archery] Frame 1
onClipEvent (load) {
W = 132.9;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 162 MovieClip [archery] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 162 MovieClip [archery] Frame 2
maxhp = _root.archery.hp;
hp = maxhp;
if (queue == undefined) {
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
}
Instance of Symbol 132 MovieClip in Symbol 162 MovieClip [archery] Frame 2
onClipEvent (unload) {
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
_x = (random(6) - random(6));
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 10 MovieClip in Symbol 162 MovieClip [archery] Frame 2
onClipEvent (load) {
Selected = false;
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
if (!Paused) {
if (_parent.queue[0].temps != undefined) {
_parent.tempsTotal = _parent.queue[0].temps;
if (_root.totalUnits < _root.maxUnits) {
_parent.temps++;
} else {
_root.BMH.gotoAndPlay(2);
}
if (_parent.temps >= _parent.tempsTotal) {
_root.newUnit(_parent.queue[0].nom, 0, (_parent._x + random(_width / 3)) - random(_width / 3));
_parent.item--;
_parent.temps = 0;
_parent.queue.splice(0, 1);
_parent.tempsTotal = _parent.queue[0].temps;
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
}
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
if (_parent.hp <= 0) {
_parent.queue = new Array();
_root.BuildQueue._visible = false;
_parent.nextFrame();
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) && (!_root.BuildQueue.hitTest(_root._xmouse, _root._ymouse))) {
if (Selected) {
_root.BuildQueue._visible = false;
}
Selected = false;
_parent.MENU.nextFrame();
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.BuildQueue._visible = true;
Selected = true;
_root.TargetBuilding = _parent._name;
_parent.MENU.prevFrame();
}
m = 0;
}
}
Instance of Symbol 153 MovieClip "MENU" in Symbol 162 MovieClip [archery] Frame 2
onClipEvent (load) {
nextFrame();
}
Symbol 162 MovieClip [archery] Frame 3
hp = 0;
Dead = true;
_root.totalarchery--;
Instance of Symbol 10 MovieClip "MC" in Symbol 162 MovieClip [archery] Frame 3
onClipEvent (load) {
Dead = true;
}
Symbol 169 MovieClip Frame 1
un = _root.Apprentice.title;
deux = _root.Apprentice.desc;
Symbol 169 MovieClip Frame 3
gotoAndStop (100);
Symbol 169 MovieClip Frame 4
un = _root.SpellsUPG.title;
deux = _root.SpellsUPG.desc;
Symbol 169 MovieClip Frame 6
gotoAndStop (100);
Symbol 169 MovieClip Frame 7
un = _root.tower.sell;
deux = _root.tower.sellInfo;
Symbol 169 MovieClip Frame 9
stop();
Instance of Symbol 45 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 174 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe == 1) {
_root.BuildQueue._visible = true;
}
};
Instance of Symbol 143 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Sell");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.Gold = _root.Gold + (_root.tower.cost / 2);
_parent._parent.queue = new Array();
_root.BuildQueue._visible = false;
_parent._parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.Apprentice.cost)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Apprentice");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if ((_parent._parent.item < _parent._parent.maxitems) && (_root.Gold >= _root.Apprentice.cost)) {
_parent._parent.queue[_parent._parent.item] = new Array();
_parent._parent.queue[_parent._parent.item].nom = "Apprentice";
_parent._parent.queue[_parent._parent.item].cost = _root.Apprentice.cost;
_parent._parent.queue[_parent._parent.item].temps = _root.Apprentice.time;
_parent._parent.item++;
_root.Gold = _root.Gold - _root.Apprentice.cost;
}
}
m = 0;
}
}
Instance of Symbol 169 MovieClip "DESC" in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1000);
}
Instance of Symbol 143 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
up = false;
}
onClipEvent (enterFrame) {
if ((((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.SpellsUPG.cost)) || (_root.UPApp)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("SpellsUPG");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (((!_root.UPApp) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.UPApp = true;
_root.Gold = _root.Gold - _root.SpellsUPG.cost;
_root.Apprentice.dmg = _root.Apprentice.dmg + 2;
up = true;
}
m = 0;
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
_x = (_x + (random(5) - random(5)));
Scale = random(50) + 50;
_rotation = random(360);
_xscale = 0;
_yscale = 0;
_alpha = (random(50) + 50);
gotoAndStop(random(4) + 1);
xSpeed = (Math.random() * 3) - (Math.random() * 3);
ySpeed = (-Math.random()) * 1;
Speed = Math.random() * 0.2;
Time = 15;
RotSpeed = (Math.random() * 2.5) - (Math.random() * 2.5);
}
onClipEvent (enterFrame) {
Time = Time - 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
_alpha = (_alpha - 2);
xSpeed = xSpeed / 1.2;
ySpeed = ySpeed - (Speed / 3);
_rotation = (_rotation + RotSpeed);
if (Time > 0) {
_xscale = (_xscale + ((Scale - _xscale) / 10));
_yscale = (_yscale + ((Scale - _yscale) / 10));
}
}
Symbol 177 MovieClip [tower] Frame 1
hp = 1;
maxhp = _root.tower.hp;
Armor = _root.tower.armor;
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
_root.totaltower++;
stop();
Instance of Symbol 165 MovieClip in Symbol 177 MovieClip [tower] Frame 1
onClipEvent (load) {
time = _root.tower.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.hp = (time2 / time) * _root.tower.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 177 MovieClip [tower] Frame 1
onClipEvent (load) {
W = 72.9;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 177 MovieClip [tower] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
this.gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
this.gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 177 MovieClip [tower] Frame 2
maxhp = _root.tower.hp;
hp = maxhp;
if (queue == undefined) {
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
}
Instance of Symbol 165 MovieClip in Symbol 177 MovieClip [tower] Frame 2
onClipEvent (unload) {
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
_x = (random(6) - random(6));
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 10 MovieClip in Symbol 177 MovieClip [tower] Frame 2
onClipEvent (load) {
Selected = false;
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
if (!Paused) {
if (_parent.queue[0].temps != undefined) {
_parent.tempsTotal = _parent.queue[0].temps;
if (_root.totalUnits < _root.maxUnits) {
_parent.temps++;
} else {
_root.BMH.gotoAndPlay(2);
}
if (_parent.temps >= _parent.tempsTotal) {
_root.newUnit(_parent.queue[0].nom, 0, (_parent._x + random(_width / 3)) - random(_width / 3));
_parent.item--;
_parent.temps = 0;
_parent.queue.splice(0, 1);
_parent.tempsTotal = _parent.queue[0].temps;
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
}
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
if (_parent.hp <= 0) {
_parent.queue = new Array();
_root.BuildQueue._visible = false;
_parent.nextFrame();
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) && (!_root.BuildQueue.hitTest(_root._xmouse, _root._ymouse))) {
if (Selected) {
_root.BuildQueue._visible = false;
}
Selected = false;
_parent.MENU.nextFrame();
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.BuildQueue._visible = true;
Selected = true;
_root.TargetBuilding = _parent._name;
_parent.MENU.prevFrame();
}
m = 0;
}
}
Instance of Symbol 174 MovieClip "MENU" in Symbol 177 MovieClip [tower] Frame 2
onClipEvent (load) {
nextFrame();
}
Symbol 177 MovieClip [tower] Frame 3
hp = 0;
Dead = true;
_root.totaltower--;
Instance of Symbol 10 MovieClip "MC" in Symbol 177 MovieClip [tower] Frame 3
onClipEvent (load) {
Dead = true;
}
Symbol 228 MovieClip Frame 1
_root.starT = undefined;
stop();
_root.PLAY = false;
Instance of Symbol 227 MovieClip "m" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
m = false;
_parent.m.m = true;
if (m) {
_root.r0 = 50;
_root.r1 = 50;
_root.r2 = 50;
_root.r3 = 50;
_root.r4 = 50;
_root.r5 = 50;
_root.r6 = 50;
_root.r7 = 50;
_root.r8 = 50;
_root.r9 = 50;
_root.A0 = 1;
_root.A1 = 1;
_root.A2 = 1;
_root.A3 = 1;
_root.A4 = 1;
_root.A5 = 1;
_root.A6 = 1;
_root.A7 = 1;
_root.A8 = 1;
_root.A9 = 1;
id = 0;
frame = 1;
_visible = false;
} else {
X = random(10);
while (_root["r" + X] < -130) {
X = random(10);
}
_x = (-90 + (X * 20));
_y = (-250 - Math.abs(_root["r" + X]));
floor = _root["r" + X];
_root["r" + X] = _root["r" + X] - 20;
s = 0;
X1 = X + 1;
X2 = Math.abs((10 - _root["A" + X]) * 10);
gotoAndStop(X1 + X2);
_root["A" + X]++;
}
}
onClipEvent (enterFrame) {
if (m) {
if ((_parent._currentframe - 1) > id) {
duplicateMovieClip (this, id, id);
_parent[this.id].chiffre = id + 1;
if ((id + 1) == 100) {
_root.PLAY = true;
}
_parent[this.id].id = id + 1;
id++;
}
if (_root.starT != undefined) {
_root.starT = _root.starT + 0.5;
}
} else {
_y = (_y + s);
if (_y > floor) {
_y = floor;
s = 0;
if ((id == 100) && (_root.starT == undefined)) {
_root.starT = -10;
}
} else {
s++;
}
}
}
Symbol 228 MovieClip Frame 101
stop();
_root.nextFrame();
Instance of Symbol 228 MovieClip "LOAD" in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
totalb = _root.getBytesTotal();
totalkb = int(totalb / 1024);
_root.stop();
_root.Loaded = (_currentframe - 1) + "%";
}
onClipEvent (enterFrame) {
_root.Loaded = (_currentframe - 1) + "%";
var loadedb = _root.getBytesLoaded();
if (loadedb == totalb) {
}
loadedkb = int(loadedb / 1024);
percent = (loadedb / totalb) * 100;
pl1 = ("" + int(percent)) + "%";
pl2 = ((("" + loadedkb) + " / ") + totalkb) + " kb";
gotoAndStop(int(percent) + 1);
}
Instance of Symbol 243 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 10 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
Url = "http://www.dualidiocy.com";
stop();
clic = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
clic = true;
}
}
onClipEvent (mouseUp) {
if (clic && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
getURL (Url, "_blank");
}
clic = false;
}
Symbol 268 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 271 MovieClip Frame 1
stop();
Instance of Symbol 265 MovieClip "X" in Symbol 271 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 275 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
gotoAndStop (2);
Symbol 289 MovieClip Frame 1
this.text.gotoAndStop(frame);
Symbol 292 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 295 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 297 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 299 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 301 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 303 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 305 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 307 MovieClip Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 324 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Instance of Symbol 318 MovieClip in Symbol 332 MovieClip Frame 31
onClipEvent (load) {
gotoAndPlay(random(23) + 1);
}
Instance of Symbol 318 MovieClip in Symbol 332 MovieClip Frame 31
onClipEvent (load) {
gotoAndPlay(random(23) + 1);
}
Instance of Symbol 318 MovieClip in Symbol 332 MovieClip Frame 31
onClipEvent (load) {
gotoAndPlay(random(23) + 1);
}
Instance of Symbol 331 MovieClip in Symbol 332 MovieClip Frame 31
onClipEvent (load) {
gotoAndPlay(random(18) + 1);
}
Instance of Symbol 331 MovieClip in Symbol 332 MovieClip Frame 31
onClipEvent (load) {
gotoAndPlay(random(18) + 1);
}
Symbol 337 MovieClip Frame 2
_root.playerColor = 4;
Symbol 341 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 343 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 346 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 348 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 350 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 352 MovieClip Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 324 MovieClip in Symbol 362 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 364 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 366 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 368 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 370 MovieClip Frame 1
this.cacheAsBitmap = true;
Instance of Symbol 361 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 362 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 362 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 362 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 375 MovieClip in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
_xscale = 150;
_yscale = 50;
xs = 0;
ys = 0;
}
onClipEvent (enterFrame) {
xs = xs + ((100 - _xscale) / 3);
_xscale = (_xscale + xs);
xs = xs / 1.2;
ys = ys + ((100 - _yscale) / 3);
_yscale = (_yscale + ys);
ys = ys / 1.2;
}
Instance of Symbol 376 MovieClip "BuildingMenu" in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
sc = 0;
_xscale = 0;
_yscale = 0;
_rotation = (random(30) - random(30));
rs = random(10) - random(10);
}
onClipEvent (enterFrame) {
sc = sc + ((100 - _xscale) / 5);
_xscale = (_xscale + sc);
_yscale = (_yscale + sc);
sc = sc / 1.2;
rs = rs + ((-_rotation) / 10);
_rotation = (_rotation + rs);
rs = rs / 1.1;
}
Instance of Symbol 378 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
sc = 0;
_xscale = 0;
_yscale = 0;
wob = random(20) - random(20);
}
onClipEvent (enterFrame) {
wob = wob + ((-_x) / 10);
wob = wob / 1.2;
_x = (_x + wob);
sc = (100 - _xscale) / 5;
_xscale = (_xscale + sc);
_yscale = (_yscale + sc);
sc = sc / 1.2;
}
Symbol 380 MovieClip Frame 78
_root.play();
Instance of Symbol 380 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 389 MovieClip Frame 35
stop();
Symbol 390 MovieClip Frame 202
playerColor = 2;
Symbol 390 MovieClip Frame 911
stop();
_root.nextFrame();
Symbol 393 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 400 MovieClip Frame 105
_root.play();
_root.play();
Symbol 408 MovieClip Frame 1
sc = 50 - random(25);
_xscale = sc;
_yscale = sc;
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (-400 + random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = ((-random(133.333333333333)) + random(133.333333333333));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 3
onClipEvent (load) {
_x = (400 - random(266.666666666667));
_y = (random(250) - random(250));
_rotation = random(90);
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
Scale = random(50) + 50;
gotoAndStop(random(3) + 1);
_x = (random(50) - random(50));
_y = (random(10) - random(10));
_xscale = Scale;
_yscale = Scale;
}
Symbol 418 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 420 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 422 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 424 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 426 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 428 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 430 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 432 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 434 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 436 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 439 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 441 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 444 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 446 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 448 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 450 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 452 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 454 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 456 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 458 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 460 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 463 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Instance of Symbol 409 MovieClip "Ciel" in Symbol 463 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("Normal");
}
Instance of Symbol 416 MovieClip "Sol" in Symbol 463 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("Gazon");
}
Instance of Symbol 409 MovieClip "Ciel" in Symbol 463 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop ("Light");
}
Instance of Symbol 416 MovieClip "Sol" in Symbol 463 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop ("Sand");
}
Instance of Symbol 409 MovieClip "Ciel" in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop ("Night");
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 408 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
_x = (random(400) - random(400));
_y = (random(250) - random(250));
}
Instance of Symbol 416 MovieClip "Sol" in Symbol 463 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop ("Gazon");
}
Symbol 481 MovieClip Frame 1
this.text.gotoAndStop(frame);
Symbol 506 MovieClip Frame 1
this.text.gotoAndStop(frame);
Symbol 509 MovieClip Frame 1
gotoAndPlay (2);
Instance of Symbol 468 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 469 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 481 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.profileView > 1) {
_root.profileView--;
_root.loadProfile(_root.profileView - 1);
}
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 483 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 481 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.profileView < _root.allProfiles.length) {
_root.profileView++;
_root.loadProfile(_root.profileView - 1);
}
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 486 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 1;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.nextFrame();
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 469 MovieClip in Symbol 509 MovieClip Frame 3
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 481 MovieClip in Symbol 509 MovieClip Frame 4
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.profileView > 1) {
_root.profileView--;
_root.loadProfile(_root.profileView - 1);
}
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 483 MovieClip in Symbol 509 MovieClip Frame 5
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 481 MovieClip in Symbol 509 MovieClip Frame 6
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.profileView < _root.allProfiles.length) {
_root.profileView++;
_root.loadProfile(_root.profileView - 1);
}
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 486 MovieClip in Symbol 509 MovieClip Frame 7
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 509 MovieClip Frame 8
stop();
Instance of Symbol 506 MovieClip in Symbol 509 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 1;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroCasque = 1;
_root.heroArme = 1;
_root.heroBouclier = 1;
_root.heroArmure = 1;
_root.nextFrame();
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 2
prevFrame();
Symbol 521 MovieClip Frame 60
_parent.prevFrame();
Symbol 522 MovieClip Frame 1
stop();
Instance of Symbol 481 MovieClip in Symbol 528 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 528 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Symbol 542 MovieClip Frame 1
gotoAndStop(_root.playerColor);
Instance of Symbol 539 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 539 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 539 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 539 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 539 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 539 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 10 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.playerColor = 1;
_parent.gotoAndStop(_root.playerColor);
}
m = 0;
}
}
Instance of Symbol 10 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.playerColor = 2;
_parent.gotoAndStop(_root.playerColor);
}
m = 0;
}
}
Instance of Symbol 10 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.playerColor = 3;
_parent.gotoAndStop(_root.playerColor);
}
m = 0;
}
}
Instance of Symbol 10 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.playerColor = 4;
_parent.gotoAndStop(_root.playerColor);
}
m = 0;
}
}
Instance of Symbol 10 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.playerColor = 5;
_parent.gotoAndStop(_root.playerColor);
}
m = 0;
}
}
Instance of Symbol 10 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.playerColor = 6;
_parent.gotoAndStop(_root.playerColor);
}
m = 0;
}
}
Symbol 544 MovieClip Frame 1
gotoAndPlay (2);
Instance of Symbol 531 MovieClip in Symbol 544 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 533 MovieClip in Symbol 544 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 542 MovieClip in Symbol 544 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 544 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.nextFrame();
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 533 MovieClip in Symbol 544 MovieClip Frame 3
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 537 MovieClip in Symbol 544 MovieClip Frame 4
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 542 MovieClip in Symbol 544 MovieClip Frame 5
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 544 MovieClip Frame 6
stop();
Instance of Symbol 506 MovieClip in Symbol 544 MovieClip Frame 6
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 2;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.nextFrame();
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 539 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 539 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 539 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 539 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 539 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 539 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 506 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.nextFrame();
}
m = 0;
}
}
Instance of Symbol 552 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.playerColor);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.playerColor);
}
Symbol 558 MovieClip Frame 1
gotoAndPlay (2);
Instance of Symbol 555 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 243 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroArme > 2) ? ((_root.heroArme = 2)) : ((_root.heroArme = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroArme < 2) ? ((_root.heroArme = 2)) : ((_root.heroArme = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 243 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroArmure > 2) ? ((_root.heroArmure = 2)) : ((_root.heroArmure = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroArmure < 2) ? ((_root.heroArmure = 2)) : ((_root.heroArmure = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 243 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroBouclier > 2) ? ((_root.heroBouclier = 2)) : ((_root.heroBouclier = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroBouclier < 2) ? ((_root.heroBouclier = 2)) : ((_root.heroBouclier = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 243 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroCasque > 2) ? ((_root.heroCasque = 2)) : ((_root.heroCasque = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroCasque < 2) ? ((_root.heroCasque = 2)) : ((_root.heroCasque = 3)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 243 MovieClip in Symbol 558 MovieClip Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroArme > 2) ? ((_root.heroArme = 2)) : ((_root.heroArme = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 558 MovieClip Frame 4
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroArme < 2) ? ((_root.heroArme = 2)) : ((_root.heroArme = 3)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 243 MovieClip in Symbol 558 MovieClip Frame 5
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroArmure > 2) ? ((_root.heroArmure = 2)) : ((_root.heroArmure = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 558 MovieClip Frame 6
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroArmure < 2) ? ((_root.heroArmure = 2)) : ((_root.heroArmure = 3)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 243 MovieClip in Symbol 558 MovieClip Frame 7
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroBouclier > 2) ? ((_root.heroBouclier = 2)) : ((_root.heroBouclier = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 558 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroBouclier < 2) ? ((_root.heroBouclier = 2)) : ((_root.heroBouclier = 3)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 243 MovieClip in Symbol 558 MovieClip Frame 9
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroCasque > 2) ? ((_root.heroCasque = 2)) : ((_root.heroCasque = 1)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 247 MovieClip in Symbol 558 MovieClip Frame 10
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
((_root.heroCasque < 2) ? ((_root.heroCasque = 2)) : ((_root.heroCasque = 3)));
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 558 MovieClip Frame 11
stop();
Instance of Symbol 506 MovieClip in Symbol 558 MovieClip Frame 11
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 3;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.newProfile();
_root.profileView = _root.allProfiles.length;
_root.loadProfile(_root.totalProfiles);
_root.gotoAndStop("profiles");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 568 MovieClip Frame 1
gotoAndPlay (2);
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndPlay("play");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("settings");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 6;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("profiles");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndPlay("play");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("settings");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 6;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("profiles");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 8;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("credits");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 13;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("links");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(9);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("ag");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("settings");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 4
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 6;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("profiles");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 5
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 8;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("credits");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 6
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 13;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("links");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 568 MovieClip Frame 7
stop();
Instance of Symbol 506 MovieClip in Symbol 568 MovieClip Frame 7
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(9);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("ag");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndPlay("game");
}
m = 0;
}
}
Instance of Symbol 506 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(5);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Instance of Symbol 506 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(6);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("profiles");
}
m = 0;
}
}
Instance of Symbol 506 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(8);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("credits");
}
m = 0;
}
}
Instance of Symbol 506 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(13);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Instance of Symbol 506 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
priority = -1;
active = true;
m = 0;
stop();
text.gotoAndStop(9);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Symbol 578 MovieClip Frame 1
gotoAndPlay (2);
Instance of Symbol 506 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(10);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "Tutorial";
_root.gotoAndStop("ready");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop("Begin missions");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "Mission1";
_root.gotoAndStop("ready");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 578 MovieClip Frame 3
stop();
Instance of Symbol 506 MovieClip in Symbol 578 MovieClip Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop("Begin missions");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "MenuGame";
_root.gotoAndStop("ready");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
priority = -10;
active = true;
m = 0;
stop();
text.gotoAndStop(10);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "Tutorial";
_root.gotoAndStop("ready");
}
m = 0;
}
}
Instance of Symbol 506 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
priority = -10;
active = true;
m = 0;
stop();
text.gotoAndStop("Begin missions");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "Mission1";
_root.gotoAndStop("ready");
}
m = 0;
}
}
Symbol 586 MovieClip Frame 1
stop();
Instance of Symbol 586 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 10 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.HeadingTo);
}
Symbol 591 MovieClip Frame 1
gotoAndPlay (2);
Instance of Symbol 506 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 12;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndPlay("game");
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 591 MovieClip Frame 2
stop();
Instance of Symbol 610 MovieClip in Symbol 612 MovieClip Frame 1
onClipEvent (load) {
Url = _parent.Url;
}
Symbol 620 MovieClip Frame 1
un = _root.Footman.title;
deux = _root.Footman.desc;
Symbol 620 MovieClip Frame 3
gotoAndStop (100);
Symbol 620 MovieClip Frame 4
un = _root.Spearman.title;
deux = _root.Spearman.desc;
Symbol 620 MovieClip Frame 6
gotoAndStop (100);
Symbol 620 MovieClip Frame 7
un = _root.barracks.sell;
deux = _root.barracks.sellInfo;
Symbol 620 MovieClip Frame 9
stop();
Symbol 621 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe == 1) {
_root.BuildQueue._visible = true;
}
};
Instance of Symbol 143 MovieClip in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.Spearman.cost)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Spearman");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if ((_parent._parent.item < _parent._parent.maxitems) && (_root.Gold >= _root.Spearman.cost)) {
_parent._parent.queue[_parent._parent.item] = new Array();
_parent._parent.queue[_parent._parent.item].nom = "Spearman";
_parent._parent.queue[_parent._parent.item].cost = _root.Spearman.cost;
_parent._parent.queue[_parent._parent.item].temps = _root.Spearman.time;
_parent._parent.item++;
_root.Gold = _root.Gold - _root.Spearman.cost;
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Sell");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.Gold = _root.Gold + (_root.barracks.cost / 2);
_parent._parent.queue = new Array();
_root.BuildQueue._visible = false;
_parent._parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.Footman.cost)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Footman");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if ((_parent._parent.item < _parent._parent.maxitems) && (_root.Gold >= _root.Footman.cost)) {
_parent._parent.queue[_parent._parent.item] = new Array();
_parent._parent.queue[_parent._parent.item].nom = "Footman";
_parent._parent.queue[_parent._parent.item].cost = _root.Footman.cost;
_parent._parent.queue[_parent._parent.item].temps = _root.Footman.time;
_parent._parent.item++;
_root.Gold = _root.Gold - _root.Footman.cost;
}
}
m = 0;
}
}
Instance of Symbol 620 MovieClip "DESC" in Symbol 621 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1000);
}
Symbol 622 MovieClip [barracks] Frame 1
hp = 1;
maxhp = _root.barracks.hp;
Armor = _root.barracks.armor;
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
_root.totalbarracks++;
stop();
Instance of Symbol 268 MovieClip in Symbol 622 MovieClip [barracks] Frame 1
onClipEvent (load) {
time = _root.barracks.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.hp = (time2 / time) * _root.barracks.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 622 MovieClip [barracks] Frame 1
onClipEvent (load) {
W = 141.7;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 622 MovieClip [barracks] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 622 MovieClip [barracks] Frame 2
maxhp = _root.barracks.hp;
hp = maxhp;
if (queue == undefined) {
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
}
Instance of Symbol 268 MovieClip in Symbol 622 MovieClip [barracks] Frame 2
onClipEvent (unload) {
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
_x = (random(6) - random(6));
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 621 MovieClip "MENU" in Symbol 622 MovieClip [barracks] Frame 2
onClipEvent (load) {
nextFrame();
}
Instance of Symbol 10 MovieClip in Symbol 622 MovieClip [barracks] Frame 2
onClipEvent (load) {
Selected = false;
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
if (!Paused) {
if (_parent.queue[0].temps != undefined) {
_parent.tempsTotal = _parent.queue[0].temps;
if (_root.totalUnits < _root.maxUnits) {
_parent.temps++;
} else {
_root.BMH.gotoAndPlay(2);
}
if (_parent.temps >= _parent.tempsTotal) {
_root.newUnit(_parent.queue[0].nom, 0, (_parent._x + random(_width / 3)) - random(_width / 3));
_parent.item--;
_parent.temps = 0;
_parent.queue.splice(0, 1);
_parent.tempsTotal = _parent.queue[0].temps;
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
}
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
if (_parent.hp <= 0) {
_parent.queue = new Array();
_root.BuildQueue._visible = false;
_parent.nextFrame();
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) && (!_root.BuildQueue.hitTest(_root._xmouse, _root._ymouse))) {
if (Selected) {
_root.BuildQueue._visible = false;
}
Selected = false;
_parent.MENU.nextFrame();
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.BuildQueue._visible = true;
Selected = true;
_root.TargetBuilding = _parent._name;
_parent.MENU.prevFrame();
}
m = 0;
}
}
Symbol 622 MovieClip [barracks] Frame 3
hp = 0;
Dead = true;
_root.totalbarracks--;
Instance of Symbol 10 MovieClip "MC" in Symbol 622 MovieClip [barracks] Frame 3
onClipEvent (load) {
Dead = true;
}
Symbol 624 MovieClip [hut] Frame 1
hp = 1;
maxhp = _root.hut.hp;
Armor = _root.hut.armor;
_root.totalhut++;
_root.orcBuildings++;
stop();
Instance of Symbol 354 MovieClip in Symbol 624 MovieClip [hut] Frame 1
onClipEvent (load) {
time = _root.hut.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.HP = (time2 / time) * _root.hut.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 624 MovieClip [hut] Frame 1
onClipEvent (load) {
W = 57.5;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 624 MovieClip [hut] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 624 MovieClip [hut] Frame 2
maxhp = _root.hut.hp;
hp = maxhp;
Instance of Symbol 354 MovieClip in Symbol 624 MovieClip [hut] Frame 2
onClipEvent (unload) {
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
_x = (random(6) - random(6));
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 10 MovieClip in Symbol 624 MovieClip [hut] Frame 2
onClipEvent (load) {
Selected = false;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
}
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if ((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) {
Selected = false;
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
Selected = true;
}
m = 0;
}
}
Symbol 624 MovieClip [hut] Frame 3
hp = 0;
Dead = true;
_root.totalhut--;
_root.orcBuildings--;
if (_root.currentMission == 8) {
_root.map1._y = 433.4;
}
Instance of Symbol 10 MovieClip "MC" in Symbol 624 MovieClip [hut] Frame 3
onClipEvent (load) {
Dead = true;
}
Symbol 633 MovieClip Frame 1
un = _root.castle.upg;
deux = _root.castle.upgdesc;
Symbol 633 MovieClip Frame 3
gotoAndStop (100);
Symbol 633 MovieClip Frame 4
un = _root.RoyalGuard.title;
deux = _root.RoyalGuard.desc;
Symbol 633 MovieClip Frame 6
gotoAndStop (100);
Symbol 633 MovieClip Frame 7
un = _root.Hero.title;
deux = _root.Hero.desc;
Symbol 633 MovieClip Frame 9
gotoAndStop (100);
Symbol 633 MovieClip Frame 10
un = _root.Repair.title;
deux = _root.Repair.desc;
Symbol 633 MovieClip Frame 12
gotoAndStop (100);
Symbol 633 MovieClip Frame 13
stop();
Instance of Symbol 639 MovieClip in Symbol 640 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 633 MovieClip "DESC" in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (100);
}
Instance of Symbol 143 MovieClip in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
if (_parent._parent.Armor == (_root.castle.armor * 2)) {
done = true;
}
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (done)) || (_root.Gold < _root.castle.upgcost)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Up");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if ((_root.Gold >= _root.castle.upgcost) && (_parent._parent.Armor == _root.castle.armor)) {
_parent._parent.Armor = _root.castle.armor * 2;
_root.Gold = _root.Gold - _root.castle.upgcost;
_parent._parent.ARMORUPG.act = true;
_parent.smoke = true;
done = true;
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (((((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.RoyalGuard.cost)) || (_root.HeadingTo == "Tutorial")) || (_root.currentMission == 1)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("RoyalGuard");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if ((_parent._parent.item < _parent._parent.maxitems) && (_root.Gold >= _root.RoyalGuard.cost)) {
_parent._parent.queue[_parent._parent.item] = new Array();
_parent._parent.queue[_parent._parent.item].nom = "RoyalGuard";
_parent._parent.queue[_parent._parent.item].cost = _root.RoyalGuard.cost;
_parent._parent.queue[_parent._parent.item].temps = _root.RoyalGuard.time;
_parent._parent.item++;
_root.Gold = _root.Gold - _root.RoyalGuard.cost;
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
_root.Repair.cost = int(_root[_root.CASTLE].maxhp - _root[_root.CASTLE].hp) * 2;
_root.Repair.title = "Repair the castle - " + _root.Repair.cost;
if (((_root.prio > priority) || (_root[_root.CASTLE].hp == _root[_root.CASTLE].maxhp)) || (_root.Gold < _root.Repair.cost)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Repair");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.Gold >= _root.Repair.cost) {
_root.Gold = _root.Gold - _root.Repair.cost;
_root[_root.CASTLE].hp = _root[_root.CASTLE].maxhp;
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if ((((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.Hero.cost)) || (!_root[_root.HERO].MC.Dead)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Hero");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if (_root.Gold >= _root.Hero.cost) {
_root[_root.HERO].MC.Dead = false;
_root[_root.HERO].MC.gotoAndStop("Stand");
_root[_root.HERO].MC.resetEnnemy();
_root[_root.HERO].MC.resetEnnemy2();
_root[_root.HERO].MC.hp = _root[_root.HERO].MC.maxhp;
_root[_root.HERO].MC.Effect.play();
_root[_root.HERO].MC.target = _parent._parent._x;
_root[_root.HERO]._x = _parent._parent._x;
_root.Gold = _root.Gold - _root.Hero.cost;
}
}
m = 0;
}
}
Symbol 642 MovieClip [castle] Frame 1
hp = 1;
maxhp = _root.castle.hp;
Armor = _root.castle.armor;
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
stop();
Instance of Symbol 628 MovieClip in Symbol 642 MovieClip [castle] Frame 1
onClipEvent (load) {
time = _root.castle.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.hp = (time2 / time) * _root.castle.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 642 MovieClip [castle] Frame 1
onClipEvent (load) {
W = 188.6;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 642 MovieClip [castle] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 642 MovieClip [castle] Frame 2
maxhp = _root.castle.hp;
hp = maxhp;
if (queue == undefined) {
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
}
Instance of Symbol 628 MovieClip in Symbol 642 MovieClip [castle] Frame 2
onClipEvent (unload) {
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
X = random(6) - random(6);
_x = X;
_parent.ARMORUPG._visible = false;
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 630 MovieClip "ARMORUPG" in Symbol 642 MovieClip [castle] Frame 2
onClipEvent (load) {
time = _root.castle.time;
Y1 = _y;
Y2 = _y + _height;
time2 = 0;
_y = Y2;
act = false;
dkgj = false;
}
onClipEvent (enterFrame) {
if (((!Paused) && (act)) && (!dkgj)) {
_y = Y1;
dkgj = true;
}
}
Instance of Symbol 10 MovieClip "BL" in Symbol 642 MovieClip [castle] Frame 2
onClipEvent (load) {
Selected = false;
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
if (!Paused) {
if (_parent.queue[0].temps != undefined) {
_parent.tempsTotal = _parent.queue[0].temps;
if (_root.totalUnits < _root.maxUnits) {
_parent.temps++;
} else {
_root.BMH.gotoAndPlay(2);
}
if (_parent.temps >= _parent.tempsTotal) {
_root.newUnit(_parent.queue[0].nom, 0, (_parent._x + random(_width / 3)) - random(_width / 3));
_parent.item--;
_parent.temps = 0;
_parent.queue.splice(0, 1);
_parent.tempsTotal = _parent.queue[0].temps;
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
}
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
if (_parent.hp <= 0) {
_parent.queue = new Array();
_root.BuildQueue._visible = false;
_parent.nextFrame();
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) && (!_root.BuildQueue.hitTest(_root._xmouse, _root._ymouse))) {
if (Selected) {
_root.BuildQueue._visible = false;
}
Selected = false;
_parent.MENU.nextFrame();
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.BuildQueue._visible = true;
Selected = true;
_root.TargetBuilding = _parent._name;
_parent.MENU.prevFrame();
}
m = 0;
}
}
Instance of Symbol 641 MovieClip "MENU" in Symbol 642 MovieClip [castle] Frame 2
onClipEvent (load) {
nextFrame();
}
Symbol 642 MovieClip [castle] Frame 3
Dead = true;
Instance of Symbol 10 MovieClip "MC" in Symbol 642 MovieClip [castle] Frame 3
onClipEvent (load) {
Dead = true;
}
Symbol 647 MovieClip Frame 1
un = _root.house.sell;
deux = _root.house.sellInfo;
Symbol 647 MovieClip Frame 3
stop();
Instance of Symbol 143 MovieClip in Symbol 648 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Sell");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.Gold = _root.Gold + (_root.house.cost / 2);
_parent._parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 647 MovieClip "DESC" in Symbol 648 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (100);
}
Symbol 649 MovieClip [house] Frame 1
hp = 1;
maxhp = _root.house.hp;
Armor = _root.house.armor;
_root.totalhouse++;
stop();
Instance of Symbol 263 MovieClip in Symbol 649 MovieClip [house] Frame 1
onClipEvent (load) {
time = _root.house.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.hp = (time2 / time) * _root.house.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 649 MovieClip [house] Frame 1
onClipEvent (load) {
W = 57.5;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 649 MovieClip [house] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 649 MovieClip [house] Frame 2
maxhp = _root.house.hp;
hp = maxhp;
_root.totalHouses++;
_root.maxUnits = _root.totalHouses * 4;
Instance of Symbol 263 MovieClip in Symbol 649 MovieClip [house] Frame 2
onClipEvent (unload) {
_root.totalHouses--;
_root.maxUnits = _root.totalHouses * 5;
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
_x = (random(6) - random(6));
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 10 MovieClip in Symbol 649 MovieClip [house] Frame 2
onClipEvent (load) {
Selected = false;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
}
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if ((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) {
Selected = false;
_parent.MENU.nextFrame();
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
Selected = true;
_parent.MENU.prevFrame();
}
m = 0;
}
}
Instance of Symbol 648 MovieClip "MENU" in Symbol 649 MovieClip [house] Frame 2
onClipEvent (load) {
nextFrame();
}
Symbol 649 MovieClip [house] Frame 3
hp = 0;
Dead = true;
_root.totalhouse--;
Instance of Symbol 10 MovieClip "MC" in Symbol 649 MovieClip [house] Frame 3
onClipEvent (load) {
Dead = true;
}
Instance of Symbol 654 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Instance of Symbol 654 MovieClip in Symbol 662 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Instance of Symbol 654 MovieClip in Symbol 664 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 664 MovieClip Frame 23
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Warrior.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Warrior.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 664 MovieClip Frame 34
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Instance of Symbol 654 MovieClip in Symbol 666 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 666 MovieClip Frame 18
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Warrior.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Warrior.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 666 MovieClip Frame 35
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Instance of Symbol 669 MovieClip in Symbol 670 MovieClip Frame 1
onClipEvent (load) {
Scale = 100 + random(40);
_xscale = 0;
_x = (random(25) - random(25));
_yscale = (100 - random(40));
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((20 - _yscale) / 10));
_xscale = (_xscale + ((Scale - _xscale) / 10));
Scale = Scale + ((-Scale) / 10);
_alpha = Scale;
if (Scale < 3) {
Scale = undefined;
_alpha = 0;
}
}
Instance of Symbol 669 MovieClip in Symbol 670 MovieClip Frame 1
onClipEvent (load) {
Scale = 100 + random(40);
_xscale = 0;
_x = (random(25) - random(25));
_yscale = (100 - random(40));
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((20 - _yscale) / 10));
_xscale = (_xscale + ((Scale - _xscale) / 10));
Scale = Scale + ((-Scale) / 10);
_alpha = Scale;
if (Scale < 3) {
Scale = undefined;
_alpha = 0;
}
}
Symbol 671 MovieClip Frame 10
stop();
Instance of Symbol 654 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 672 MovieClip Frame 61
_parent.remove();
Instance of Symbol 654 MovieClip in Symbol 673 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 673 MovieClip Frame 61
_parent.remove();
Instance of Symbol 661 MovieClip in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 662 MovieClip in Symbol 674 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(18) + 1);
}
Instance of Symbol 674 MovieClip "MC" in Symbol 675 MovieClip [warrior] Frame 1
onClipEvent (load) {
function resetEnnemy() {
attacked = false;
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = _root.rangeChase;
rangeAttack = random(10) + 20;
attackTime = 20 + random(10);
orderTime = 0;
Order = false;
chasing = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.orcUnits++;
_parent._name = "orc" + _root.OrcID;
_root.OrcID++;
stop();
Mode = 1;
target = _parent._x;
Dead = false;
_parent.Type = "warrior";
Level = 1;
sc = (Math.random() * 10) + 95;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.Warrior.speed;
hp = _root.Warrior.hp;
Armor = _root.Warrior.armor;
maxhp = hp;
timer = 30;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
}
onClipEvent (enterFrame) {
if (target == undefined) {
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
if (((Mode == "normal") && (_root.currentMission == 3)) && (!_root.Lost)) {
target = _root.rightLimit - random(100);
}
timer++;
target = target + MX;
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.HumanID) {
see = false;
if ((Math.abs(X - _root["human" + i]._x) < rangeSee) && (!_root["human" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["human" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["human" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "human" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if (((!see) && (!attack)) && (!attacked)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
_root.orcUnits--;
}
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Symbol 689 MovieClip Frame 23
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Troll.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Troll.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 689 MovieClip Frame 38
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 691 MovieClip Frame 19
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Troll.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Troll.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 691 MovieClip Frame 35
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 693 MovieClip Frame 89
_parent.remove();
Instance of Symbol 686 MovieClip in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(50) + 1);
}
Instance of Symbol 687 MovieClip in Symbol 694 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(34) + 1);
}
Instance of Symbol 694 MovieClip "MC" in Symbol 695 MovieClip [troll] Frame 1
onClipEvent (load) {
function resetEnnemy() {
attacked = false;
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = _root.rangeChase;
rangeAttack = random(10) + 20;
attackTime = 20 + random(10);
orderTime = 0;
Order = false;
chasing = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.orcUnits++;
_parent._name = "orc" + _root.OrcID;
_root.OrcID++;
stop();
Mode = 1;
target = _parent._x;
Dead = false;
_parent.Type = "troll";
Level = 1;
sc = (Math.random() * 10) + 95;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.Troll.speed;
hp = _root.Troll.hp;
Armor = _root.Troll.armor;
maxhp = hp;
timer = 30;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
}
onClipEvent (enterFrame) {
if (target == undefined) {
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
if (((Mode == "normal") && (_root.currentMission == 3)) && (!_root.Lost)) {
target = _root.rightLimit - random(100);
}
timer++;
target = target + MX;
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.HumanID) {
see = false;
if ((Math.abs(X - _root["human" + i]._x) < rangeSee) && (!_root["human" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["human" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["human" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "human" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if (((!see) && (!attack)) && (!attacked)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
_root.orcUnits--;
}
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Symbol 698 MovieClip [barracksOrc] Frame 1
hp = 1;
maxhp = _root.barracksOrc.hp;
Armor = _root.barracksOrc.armor;
_root.totalbarracksOrc++;
_root.orcBuildings++;
stop();
Instance of Symbol 697 MovieClip in Symbol 698 MovieClip [barracksOrc] Frame 1
onClipEvent (load) {
time = _root.barracksOrc.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.hp = (time2 / time) * _root.barracksOrc.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 698 MovieClip [barracksOrc] Frame 1
onClipEvent (load) {
W = 124.5;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 698 MovieClip [barracksOrc] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 698 MovieClip [barracksOrc] Frame 2
maxhp = _root.barracksOrc.hp;
hp = maxhp;
Instance of Symbol 697 MovieClip in Symbol 698 MovieClip [barracksOrc] Frame 2
onClipEvent (unload) {
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
_x = (random(6) - random(6));
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 10 MovieClip in Symbol 698 MovieClip [barracksOrc] Frame 2
onClipEvent (load) {
Selected = false;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
}
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if ((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) {
Selected = false;
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
Selected = true;
}
m = 0;
}
}
Symbol 698 MovieClip [barracksOrc] Frame 3
hp = 0;
Dead = true;
_root.orcBuildings--;
_root.totalbarracksOrc--;
if (_root.currentMission == 8) {
_root.map2._y = 433.4;
}
Instance of Symbol 10 MovieClip "MC" in Symbol 698 MovieClip [barracksOrc] Frame 3
onClipEvent (load) {
Dead = true;
}
Symbol 702 MovieClip Frame 18
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.FatOrc.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.FatOrc.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 702 MovieClip Frame 31
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 704 MovieClip Frame 82
_parent.remove();
Symbol 705 MovieClip Frame 82
_parent.remove();
Instance of Symbol 699 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 700 MovieClip in Symbol 706 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(20) + 1);
}
Instance of Symbol 706 MovieClip "MC" in Symbol 707 MovieClip [fatorc] Frame 1
onClipEvent (load) {
function resetEnnemy() {
attacked = false;
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = _root.rangeChase;
rangeAttack = random(10) + 25;
attackTime = 25 + random(10);
orderTime = 0;
Order = false;
chasing = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.orcUnits++;
_parent._name = "orc" + _root.OrcID;
_root.OrcID++;
stop();
Mode = 1;
target = _parent._x;
Dead = false;
_parent.Type = "fat orc";
Level = 1;
sc = (Math.random() * 10) + 95;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.FatOrc.speed;
hp = _root.FatOrc.hp;
Armor = _root.FatOrc.armor;
maxhp = hp;
timer = 30;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
}
onClipEvent (enterFrame) {
if (target == undefined) {
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
if (((Mode == "normal") && (_root.currentMission == 3)) && (!_root.Lost)) {
target = _root.rightLimit - random(100);
}
timer++;
target = target + MX;
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.HumanID) {
see = false;
if ((Math.abs(X - _root["human" + i]._x) < rangeSee) && (!_root["human" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["human" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["human" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "human" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if (((!see) && (!attack)) && (!attacked)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
_root.orcUnits--;
}
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Symbol 710 MovieClip [fortress] Frame 1
hp = 1;
maxhp = _root.fortress.hp;
Armor = _root.fortress.armor;
_root.totalfortress++;
_root.orcBuildings++;
stop();
Instance of Symbol 709 MovieClip in Symbol 710 MovieClip [fortress] Frame 1
onClipEvent (load) {
time = _root.fortress.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.HP = (time2 / time) * _root.hut.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 710 MovieClip [fortress] Frame 1
onClipEvent (load) {
W = 147.8;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 710 MovieClip [fortress] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 710 MovieClip [fortress] Frame 2
maxhp = _root.fortress.hp;
hp = maxhp;
Instance of Symbol 709 MovieClip in Symbol 710 MovieClip [fortress] Frame 2
onClipEvent (unload) {
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
_x = (random(6) - random(6));
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 10 MovieClip in Symbol 710 MovieClip [fortress] Frame 2
onClipEvent (load) {
Selected = false;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
}
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if ((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) {
Selected = false;
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
Selected = true;
}
m = 0;
}
}
Symbol 710 MovieClip [fortress] Frame 3
hp = 0;
Dead = true;
_root.totalfortress--;
_root.orcBuildings--;
if (_root.currentMission == 8) {
_root.map3._y = 433.4;
}
Instance of Symbol 10 MovieClip "MC" in Symbol 710 MovieClip [fortress] Frame 3
onClipEvent (load) {
Dead = true;
}
Symbol 713 MovieClip Frame 1
un = _root.WeaponUPG.title;
deux = _root.WeaponUPG.desc;
Symbol 713 MovieClip Frame 3
gotoAndStop (100);
Symbol 713 MovieClip Frame 4
un = _root.ArmorsUPG.title;
deux = _root.ArmorsUPG.desc;
Symbol 713 MovieClip Frame 6
gotoAndStop (100);
Symbol 713 MovieClip Frame 7
un = _root.forge.sell;
deux = _root.forge.sellInfo;
Symbol 713 MovieClip Frame 9
stop();
Symbol 716 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe == 1) {
_root.BuildQueue._visible = true;
}
};
Instance of Symbol 143 MovieClip in Symbol 716 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
up = false;
}
onClipEvent (enterFrame) {
if (((((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.ArmorsUPG.cost)) || (up)) || (_root.UP2)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("armor");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if ((_root.Gold >= _root.ArmorsUPG.cost) && (!up)) {
_root.Gold = _root.Gold - _root.ArmorsUPG.cost;
_root.RoyalGuard.armor = _root.RoyalGuard.armor + 0.5;
_root.Hero.armor = _root.Hero.armor + 0.5;
_root.Footman.armor = _root.Footman.armor + 0.5;
_root.Spearman.armor = _root.Spearman.armor + 0.5;
_root.Archer.armor = _root.Archer.armor + 0.5;
up = true;
_root.UP2 = true;
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 716 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Sell");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.Gold = _root.Gold + (_root.forge.cost / 2);
_parent._parent.queue = new Array();
_root.BuildQueue._visible = false;
_parent._parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 716 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
up = false;
}
onClipEvent (enterFrame) {
if (((((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.WeaponUPG.cost)) || (up)) || (_root.UP1)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("weapon");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if ((_root.Gold >= _root.WeaponUPG.cost) && (!up)) {
_root.Gold = _root.Gold - _root.WeaponUPG.cost;
_root.RoyalGuard.dmg = _root.RoyalGuard.dmg + 0.5;
_root.Hero.dmg = _root.Hero.dmg + 0.5;
_root.Footman.dmg = _root.Footman.dmg + 0.5;
_root.Spearman.dmg = _root.Spearman.dmg + 0.5;
up = true;
_root.UP1 = true;
}
}
m = 0;
}
}
Instance of Symbol 713 MovieClip "DESC" in Symbol 716 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1000);
}
Symbol 717 MovieClip [forge] Frame 1
hp = 1;
maxhp = _root.forge.hp;
Armor = _root.forge.armor;
_root.totalforge++;
stop();
Instance of Symbol 270 MovieClip in Symbol 717 MovieClip [forge] Frame 1
onClipEvent (load) {
time = _root.forge.time;
Y1 = _y;
Y2 = _y + _height;
Move = (Y1 - Y2) / time;
time2 = 0;
_y = Y2;
}
onClipEvent (enterFrame) {
if (!_global.Paused) {
_parent.hp = (time2 / time) * _root.forge.hp;
time2++;
if (time2 > time) {
_parent.nextFrame();
}
_y = (_y + Move);
}
}
Instance of Symbol 135 MovieClip in Symbol 717 MovieClip [forge] Frame 1
onClipEvent (load) {
W = 98.3;
}
Instance of Symbol 139 MovieClip "hp2" in Symbol 717 MovieClip [forge] Frame 1
onClipEvent (load) {
if (_parent._currentframe == 2) {
_visible = false;
}
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
onClipEvent (enterFrame) {
gotoAndStop(int((_parent.hp / _parent.maxhp) * 100));
}
Symbol 717 MovieClip [forge] Frame 2
maxhp = _root.forge.hp;
hp = maxhp;
Instance of Symbol 270 MovieClip in Symbol 717 MovieClip [forge] Frame 2
onClipEvent (unload) {
removeMovieClip(_root.NoBuild["b" + _parent.BlockRemove]);
_root.depthBuildings[depthToChange] = _root.depthBuildingsINIT[depthToChange];
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
onClipEvent (load) {
speed = 0;
time = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.hp <= 0) {
_parent.hp = 0;
_parent.Dead = true;
_parent.gotoAndStop(3);
}
if (_parent._currentframe == 3) {
_y = (_y + speed);
_x = (random(6) - random(6));
speed = speed + 0.05;
((_y < (Y + _height)) ? ((_parent.smoke = true)) : ((_parent.smoke = false)));
if (_y > ((Y + _height) + 150)) {
_parent.nextFrame();
}
}
}
}
Instance of Symbol 10 MovieClip in Symbol 717 MovieClip [forge] Frame 2
onClipEvent (load) {
Selected = false;
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if ((!Paused) && (_root.canSelect)) {
if (Selected) {
_root.BuildQueue._visible = false;
}
if (Selected || (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_parent.hp2._visible = true;
} else {
_parent.hp2._visible = false;
}
} else {
_parent.hp2._visible = false;
}
if (_parent.hp <= 0) {
_parent.nextFrame();
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if ((Selected && (!this.hitTest(_root._xmouse, _root._ymouse))) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) {
Selected = false;
_root.BuildQueue._visible = false;
_parent.MENU.nextFrame();
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.BuildQueue._visible = false;
Selected = true;
_parent.MENU.prevFrame();
}
m = 0;
}
}
Instance of Symbol 716 MovieClip "MENU" in Symbol 717 MovieClip [forge] Frame 2
onClipEvent (load) {
nextFrame();
}
Symbol 717 MovieClip [forge] Frame 3
hp = 0;
Dead = true;
_root.totalforge--;
Instance of Symbol 10 MovieClip "MC" in Symbol 717 MovieClip [forge] Frame 3
onClipEvent (load) {
Dead = true;
}
Symbol 720 MovieClip Frame 1
_xscale = (_xscale - random(30));
_yscale = (_yscale - random(30));
_rotation = random(360);
Symbol 731 MovieClip Frame 1
gotoAndPlay(random(20) + _root.motivationUPG);
Instance of Symbol 730 MovieClip in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20) + 1);
}
Symbol 731 MovieClip Frame 76
_parent._parent.Dup(_root.goldUPG);
Instance of Symbol 731 MovieClip in Symbol 732 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Paused) {
stop();
} else {
play();
}
}
Symbol 735 MovieClip Frame 1
un = _root.MinerUPG.title;
deux = _root.MinerUPG.desc;
Symbol 735 MovieClip Frame 3
gotoAndStop (100);
Symbol 735 MovieClip Frame 4
un = _root.Miner.title;
deux = _root.Miner.desc;
Symbol 735 MovieClip Frame 6
gotoAndStop (100);
Symbol 735 MovieClip Frame 7
un = _root.barracks.sell;
deux = _root.barracks.sellInfo;
Symbol 735 MovieClip Frame 9
stop();
Symbol 740 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe == 1) {
_root.BuildQueue._visible = true;
}
};
Instance of Symbol 735 MovieClip "DESC" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1000);
}
Instance of Symbol 143 MovieClip in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if ((((_root.prio > priority) || (!_root.canHire)) || (_root.Gold < _root.Miner.cost)) || (_parent._parent.workers == 3)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("Miner");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (_root.canSelect && (this.hitTest(_root._xmouse, _root._ymouse))) {
if (((_parent._parent.workers <= 2) && (_parent._parent.item < _parent._parent.maxitems)) && (_root.Gold >= _root.Miner.cost)) {
_parent._parent.workers++;
_parent._parent.queue[_parent._parent.item] = new Array();
_parent._parent.queue[_parent._parent.item].nom = "Miner";
_parent._parent.queue[_parent._parent.item].cost = _root.Miner.cost;
_parent._parent.queue[_parent._parent.item].temps = _root.Miner.time;
_parent._parent.item++;
_root.Gold = _root.Gold - _root.Miner.cost;
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (_root.motivationUPG != 0)) || (_root.Gold < _root.MinerUPG.cost)) {
active = false;
} else {
active = true;
}
if (!active) {
nextFrame();
m = 0;
} else {
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.DESC.gotoAndPlay("MinerUPG");
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if ((((_root.Gold >= _root.MinerUPG.cost) && (_root.motivationUPG == 0)) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.motivationUPG = 25;
_root.Gold = _root.Gold - _root.MinerUPG.cost;
priority = -1;
}
m = 0;
}
}
Symbol 741 MovieClip Frame 1
function Dup(ID) {
((ID == 1) ? ((_root.Gold = _root.Gold + 15)) : ((_root.Gold = _root.Gold + 25)));
duplicateMovieClip (this["G" + ID], i, i);
i++;
}
_root.motivationUPG = 0;
_name = "HMine";
i = 0;
stop();
workers = 1;
queue = new Array();
item = 0;
maxitems = 5;
temps = 0;
tempsTotal = 0;
Instance of Symbol 725 MovieClip "G1" in Symbol 741 MovieClip Frame 1
onClipEvent (load) {
M = false;
_parent.G1.M = true;
if (M) {
i = 0;
_visible = false;
} else {
_x = (random(30) - random(30));
_y = (-10 - random(20));
_alpha = 200;
}
}
onClipEvent (enterFrame) {
if ((!M) && (!Paused)) {
_y = (_y - 0.5);
_alpha = (_alpha - 2);
if (_alpha <= 0) {
removeMovieClip(this);
}
}
}
Instance of Symbol 10 MovieClip in Symbol 741 MovieClip Frame 1
onClipEvent (load) {
Selected = false;
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (_parent.queue[0].temps != undefined) {
_parent.temps++;
_parent.tempsTotal = _parent.queue[0].temps;
if (_parent.temps >= _parent.tempsTotal) {
if (_parent.queue[0].nom == "Miner") {
_parent.nextFrame();
}
_parent.item--;
_parent.temps = 0;
_parent.queue.splice(0, 1);
_parent.tempsTotal = _parent.queue[0].temps;
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
}
if (_parent.tempsTotal == undefined) {
_parent.tempsTotal = 0;
}
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (((!this.hitTest(_root._xmouse, _root._ymouse)) && (!_parent.MENU.hitTest(_root._xmouse, _root._ymouse))) && (!_root.BuildQueue.hitTest(_root._xmouse, _root._ymouse))) {
if (Selected) {
_root.BuildQueue._visible = false;
}
Selected = false;
_parent.MENU.nextFrame();
}
if (active && (m == 1)) {
if (((_root.unitsSelected == 0) && (_root.canSelect)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.BuildQueue._visible = true;
Selected = true;
_root.TargetBuilding = _parent._name;
_parent.MENU.prevFrame();
}
m = 0;
}
}
Instance of Symbol 740 MovieClip "MENU" in Symbol 741 MovieClip Frame 1
onClipEvent (load) {
nextFrame();
}
Symbol 744 MovieClip Frame 11
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Footman.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Footman.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 744 MovieClip Frame 25
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 745 MovieClip Frame 10
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Footman.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Footman.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 745 MovieClip Frame 20
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 749 MovieClip Frame 81
_parent.remove();
Symbol 750 MovieClip Frame 81
_parent.remove();
Symbol 751 MovieClip Frame 1
gotoAndPlay(random(5) + 1);
Symbol 751 MovieClip Frame 15
gotoAndPlay(random(6) + 15);
Symbol 751 MovieClip Frame 40
_parent.gotoAndStop("Stand");
Instance of Symbol 742 MovieClip in Symbol 752 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(23) + 1);
}
Instance of Symbol 743 MovieClip in Symbol 752 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(23) + 1);
}
Instance of Symbol 752 MovieClip "MC" in Symbol 753 MovieClip [footman] Frame 1
onClipEvent (load) {
function resetEnnemy() {
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = _root.rangeChase;
rangeAttack = random(10) + 20;
attackTime = 20 + random(10);
orderTime = 0;
Order = false;
chasing = false;
attacked = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.HumanID++;
stop();
Mode = 1;
Selected = false;
_parent.sel._visible = false;
target = _parent._x;
addSelect = true;
team = 0;
Dead = false;
SelectInfo = "none";
_parent.Type = "footman";
Level = 1;
sc = (Math.random() * 10) + 95;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.Footman.speed;
hp = _root.Footman.hp;
Armor = _root.Footman.armor;
maxhp = hp;
timer = 30;
timer2 = 0;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
ADDtoUNITS = false;
}
onClipEvent (enterFrame) {
Armor = _root.Footman.armor;
if (target < _root.leftLimit) {
target = (_root.leftLimit + random(30)) + 10;
}
if (target == undefined) {
err("footman prob : target (_x) = undefined");
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
timer++;
timer2++;
if (timer2 == 100) {
timer2 = 0;
Armor = _root.Footman.armor;
}
target = target + MX;
if (Selected) {
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_parent.sel._visible = true;
if (Key.isDown(83)) {
target = _parent._x;
Order = false;
orderTime = -1;
Mode = "normal";
toKill = "none";
}
} else {
_parent.sel._visible = false;
}
if (_root.select.drag == true) {
addSelect = true;
if (_root.select.hitTest(_parent._x, _parent._y - 15, true)) {
Selected = true;
} else {
Selected = false;
}
}
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.OrcID) {
see = false;
if ((Math.abs(X - _root["orc" + i]._x) < rangeSee) && (!_root["orc" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["orc" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["orc" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "orc" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if ((!see) && (!attack)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
hp = 0;
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
Selected = false;
_parent.sel._visible = false;
_root.totalUnits--;
}
if (ADDtoUNITS) {
ADDtoUNITS = false;
addSelect = false;
if (_root.unitsSelected == 0) {
_root.soundSelect(_parent.Type);
}
_root.unitsSelected++;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.unitID++;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
}
onClipEvent (mouseDown) {
if (_root.canSelect && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.toSelect = _parent._name;
}
if (Selected) {
addSelect = false;
}
}
onClipEvent (mouseUp) {
if (!Paused) {
if ((_root.toSelect == _parent._name) && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
_root.soundSelect(_parent.Type);
_root.toSelect = "none";
_root.Deselect();
_root.Interface.Selected.gotoAndStop(5);
_root.unitsSelected = 1;
Selected = true;
addSelect = false;
_root.unitID = 0;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
if (Selected && (!Paused)) {
if (addSelect) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
ADDtoUNITS = true;
}
if (_root.doubleClick && (Control)) {
if (Mode == "fight") {
if (Key.isDown(16)) {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
Order = true;
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if ((_root.currentMission == 9) && (target > _root.Limit2)) {
target = _root.Limit2 - random(50);
}
}
}
if (Mode != "fight") {
Mode = "normal";
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
}
}
} else {
SelectInfo = "none";
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Instance of Symbol 112 MovieClip "sel" in Symbol 753 MovieClip [footman] Frame 1
onClipEvent (enterFrame) {
prevFrame();
}
Instance of Symbol 756 MovieClip in Symbol 757 MovieClip Frame 1
onClipEvent (load) {
Scale = 100 + random(40);
_xscale = 0;
_x = (random(25) - random(25));
_yscale = (100 - random(40));
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((20 - _yscale) / 10));
_xscale = (_xscale + ((Scale - _xscale) / 10));
Scale = Scale + ((-Scale) / 10);
_alpha = Scale;
if (Scale < 3) {
Scale = undefined;
_alpha = 0;
}
}
Instance of Symbol 756 MovieClip in Symbol 757 MovieClip Frame 1
onClipEvent (load) {
Scale = 120 + random(40);
_xscale = 0;
_x = (random(25) - random(25));
_yscale = (100 + random(40));
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((20 - _yscale) / 10));
_xscale = (_xscale + ((Scale - _xscale) / 10));
Scale = Scale + ((-Scale) / 10);
_alpha = Scale;
if (Scale < 3) {
Scale = undefined;
_alpha = 0;
}
}
Symbol 759 MovieClip Frame 1
_rotation = random(360);
rs = random(10) - random(10);
onEnterFrame = function () {
_rotation = (_rotation + rs);
};
Symbol 761 MovieClip Frame 1
stop();
Instance of Symbol 759 MovieClip in Symbol 761 MovieClip Frame 2
onClipEvent (load) {
_x = (random(20) - random(20));
s = random(5) + 10;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
_y = (_y - s);
}
Instance of Symbol 759 MovieClip in Symbol 761 MovieClip Frame 4
onClipEvent (load) {
_x = (random(20) - random(20));
s = random(5) + 10;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
_y = (_y - s);
}
Instance of Symbol 759 MovieClip in Symbol 761 MovieClip Frame 6
onClipEvent (load) {
_x = (random(20) - random(20));
s = random(5) + 10;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
_y = (_y - s);
}
Instance of Symbol 759 MovieClip in Symbol 761 MovieClip Frame 8
onClipEvent (load) {
_x = (random(20) - random(20));
s = random(5) + 10;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
_y = (_y - s);
}
Instance of Symbol 759 MovieClip in Symbol 761 MovieClip Frame 10
onClipEvent (load) {
_x = (random(20) - random(20));
s = random(5) + 10;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
_y = (_y - s);
}
Symbol 763 MovieClip Frame 18
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Hero.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Hero.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 763 MovieClip Frame 30
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 765 MovieClip Frame 31
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Hero.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Hero.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 765 MovieClip Frame 40
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 767 MovieClip Frame 30
stop();
Symbol 768 MovieClip Frame 24
_parent.gotoAndStop("Stand");
Instance of Symbol 769 MovieClip "MC" in Symbol 775 MovieClip Frame 1
onClipEvent (load) {
function resetEnnemy() {
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = _root.rangeChase;
rangeAttack = random(10) + 25;
attackTime = 20 + random(10);
orderTime = 0;
Order = false;
chasing = false;
attacked = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
map = false;
_root.HumanID++;
stop();
Mode = 1;
Selected = false;
_parent.sel._visible = false;
target = _parent._x;
addSelect = true;
team = 0;
Dead = false;
SelectInfo = "none";
_parent.Type = "hero";
Level = 1;
sc = (Math.random() * 10) + 105;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.Hero.speed;
hp = _root.Hero.hp;
Armor = _root.Hero.armor;
maxhp = hp;
timer = 30;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
ADDtoUNITS = false;
_parent.swapDepths(_root.HeroDepth.getDepth());
_parent._name = "human" + _root.HumanID;
_root.HumanID++;
_root.HERO = _parent._name;
_parent._y = _root.FloorUnits;
}
onClipEvent (enterFrame) {
_parent.map._visible = map;
Armor = _root.Hero.armor;
if (target < _root.leftLimit) {
target = (_root.leftLimit + random(30)) + 50;
}
if (target == undefined) {
resetEnnemy();
err("prob : target (_x) = undefined");
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
timer++;
target = target + MX;
if (Selected) {
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_parent.sel._visible = true;
if (Key.isDown(83)) {
target = _parent._x;
Order = false;
orderTime = -1;
Mode = "normal";
toKill = "none";
}
} else {
_parent.sel._visible = false;
}
if (_root.select.drag == true) {
addSelect = true;
if (_root.select.hitTest(_parent._x, _parent._y - 15, true)) {
Selected = true;
} else {
Selected = false;
}
}
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
attacked = false;
hp = hp + 0.1;
if (hp > maxhp) {
hp = maxhp;
}
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.OrcID) {
see = false;
if ((Math.abs(X - _root["orc" + i]._x) < rangeSee) && (!_root["orc" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["orc" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["orc" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "orc" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if ((!see) && (!attack)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
hp = 0;
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
Selected = false;
_parent.sel._visible = false;
}
if (ADDtoUNITS) {
ADDtoUNITS = false;
addSelect = false;
if (_root.unitsSelected == 0) {
_root.soundSelect(_parent.Type);
}
_root.unitsSelected++;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.unitID++;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
}
onClipEvent (mouseDown) {
if (_root.canSelect && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.toSelect = _parent._name;
}
if (Selected) {
addSelect = false;
}
}
onClipEvent (mouseUp) {
if (!Paused) {
if ((_root.toSelect == _parent._name) && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
_root.soundSelect(_parent.Type);
_root.toSelect = "none";
_root.Deselect();
_root.Interface.Selected.gotoAndStop(5);
_root.unitsSelected = 1;
Selected = true;
addSelect = false;
_root.unitID = 0;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
if (Selected && (!Paused)) {
if (addSelect) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
ADDtoUNITS = true;
}
if (_root.doubleClick && (Control)) {
if (Mode != "fight") {
Mode = "normal";
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if ((_root.currentMission == 9) && (target > _root.Limit2)) {
target = _root.Limit2 - random(50);
}
}
if (Mode == "fight") {
if (Key.isDown(16)) {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
Order = true;
timer2 = -30;
}
}
}
} else {
SelectInfo = "none";
}
}
Instance of Symbol 112 MovieClip "sel" in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
prevFrame();
}
Instance of Symbol 774 MovieClip "map" in Symbol 775 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 782 MovieClip in Symbol 783 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = ((-_parent._rotation) + 45);
}
Symbol 786 MovieClip Frame 15
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Spearman.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Spearman.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 786 MovieClip Frame 23
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 787 MovieClip Frame 12
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Spearman.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Spearman.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 787 MovieClip Frame 22
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 789 MovieClip Frame 81
_parent.remove();
Symbol 790 MovieClip Frame 82
_parent.remove();
Symbol 791 MovieClip Frame 1
gotoAndPlay(random(6) + 1);
Symbol 791 MovieClip Frame 9
gotoAndPlay(random(6) + 11);
Symbol 791 MovieClip Frame 32
_parent.gotoAndStop("Stand");
Instance of Symbol 784 MovieClip in Symbol 792 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 785 MovieClip in Symbol 792 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(23) + 1);
}
Instance of Symbol 112 MovieClip "sel" in Symbol 793 MovieClip [spearman] Frame 1
onClipEvent (enterFrame) {
prevFrame();
}
Instance of Symbol 792 MovieClip "MC" in Symbol 793 MovieClip [spearman] Frame 1
onClipEvent (load) {
function resetEnnemy() {
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = _root.rangeChase;
rangeAttack = random(5) + 35;
attackTime = 20 + random(10);
orderTime = 0;
Order = false;
chasing = false;
attacked = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.HumanID++;
stop();
Mode = 1;
Selected = false;
_parent.sel._visible = false;
target = _parent._x;
addSelect = true;
team = 0;
Dead = false;
SelectInfo = "none";
_parent.Type = "spearman";
Level = 1;
sc = (Math.random() * 10) + 95;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.Spearman.speed;
hp = _root.Spearman.hp;
Armor = _root.Spearman.armor;
maxhp = hp;
timer = 30;
timer2 = 0;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
ADDtoUNITS = false;
}
onClipEvent (enterFrame) {
Armor = _root.Spearman.armor;
if (target < _root.leftLimit) {
target = (_root.leftLimit + random(30)) + 10;
}
if (target == undefined) {
err("spearman prob : target (_x) = undefined");
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
timer++;
timer2++;
if (timer2 == 100) {
timer2 = 0;
Armor = _root.Footman.armor;
}
target = target + MX;
if (Selected) {
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_parent.sel._visible = true;
if (Key.isDown(83)) {
target = _parent._x;
Order = false;
orderTime = -1;
Mode = "normal";
toKill = "none";
}
} else {
_parent.sel._visible = false;
}
if (_root.select.drag == true) {
addSelect = true;
if (_root.select.hitTest(_parent._x, _parent._y - 15, true)) {
Selected = true;
} else {
Selected = false;
}
}
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.OrcID) {
see = false;
if ((Math.abs(X - _root["orc" + i]._x) < rangeSee) && (!_root["orc" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["orc" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["orc" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "orc" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if ((!see) && (!attack)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
hp = 0;
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
Selected = false;
_parent.sel._visible = false;
_root.totalUnits--;
}
if (ADDtoUNITS) {
ADDtoUNITS = false;
addSelect = false;
if (_root.unitsSelected == 0) {
_root.soundSelect("yo");
}
_root.unitsSelected++;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.unitID++;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
}
onClipEvent (mouseDown) {
if (_root.canSelect && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.toSelect = _parent._name;
}
if (Selected) {
addSelect = false;
}
}
onClipEvent (mouseUp) {
if (!Paused) {
if ((_root.toSelect == _parent._name) && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
_root.soundSelect("yo");
_root.toSelect = "none";
_root.Deselect();
_root.Interface.Selected.gotoAndStop(5);
_root.unitsSelected = 1;
Selected = true;
addSelect = false;
_root.unitID = 0;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
if (Selected && (!Paused)) {
if (addSelect) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
ADDtoUNITS = true;
}
if (_root.doubleClick && (Control)) {
if (Mode == "fight") {
if (Key.isDown(16)) {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
Order = true;
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if ((_root.currentMission == 9) && (target > _root.Limit2)) {
target = _root.Limit2 - random(50);
}
}
}
if (Mode != "fight") {
Mode = "normal";
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
}
}
} else {
SelectInfo = "none";
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Instance of Symbol 796 MovieClip in Symbol 797 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
}
Symbol 810 MovieClip Frame 18
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Apprentice.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Apprentice.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = (random(30) - random(30));
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = (random(30) - random(30));
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = (random(30) - random(30));
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = (random(30) - random(30));
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = (random(30) - random(30));
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = (random(30) - random(30));
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 18
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Symbol 810 MovieClip Frame 50
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 812 MovieClip Frame 82
_parent.remove();
Symbol 813 MovieClip Frame 82
_parent.remove();
Symbol 815 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 815 MovieClip Frame 15
gotoAndPlay(random(10) + 15);
Instance of Symbol 808 MovieClip in Symbol 815 MovieClip Frame 15
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 815 MovieClip Frame 15
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 815 MovieClip Frame 15
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 815 MovieClip Frame 15
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 815 MovieClip Frame 15
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 815 MovieClip Frame 15
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 815 MovieClip Frame 15
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Instance of Symbol 808 MovieClip in Symbol 815 MovieClip Frame 15
onClipEvent (load) {
X = _x;
Y = _y;
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = ((X + (Math.random() * 5)) - (Math.random() * 5));
_y = ((Y + (Math.random() * 5)) - (Math.random() * 5));
gotoAndStop(random(10) + 1);
_alpha = (random(30) + 70);
_rotation = random(360);
}
Symbol 815 MovieClip Frame 43
_parent.gotoAndStop("Stand");
Instance of Symbol 45 MovieClip in Symbol 816 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20) + 1);
}
Instance of Symbol 794 MovieClip in Symbol 816 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 112 MovieClip "sel" in Symbol 817 MovieClip [apprentice] Frame 1
onClipEvent (enterFrame) {
prevFrame();
}
Instance of Symbol 816 MovieClip "MC" in Symbol 817 MovieClip [apprentice] Frame 1
onClipEvent (load) {
function resetEnnemy() {
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = 130;
rangeAttack = (100 + random(20)) - random(20);
attackTime = 0;
orderTime = 0;
Order = false;
chasing = false;
attacked = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.HumanID++;
stop();
Mode = 1;
Selected = false;
_parent.sel._visible = false;
target = _parent._x;
addSelect = true;
team = 0;
Dead = false;
SelectInfo = "none";
_parent.Type = "apprentice";
Level = 1;
sc = (Math.random() * 10) + 95;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.Apprentice.speed;
hp = _root.Apprentice.hp;
Armor = _root.Apprentice.armor;
maxhp = hp;
timer = 30;
timer2 = 0;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
ADDtoUNITS = false;
}
onClipEvent (enterFrame) {
Armor = _root.Apprentice.armor;
if (target < _root.leftLimit) {
target = (_root.leftLimit + random(30)) + 10;
}
if (target == undefined) {
err("apprentice prob : target (_x) = undefined");
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
timer++;
timer2++;
if (timer2 == 100) {
timer2 = 0;
Armor = _root.Apprentice.armor;
}
target = target + MX;
if (Selected) {
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_parent.sel._visible = true;
if (Key.isDown(83)) {
target = _parent._x;
Order = false;
orderTime = -1;
Mode = "normal";
toKill = "none";
}
} else {
_parent.sel._visible = false;
}
if (_root.select.drag == true) {
addSelect = true;
if (_root.select.hitTest(_parent._x, _parent._y - 15, true)) {
Selected = true;
} else {
Selected = false;
}
}
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.OrcID) {
see = false;
if ((Math.abs(X - _root["orc" + i]._x) < rangeSee) && (!_root["orc" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["orc" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["orc" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "orc" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if ((!see) && (!attack)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
hp = 0;
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
Selected = false;
_parent.sel._visible = false;
_root.totalUnits--;
}
if (ADDtoUNITS) {
ADDtoUNITS = false;
addSelect = false;
if (_root.unitsSelected == 0) {
_root.soundSelect(_parent.Type);
}
_root.unitsSelected++;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.unitID++;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
}
onClipEvent (mouseDown) {
if (_root.canSelect && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.toSelect = _parent._name;
}
if (Selected) {
addSelect = false;
}
}
onClipEvent (mouseUp) {
if (!Paused) {
if ((_root.toSelect == _parent._name) && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
_root.soundSelect(_parent.Type);
_root.toSelect = "none";
_root.Deselect();
_root.Interface.Selected.gotoAndStop(5);
_root.unitsSelected = 1;
Selected = true;
addSelect = false;
_root.unitID = 0;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
if (Selected && (!Paused)) {
if (addSelect) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
ADDtoUNITS = true;
}
if (_root.doubleClick && (Control)) {
if (Mode == "fight") {
if (Key.isDown(16)) {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
Order = true;
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
}
}
if (Mode != "fight") {
Mode = "normal";
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if ((_root.currentMission == 9) && (target > _root.Limit2)) {
target = _root.Limit2 - random(50);
}
}
}
} else {
SelectInfo = "none";
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Symbol 823 MovieClip Frame 54
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Archer.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Archer.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 823 MovieClip Frame 66
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 826 MovieClip Frame 31
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - (((_root.Archer.dmg / 2) * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - (((_root.Archer.dmg / 2) * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 826 MovieClip Frame 49
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Symbol 828 MovieClip Frame 82
_parent.remove();
Symbol 829 MovieClip Frame 82
_parent.remove();
Symbol 830 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
Symbol 830 MovieClip Frame 20
gotoAndPlay(random(10) + 20);
Symbol 830 MovieClip Frame 49
_parent.gotoAndStop("Stand");
Instance of Symbol 57 MovieClip in Symbol 831 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 818 MovieClip in Symbol 831 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(25) + 1);
}
Instance of Symbol 112 MovieClip "sel" in Symbol 832 MovieClip [archer] Frame 1
onClipEvent (enterFrame) {
prevFrame();
}
Instance of Symbol 831 MovieClip "MC" in Symbol 832 MovieClip [archer] Frame 1
onClipEvent (load) {
function resetEnnemy() {
ennemy = "none";
toKill = "none";
rangeSee = 300;
rangeChase = 300;
rangeAttack = 300 - random(50);
attackTime = 0;
orderTime = 0;
Order = false;
chasing = false;
attacked = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.HumanID++;
stop();
Mode = 1;
Selected = false;
_parent.sel._visible = false;
target = _parent._x;
addSelect = true;
team = 0;
Dead = false;
SelectInfo = "none";
_parent.Type = "archer";
Level = 1;
sc = (Math.random() * 10) + 95;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.Archer.speed;
hp = _root.Archer.hp;
Armor = _root.Archer.armor;
maxhp = hp;
timer = 30;
timer2 = 0;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
ADDtoUNITS = false;
}
onClipEvent (enterFrame) {
Armor = _root.Archer.armor;
if (target < _root.leftLimit) {
target = (_root.leftLimit + random(30)) + 10;
}
if (target == undefined) {
err("archer prob : target (_x) = undefined");
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
timer++;
timer2++;
if (timer2 == 100) {
timer2 = 0;
Armor = _root.Archer.armor;
}
target = target + MX;
if (Selected) {
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_parent.sel._visible = true;
if (Key.isDown(83)) {
target = _parent._x;
Order = false;
orderTime = -1;
Mode = "normal";
toKill = "none";
}
} else {
_parent.sel._visible = false;
}
if (_root.select.drag == true) {
addSelect = true;
if (_root.select.hitTest(_parent._x, _parent._y - 15, true)) {
Selected = true;
} else {
Selected = false;
}
}
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.OrcID) {
see = false;
if ((Math.abs(X - _root["orc" + i]._x) < rangeSee) && (!_root["orc" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["orc" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["orc" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "orc" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
_root[toKill].MC.target = _parent._x;
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if ((!see) && (!attack)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
if (Math.abs(X - _root[toKill]._x) > 30) {
gotoAndStop ("attack1");
} else {
gotoAndStop ("attack2");
}
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
hp = 0;
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
Selected = false;
_parent.sel._visible = false;
_root.totalUnits--;
}
if (ADDtoUNITS) {
ADDtoUNITS = false;
addSelect = false;
if (_root.unitsSelected == 0) {
_root.soundSelect(_parent.Type);
}
_root.unitsSelected++;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.unitID++;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
}
onClipEvent (mouseDown) {
if (_root.canSelect && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.toSelect = _parent._name;
}
if (Selected) {
addSelect = false;
}
}
onClipEvent (mouseUp) {
if (!Paused) {
if ((_root.toSelect == _parent._name) && (this.HT.hitTest(_root._xmouse, _root._ymouse, true))) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
_root.soundSelect(_parent.Type);
_root.toSelect = "none";
_root.Deselect();
_root.Interface.Selected.gotoAndStop(5);
_root.unitsSelected = 1;
Selected = true;
addSelect = false;
_root.unitID = 0;
_root.selectedUnits[_root.unitID] = new Array();
SelectInfo = _root.unitID;
_root.selectedUnits[SelectInfo].Type = _parent.Type;
_root.selectedUnits[SelectInfo].hp = hp;
_root.selectedUnits[SelectInfo].maxhp = maxhp;
_root.selectedUnits[SelectInfo].Level = Level;
_root.selectedUnits[SelectInfo].path = _parent._name;
}
}
if (Selected && (!Paused)) {
if (addSelect) {
if (Mode == "normal") {
gotoAndStop ("cheer");
}
ADDtoUNITS = true;
}
if (_root.doubleClick && (Control)) {
if (Mode == "fight") {
if (Key.isDown(16)) {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
Order = true;
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
}
}
if (Mode != "fight") {
Mode = "normal";
_root.attackTarget._x = _root._xmouse;
_root.attackTarget.play();
target = _root._xmouse + ((random(_root.range) * (_root.unitsSelected - 1)) - ((random(_root.range) * (_root.unitsSelected - 1)) / 2));
if (target > _root.rightLimit) {
target = _root.rightLimit - ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if (target < _root.leftLimit) {
target = _root.leftLimit + ((random(_root.range) * (_root.unitsSelected - 1)) / 2);
}
if ((_root.currentMission == 9) && (target > _root.Limit2)) {
target = _root.Limit2 - random(50);
}
}
}
} else {
SelectInfo = "none";
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Instance of Symbol 324 MovieClip in Symbol 833 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Instance of Symbol 324 MovieClip in Symbol 834 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 834 MovieClip Frame 23
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Warrior2.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Warrior2.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 834 MovieClip Frame 34
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Instance of Symbol 324 MovieClip in Symbol 835 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 835 MovieClip Frame 18
_root[_parent.toKill].MC.hp = _root[_parent.toKill].MC.hp - ((_root.Warrior2.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].MC.Armor);
_root[_parent.toKill].hp = _root[_parent.toKill].hp - ((_root.Warrior2.dmg * ((Math.random() * 1) + 1)) / _root[_parent.toKill].Armor);
Symbol 835 MovieClip Frame 35
_parent.attackTime = 20 + random(10);
_parent.gotoAndStop(1);
Instance of Symbol 837 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
Scale = 100 + random(40);
_xscale = 0;
_x = (random(25) - random(25));
_yscale = (100 - random(40));
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((20 - _yscale) / 10));
_xscale = (_xscale + ((Scale - _xscale) / 10));
Scale = Scale + ((-Scale) / 10);
_alpha = Scale;
if (Scale < 3) {
Scale = undefined;
_alpha = 0;
}
}
Instance of Symbol 837 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
Scale = 100 + random(40);
_xscale = 0;
_x = (random(25) - random(25));
_yscale = (100 - random(40));
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((20 - _yscale) / 10));
_xscale = (_xscale + ((Scale - _xscale) / 10));
Scale = Scale + ((-Scale) / 10);
_alpha = Scale;
if (Scale < 3) {
Scale = undefined;
_alpha = 0;
}
}
Symbol 839 MovieClip Frame 10
stop();
Instance of Symbol 324 MovieClip in Symbol 840 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 840 MovieClip Frame 61
_parent.remove();
Instance of Symbol 324 MovieClip in Symbol 841 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player._x > _x) {
_x = (_x + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y > _y) {
_y = (_y + 5);
}
}
onClipEvent (enterFrame) {
if (_root.player._y < _y) {
_y = (_y + 5);
}
}
Symbol 841 MovieClip Frame 61
_parent.remove();
Instance of Symbol 833 MovieClip in Symbol 842 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(30) + 1);
}
Instance of Symbol 331 MovieClip in Symbol 842 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(18) + 1);
}
Instance of Symbol 842 MovieClip "MC" in Symbol 843 MovieClip [warrior2] Frame 1
onClipEvent (load) {
function resetEnnemy() {
attacked = false;
ennemy = "none";
toKill = "none";
rangeSee = _root.rangeSee;
rangeChase = _root.rangeChase;
rangeAttack = random(10) + 20;
attackTime = 20 + random(10);
orderTime = 0;
Order = false;
chasing = false;
}
function resetEnnemy2() {
ennemiChoix = new Array();
ennemiID = 0;
}
function remove() {
_parent.swapDepths(1000);
removeMovieClip(_parent);
}
_root.orcUnits++;
_parent._name = "orc" + _root.OrcID;
_root.OrcID++;
stop();
Mode = 1;
target = _parent._x;
Dead = false;
_parent.Type = "warrior2";
Level = 1;
sc = (Math.random() * 5) + 110;
_xscale = sc;
_yscale = sc;
((random(2) == 1) ? (_xscale = (-sc)-sc) : null);
speed = _root.Warrior2.speed;
hp = _root.Warrior2.hp;
Armor = _root.Warrior2.armor;
maxhp = hp;
timer = 30;
Mode = "normal";
resetEnnemy();
resetEnnemy2();
attackTime = 0;
}
onClipEvent (enterFrame) {
if (target == undefined) {
resetEnnemy();
}
X = _parent._x;
if ((!Paused) && (!Dead)) {
if (((Mode == "normal") && (_root.currentMission == 3)) && (!_root.Lost)) {
target = _root.rightLimit - random(100);
}
timer++;
target = target + MX;
if (_parent._x < target) {
_parent._x = _parent._x + speed;
gotoAndStop ("run");
_xscale = sc;
}
if (_parent._x > target) {
_parent._x = _parent._x - speed;
gotoAndStop ("run");
_xscale = (-sc);
}
if (((((Math.abs(_parent._x - target) < 4) && (_currentframe != 3)) && (_currentframe != 4)) && (_currentframe != 6)) && (_currentframe != 7)) {
gotoAndStop ("stand");
Order = false;
target = _parent._x;
}
if (Mode == "normal") {
hp = hp + 0.02;
if (hp > maxhp) {
hp = maxhp;
}
attacked = false;
}
if ((Mode == "normal") && (!Order)) {
if (timer >= 30) {
i = 0;
while (i < _root.HumanID) {
see = false;
if ((Math.abs(X - _root["human" + i]._x) < rangeSee) && (!_root["human" + i].MC.Dead)) {
ennemiChoix[ennemiID] = i;
ennemiID++;
see = true;
} else {
i2 = 0;
while (i2 < ennemiChoix.length) {
if ((ennemiChoix[i2] == i) || (_root["human" + ennemiChoix[i2]].MC.Dead)) {
ennemiChoix.splice(i2, 1);
}
i2++;
}
}
if (Math.abs(X - _root["human" + i]._x) < rangeChase) {
randTarget = random(ennemiChoix.length);
toKill = "human" + ennemiChoix[randTarget];
if ((toKill != "none") && (!_root[toKill].MC.Dead)) {
if (_root[toKill]._x != undefined) {
if (_root[toKill].Type != undefined) {
attacked = toKill;
}
if (!_root[toKill].MC.attacked) {
_root[toKill].MC.attacked = _parent._name;
_root[toKill].MC.toKill = _parent._name;
_root[toKill].MC.Mode = "chase";
}
Mode = "chase";
target = _root[toKill]._x;
see = true;
attack = true;
}
}
Chosen = ennemiChoix[randTarget];
}
i++;
}
timer = 0;
}
}
if (((!see) && (!attack)) && (!attacked)) {
resetEnnemy();
resetEnnemy2();
}
if (Mode == "chase") {
target = _root[toKill]._x;
if (toKill == "none") {
Mode = "normal";
resetEnnemy();
resetEnnemy2();
}
if ((Math.abs(X - _root[toKill]._x) < rangeAttack) && (toKill != "none")) {
target = _parent._x;
Mode = "fight";
}
}
if (Mode == "fight") {
attackTime--;
if (attackTime < 0) {
attackTime = 100;
((random(2) == 1) ? (gotoAndStop ("attack1")) : (gotoAndStop ("attack2")));
}
if (_parent._x < _root[toKill]._x) {
_xscale = sc;
}
if (_parent._x > _root[toKill]._x) {
_xscale = (-sc);
}
if ((Math.abs(X - _root[toKill]._x) > rangeAttack) && (toKill != "none")) {
target = _root[toKill]._x;
Mode = "chase";
}
if (_root[toKill].MC.Dead && (toKill != "none")) {
attack = false;
i3 = 0;
while (i3 < ennemiChoix.length) {
if (ennemiChoix[i3] == Chosen) {
ennemiChoix.splice(i3, 1);
}
i3++;
}
ennemiID = ennemiChoix.length;
target = _parent._x;
toKill = "none";
Mode = "normal";
resetEnnemy();
attackTime = random(10) + 20;
}
}
if (hp <= 0) {
Mode = "die";
((random(2) == 1) ? (gotoAndStop ("die")) : (gotoAndStop ("die2")));
Dead = true;
_root.orcUnits--;
}
}
}
onClipEvent (unload) {
_root.depthUnits[depthToChange] = _root.depthUnitsINIT[depthToChange];
}
Symbol 853 MovieClip Frame 1
var iLastTime = getTimer();
szFPS = 30;
time = 0;
Instance of Symbol 848 MovieClip in Symbol 853 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (30);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.szFPS);
}
Instance of Symbol 848 MovieClip in Symbol 853 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (30);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.FPS2);
}
Symbol 853 MovieClip Frame 2
var iNewTime = getTimer();
var iDeltaTime = (iNewTime - iLastTime);
szFPS = Math.round(1000 / (iNewTime - iLastTime));
iLastTime = iNewTime;
time++;
if (time >= 30) {
FPS2 = szFPS;
time = 0;
}
Symbol 853 MovieClip Frame 3
gotoAndPlay (2);
Symbol 858 MovieClip Frame 1
_root.placeBuilding("building", "castle", 0, _x, true, _width);
nextFrame();
Symbol 859 MovieClip Frame 1
_root.placeBuilding("building", "barracks", 0, _x, true, _width);
nextFrame();
Symbol 866 MovieClip Frame 1
this.text.gotoAndStop(frame);
Symbol 867 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip [unitBox] in Symbol 867 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 10 MovieClip in Symbol 869 MovieClip Frame 1
onClipEvent (load) {
HP = _root[_root.HERO].MC.hp;
MHP = _root[_root.HERO].MC.maxhp;
_parent.HP.gotoAndStop(int((HP / MHP) * 100) + 1);
}
onClipEvent (enterFrame) {
if (!Paused) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root[_root.HERO].sel.gotoAndStop(3);
}
}
HP = _root[_root.HERO].MC.hp;
MHP = _root[_root.HERO].MC.maxhp;
_parent.HP.gotoAndStop(int((HP / MHP) * 100) + 1);
}
onClipEvent (mouseDown) {
if (!Paused) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.Deselect();
_root.selectedUnits[0] = new Array();
_root[_root.HERO].MC.Selected = true;
_root.selectedUnits[0].Type = "hero";
_root.selectedUnits[0].hp = _root[_root.HERO].MC.hp;
_root.selectedUnits[0].maxhp = _root[_root.HERO].MC.maxhp;
_root.selectedUnits[0].path = _root.HERO;
_root.unitsSelected = 1;
_root.unitID = 1;
}
}
}
Instance of Symbol 289 MovieClip in Symbol 877 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 1;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.headingTo != "Tutorial") {
_root.Objectives.gotoAndStop(2);
}
}
m = 0;
}
}
Instance of Symbol 289 MovieClip in Symbol 877 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 2;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.prio = 10000;
_global.Paused = true;
_root.MENU.nextFrame();
_root.Disable();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 879 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 3;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_quality = "low";
_root.GQUAL = "low";
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 879 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 2;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_quality = "medium";
_root.GQUAL = "medium";
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 879 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 1;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_quality = "high";
_root.GQUAL = "high";
}
m = 0;
}
}
Symbol 882 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 11
prevFrame();
Instance of Symbol 866 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 1;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (Key.isDown(87)) {
_root.Deselect();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Deselect();
}
m = 0;
}
}
Instance of Symbol 867 MovieClip "Selected" in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
ID = 0;
checked = false;
}
onClipEvent (enterFrame) {
if (!_root.select.drag) {
checked = true;
Y = _root.selectedUnits.length;
while (_root.selectedUnits.length > _root.maxSelected) {
_root.unitsSelected = _root.maxSelected;
_root[_root.selectedUnits[Y].path].MC.Selected = false;
_root.selectedUnits.splice(Y);
Y--;
}
gotoAndStop(_root.unitsSelected + 1);
}
}
Instance of Symbol 875 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
UNIT = (_root.totalUnits + "/") + _root.maxUnits;
}
onClipEvent (enterFrame) {
UNIT = (_root.totalUnits + "/") + _root.maxUnits;
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (1);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(49)) {
if (Key.isDown(17)) {
_root.TEAM1 = _root.selectedUnits;
} else {
_root.Deselect();
_root.unitsSelected = _root.TEAM1.length;
_root.selectedUnits = _root.TEAM1;
ID = 0;
sel = 0;
while (ID < _root.TEAM1.length) {
if ((_root[_root.TEAM1[ID].path].MC.Dead == undefined) || (_root[_root.TEAM1[ID].path].MC.Dead)) {
_root.TEAM1.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM1[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM1.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM1 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (2);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(50)) {
if (Key.isDown(17)) {
_root.TEAM2 = _root.selectedUnits;
} else {
_root.Deselect();
_root.unitsSelected = _root.TEAM2.length;
_root.selectedUnits = _root.TEAM2;
ID = 0;
sel = 0;
while (ID < _root.TEAM2.length) {
if ((_root[_root.TEAM2[ID].path].MC.Dead == undefined) || (_root[_root.TEAM2[ID].path].MC.Dead)) {
_root.TEAM2.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM2[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM2.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM2 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (3);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(51)) {
if (Key.isDown(17)) {
_root.TEAM3 = _root.selectedUnits;
} else {
_root.Deselect();
_root.unitsSelected = _root.TEAM3.length;
_root.selectedUnits = _root.TEAM3;
ID = 0;
sel = 0;
while (ID < _root.TEAM3.length) {
if ((_root[_root.TEAM3[ID].path].MC.Dead == undefined) || (_root[_root.TEAM3[ID].path].MC.Dead)) {
_root.TEAM3.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM3[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM3.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM3 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (4);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(52)) {
if (Key.isDown(17)) {
_root.TEAM4 = _root.selectedUnits;
} else {
_root.Deselect();
_root.unitsSelected = _root.TEAM4.length;
_root.selectedUnits = _root.TEAM4;
ID = 0;
sel = 0;
while (ID < _root.TEAM4.length) {
if ((_root[_root.TEAM4[ID].path].MC.Dead == undefined) || (_root[_root.TEAM4[ID].path].MC.Dead)) {
_root.TEAM4.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM4[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM4.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM4 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (5);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(53)) {
if (Key.isDown(17)) {
_root.TEAM5 = _root.selectedUnits;
} else {
_root.Deselect();
_root.unitsSelected = _root.TEAM5.length;
_root.selectedUnits = _root.TEAM5;
ID = 0;
sel = 0;
while (ID < _root.TEAM5.length) {
if ((_root[_root.TEAM5[ID].path].MC.Dead == undefined) || (_root[_root.TEAM5[ID].path].MC.Dead)) {
_root.TEAM5.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM5[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM5.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM5 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (6);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(54)) {
if (Key.isDown(17)) {
_root.TEAM6 = _root.selectedUnits;
} else {
_root.Deselect();
_root.unitsSelected = _root.TEAM6.length;
_root.selectedUnits = _root.TEAM6;
ID = 0;
sel = 0;
while (ID < _root.TEAM6.length) {
if ((_root[_root.TEAM6[ID].path].MC.Dead == undefined) || (_root[_root.TEAM6[ID].path].MC.Dead)) {
_root.TEAM6.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM6[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM6.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM6 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (7);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(55)) {
if (Key.isDown(17)) {
_root.TEAM7 = _root.selectedUnits;
} else {
_root.Deselect();
_root.unitsSelected = _root.TEAM7.length;
_root.selectedUnits = _root.TEAM7;
ID = 0;
sel = 0;
while (ID < _root.TEAM7.length) {
if ((_root[_root.TEAM7[ID].path].MC.Dead == undefined) || (_root[_root.TEAM7[ID].path].MC.Dead)) {
_root.TEAM7.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM7[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM7.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM7 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (8);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(56)) {
if (Key.isDown(17)) {
_root.TEAM8 = _root.selectedUnits;
} else {
_root.Deselect();
_root.unitsSelected = _root.TEAM8.length;
_root.selectedUnits = _root.TEAM8;
ID = 0;
sel = 0;
while (ID < _root.TEAM8.length) {
if ((_root[_root.TEAM8[ID].path].MC.Dead == undefined) || (_root[_root.TEAM8[ID].path].MC.Dead)) {
_root.TEAM8.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM8[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM8.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM8 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 890 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
gotoAndStop (9);
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if ((!Paused) && (active)) {
if (Key.isDown(57)) {
if (Key.isDown(17)) {
_root.TEAM9 = _root.selectedUnits;
} else {
_root.Deselect();
_root.selectedUnits = _root.TEAM9;
ID = 0;
sel = 0;
while (ID < _root.TEAM9.length) {
if ((_root[_root.TEAM9[ID].path].MC.Dead == undefined) || (_root[_root.TEAM9[ID].path].MC.Dead)) {
_root.TEAM9.splice(ID, 1);
} else {
sel++;
_root[_root.TEAM9[ID].path].MC.Selected = true;
ID++;
}
}
_root.unitsSelected = sel;
}
}
if (_root.TEAM9.length > 0) {
_visible = true;
this.effect.play();
} else {
_visible = false;
this.effect.gotoAndStop(1);
}
if (_root.TEAM9 == undefined) {
_visible = false;
}
}
}
Instance of Symbol 895 MovieClip in Symbol 896 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 896 MovieClip Frame 2
stop();
Instance of Symbol 895 MovieClip in Symbol 896 MovieClip Frame 2
onClipEvent (load) {
sc = 100;
_xscale = 0;
_yscale = 0;
speed = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!Paused) {
speed = speed + ((sc - _xscale) / 10);
_xscale = (_xscale + speed);
_yscale = (_yscale + speed);
speed = speed / 1.2;
time++;
if (_xscale <= 0) {
_parent.prevFrame();
}
if ((time > 55) && (time < 60)) {
sc = 125;
}
if (time > 60) {
sc = 0;
}
}
}
Instance of Symbol 900 MovieClip in Symbol 904 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
Dist = 0;
}
onClipEvent (enterFrame) {
Dist = 0;
if (_root.selectedUnits.length > 0) {
X = 0;
i = 0;
while (i < _root.selectedUnits.length) {
X = X + _root[_root.selectedUnits[i].path]._x;
i++;
}
X = X / _root.selectedUnits.length;
X = X - (_parent._x - 400);
if (X < 0) {
_visible = true;
Dist = Math.abs(int(X));
} else {
_visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 903 MovieClip in Symbol 904 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
Dist = 0;
}
onClipEvent (enterFrame) {
Dist = 0;
if (_root.selectedUnits.length > 0) {
X = 0;
i = 0;
while (i < _root.selectedUnits.length) {
X = X + _root[_root.selectedUnits[i].path]._x;
i++;
}
X = X / _root.selectedUnits.length;
X = X - (_parent._x + 400);
if (X > 0) {
_visible = true;
Dist = Math.abs(int(X));
} else {
_visible = false;
}
} else {
_visible = false;
}
}
Symbol 906 MovieClip Frame 1
stop();
Instance of Symbol 45 MovieClip in Symbol 906 MovieClip Frame 6
onClipEvent (load) {
stop();
}
Instance of Symbol 57 MovieClip in Symbol 906 MovieClip Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 143 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
if (active && (this.hitTest(_root._xmouse, _root._ymouse))) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root[_root.TargetBuilding].queue[0].cost != undefined) {
if (_root[_root.TargetBuilding].queue[0].nom == "Miner") {
_root.HMine.workers--;
}
_root[_root.TargetBuilding].item--;
_root[_root.TargetBuilding].temps = 0;
_root.Gold = _root.Gold + _root[_root.TargetBuilding].queue[0].cost;
_root[_root.TargetBuilding].queue.splice(0, 1);
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
if (active && (this.hitTest(_root._xmouse, _root._ymouse))) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root[_root.TargetBuilding].queue[1].cost != undefined) {
if (_root[_root.TargetBuilding].queue[1].nom == "Miner") {
_root.HMine.workers--;
}
_root[_root.TargetBuilding].item--;
_root.Gold = _root.Gold + _root[_root.TargetBuilding].queue[1].cost;
_root[_root.TargetBuilding].queue.splice(1, 1);
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
if (active && (this.hitTest(_root._xmouse, _root._ymouse))) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root[_root.TargetBuilding].queue[2].cost != undefined) {
if (_root[_root.TargetBuilding].queue[2].nom == "Miner") {
_root.HMine.workers--;
}
_root[_root.TargetBuilding].item--;
_root.Gold = _root.Gold + _root[_root.TargetBuilding].queue[2].cost;
_root[_root.TargetBuilding].queue.splice(2, 1);
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
if (active && (this.hitTest(_root._xmouse, _root._ymouse))) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root[_root.TargetBuilding].queue[3].cost != undefined) {
if (_root[_root.TargetBuilding].queue[3].nom == "Miner") {
_root.HMine.workers--;
}
_root[_root.TargetBuilding].item--;
_root.Gold = _root.Gold + _root[_root.TargetBuilding].queue[3].cost;
_root[_root.TargetBuilding].queue.splice(3, 1);
}
}
m = 0;
}
}
Instance of Symbol 143 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (!active) {
m = 0;
}
if (active && (this.hitTest(_root._xmouse, _root._ymouse))) {
nextFrame();
} else {
prevFrame();
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root[_root.TargetBuilding].queue[4].cost != undefined) {
if (_root[_root.TargetBuilding].queue[4].nom == "Miner") {
_root.HMine.workers--;
}
_root[_root.TargetBuilding].item--;
_root.Gold = _root.Gold + _root[_root.TargetBuilding].queue[4].cost;
_root[_root.TargetBuilding].queue.splice(4, 1);
}
}
m = 0;
}
}
Symbol 909 MovieClip Frame 60
stop();
Symbol 910 MovieClip Frame 1
stop();
Symbol 916 MovieClip Frame 2
stop();
Symbol 917 MovieClip Frame 1
function newObj(msg) {
id = i;
while (id > 0) {
this[id]._y = this[id]._y - 22;
id--;
}
duplicateMovieClip (obj, i, i);
this[i].texte = msg;
i++;
}
obj._visible = false;
i = 1;
Instance of Symbol 916 MovieClip "obj" in Symbol 917 MovieClip Frame 1
onClipEvent (load) {
time = 300;
if (_name == "obj") {
stop();
}
}
onClipEvent (enterFrame) {
time--;
if (time == 0) {
removeMovieClip(this);
}
}
Symbol 935 MovieClip Frame 1
_root.canSelect = false;
_root.canHire = false;
_root.canBuild = false;
_root._global.Control = false;
_root.canScroll = false;
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 935 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 935 MovieClip Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Symbol 935 MovieClip Frame 5
_root.canSelect = true;
_global.Control = true;
Instance of Symbol 481 MovieClip in Symbol 935 MovieClip Frame 5
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 10 MovieClip in Symbol 935 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root[_root.HERO].MC.Selected) {
_root.OBJS.newObj("Select your hero");
_parent.nextFrame();
}
}
Instance of Symbol 10 MovieClip in Symbol 935 MovieClip Frame 6
onClipEvent (load) {
enable = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (_root[_root.HERO].MC.target != _root[_root.HERO]._x) {
enable = true;
}
if (enable) {
timer++;
if (timer >= 90) {
_root.OBJS.newObj("Move your hero");
_parent.nextFrame();
}
}
}
Instance of Symbol 10 MovieClip in Symbol 935 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root[_root.CASTLE].BL.Selected) {
_root.OBJS.newObj("Select your castle");
_parent.nextFrame();
}
}
Symbol 935 MovieClip Frame 8
_root.canScroll = true;
Instance of Symbol 10 MovieClip in Symbol 935 MovieClip Frame 8
onClipEvent (load) {
time = 0;
}
onClipEvent (enterFrame) {
if (!Paused) {
if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(65))) || (Key.isDown(68))) {
time++;
}
if (time >= 30) {
_root.OBJS.newObj("Scroll the map");
_parent.nextFrame();
}
}
}
Symbol 935 MovieClip Frame 9
_root.canBuild = true;
Instance of Symbol 10 MovieClip in Symbol 935 MovieClip Frame 9
onClipEvent (enterFrame) {
if (!Paused) {
if (_root.maxUnits == 4) {
_root.OBJS.newObj("Build a house");
_parent.nextFrame();
}
}
}
Symbol 935 MovieClip Frame 10
_root.canHire = true;
Instance of Symbol 10 MovieClip in Symbol 935 MovieClip Frame 10
onClipEvent (enterFrame) {
if (!Paused) {
if (_root.totalUnits == 1) {
_root.OBJS.newObj("Hire a soldier");
_parent.nextFrame();
}
}
}
Instance of Symbol 481 MovieClip in Symbol 935 MovieClip Frame 11
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 935 MovieClip Frame 12
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Symbol 935 MovieClip Frame 15
_root.NOPOINTS = true;
_root.win();
Symbol 950 MovieClip Frame 1
this.text.gotoAndStop(frame);
Symbol 979 MovieClip Frame 1
stop();
Symbol 979 MovieClip Frame 2
Bouton.Type = "house";
Instance of Symbol 945 MovieClip in Symbol 979 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (_root.Gold < _root.house.cost)) || (_root.totalhouse >= 5)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Instance of Symbol 950 MovieClip in Symbol 979 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 2;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xad = _root.canSelect;
_root.canSelect = false;
_parent.startDrag();
rootprio = _root.prio;
thisprio = priority;
priority = 100;
_root.prio = 100;
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.canSelect = xad;
stopDrag();
_root.prio = rootprio;
priority = thisprio;
}
m = 0;
}
}
Instance of Symbol 10 MovieClip "Bouton" in Symbol 979 MovieClip Frame 2
onClipEvent (load) {
if (Type == undefined) {
Type = "house";
}
priority = 100;
active = true;
m = 0;
build = false;
_parent.Cost = _root[Type].cost;
canBuild = true;
}
onClipEvent (enterFrame) {
_parent.Cost = _root[Type].cost;
if (Paused || (_root["total" + Type] >= _root[Type].max)) {
active = false;
m = 0;
} else {
active = true;
}
if (!Paused) {
if (_root.placingBuilding) {
if ((_root.NoBuild.hitTest(_root.Cursor._x + (_root.Cursor._width / 2), _root.Cursor._y, true) || (_root.NoBuild.hitTest(_root.Cursor._x - (_root.Cursor._width / 2), _root.Cursor._y, true))) || (_root.NoBuild.hitTest(_root.Cursor._x, _root.Cursor._y, true))) {
canBuild = false;
_root.Cursor.Building.X._visible = true;
} else {
canBuild = true;
_root.Cursor.Building.X._visible = false;
}
}
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseMove) {
if (!Paused) {
if (m == 1) {
if (_root.Gold >= _root[Type].cost) {
if (_root.totalBuildings < _root.maxBuildings) {
_root.newBuilding(Type);
}
}
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (!canBuild) {
_root.cancelBuilding();
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.cancelBuilding();
}
if ((((canBuild && (_root._ymouse > 350)) && (!this.hitTest(_root._xmouse, _root._ymouse))) && (_root.totalBuildings < _root.maxBuildings)) && (_root.Gold >= _root[Type].cost)) {
_root.placeBuilding("building", Type, _root[Type].cost);
}
if ((_root._ymouse < 350) && (!this.hitTest(_root._xmouse, _root._ymouse))) {
_root.cancelBuilding();
}
m = 0;
}
}
Instance of Symbol 289 MovieClip in Symbol 979 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 6;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop(1);
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 979 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 979 MovieClip Frame 3
Bouton.Type = "barracks";
Instance of Symbol 958 MovieClip in Symbol 979 MovieClip Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (_root.Gold < _root.barracks.cost)) || (_root.totalbarracks >= 1)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 979 MovieClip Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 979 MovieClip Frame 3
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 979 MovieClip Frame 4
Bouton.Type = "forge";
Instance of Symbol 964 MovieClip in Symbol 979 MovieClip Frame 4
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (_root.Gold < _root.forge.cost)) || (_root.totalforge >= 1)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Symbol 979 MovieClip Frame 5
Bouton.Type = "archery";
Instance of Symbol 970 MovieClip in Symbol 979 MovieClip Frame 5
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (_root.Gold < _root.archery.cost)) || (_root.totalarchery >= 1)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Symbol 979 MovieClip Frame 6
Bouton.Type = "tower";
Instance of Symbol 976 MovieClip in Symbol 979 MovieClip Frame 6
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (((_root.prio > priority) || (_root.Gold < _root.tower.cost)) || (_root.totaltower >= 1)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
}
m = 0;
}
}
Symbol 1030 MovieClip Frame 1
_quality = _root.GQUAL;
stop();
Symbol 1030 MovieClip Frame 2
_quality = "high";
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("resume");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.prio = 0;
_global.Paused = false;
_root.Enable();
_parent.gotoAndStop(1);
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("settings");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("settings");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("quit");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("quit");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("objectives");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("objectives");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("back");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("menu");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("on");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Music = true;
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("off");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Music = false;
stopAllSounds();
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("low");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "low";
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("medium");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "medium";
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("high");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "high";
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("on");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.scrollLow = true;
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("off");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.scrollLow = false;
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("on");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.soundEnabled = true;
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("off");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.soundEnabled = false;
}
m = 0;
}
}
Instance of Symbol 1026 MovieClip in Symbol 1030 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_root.HeadingTo);
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 5
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("no");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("menu");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1030 MovieClip Frame 5
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("yes");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.prio = 0;
_global.Paused = false;
_root.HeadingTo = "MenuGame";
_root.gotoAndStop(_root.frameGoto + 1);
}
m = 0;
}
}
Symbol 1034 MovieClip Frame 1
stop();
Instance of Symbol 506 MovieClip in Symbol 1034 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop("continue");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.currentMission != 10) {
_root.HeadingTo = "MenuGame";
}
_root.gotoAndStop(_root.frameGoto);
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 1034 MovieClip Frame 35
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop("continue");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (!_root.NOPOINTS) {
_root.points++;
} else {
_root.NOPOINTS = false;
}
if (_root.currentMission != 10) {
_root.HeadingTo = "MenuGame";
}
_root.gotoAndPlay(_root.frameGoto);
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 1034 MovieClip Frame 65
stop();
Symbol 1038 MovieClip Frame 1
stop();
stop();
Instance of Symbol 506 MovieClip in Symbol 1038 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop("continue");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "MenuGame";
_root.gotoAndPlay(_root.frameGoto);
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Instance of Symbol 506 MovieClip in Symbol 1038 MovieClip Frame 35
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop("continue");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "MenuGame";
_root.gotoAndPlay(_root.frameGoto);
}
m = 0;
}
}
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = (_yscale + ((100 - _yscale) / 3));
}
Symbol 1038 MovieClip Frame 65
stop();
Symbol 1042 MovieClip Frame 1
_visible = false;
X = _x;
_root.rightLimit = _x;
onEnterFrame = function () {
if ((_root._x + _x) <= 800) {
_root.canScrollRight = false;
} else {
_root.canScrollRight = true;
}
X = _x;
_root.rightLimit = _x;
};
Symbol 1046 MovieClip Frame 1
_visible = false;
X = _x;
_root.leftLimit = _x;
onEnterFrame = function () {
if ((_root._x + _x) >= 0) {
_root.canScrollLeft = false;
} else {
_root.canScrollLeft = true;
}
X = _x;
_root.leftLimit = _x;
};
Symbol 1050 MovieClip Frame 1
_visible = false;
Symbol 1058 MovieClip Frame 1
stop();
Symbol 1071 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1083 MovieClip Frame 1
_root.placeBuildingOrc("building", "hut", _x, true, _width);
nextFrame();
Symbol 1085 MovieClip Frame 1
_root.newUnitOrc("warrior", _x);
nextFrame();
Symbol 1090 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1090 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1090 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1090 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1101 MovieClip Frame 1
_root.placeBuildingOrc("building", "barracksOrc", _x, true, _width);
nextFrame();
Symbol 1103 MovieClip Frame 1
_root.newUnit("footman", 0, _x, _root.FloorUnits);
nextFrame();
Symbol 1104 MovieClip Frame 1
_root.newUnit("spearman", 0, _x, _root.FloorUnits);
nextFrame();
Symbol 1106 MovieClip Frame 1
_root.newUnitOrc("troll", _x);
nextFrame();
Instance of Symbol 1112 MovieClip in Symbol 1113 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(4) + 1);
rand = random(20);
_xscale = (_xscale - rand);
_yscale = (_yscale - rand);
Time1 = random(60);
Time2 = random(60);
xt = random(50) - random(50);
yt = random(50) - random(50);
_x = (random(50) - random(50));
_y = (random(50) - random(50));
}
onClipEvent (enterFrame) {
if (!Paused) {
Time1--;
Time2--;
if (Time1 <= 0) {
Time1 = random(60);
xt = random(50) - random(50);
}
if (Time2 <= 0) {
Time2 = random(60);
yt = random(50) - random(50);
}
_x = (_x + ((xt - _x) / 5));
_y = (_y + ((yt - _y) / 5));
}
}
Symbol 1117 MovieClip Frame 1
stop();
Symbol 1120 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1120 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1120 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1120 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1129 MovieClip Frame 1
_root.placeBuilding("building", "house", 0, _x, true, _width);
nextFrame();
Symbol 1131 MovieClip Frame 1
_root.placeBuildingOrc("building", "fortress", _x, true, _width);
nextFrame();
Symbol 1135 MovieClip Frame 1
nextFrame();
Symbol 1135 MovieClip Frame 116
stop();
Symbol 1137 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1137 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1137 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1137 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1145 MovieClip Frame 1
_root.placeBuilding("building", "archery", 0, _x, true, _width);
nextFrame();
Symbol 1147 MovieClip Frame 1
_root.newUnitOrc("fatorc", _x);
nextFrame();
Symbol 1152 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1152 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1152 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1152 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1160 MovieClip Frame 1
stop();
Symbol 1160 MovieClip Frame 2
stop();
Symbol 1162 MovieClip Frame 1
_root.newUnit("royalguard", 0, _x, _root.FloorUnits);
nextFrame();
Symbol 1164 MovieClip Frame 1
_root.newUnit("archer", 0, _x, _root.FloorUnits);
nextFrame();
Symbol 1168 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1168 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1168 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1168 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1173 MovieClip Frame 1
_root.newUnitOrc("warrior2", _x);
nextFrame();
Symbol 1178 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1178 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1178 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1178 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1187 MovieClip Frame 1
_root.placeBuilding("building", "forge", 0, _x, true, _width);
nextFrame();
Symbol 1191 MovieClip Frame 1
stop();
Symbol 1191 MovieClip Frame 2
stop();
_root.newUnitOrc("troll", _x);
Symbol 1196 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1196 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1203 MovieClip Frame 1
_root.newUnit("apprentice", 0, _x, _root.FloorUnits);
nextFrame();
Symbol 1207 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1207 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1207 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1207 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1216 MovieClip Frame 1
_root.placeBuilding("building", "tower", 0, _x, true, _width);
nextFrame();
Symbol 1220 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 481 MovieClip in Symbol 1220 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 4;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.prevFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1220 MovieClip Frame 1
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 481 MovieClip in Symbol 1220 MovieClip Frame 2
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
frame = 5;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.nextFrame();
}
m = 0;
}
}
Symbol 1223 MovieClip Frame 1
stop();
Instance of Symbol 1007 MovieClip in Symbol 1223 MovieClip Frame 1
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("save2");
}
onClipEvent (enterFrame) {
if ((_root.prio > priority) || (!_root.canSaveCredits)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.saveGame();
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1231 MovieClip Frame 7
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
VISIBLE = true;
Text.gotoAndStop("continue");
}
onClipEvent (enterFrame) {
if ((_root.prio > priority) || (!VISIBLE)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "MenuGame";
_root.gotoAndPlay(_root.frameGoto);
}
m = 0;
}
}
Symbol 1232 MovieClip Frame 1
stop();
Symbol 1232 MovieClip Frame 2
stop();
Instance of Symbol 1231 MovieClip in Symbol 1232 MovieClip Frame 2
onClipEvent (load) {
stop();
_alpha = 0;
time = 0;
speed = 5;
limit = 240;
}
onClipEvent (enterFrame) {
if (_currentframe != 7) {
time = time + speed;
_alpha = time;
if ((time == limit) && (_currentframe != 7)) {
speed = speed * -1;
}
if (time == 0) {
speed = speed * -1;
nextFrame();
}
} else {
_alpha = 100;
}
}
Symbol 1238 MovieClip Frame 1
stop();
Symbol 1251 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 1251 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.heroArme);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_root.heroArme);
}
Symbol 1253 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 1253 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.heroCasque);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_root.heroCasque);
}
Symbol 1263 MovieClip Frame 1
stop();
Symbol 1273 MovieClip Frame 1
stop();
gotoAndStop(_parent.Texte);
Symbol 1275 MovieClip Frame 1
stop();
Symbol 1314 MovieClip Frame 1
stop();
Instance of Symbol 1007 MovieClip in Symbol 1314 MovieClip Frame 1
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("begin");
}
onClipEvent (enterFrame) {
if ((_root.prio > priority) || (_root.currentMission != _parent._currentframe)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.HeadingTo = "Mission " + _root.currentMission;
_root.gotoAndPlay(_root.frameGoto);
}
m = 0;
}
}
Symbol 1319 MovieClip Frame 1
stop();
Symbol 1319 MovieClip Frame 2
prevFrame();
Symbol 1321 MovieClip Frame 1
stop();
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("save");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("save");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("quit");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("quit");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("shop");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("shop");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("missions");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("missions");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("settings");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("settings");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("equip");
_visible = _root.beatenGame;
}
onClipEvent (enterFrame) {
_visible = _root.beatenGame;
if ((_root.prio > priority) || (!_root.beatenGame)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("equip");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("back");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("menu");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("on");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Music = true;
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("off");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Music = false;
stopAllSounds();
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("low");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "low";
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("medium");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "medium";
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("high");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.GQUAL = "high";
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("on");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.scrollLow = true;
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("off");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.scrollLow = false;
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("on");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.soundEnabled = true;
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 2
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("off");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.soundEnabled = false;
}
m = 0;
}
}
Instance of Symbol 1238 MovieClip in Symbol 1321 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.O1 = "Weapon";
_parent.O2 = "Increases the damages the hero can deal.";
}
m = 0;
}
}
Instance of Symbol 1243 MovieClip in Symbol 1321 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.points + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.points + 1);
}
Instance of Symbol 1238 MovieClip in Symbol 1321 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.O1 = "Shield";
_parent.O2 = "Increases the hero's total armor.";
}
m = 0;
}
}
Instance of Symbol 1238 MovieClip in Symbol 1321 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.O1 = "Armor";
_parent.O2 = "Increases the hero's total hit points.";
}
m = 0;
}
}
Instance of Symbol 1238 MovieClip in Symbol 1321 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.O1 = "Helmet";
_parent.O2 = "Increases the hero's total armor.";
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 3
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("upgrade");
}
onClipEvent (enterFrame) {
if ((_root.prio > priority) || (_root.points == 0)) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_parent.O1 == "Weapon") {
_root.points--;
_root.heroArmeU = _root.heroArmeU + 0.5;
_root.heroArmeP++;
} else if (_parent.O1 == "Armor") {
_root.points--;
_root.heroArmureU = _root.heroArmureU + 5;
_root.heroArmureP++;
} else if (_parent.O1 == "Shield") {
_root.points--;
_root.heroBouclierU = _root.heroBouclierU + 0.15;
_root.heroBouclierP++;
} else if (_parent.O1 == "Helmet") {
_root.points--;
_root.heroCasqueU = _root.heroCasqueU + 0.15;
_root.heroCasqueP++;
}
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Texte = 1;
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Texte = 2;
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
Texte = 3;
}
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
Texte = 4;
}
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
Texte = 5;
}
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
Texte = 6;
}
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
Texte = 7;
}
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
Texte = 8;
}
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1275 MovieClip in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
Texte = 9;
}
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.currentMission > Texte) {
BG.gotoAndStop("green");
} else if (_root.currentMission < Texte) {
BG.gotoAndStop("red");
}
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.MissionInfo.gotoAndStop(Texte);
}
m = 0;
}
}
Instance of Symbol 1314 MovieClip "MissionInfo" in Symbol 1321 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_root.currentMission);
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 5
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("no");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("menu");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 5
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("yes");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop(_root.menuFrame);
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 6
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("back");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.gotoAndStop("menu");
}
m = 0;
}
}
Instance of Symbol 1007 MovieClip in Symbol 1321 MovieClip Frame 6
onClipEvent (load) {
priority = 10000;
active = true;
m = 0;
stop();
Text.gotoAndStop("save2");
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.saveGame();
_parent.nextFrame();
}
m = 0;
}
}
Instance of Symbol 243 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroArme--;
if (_root.heroArme == 0) {
_root.heroArme = 1;
}
}
m = 0;
}
}
Instance of Symbol 247 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroArme++;
if (_root.heroArme == 9) {
_root.heroArme = 8;
}
}
m = 0;
}
}
Instance of Symbol 243 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroArmure--;
if (_root.heroArmure == 0) {
_root.heroArmure = 1;
}
}
m = 0;
}
}
Instance of Symbol 247 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroArmure++;
if (_root.heroArmure == 9) {
_root.heroArmure = 8;
}
}
m = 0;
}
}
Instance of Symbol 243 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroBouclier--;
if (_root.heroBouclier == 0) {
_root.heroBouclier = 1;
}
}
m = 0;
}
}
Instance of Symbol 247 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroBouclier++;
if (_root.heroBouclier == 9) {
_root.heroBouclier = 8;
}
}
m = 0;
}
}
Instance of Symbol 243 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroCasque--;
if (_root.heroCasque == 0) {
_root.heroCasque = 1;
}
}
m = 0;
}
}
Instance of Symbol 247 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 0;
active = true;
m = 0;
stop();
text.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
} else {
active = true;
}
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(_currentframe + 3);
} else {
prevFrame();
}
} else {
prevFrame();
m = 0;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.heroCasque++;
if (_root.heroCasque == 9) {
_root.heroCasque = 8;
}
}
m = 0;
}
}
Instance of Symbol 542 MovieClip in Symbol 1321 MovieClip Frame 8
onClipEvent (load) {
priority = 10000000 /* 0x989680 */;
active = true;
m = 0;
}
onClipEvent (enterFrame) {
if (_root.prio > priority) {
active = false;
m = 0;
} else {
active = true;
}
}
onClipEvent (mouseDown) {
if (active) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
m = 1;
}
}
}
onClipEvent (mouseUp) {
if (active && (m == 1)) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent.Prev.play();
}
m = 0;
}
}