Frame 1
stop();
Stage.showMenu = false;
url = "http://www.neodelight.com";
var gameTitle = "MapMaking";
var gameName = "MapMaking";
com.neodelight.std.Blueprint.addBlueprint("score", {scoreTypes:[{totalAdd:true, id:"level"}, {totalAdd:false, id:"totalScore"}]});
com.neodelight.std.Blueprint.addBlueprint("game", {gameTitle:gameTitle, gameName:gameName, gameFlashVersion:7, gameLicenses:"licenseOnlineRealGames,licenseNeodelight,licenseFree", gameHighscores:true, gameHighscoresKey0:"ghet5th", gameHighscoresKey1:"45tyerb"});
com.neodelight.std.Blueprint.addBlueprint("licenseNeodelight", {version:"Neodelight", configNeedDomain:"neodelight.com", fullVersion:true, gameCredits:"This game is licensed to onlinerealgames.com\nIf you're intrested in obtaining a license for your website, please visit http://www.onlinerealgames.com\n", gameCopyright:"(c)7SeasTechnologies Ltd.", gameCopyrightLink:"http://www.onlinerealgames.com", gameIntro:"introOrg", urlHighscoresView:(("http://www.neodelight.com/scores/" + gameName) + "?ref=") + gameName, urlHighscoresViewTarget:"_top", urlMoreGames:"http://www.neodelight.com", urlMoreGamesTarget:"_top", gameScoreSubmit:function (score) {
trace("submit score: " + score);
var _local1 = new com.neodelight.game.Highscores();
_local1.submit(score);
}});
com.neodelight.std.Blueprint.addBlueprint("licenseOnlineRealGames", {blueprint:"licenseNeodelight", version:"onlinerealgames", configNeedDomain:"onlinerealgames.com", gameCopyright:"(c) 7Seas Technologies Ltd.", gameCopyrightLink:"http://www.onlinerealgames.com", fullVersion:true, gameCredits:"This game is licensed to onlinerealgames.com\nIf you're intrested in obtaining a license for your website, please visit http://www.onlinerealgames.com\n", gameIntro:"introBk", urlMoreGames:"http://www.onlinerealgames.com", urlMoreGamesTarget:"_top", gameScoreSubmit:function (score) {
}});
com.neodelight.std.Blueprint.addBlueprint("licenseFree", {blueprint:"licenseNeodelight", gameIntro:"introOrg", gameCopyright:"(c) 7Seas Technologies Ltd.", gameCopyrightLink:"http://www.onlinerealgames.com", gameCredits:"This game is licensed to onlinerealgames.com\nIf you're intrested in obtaining a license for your website, please visit http://www.onlinerealgames.com\n", version:"free", configNeedDomain:"*", fullVersion:false});
_global.config = com.neodelight.std.AutoConfig.getConfig({url:url, configs:com.neodelight.std.Blueprint.getBlueprint("game").gameLicenses});
Frame 2
_root.levels = 0;
_root.usscores = 0;
_root.chinscores = 0;
_root.indiascores = 0;
_root.chinascores = 0;
_root.rusiascore = 0;
_root.Germanyscores = 0;
_root.francescores = 0;
_root.brazilscores = 0;
_root.nepalscores = 0;
_root.africascores = 0;
_root.newzelandscores = 0;
_root.bangladeshscores = 0;
_root.argentianscores = 0;
_root.afghanistanscores = 0;
_root.ukscores = 0;
_root.canadascore = 0;
_root.japanscores = 0;
_root.australiascores = 0;
Frame 20
stop();
_root.soundoff = true;
var btnup = new Sound();
_root.btnup.attachSound("btnup");
var btndown = new Sound();
_root.btndown.attachSound("btndown");
var bgselectsound = new Sound();
_root.bgselectsound.attachSound("bgselectsound");
var countryselect = new Sound();
_root.countryselect.attachSound("countryselect");
var bgsound = new Sound();
_root.bgsound.attachSound("bgsound");
var statedropped = new Sound();
_root.statedropped.attachSound("statedropped");
var wrongselection = new Sound();
_root.wrongselection.attachSound("wrongselection");
Instance of Symbol 71 MovieClip in Frame 20
on (release) {
getURL ("http://www.onlinerealgames.com", "_blank");
}
Frame 27
_root.scoreincrement = false;
_root.scoredecrement = false;
_root.chin = 0;
_root.ind = 0;
_root.uk = 0;
_root.us = 0;
_root.fra = 0;
_root.braz = 0;
_root.nep = 0;
_root.rus = 0;
_root.Ger = 0;
_root.afr = 0;
_root.can = 0;
_root.ban = 0;
_root.arg = 0;
_root.afg = 0;
_root.newz = 0;
_root.jap = 0;
_root.aus = 0;
Frame 28
_root.levels = 0;
_root.chin = 0;
_root.ind = 0;
_root.uk = 0;
_root.us = 0;
_root.fra = 0;
_root.braz = 0;
_root.nep = 0;
_root.rus = 0;
_root.Ger = 0;
_root.afr = 0;
_root.can = 0;
_root.ban = 0;
_root.arg = 0;
_root.afg = 0;
_root.newz = 0;
_root.jap = 0;
_root.aus = 0;
stop();
_root.totalscores = 0;
_root.bgselectsound.stop();
_root.bgsound.stop();
Instance of Symbol 1006 MovieClip "a3" in Frame 28
on (release) {
getURL ("http://www.onlinerealgames.com/default.aspx", "_blank");
}
on (rollOver) {
_root.a3.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a3.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1006 MovieClip "a2" in Frame 28
on (release) {
_root.gotoAndPlay(31);
}
on (rollOver) {
_root.a2.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a2.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1006 MovieClip "a1" in Frame 28
on (release) {
_root.gotoAndPlay(30);
}
on (rollOver) {
_root.a1.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a1.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1006 MovieClip "a" in Frame 28
on (release) {
_root.gotoAndPlay(29);
}
on (rollOver) {
_root.a.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1025 MovieClip "soundIcon" in Frame 28
onClipEvent (load) {
if (_root.soundoff == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 29
_root.sound1 = false;
_root.sound2 = true;
if (_root.soundoff == false) {
stopAllSounds();
_root.soundIcon.gotoAndStop(2);
} else if (_root.soundoff == true) {
bgsound.stop();
bgselected.start(0, 99999);
_root.soundIcon.gotoAndStop(1);
}
if (_root.levels == 9) {
gotoAndStop (59);
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.start(0, 999999);
}
Instance of Symbol 1006 MovieClip "a5" in Frame 29
on (release) {
_root.gotoAndPlay(28);
}
on (rollOver) {
_root.a5.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a5.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1105 MovieClip "soundIcon" in Frame 29
/* no clip actions */
Frame 30
stop();
_root.bgselectsound.stop();
_root.bgsound.stop();
Instance of Symbol 1006 MovieClip "a6" in Frame 30
on (release) {
_root.gotoAndPlay(29);
}
on (rollOver) {
_root.a6.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a6.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1006 MovieClip "a5" in Frame 30
on (release) {
_root.gotoAndPlay(28);
}
on (rollOver) {
_root.a5.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a5.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1113 MovieClip "soundIcon" in Frame 30
onClipEvent (load) {
if (_root.soundoff == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 31
stop();
_root.bgselectsound.stop();
_root.bgsound.stop();
Instance of Symbol 1114 MovieClip "a6" in Frame 31
on (release) {
getURL ("http://www.onlinerealgames.com/more.aspx", "_blank");
}
on (rollOver) {
_root.a6.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a6.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1006 MovieClip "a5" in Frame 31
on (release) {
_root.gotoAndPlay(28);
}
on (rollOver) {
_root.a5.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a5.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 71 MovieClip in Frame 31
/* no clip actions */
Instance of Symbol 1119 MovieClip "soundIcon" in Frame 31
onClipEvent (load) {
if (_root.soundoff == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 32
_root.bgselectsound.stop();
_root.bgsound.stop();
stop();
_root.totalscores = (((((((((((((((_root.chin + _root.ind) + _root.uk) + _root.us) + _root.fra) + _root.braz) + _root.nep) + _root.rus) + _root.Ger) + _root.afr) + _root.can) + _root.ban) + _root.arg) + _root.afg) + _root.newz) + _root.aus) + _root.jap;
trace(_root.totalscores);
Instance of Symbol 1006 MovieClip "a" in Frame 32
on (release) {
_root.gotoAndStop(29);
}
on (rollOver) {
_root.a.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1006 MovieClip "a7" in Frame 32
on (release) {
gamename = "MapMaking";
score = _root.totalscores;
trace((score + "this is game score") + _root.totalscores);
getURL ("http://www.onlinerealgames.com/SubmitGuestScores.aspx", "_blank", "POST");
}
on (rollOver) {
_root.a7.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a7.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1221 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (((((((((((((((((_root.chin > 1) && (_root.ind > 1)) && (_root.uk > 1)) && (_root.us > 1)) && (_root.fra > 1)) && (_root.braz > 1)) && (_root.nep > 1)) && (_root.rus > 1)) && (_root.Ger > 1)) && (_root.afr > 1)) && (_root.can > 1)) && (_root.ban > 1)) && (_root.arg > 1)) && (_root.afg > 1)) && (_root.newz > 1)) && (_root.aus > 1)) && (_root.jap > 1)) {
_root.gotoAndStop(59);
}
}
Instance of Symbol 1224 MovieClip "soundIcon" in Frame 32
onClipEvent (load) {
if (_root.soundoff == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 33
if (_root.soundoff == false) {
stopAllSounds();
_root.soundIcon.gotoAndStop(2);
} else if (_root.soundoff == true) {
bgsound.start(0, 99999);
bgselected.stop();
_root.soundIcon.gotoAndStop(1);
}
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = indtotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < indtotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < indtotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.indiascores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = indtotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < indtotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < indtotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.indiascores = _root.indiascores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < indtotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / indtotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < indtotalProvinces) {
var _local2 = int(Math.random() * indtotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = indtotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.ind = _root.indiascores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < indtotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.indiascores = _root.indiascores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.pausegame = true;
_root.indiascores = 0;
_root.reminturns = 32;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("AndhraPradesh", "LakshaDweep", "Andaman", "ArunachalPradesh", "Assam", "Bihar", "Chattisgarh", "Goa", "Gujarat", "Haryana", "HimachalPradesh", "JammuKashmir", "Jharkhand", "Karnataka", "Kerala", "MadhyaPradesh", "Maharashtra", "Manipur", "Meghalaya", "Mizoram", "Nagaland", "NewDelhi", "Orissa", "Punjab", "Rajasthan", "Sikkim", "TamilNadu", "Tripura", "UttarPradesh", "Uttaranchal", "WestBengal", "SriLanka");
var provinceCntr;
var indtotalProvinces = provinceData.length;
trace(provinceData.length);
trace(indtotalProvinces + "total states");
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(indtotalProvinces);
var myProfiles = new Array(indtotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 32;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Instance of Symbol 1241 MovieClip "a5" in Frame 33
on (release) {
_root.gotoAndPlay(28);
}
on (rollOver) {
_root.a5.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a5.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1249 MovieClip "a7" in Frame 33
on (rollOver) {
_root.a7.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a7.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (release) {
if (_root.soundoff == true) {
_root.btndown.start();
}
restart();
_root.reminturns = 30;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
}
Instance of Symbol 1263 MovieClip "soundIcon" in Frame 33
onClipEvent (load) {
if (_root.soundoff == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 34
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = chintotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < chintotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < chintotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.chinscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = chintotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < chintotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < chintotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.chinscores = _root.chinscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < chintotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 30;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 140;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / chintotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < chintotalProvinces) {
var _local2 = int(Math.random() * chintotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = chintotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.chin = _root.chinscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < chintotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
_root.perror.gotoAndPlay(1);
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.chinscores = _root.chinscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 160;
correctLoc_txt._y = yCorrect._y + 40;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.chinscores = 0;
_root.reminturns = 28;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Xinjiang", "Tibet", "Gansu", "Qinghai", "InnerMongolia", "Ningxia", "Sichuan", "Yunnan", "Guizhou", "Guangxi", "Hunan", "Hainan", "Guangdong", "Taiwan", "Fujian", "Jiangxi", "Hubei", "Henan", "Anhui", "Zhejiang", "Jiangsu", "Shandong", "Beijing", "Liaoning", "Jilin", "Heilongjiang", "Shanxi", "Shaanxi");
var provinceCntr;
var chintotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(chintotalProvinces);
var myProfiles = new Array(chintotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 28;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 35
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = rustotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < rustotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < rustotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((PROVINCE_TYPE + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.rusiascore = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = rustotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < rustotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < rustotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.rusiascore = _root.rusiascore + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < rustotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 120;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / rustotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < rustotalProvinces) {
var _local2 = int(Math.random() * rustotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = rustotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.rus = _root.rusiascore;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < rustotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.rusiascore = _root.rusiascore - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 120;
correctLoc_txt._y = yCorrect._y + 40;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.rusiascore = 0;
_root.reminturns = 31;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Yakutia", "Primorye", "Vladivostok", "Siberia", "Buryatia", "TannuTuva", "Khakassia", "Altai", "Qazaqstan", "Caucasian", "Adygeya", "Donrep", "Majkop", "Kalmykia", "Mordovia", "Chuvashia", "MariEI", "Udmurtia", "Tatarstan", "VolgaGerman", "Muscovia", "Petrograd", "Vozgia", "Komi", "Permic", "Bashkortostan", "Chelyabinsk", "Ural", "Tocharstan", "MansilandKhantiland", "Nenetsia");
var provinceCntr;
var rustotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(rustotalProvinces);
var myProfiles = new Array(rustotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 31;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 36
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = gertotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < gertotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < gertotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.Germanyscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = gertotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < gertotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < gertotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.Germanyscores = _root.Germanyscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < gertotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / gertotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < gertotalProvinces) {
var _local2 = int(Math.random() * gertotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = gertotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.Ger = _root.Germanyscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < gertotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.Germanyscores = _root.Germanyscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.Germanyscores = 0;
_root.reminturns = 16;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Bavaria", "BadenWutternberg", "RhinelandPlatinate", "Saarland", "Hesse", "Thuringia", "Saxony", "SaxonyAnhalt", "NorthRhineWestphalia", "Bremen", "LowerSaxony", "Hamburg", "SchleswigHolstein", "Mecklenburg", "Berlin", "Branden");
var provinceCntr;
var gertotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(gertotalProvinces);
var myProfiles = new Array(gertotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 16;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 37
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = fratotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < fratotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < fratotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.francescores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = fratotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < fratotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < fratotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.francescores = _root.francescores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < fratotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / fratotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < fratotalProvinces) {
var _local2 = int(Math.random() * fratotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = fratotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.fra = _root.francescores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < fratotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.francescores = _root.francescores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.francescores = 0;
_root.reminturns = 21;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("ProvenceAlpescoteDazur", "LanguedocRoussillon", "MidiPyrenees", "Aquitaine", "Limousin", "PoitouCharentes", "PaysDeLaloire", "Bretagne", "BasseNormandie", "HauteNormandie", "Centre", "Auvergne", "RhoneAlpes", "Bourgogne", "Franchecomte", "Alsace", "Lorraine", "ChampagneArdenne", "Paris", "Picardie", "NordPasDeCalais");
var provinceCntr;
var fratotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(fratotalProvinces);
var myProfiles = new Array(fratotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 21;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 38
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = braztotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < braztotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < braztotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.brazilscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = braztotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < braztotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < braztotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.brazilscores = _root.brazilscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < braztotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / braztotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < braztotalProvinces) {
var _local2 = int(Math.random() * braztotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = braztotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.braz = _root.brazilscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < braztotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.brazilscores = _root.brazilscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.brazilscores = 0;
_root.reminturns = 27;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("RioGrandeDoSul", "SantaCatarina", "Parana", "SaoPaulo", "MinasGerais", "EspiritodoSanto", "RioDeJaneiro", "Bahia", "Sergipe", "Alagoas", "Pernarnbuco", "Paraiba", "RioGrandeDoNorte", "Ceara", "Piaui", "Maranhao", "MatoGrossodoSul", "Goias", "Tocantins", "Para", "Amapa", "Roraima", "Amazonas", "Rondonla", "Acre", "MatoGrosso", "IthadeMarajo");
var provinceCntr;
var braztotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(braztotalProvinces);
var myProfiles = new Array(braztotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 27;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 39
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = neptotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < neptotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < neptotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.nepalscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = neptotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < neptotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < neptotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.nepalscores = _root.nepalscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < neptotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / neptotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < neptotalProvinces) {
var _local2 = int(Math.random() * neptotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = neptotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.nep = _root.nepalscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < neptotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.nepalscores = _root.nepalscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.nepalscores = 0;
_root.reminturns = 14;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Dadeldhura", "Silgadi", "Jumla", "Nepalganj", "Tulsipur", "Baglun", "Pokhara", "Butawal", "Kathmandu", "Hetauda", "Sindhulimadi", "Rajbiraj", "Dharan", "Iiam");
var provinceCntr;
var neptotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(neptotalProvinces);
var myProfiles = new Array(neptotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 14;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 41
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = usatotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < usatotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < usatotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.usscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = usatotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < usatotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < usatotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.usscores = _root.usscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < usatotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / usatotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < usatotalProvinces) {
var _local2 = int(Math.random() * usatotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = usatotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.us = _root.usscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < usatotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.usscores = _root.usscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.usscores = 0;
_root.reminturns = 48;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Washington", "Oregon", "Idaho", "Montana", "California", "Nevada", "Utah", "Arizona", "NewMexico", "Oklahoma", "Texas", "Colorado", "Kansas", "Wyoming", "Nebraska", "Iowa", "SouthDakota", "Minnesota", "Michigan", "Wisconsin", "Missouri", "Arkansas", "Louisiana", "Mississippi", "Alabama", "Florida", "Georgia", "SouthCarolina", "NorthCarolina", "Tennessee", "Virginia", "Maryland", "Kentucky", "WV", "Ohio", "Indiana", "Illinois", "Pennsylvania", "NewYork", "Maine", "Vermont", "NewHampshire", "Mass", "Connecticut", "RhodeIsland", "Delaware", "NewJersey", "NorthDakota");
var provinceCntr;
var usatotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(usatotalProvinces);
var myProfiles = new Array(usatotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 48;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 42
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = totalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < totalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < totalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror._visible = 0;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.africascores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = totalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < totalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < totalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.africascores = _root.africascores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < totalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / totalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < totalProvinces) {
var _local2 = int(Math.random() * totalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = totalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.afr = _root.africascores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < totalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.africascores = _root.africascores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.africascores = 0;
_root.reminturns = 48;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Liberia", "Mocambique", "Sahara", "Mauretania", "Algeria", "Tunisia", "Libya", "Egypt", "Sudan", "Eritrea", "Chad", "Niger", "Mali", "Senegal", "GuineaBissau", "Guinea", "SierraLeone", "Cotedlvoire", "Ghana", "BurkinaFaso", "Togo", "Benin", "Nigeria", "Cameroon", "CentralRfricanRep", "GuineaEquatorial", "Gabon", "RepCongo", "DemRepCongo", "Ethiopia", "Djibouti", "Somalia", "Kenya", "Uganda", "Tanzania", "Rwanda", "Burundi", "Zimbia", "Madagascar", "Zimbabwe", "Botswana", "Namibia", "Angola", "Lesotho", "Swaziland", "SouthAfrica", "Morocco", "Malawi");
var provinceCntr;
var totalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(totalProvinces);
var myProfiles = new Array(totalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 48;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 43
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = newztotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < newztotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < newztotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.newzelandscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = newztotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < newztotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < newztotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.newzelandscores = _root.newzelandscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < newztotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 30;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 120;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / newztotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < newztotalProvinces) {
var _local2 = int(Math.random() * newztotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = newztotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.newz = _root.newzelandscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < newztotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.newzelandscores = _root.newzelandscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.newzelandscores = 0;
_root.reminturns = 16;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Southland", "Otago", "WestCoast", "Canterbury", "Tasman", "Marlborough", "ManawatuWanganui", "Taranaki", "HawkesBay", "HamiltonWaikato", "Auckland", "Whangarei", "Tauranga", "Gisborne", "Wellington", "StewartIsland");
var provinceCntr;
var newztotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(newztotalProvinces);
var myProfiles = new Array(newztotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 16;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 44
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = bangtotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < bangtotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < bangtotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.bangladeshscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = bangtotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < bangtotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < bangtotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.bangladeshscores = _root.bangladeshscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < bangtotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 100;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / bangtotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < bangtotalProvinces) {
var _local2 = int(Math.random() * bangtotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = bangtotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.bng_comp = true;
_root.gotoAndPlay(32);
_root.ban = _root.bangladeshscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < bangtotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.bangladeshscores = _root.bangladeshscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.bangladeshscores = 0;
_root.reminturns = 6;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Khulna", "Barisal", "Chittagong", "Sylhet", "Mymensingh", "Rajshahi");
var provinceCntr;
var bangtotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(bangtotalProvinces);
var myProfiles = new Array(bangtotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 6;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 45
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = argtotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < argtotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < argtotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.argentianscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = argtotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < argtotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < argtotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.argentianscores = _root.argentianscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < argtotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / argtotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < argtotalProvinces) {
var _local2 = int(Math.random() * argtotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = argtotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.arg = _root.argentianscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < argtotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 0;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.argentianscores = _root.argentianscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.argentianscores = 0;
_root.reminturns = 22;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Porvenir", "SantaCruz", "RioChubut", "RioNegro", "Neuquen", "BuenosAires", "Lapampa", "Mendoza", "SanLuis", "SanJuan", "Cordoba", "LaRibja", "SantaFe", "Resario", "Corrientes", "Catamarca", "SantiagoDelEstero", "Tucuman", "Chaco", "Salta", "Jujuy", "Formosa");
var provinceCntr;
var argtotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(argtotalProvinces);
var myProfiles = new Array(argtotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 22;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 46
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = afgtotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < afgtotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < afgtotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.afghanistanscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = afgtotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < afgtotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < afgtotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.afghanistanscores = _root.afghanistanscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < afgtotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / afgtotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < afgtotalProvinces) {
var _local2 = int(Math.random() * afgtotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = afgtotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.afg = _root.afghanistanscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < afgtotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 0;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.afghanistanscores = _root.afghanistanscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.afghanistanscores = 0;
_root.reminturns = 32;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Kandahar", "Nimruz", "Helmand", "Farah", "Zabol", "Paktika", "Ghazni", "Oruzgan", "Gardiz", "Khowst", "Lowgar", "Vardak", "Bamian", "Nangarhar", "Laghman", "Kabol", "Kapisa", "Paravan", "Nurestan", "Baghlan", "Kondoz", "Taloqan", "Badakhshan", "Konar", "Samangan", "Balakh", "Jowzjan", "Sarepol", "Faryab", "Badghis", "Ghowr", "Heart");
var provinceCntr;
var afgtotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(afgtotalProvinces);
var myProfiles = new Array(afgtotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 32;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 47
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = cantotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < cantotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < cantotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.canadascore = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = cantotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < cantotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < cantotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.canadascore = _root.canadascore + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < cantotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / cantotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < cantotalProvinces) {
var _local2 = int(Math.random() * cantotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = cantotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.can = _root.canadascore;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < cantotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.canadascore = _root.canadascore - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.canadascore = 0;
_root.reminturns = 13;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("BritishColumbia", "Alberta", "Saskatchewan", "Manitoba", "Ontario", "Quebec", "NewBrunswick", "NovaScotia", "PrinceEdwardIsland", "Newfoundland", "YukonTerritory", "NorthWestTerritories", "Nunavut");
var provinceCntr;
var cantotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(cantotalProvinces);
var myProfiles = new Array(cantotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 13;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 48
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = uktotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < uktotalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < uktotalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.ukscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = uktotalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < uktotalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < uktotalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.ukscores = _root.ukscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < uktotalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 150;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / uktotalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < uktotalProvinces) {
var _local2 = int(Math.random() * uktotalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = uktotalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.uk = _root.ukscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < uktotalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.ukscores = _root.ukscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x + 20;
correctLoc_txt._y = yCorrect._y + 20;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.ukscores = 0;
_root.reminturns = 19;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Aberdeen", "Edinburgh", "Stranraer", "Newcastle", "Kendal", "York", "Belfast", "Dublin", "Liverpool", "Wales", "Birmingham", "Cambridge", "London", "Brighton", "Oxford", "Cotswolds", "Bristol", "Southampton", "Plymouth");
var provinceCntr;
var uktotalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(uktotalProvinces);
var myProfiles = new Array(uktotalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 19;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 49
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = totalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < totalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < totalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.japanscores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = totalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < totalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < totalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.japanscores = _root.japanscores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < totalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 120;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / totalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < totalProvinces) {
var _local2 = int(Math.random() * totalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = totalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.jap = _root.japanscores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < totalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.japanscores = _root.japanscores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x;
correctLoc_txt._y = yCorrect._y;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.japanscores = 0;
_root.reminturns = 45;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("Hokkaido", "Aomori", "Iwate", "Akita", "Yamagata", "Miyagi", "Niigata", "Fukushima", "Ibaraki", "Tochigi", "Chiba", "Toyama", "Nagano", "Fukui", "Gumma", "Gifu", "Yamanashi", "Saitama", "Aichi", "Mie", "Shizouka", "Shiga", "Osaka", "Nara", "Wakayama", "Kyoto", "Hyogo", "Kagawa", "Tottori", "Hiroshima", "Yamaguchi", "Ehime", "Tokushima", "Fukuoka", "Saga", "Nagasaki", "Kumamoto", "Oita", "Miyazaki", "Kagoshima", "Okinawa", "Kochi", "Okayama", "Shimane", "Kanagawa");
var provinceCntr;
var totalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(totalProvinces);
var myProfiles = new Array(totalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 45;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Frame 50
function init() {
scaleFactor = SCALE_TOTAL / mapStage.scale._width;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = totalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < totalProvinces) {
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProfiles[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2] + "_profile", mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2] + "_profile", xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProfiles[_local2]._visible = 0;
myProfiles[_local2].setPlaced();
trans = new flash.geom.Transform(myProfiles[_local2]);
trans.colorTransform = colorTrans;
_local2++;
}
_local2 = 0;
while (_local2 < totalProvinces) {
_root.mapStage[provinceData[_local2] + "_placeholder"]._visible = 0;
var _local4 = _root.mapStage[provinceData[_local2] + "_placeholder"]._x;
var _local3 = _root.mapStage[provinceData[_local2] + "_placeholder"]._y;
myProvinces[_local2] = mapStage.attachMovie(provinceData[_local2], provinceData[_local2], mapStage.getNextHighestDepth(), {provinceName:provinceData[_local2], xLoc:_local4, yLoc:_local3, _x:_local4, _y:_local3});
myProvinces[_local2]._visible = 0;
_root.mapStage[provinceData[_local2] + "_placeholder"].unloadMovie();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
correctLoc_txt._visible = 0;
perror._visible = 0;
correctLoc_txt.autoSize = true;
perror.autoSize = true;
textCorrectWidth = correctLoc_txt._width;
textCorrectHeight = correctLoc_txt.height;
warning_txt.text = ("Oops! You must place the " + PROVINCE_TYPE) + " on the map.";
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function restart() {
_root.australiascores = 0;
d1 = new Date();
timerStart = d1.getTime();
provinceCntr = 0;
scoreTurnsDone = 0;
scoreTurnsPerfect = 0;
scoreTurnsToGo = totalProvinces;
scoreErrorAvg = 0;
scoreErrorTotal = 0;
var _local2 = 0;
while (_local2 < totalProvinces) {
_root.mapStage[provinceData[_local2] + "_profile"]._visible = 0;
_local2++;
}
_local2 = 0;
while (_local2 < totalProvinces) {
myProvinces[_local2]._visible = 0;
myProvinces[_local2].reset();
_local2++;
}
randomizeProvinces();
dBox._visible = 0;
warning_txt._visible = 0;
gameover_txt._visible = 0;
mapStage.place_txt._visible = 1;
mapStage.score_txt._visible = 0;
nextProvince();
}
function nextProvince() {
if (_root.scoreincrement == true) {
_root.australiascores = _root.australiascores + 10;
_root.scoreincrement = false;
perror._visible = false;
}
if (provinceCntr < totalProvinces) {
mapStage.place_txt.text = myProvinces[provinceCntr].getName() + " ";
myProvinces[provinceCntr]._x = mapStage.place_txt._x + 40;
myProvinces[provinceCntr]._y = mapStage.place_txt._y - 120;
myProvinces[provinceCntr]._visible = 1;
myProvinces[provinceCntr].swapDepths(mapStage.getNextHighestDepth() - 1);
provinceCntr++;
} else {
gameOver();
}
}
function gameOver() {
gameover_txt._visible = 1;
dBox._visible = 1;
dBox.dBox_score_txt.text = ((scoreTurnsPerfect / totalProvinces) * 100) + "%";
dBox.dBox_Avg_txt.text = (scoreErrorAvg + " ") + SCALE_UNITS;
d1 = new Date();
timerFinish = d1.getTime();
timerSeconds = int((timerFinish - timerStart) / 1000);
dBox.dBox_time_txt.text = timerSeconds + " secs";
mapStage.place_txt._visible = 0;
}
function randomizeProvinces() {
var _local1 = 0;
while (_local1 < totalProvinces) {
var _local2 = int(Math.random() * totalProvinces);
var _local3 = myProvinces[_local1];
myProvinces[_local1] = myProvinces[_local2];
myProvinces[_local2] = _local3;
_local1++;
}
}
function updateScore() {
if (instructions_txt._visible == 1) {
instructions_txt._visible = 0;
}
if (mapStage.score_txt._visible == 0) {
mapStage.score_txt._visible = 1;
}
scoreTurnsToGo = totalProvinces - scoreTurnsDone;
trace(scoreTurnsToGo + "score turns to go");
_root.reminturns = scoreTurnsToGo;
if (scoreTurnsToGo == 0) {
_root.gotoAndPlay(32);
_root.aus = _root.australiascores;
}
if (scoreTurnsDone == 1) {
scoreTurnsDoneTxt = " turn";
} else {
scoreTurnsDoneTxt = " turns";
}
if (scoreTurnsToGo == 1) {
scoreTurnsToGoTxt = " turn";
} else {
scoreTurnsToGoTxt = " turns";
}
if (scoreTurnsDone < totalProvinces) {
scoreTurns = ((((((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt) + ", ") + scoreTurnsToGo) + scoreTurnsToGoTxt) + " to go";
} else {
scoreTurns = ((scoreTurnsPerfect + " perfect out of ") + scoreTurnsDone) + scoreTurnsDoneTxt;
}
scoreErrorTxt = ((" | Error " + scoreError) + " ") + SCALE_UNITS;
scoreErrorAvgTxt = ((" | Avg Error " + scoreErrorAvg) + " ") + SCALE_UNITS;
mapStage.score_txt.text = (scoreTurns + scoreErrorTxt) + scoreErrorAvgTxt;
trace(mapStage.score_txt.text);
}
function updateErrorAvg() {
scoreErrorAvg = int(scoreErrorTotal / provinceCntr);
}
function alertWrongPlace(cN, xP, yP) {
currName = cN;
correctLoc_txt._visible = 1;
perror._visible = 1;
correctLoc_txt.text = ("Drop " + currName) + " in its correct location, shown in Red. ";
correctLoc_txt.autoSize = true;
xCorrect = xP;
if (_root.scoredecrement == true) {
_root.australiascores = _root.australiascores - 5;
_root.scoredecrement = false;
perror._visible = true;
}
if (xCorrect < 5) {
xCorrect = 5;
}
correctLoc_txt._x = xCorrect._x;
correctLoc_txt._y = yCorrect._y;
}
function dropIt() {
dropSFX.start();
}
function pickItUp() {
pickupSFX.start();
}
stop();
if (_root.soundoff == true) {
_root.bgselectsound.stop();
_root.bgsound.start(0, 999999);
}
_root.australiascores = 0;
_root.reminturns = 8;
trace(_root.reminturns + "remain turns");
var SNAP_TOLERANCE = 12;
var PROVINCE_TYPE = "state";
var SCALE_TOTAL = 500;
var SCALE_UNITS = "Miles";
var provinceData = new Array("WesternAustralia", "NorthernTerritory", "Queensland", "SouthAustralia", "NewSouthWales", "AustralianCapitalTerritory", "Victoria", "Tasmania");
var provinceCntr;
var totalProvinces = provinceData.length;
trace(provinceData.length);
var d1 = new Date();
var timerStart;
var timerFinish;
var timerSeconds;
var scoreTurns;
var scoreTurnsDone;
var scoreTurnsPerfect;
var scoreTurnsToGo;
var scoreTurnsDoneTxt;
var scoreTurnsToGoTxt;
var scoreErrorTxt;
var scoreError;
var scoreErrorAvgTxt;
var scoreErrorAvg;
var scoreErrorTotal;
var scaleFactor;
var currName;
var xCorrect;
var yCorrect;
var myProvinces = new Array(totalProvinces);
var myProfiles = new Array(totalProvinces);
var colorTrans = (new flash.geom.ColorTransform());
colorTrans.rgb = 16711680 /* 0xFF0000 */;
var trans;
var dropSFX = new Sound();
dropSFX.attachSound("Clank1");
var pickupSFX = new Sound();
pickupSFX.attachSound("Pop1");
a7.onRelease = function () {
restart();
_root.reminturns = 8;
correctLoc_txt._visible = false;
perror._visible = false;
instructions_txt.text = ((((((("Place the " + PROVINCE_TYPE) + " by dragging and dropping.\n1. ") + "Place the cursor over the ") + PROVINCE_TYPE) + ".\n2. ") + "While pressing the left mouse button, drag the ") + PROVINCE_TYPE) + " to its correct location.\n3. Release the left mouse button.";
};
init();
Instance of Symbol 1006 MovieClip "a5" in Frame 59
on (rollOver) {
_root.a5.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a5.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (release) {
if (_root.soundoff == true) {
_root.btndown.start();
}
_root.gotoAndPlay(28);
}
Instance of Symbol 1006 MovieClip "a6" in Frame 59
on (release) {
_root.ind = 0;
_root.us = 0;
_root.chin = 0;
_root.nep = 0;
_root.rus = 0;
_root.braz = 0;
_root.jap = 0;
_root.fra = 0;
_root.uk = 0;
_root.can = 0;
_root.aus = 0;
_root.Ger = 0;
_root.arg = 0;
_root.ban = 0;
_root.afr = 0;
_root.newz = 0;
_root.afg = 0;
_root.gotoAndPlay(28);
}
on (rollOver) {
_root.a6.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a6.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1006 MovieClip "a7" in Frame 59
on (release) {
gamename = "MapMaking";
score = _root.totalscores;
trace((score + "this is game score") + _root.totalscores);
getURL ("http://www.onlinerealgames.com/SubmitGuestScores.aspx", "_blank", "POST");
}
on (rollOver) {
_root.a7.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a7.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (press) {
if (_root.soundoff == true) {
_root.btndown.start();
}
}
Instance of Symbol 1466 MovieClip "soundIcon" in Frame 59
onClipEvent (load) {
if (_root.soundoff == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 60
stop();
Frame 61
stop();
Symbol 40 MovieClip Frame 30
stop();
Symbol 49 MovieClip Frame 110
stop();
Symbol 54 MovieClip Frame 183
stop();
_root.play();
Symbol 1479 MovieClip [__Packages.com.neodelight.std.Blueprint] Frame 0
class com.neodelight.std.Blueprint
{
function Blueprint () {
}
static function addBlueprint(id, o) {
lib[id] = o;
}
static function readConfigFile(path) {
cfgLoader.onData = function (src) {
var _local4 = src.split(newline);
var _local3 = 0;
while (_local3 < _local4.length) {
var _local2 = _local4[_local3];
if (_local2.charAt(0) == "#") {
} else if (com.neodelight.std.XString.trim(_local2) == "") {
} else if (_local2.indexOf("=") == -1) {
} else {
var _local1 = _local2.split("=");
_local1[0] = com.neodelight.std.XString.trim(_local1[0]);
_local1[1] = com.neodelight.std.XString.trim(_local1[1]);
com.neodelight.std.Blueprint.addBlueprint(_local1[0], _local1[1]);
}
_local3++;
}
com.neodelight.std.Blueprint.onReadConfigFile(src != undefined);
};
cfgLoader.load(path);
}
static function onReadConfigFile(success) {
}
static function isBlueprint(id) {
return(lib[id] != undefined);
}
static function getBlueprint(id) {
if (typeof(id) == "object") {
return(id);
}
var _local1 = lib[id];
if (_local1.blueprint != undefined) {
apply(_local1, _local1.blueprint);
}
return(_local1);
}
static function getBlueprints(filter) {
if (!filter) {
return(undefined);
}
var _local1 = new Array();
for (var _local3 in lib) {
if (filter.test(_local3)) {
_local1.push(getBlueprint(_local3));
}
}
return(_local1);
}
static function apply(target, id) {
if (id == undefined) {
id = String(target.blueprint);
}
var _local3 = lib[id];
if (!_local3) {
trace("!!!blueprint not found:" + id);
}
var _local6 = 0;
for (var _local1 in _local3) {
if (_local1 == "blueprint") {
continue;
}
if (target[_local1] == undefined) {
target[_local1] = _local3[_local1];
}
}
if (_local3.blueprint != undefined) {
var _local4 = _local3.blueprint.split(",");
var _local1 = 0;
while (_local1 < _local4.length) {
apply(target, _local4[_local1]);
_local1++;
}
}
return(target);
}
static var lib = new Array();
static var cfgLoader = new LoadVars();
}
Symbol 1480 MovieClip [__Packages.com.neodelight.std.XString] Frame 0
class com.neodelight.std.XString
{
function XString () {
}
static function dump(o, params) {
var _local1;
params.depth = com.neodelight.std.XMath.toNumber(params.depth);
switch (typeof(o)) {
case "string" :
_local1 = ("\"" + o) + "\"";
break;
case "undefined" :
_local1 = "[undefined]";
break;
case "array" :
_local1 = "[Array]";
break;
case "number" :
_local1 = String(o);
break;
default :
_local1 = "{";
var _local5 = true;
for (var _local7 in o) {
if (!_local5) {
_local1 = _local1 + ", ";
}
_local5 = false;
if (params.br) {
_local1 = _local1 + newline;
}
var _local2 = 0;
while (_local2 < int(params.indent)) {
_local1 = _local1 + " ";
_local2++;
}
_local1 = _local1 + (_local7 + ":");
if (typeof(o[_local7]) == "object") {
if (params.depth > 0) {
_local1 = _local1 + dump(o[_local7], {depth:params.depth - 1});
} else {
_local1 = _local1 + "[Object]";
}
} else {
_local1 = _local1 + dump(o[_local7], {depth:params.depth - 1});
}
}
if (params.br) {
_local1 = _local1 + newline;
}
_local1 = _local1 + "}";
}
return(_local1);
}
static function numberFormat(num, digits) {
var _local2 = String(int(num));
var _local1 = _local2.length - 4;
while (_local1 >= 0) {
_local2 = (_local2.substring(0, _local1 + 1) + ",") + _local2.substr(_local1 + 1);
_local1 = _local1 - 3;
}
if (int(digits) > 0) {
_local2 = _local2 + ".";
var _local3 = String(int((num - int(num)) * Math.pow(10, digits)));
while (_local3.length < digits) {
_local3 = "0" + _local3;
}
_local2 = _local2 + _local3;
}
return(_local2);
}
static function timeFormat(millis, format) {
var _local5 = "";
var _local8 = new Object();
var _local6;
var _local2 = 0;
while (_local2 < format.length) {
_local6 = format.charAt(_local2);
if (_local6 == "%") {
_local2++;
var _local3 = format.charAt(_local2);
if (_local8[_local3] == undefined) {
var _local1;
switch (_local3) {
case "H" :
_local1 = String(Math.floor(millis / 3600000));
while (_local1.length < 2) {
_local1 = "0" + _local1;
}
break;
case "i" :
_local1 = String(Math.floor(millis / 60000) % 60);
while (_local1.length < 2) {
_local1 = "0" + _local1;
}
break;
case "s" :
_local1 = String(Math.floor(millis / 1000) % 60);
while (_local1.length < 2) {
_local1 = "0" + _local1;
}
break;
case "c" :
_local1 = String(Math.floor(millis / 10) % 100);
while (_local1.length < 2) {
_local1 = "0" + _local1;
}
break;
case "q" :
_local1 = String(Math.floor(millis) % 1000);
while (_local1.length < 3) {
_local1 = "0" + _local1;
}
break;
default :
_local1 = "";
}
_local8[_local3] = _local1;
_local5 = _local5 + _local1;
} else {
_local5 = _local5 + _local8[_local3];
}
} else if (_local6 == "\\") {
_local2++;
_local5 = _local5 + format.charAt(_local2);
} else {
_local5 = _local5 + _local6;
}
_local2++;
}
return(_local5);
}
static function ordinal(n) {
switch (n) {
case 1 :
return("1st");
case 2 :
return("2nd");
case 3 :
return("3rd");
}
return(n + "th");
}
static function trim(s) {
var _local3 = 0;
var _local4 = s.length;
var _local1 = 0;
while (_local1 < s.length) {
switch (s.charCodeAt(_local1)) {
case 32 :
case 9 :
case 10 :
case 13 :
_local3 = _local1 + 1;
}
if (_local3 != (_local1 + 1)) {
break;
}
_local1++;
}
_local1 = s.length - 1;
while (_local1 >= 0) {
switch (s.charCodeAt(_local1)) {
case 32 :
case 9 :
case 10 :
case 13 :
_local4 = _local1;
}
if (_local4 != _local1) {
break;
}
_local1--;
}
return(s.substring(_local3, _local4));
}
static function replace(search, replace, subject) {
return(subject.split(search).join(replace));
}
static function parse(str) {
if (String(com.neodelight.std.XMath.toNumber(Number(str))) == str) {
return(com.neodelight.std.XMath.toNumber(Number(str)));
}
if ((str.charAt(0) == "{") && (str.charAt(str.length - 1) == "}")) {
var _local3 = new Object();
return(_local3);
}
if ((str.charAt(0) == "[") && (str.charAt(str.length - 1) == "]")) {
var _local2 = new Array();
return(_local2);
}
if ((str.charAt(0) == "\"") && (str.charAt(str.length - 1) == "\"")) {
return(str.substring(1, str.length - 2));
}
return(str);
}
static function parseHex(str) {
str = str.substr(-6, 6);
var _local3 = str.length;
var _local4 = 0;
var _local2 = 0;
while (_local2 < _local3) {
var _local1 = str.charCodeAt((_local3 - _local2) - 1);
if (_local1 <= 57) {
_local1 = _local1 - 48;
} else if ((_local1 > 64) && (_local1 < 71)) {
_local1 = _local1 - 55;
}
_local4 = _local4 + (_local1 * Math.pow(16, _local2));
_local2++;
}
return(_local4);
}
static function stripSlashes(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (str.charAt(_local1) == "\\") {
var _local3;
var _local4 = str.charAt(_local1 + 1);
switch (_local4) {
case "n" :
_local3 = newline;
break;
default :
_local3 = _local4;
}
str = (str.slice(0, _local1) + _local3) + str.slice(_local1 + 2, str.length);
_local1--;
}
_local1++;
}
return(str);
}
}
Symbol 1481 MovieClip [__Packages.com.neodelight.std.XMath] Frame 0
class com.neodelight.std.XMath
{
function XMath () {
}
static function p2pDistance(px, py, qx, qy) {
return(Math.sqrt(Math.pow(qx - px, 2) + Math.pow(qy - py, 2)));
}
static function toNumber(n) {
n = Number(n);
if (isNaN(n)) {
n = 0;
}
return(n);
}
static function vAngle(dx, dy) {
var _local1 = Math.asin(dx / Math.sqrt((dx * dx) + (dy * dy)));
if (dy > 0) {
_local1 = Math.PI - _local1;
}
return((_local1 + (Math.PI*2)) % (Math.PI*2));
}
static function angleDiff(a0, a1) {
var _local2 = (Math.PI*2);
var _local1 = a1 - a0;
while (_local1 < 0) {
_local1 = _local1 + _local2;
}
_local1 = _local1 % _local2;
if (_local1 > Math.PI) {
_local1 = (_local2 - _local1) * -1;
}
return(_local1);
}
static function vNormalize(v) {
var _local2 = Math.sqrt((v.x * v.x) + (v.y * v.y));
v.x = v.x / _local2;
v.y = v.y / _local2;
return(v);
}
static function vLength(vx, vy) {
return(Math.sqrt((vx * vx) + (vy * vy)));
}
static function vRotate(v, rad) {
var _local3 = Math.cos(rad);
var _local2 = Math.sin(rad);
var _local5 = (v.x * _local3) - (v.y * _local2);
var _local4 = (v.x * _local2) + (v.y * _local3);
v.x = _local5;
v.y = _local4;
return(v);
}
static function rnd(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
static function relativePos(val, p0, p1) {
return((val - p0) / (p1 - p0));
}
static function numericalObjectDifference(obj0, obj1) {
var _local3 = new Object();
for (var _local4 in obj0) {
if ((((typeof(obj0[_local4]) == "number") && (typeof(obj1[_local4]) == "number")) && (obj0[_local4] != undefined)) && (obj1[_local4] != undefined)) {
_local3[_local4] = obj1[_local4] - obj0[_local4];
}
}
return(_local3);
}
}
Symbol 1482 MovieClip [__Packages.com.neodelight.std.Vector] Frame 0
class com.neodelight.std.Vector
{
var x, y;
function Vector (x, y) {
this.x = x;
this.y = y;
}
function copyOf() {
return(new com.neodelight.std.Vector(x, y));
}
function toString() {
return(((("{x:" + x) + ", y:") + y) + "}");
}
static function intersectP(ax0, ay0, ax1, ay1, bx0, by0, bx1, by1) {
var _local3 = ax0 - bx0;
var _local2 = ay0 - by0;
var _local1 = (by1 * ax1) - (bx1 * ay1);
if (_local1 == 0) {
return(undefined);
}
var _local4 = (by1 * _local3) - (bx1 * _local2);
return((-1 * _local4) / _local1);
}
static function splitP(ax, ay, bx, by) {
return(((bx * ax) - (by * ay)) / (((-bx) * bx) - (by * by)));
}
static function splitV(a, b) {
return((((-b.x) * a.x) - (b.y * a.y)) / ((b.x * (-b.x)) - (b.y * b.y)));
}
static function normalizeP(vx, vy) {
var _local1 = Math.sqrt((vx * vx) + (vy * vy));
return(new com.neodelight.std.Vector(vx / _local1, vy / _local1));
}
static function normalizeV(v) {
var _local2 = Math.sqrt((v.x * v.x) + (v.y * v.y));
v.x = v.x / _local2;
v.y = v.y / _local2;
return(v);
}
static function magnitudeP(vx, vy) {
return(Math.sqrt((vx * vx) + (vy * vy)));
}
static function magnitudeV(v) {
return(Math.sqrt((v.x * v.x) + (v.y * v.y)));
}
static function distanceP(px, py, v0x, v0y, v1x, v1y) {
var _local3 = Math.sqrt((v1x * v1x) + (v1y * v1y));
v1x = v1x / _local3;
v1y = v1y / _local3;
return(-1 * (((v1x * (py - v0y)) - (v1y * (px - v0x))) / ((v1x * v1x) + (v1y * v1y))));
}
static function distanceV(p, v0, v1) {
var _local2 = v1.x;
var _local1 = v1.y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
_local2 = _local2 / _local3;
_local1 = _local1 / _local3;
return(-1 * (((_local2 * (p.y - v0.y)) - (_local1 * (p.x - v0.x))) / ((_local2 * _local2) + (_local1 * _local1))));
}
}
Symbol 1483 MovieClip [__Packages.com.neodelight.std.RegExp] Frame 0
class com.neodelight.std.RegExp
{
function RegExp () {
if (arguments[0] == null) {
} else {
const = "RegExp";
compile.apply(this, arguments);
}
}
function invStr(sVal) {
var _local5 = sVal;
var _local4 = _local5.length;
var _local1;
var _local3;
var _local6 = "";
var _local2 = 1;
while (_local2 < 255) {
_local3 = chr(_local2);
_local1 = 0;
while ((_local1 <= _local4) && (_local5.substring(1 + (_local1++), 1) != _local3)) {
}
if (_local1 > _local4) {
_local6 = _local6 + _local3;
}
_local2++;
}
return(_local5);
}
function compile() {
source = arguments[0];
var _local7;
var _local20;
if (arguments.length > 1) {
var _local17 = (arguments[1] + "").toLowerCase();
_local7 = 0;
while (_local7 < _local17.length) {
if (_local17.substring(_local7 + 1, 1) == "g") {
global = true;
}
if (_local17.substring(_local7 + 1, 1) == "i") {
ignoreCase = true;
}
if (_local17.substring(_local7 + 1, 1) == "m") {
multiline = true;
}
_local7++;
}
}
if (arguments.length < 3) {
_local20 = true;
_xrStatic = 1;
_local7 = 0;
} else {
_local20 = false;
_xr = _xrStatic++;
_local7 = arguments[2];
}
lastIndex = 0;
var _local10 = source;
var _local21;
var _local14 = _local10.length;
var _local6 = [];
var _local4 = 0;
var _local5;
var _local9 = false;
var _local16;
var _local15;
var _local18 = false;
var _local19;
for ( ; _local7 < _local14 ; _local7++) {
var _local3 = _local10.substring(_local7 + 1, 1);
if (_local3 == "\\") {
_local7++;
_local19 = false;
_local3 = _local10.substring(_local7 + 1, 1);
} else {
_local19 = true;
}
var _local12 = _local10.substring(_local7 + 2, 1);
_local6[_local4] = new Object();
_local6[_local4].t = 0;
_local6[_local4].a = 0;
_local6[_local4].b = 999;
_local6[_local4].c = -10;
if (_local19) {
if (_local3 == "(") {
_local21 = new com.neodelight.std.RegExp(_local10, (ignoreCase ? "gi" : "g"), _local7 + 1);
_local7 = _xiStatic;
_local6[_local4].t = 3;
_local3 = _local21;
_local12 = _local10.substring(_local7 + 2, 1);
} else {
if ((!_local20) && (_local3 == ")")) {
break;
}
if (_local3 == "^") {
if ((_local4 == 0) || (_local6[_local4 - 1].t == 7)) {
_local6[_local4].t = 9;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
}
} else if (_local3 == "$") {
if (_local20) {
_local18 = true;
}
} else {
if (_local3 == "[") {
_local7++;
if (_local12 == "^") {
_local6[_local4].t = 2;
_local7++;
} else {
_local6[_local4].t = 1;
}
_local3 = "";
_local9 = false;
while ((_local7 < _local14) && ((_local5 = _local10.substring(1 + (_local7++), 1)) != "]")) {
if (_local9) {
if (_local5 == "\\") {
}
_local15 = ((_local5 == "\\") ? ((_local5 == "b") ? "\b" : (_local10.substring(1 + (_local7++), 1))) : _local5);
_local16 = ord(_local3.substring(_local3.length, 1)) + 1;
_local5 = chr(_local16++);
while (_local15 >= _local5) {
_local3 = _local3 + _local5;
}
_local9 = false;
} else if ((_local5 == "-") && (_local3.length > 0)) {
_local9 = true;
} else if (_local5 == "\\") {
_local5 = _local10.substring(1 + (_local7++), 1);
if (_local5 == "d") {
_local3 = _local3 + "0123456789";
} else if (_local5 == "D") {
_local3 = _local3 + invStr("0123456789");
} else if (_local5 == "s") {
_local3 = _local3 + " \f\n\r\t";
} else if (_local5 == "S") {
_local3 = _local3 + invStr(" \f\n\r\t");
} else if (_local5 == "w") {
_local3 = _local3 + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
} else if (_local5 == "W") {
_local3 = _local3 + invStr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_");
} else if (_local5 == "b") {
_local3 = _local3 + "\b";
} else if (_local5 == "\\") {
_local3 = _local3 + _local5;
}
} else {
_local3 = _local3 + _local5;
}
}
if (_local9) {
_local3 = _local3 + "-";
}
_local7--;
_local12 = _local10.substring(_local7 + 2, 1);
} else {
if (_local3 == "|") {
if (_local18) {
_local6[_local4].t = 10;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
_local6[_local4] = new Object();
_local18 = false;
}
_local6[_local4].t = 7;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
continue;
}
if (_local3 == ".") {
_local6[_local4].t = 2;
_local3 = newline;
} else if (((_local3 == "*") || (_local3 == "?")) || (_local3 == "+")) {
continue;
}
}
// unexpected jump
if ((_local3 >= "1") && (_local3 <= "9")) {
_local6[_local4].t = 4;
} else if (_local3 == "b") {
_local6[_local4].t = 1;
_local3 = "--wb--";
} else if (_local3 == "B") {
_local6[_local4].t = 2;
_local3 = "--wb--";
} else if (_local3 == "d") {
_local6[_local4].t = 1;
_local3 = "0123456789";
} else if (_local3 == "D") {
_local6[_local4].t = 2;
_local3 = "0123456789";
} else if (_local3 == "s") {
_local6[_local4].t = 1;
_local3 = " \f\n\r\t";
} else if (_local3 == "S") {
_local6[_local4].t = 2;
_local3 = " \f\n\r\t";
} else if (_local3 == "w") {
_local6[_local4].t = 1;
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
} else if (_local3 == "W") {
_local6[_local4].t = 2;
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
}
if (_local12 == "*") {
_local6[_local4].s = _local3;
_local4++;
_local7++;
} else if (_local12 == "?") {
_local6[_local4].s = _local3;
_local6[_local4].b = 1;
_local4++;
_local7++;
} else if (_local12 == "+") {
_local6[_local4].s = _local3;
_local6[_local4].a = 1;
_local4++;
_local7++;
} else if (_local12 == "{") {
var _local13 = false;
var _local8 = 0;
_local9 = "";
_local7++;
while (((_local7 + 1) < _local14) && ((_local5 = _local10.substring(2 + (_local7++), 1)) != "}")) {
if ((!_local13) && (_local5 == ",")) {
_local13 = true;
_local8 = Number(_local9);
_local8 = Math.floor((isNaN(_local8) ? 0 : _local8));
if (_local8 < 0) {
_local8 = 0;
}
_local9 = "";
} else {
_local9 = _local9 + _local5;
}
}
var _local11 = Number(_local9);
_local11 = Math.floor((isNaN(_local11) ? 0 : _local11));
if (_local11 < 1) {
_local11 = 999;
}
if (_local11 < _local8) {
_local11 = _local8;
}
_local6[_local4].s = _local3;
_local6[_local4].b = _local11;
_local6[_local4].a = (_local13 ? _local8 : _local11);
_local4++;
} else {
_local6[_local4].s = _local3;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
}
}
}
} else if ((_local3 >= "1") && (_local3 <= "9")) {
_local6[_local4].t = 4;
} else if (_local3 == "b") {
_local6[_local4].t = 1;
_local3 = "--wb--";
} else if (_local3 == "B") {
_local6[_local4].t = 2;
_local3 = "--wb--";
} else if (_local3 == "d") {
_local6[_local4].t = 1;
_local3 = "0123456789";
} else if (_local3 == "D") {
_local6[_local4].t = 2;
_local3 = "0123456789";
} else if (_local3 == "s") {
_local6[_local4].t = 1;
_local3 = " \f\n\r\t";
} else if (_local3 == "S") {
_local6[_local4].t = 2;
_local3 = " \f\n\r\t";
} else if (_local3 == "w") {
_local6[_local4].t = 1;
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
} else if (_local3 == "W") {
_local6[_local4].t = 2;
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
}
if (_local12 == "*") {
_local6[_local4].s = _local3;
_local4++;
_local7++;
} else if (_local12 == "?") {
_local6[_local4].s = _local3;
_local6[_local4].b = 1;
_local4++;
_local7++;
} else if (_local12 == "+") {
_local6[_local4].s = _local3;
_local6[_local4].a = 1;
_local4++;
_local7++;
} else if (_local12 == "{") {
var _local13 = false;
var _local8 = 0;
_local9 = "";
_local7++;
while (((_local7 + 1) < _local14) && ((_local5 = _local10.substring(2 + (_local7++), 1)) != "}")) {
if ((!_local13) && (_local5 == ",")) {
_local13 = true;
_local8 = Number(_local9);
_local8 = Math.floor((isNaN(_local8) ? 0 : _local8));
if (_local8 < 0) {
_local8 = 0;
}
_local9 = "";
} else {
_local9 = _local9 + _local5;
}
}
var _local11 = Number(_local9);
_local11 = Math.floor((isNaN(_local11) ? 0 : (_local11)));
if (_local11 < 1) {
_local11 = 999;
}
if (_local11 < _local8) {
_local11 = _local8;
}
_local6[_local4].s = _local3;
_local6[_local4].b = _local11;
_local6[_local4].a = (_local13 ? (_local8) : (_local11));
_local4++;
} else {
_local6[_local4].s = _local3;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
}
}
if (_local20 && (_local18)) {
_local6[_local4] = new Object();
_local6[_local4].t = 10;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
}
if (!_local20) {
_xiStatic = _local7;
source = _local10.substring(arguments[2] + 1, _local7 - arguments[2]);
}
if (d) {
_local7 = 0;
while (_local7 < _local4) {
trace((((((((("xr" + _xr) + " ") + _local6[_local7].t) + " : ") + _local6[_local7].a) + " : ") + _local6[_local7].b) + " : ") + _local6[_local7].s);
_local7++;
}
}
_xq = _local6;
_xqc = _local4;
_xp = 0;
}
function test() {
if ((_xp++) == 0) {
_xxa = [];
_xxlp = 0;
}
var _local10 = arguments[0] + "";
var _local15;
var _local4 = _xq;
var _local17 = _xqc;
var _local14;
var _local7;
var _local8;
var _local9;
var _local11;
var _local13;
var _local18;
var _local12 = _local10.length;
var _local5 = (global ? (lastIndex) : 0);
var _local21 = _local5;
var _local19 = _local10;
if (ignoreCase) {
_local10 = _local10.toLowerCase();
}
var _local16 = new Object();
_local16.i = -1;
var _local3 = -1;
while (_local3 < (_local17 - 1)) {
_local3++;
if (d) {
trace("New section started at i=" + _local3);
}
_local5 = _local21;
_local14 = _local3;
_local4[_local14].c = -10;
var _local20 = false;
while ((_local3 > _local14) || (_local5 < (_local12 + 1))) {
if (_local4[_local3].t == 7) {
break;
}
if (_local4[_local3].t == 9) {
_local3++;
if (_local3 == (_local14 + 1)) {
_local18 = true;
_local14 = _local3;
}
_local4[_local14].c = -10;
continue;
}
if ((_local16.i >= 0) && (_local5 >= _local16.i)) {
break;
}
if (_local4[_local3].c == -10) {
if (d) {
trace((((((("Lookup #" + _local3) + " at index ") + _local5) + " for \\\\\\\\\\\\\\\\'") + _local4[_local3].s) + "\\\\\\\\\\\\\\\\' type ") + _local4[_local3].t);
}
var _local6 = 0;
_local4[_local3].i = _local5;
if (_local4[_local3].t == 0) {
_local7 = (ignoreCase ? (_local4[_local3].s.toLowerCase()) : (_local4[_local3].s));
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
if (_local10.substring(1 + _local5, 1) == _local7) {
_local6++;
_local5++;
} else {
break;
}
}
} else if (_local4[_local3].t == 1) {
if (_local4[_local3].s == "--wb--") {
_local4[_local3].a = 1;
if ((_local5 > 0) && (_local5 < _local12)) {
_local9 = _local10.substring(_local5, 1);
if ((_local9 == " ") || (_local9 == "\\\\\\\\\\\\\\\\n")) {
_local6 = 1;
}
if (_local6 == 0) {
_local9 = _local10.substring(1 + _local5, 1);
if ((_local9 == " ") || (_local9 == "\\\\\\\\\\\\\\\\n")) {
_local6 = 1;
}
}
} else {
_local6 = 1;
}
} else {
_local7 = (ignoreCase ? (_local4[_local3].s.toLowerCase()) : (_local4[_local3].s));
_local8 = _local7.length;
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
_local9 = _local10.substring(1 + _local5, 1);
_local11 = 0;
while ((_local11 <= _local8) && (_local7.substring(1 + (_local11++), 1) != _local9)) {
}
if (_local11 <= _local8) {
_local6++;
_local5++;
} else {
break;
}
}
}
} else if (_local4[_local3].t == 2) {
_local7 = (ignoreCase ? (_local4[_local3].s.toLowerCase()) : (_local4[_local3].s));
_local8 = _local7.length;
if (_local4[_local3].s == "--wb--") {
_local4[_local3].a = 1;
if ((_local5 > 0) && (_local5 < _local12)) {
_local9 = _local10.substring(_local5, 1);
_local13 = _local10.substring(1 + _local5, 1);
if ((((_local9 != " ") && (_local9 != "\\\\\\\\\\\\\\\\n")) && (_local13 != " ")) && (_local13 != "\\\\\\\\\\\\\\\\n")) {
_local6 = 1;
}
} else {
_local6 = 0;
}
} else {
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
_local9 = _local10.substring(1 + _local5, 1);
_local11 = 0;
while ((_local11 <= _local8) && (_local7.substring(1 + (_local11++), 1) != _local9)) {
}
if (_local11 <= _local8) {
break;
}
_local6++;
_local5++;
}
}
} else if (_local4[_local3].t == 10) {
_local13 = _local10.substring(1 + _local5, 1);
_local6 = (((multiline && ((_local13 == "\\\\\\\\\\\\\\\\n") || (_local13 == "\\\\\\\\\\\\\\\\r"))) || (_local5 == _local12)) ? 1 : 0);
} else if (_local4[_local3].t == 3) {
_local15 = _local4[_local3].s;
_local4[_local3].ix = [];
_local4[_local3].ix[_local6] = _local5;
_local15.lastIndex = _local5;
while ((_local6 < _local4[_local3].b) && _local15.test(_local19)) {
_local8 = _xxlm.length;
if (_local8 > 0) {
_local5 = _local5 + _local8;
_local6++;
_local4[_local3].ix[_local6] = _local5;
} else {
_local6 = _local4[_local3].a;
_local4[_local3].ix[_local6 - 1] = _local5;
break;
}
}
if (_local6 == 0) {
_xxlm = "";
}
if (_local15._xr > _xxlp) {
_xxlp = _local15._xr;
}
_xxa[Number(_local15._xr)] = _xxlm;
} else if (_local4[_local3].t == 4) {
_local7 = Number(_local4[_local3].s);
if (_xp >= _local7) {
_local7 = _xxa[_local7];
_local7 = (ignoreCase ? _local7.toLowerCase() : _local7);
_local8 = _local7.length;
_local4[_local3].ix = [];
_local4[_local3].ix[_local6] = _local5;
if (_local8 > 0) {
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
if (_local10.substring(1 + _local5, _local8) == _local7) {
_local6++;
_local5 = _local5 + _local8;
_local4[_local3].ix[_local6] = _local5;
} else {
break;
}
}
} else {
_local6 = 0;
_local4[_local3].a = 0;
}
} else {
_local7 = chr(_local7);
_local4[_local3].ix = [];
_local4[_local3].ix[_local6] = _local5;
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
if (_local10.substring(1 + _local5, 1) == _local7) {
_local6++;
_local5++;
_local4[_local3].ix[_local6] = _local5;
} else {
break;
}
}
}
}
_local4[_local3].c = _local6;
if (d) {
trace((" " + _local6) + " matches found");
}
}
if (_local4[_local3].c < _local4[_local3].a) {
if (d) {
trace(" not enough matches");
}
if (_local3 > _local14) {
_local3--;
_local4[_local3].c--;
if (_local4[_local3].c >= 0) {
_local5 = (((_local4[_local3].t == 3) || (_local4[_local3].t == 4)) ? (_local4[_local3].ix[_local4[_local3].c]) : (_local4[_local3].i + _local4[_local3].c));
}
if (d) {
trace((((("Retreat to #" + _local3) + " c=") + _local4[_local3].c) + " index=") + _local5);
}
} else {
if (_xp > 1) {
break;
}
if (_local18) {
if (multiline) {
do {
if (_local5 > _local12) {
break;
}
_local13 = _local10.substring(1 + (_local5++), 1);
} while (!((_local13 == "\\\\\\\\\\\\\\\\n") || (_local13 == "\\\\\\\\\\\\\\\\r")));
_local4[_local3].c = -10;
} else {
break;
}
} else {
_local5++;
_local4[_local3].c = -10;
}
}
} else {
if (d) {
trace(" enough matches!");
}
_local3++;
if ((_local3 == _local17) || (_local4[_local3].t == 7)) {
if (d) {
trace((("Saving better result: r.i = q[" + _local14) + "].i = ") + _local4[_local14].i);
}
_local16.i = _local4[_local14].i;
_local16.li = _local5;
break;
}
_local4[_local3].c = -10;
}
}
while ((_local3 < _local17) && (_local4[_local3].t != 7)) {
_local3++;
}
}
if (_local16.i < 0) {
lastIndex = 0;
if ((_xp--) == 1) {
_xxa = [];
_xxlp = 0;
}
return(false);
}
_local5 = _local16.li;
_xi = _local16.i;
_xxlm = _local19.substring(_local16.i + 1, _local5 - _local16.i);
_xxlc = _local19.substring(1, _local16.i);
_xxrc = _local19.substring(_local5 + 1, _local12 - _local5);
if (_local5 == _local16.i) {
_local5++;
}
lastIndex = _local5;
if ((_xp--) == 1) {
lastMatch = _xxlm;
leftContext = _xxlc;
rightContext = _xxrc;
_xaStatic = _xxa;
lastParen = _xxa[Number(_xxlp)];
_local3 = 1;
while (_local3 < 10) {
com.neodelight.std.RegExp["$" + _local3] = _xaStatic[Number(_local3)];
_local3++;
}
}
return(true);
}
function exec() {
var _local6 = arguments[0] + "";
var _local4;
if (_local6 == "") {
return(false);
}
var _local7 = test(_local6);
if (_local7) {
_local4 = new Array();
_local4.index = _xi;
_local4.input = _local6;
_local4[0] = lastMatch;
var _local5 = _xaStatic.length;
var _local3 = 1;
while (_local3 < _local5) {
_local4[_local3] = _xaStatic[Number(_local3)];
_local3++;
}
} else {
_local4 = null;
}
return(_local4);
}
static function setStringMethods() {
if (String.prototype.match != undefined) {
return(undefined);
}
String.prototype.match = function () {
if (typeof(arguments[0]) != "object") {
return(null);
}
if (arguments[0].const != "RegExp") {
return(null);
}
var _local3 = arguments[0];
var _local6 = this.valueOf();
var _local7 = 0;
var _local4 = 0;
var _local5;
if (_local3.global) {
_local3.lastIndex = 0;
while (_local3.test(_local6)) {
if (_local4 == 0) {
_local5 = new Array();
}
_local5[_local4++] = com.neodelight.std.RegExp.lastMatch;
_local7 = _local3.lastIndex;
}
_local3.lastIndex = _local7;
} else {
_local5 = _local3.exec(_local6);
_local4++;
}
return(((_local4 == 0) ? null : (_local5)));
};
String.prototype.replace = function () {
if (typeof(arguments[0]) != "object") {
return(null);
}
if (arguments[0].const != "RegExp") {
return(null);
}
var _local8 = arguments[0];
var _local7 = arguments[1] + "";
var _local11 = this;
var _local12 = "";
_local8.lastIndex = 0;
if (_local8.global) {
var _local13 = 0;
var _local10 = 0;
while (_local8.test(_local11)) {
var _local5 = 0;
var _local9 = _local7.length;
var _local3 = "";
var _local6 = "";
var _local4 = "";
while (_local5 < _local9) {
_local3 = _local7.substring(1 + (_local5++), 1);
if ((_local3 == "$") && (_local6 != "\\")) {
_local3 = _local7.substring(1 + (_local5++), 1);
if (isNaN(Number(_local3)) || (Number(_local3) > 9)) {
_local4 = _local4 + ("$" + _local3);
} else {
_local4 = _local4 + com.neodelight.std.RegExp._xaStatic[Number(_local3)];
}
} else {
_local4 = _local4 + _local3;
}
_local6 = _local3;
}
_local12 = _local12 + (_local11.substring(_local10 + 1, _local8._xi - _local10) + _local4);
_local10 = _local8._xi + com.neodelight.std.RegExp.lastMatch.length;
_local13 = _local8.lastIndex;
}
_local8.lastIndex = _local13;
} else if (_local8.test(_local11)) {
_local12 = _local12 + (com.neodelight.std.RegExp.leftContext + _local7);
}
_local12 = _local12 + ((_local8.lastIndex == 0) ? (_local11) : (com.neodelight.std.RegExp.rightContext));
return(_local12);
};
String.prototype.search = function () {
if (typeof(arguments[0]) != "object") {
return(null);
}
if (arguments[0].const != "RegExp") {
return(null);
}
var _local3 = arguments[0];
var _local5 = this;
_local3.lastIndex = 0;
var _local4 = _local3.test(_local5);
return((_local4 ? (_local3._xi) : -1));
};
String.prototype.old_split = String.prototype.split;
String.prototype.split = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0].const == "RegExp")) {
var _local3 = arguments[0];
var _local8 = ((arguments[1] == null) ? 9999 : (Number(arguments[1])));
if (isNaN(_local8)) {
_local8 = 9999;
}
var _local6 = this;
var _local9 = new Array();
var _local5 = 0;
var _local11 = _local3.global;
_local3.global = true;
_local3.lastIndex = 0;
var _local7 = 0;
var _local10 = 0;
var _local4 = 0;
while ((_local5 < _local8) && (_local3.test(_local6))) {
if (_local3._xi != _local4) {
_local9[_local5++] = _local6.substring(_local4 + 1, _local3._xi - _local4);
}
_local4 = _local3._xi + com.neodelight.std.RegExp.lastMatch.length;
_local10 = _local7;
_local7 = _local3.lastIndex;
}
if (_local5 == _local8) {
_local3.lastIndex = _local10;
} else {
_local3.lastIndex = _local7;
}
if (_local5 == 0) {
_local9[_local5] = _local6;
} else if ((_local5 < _local8) && (com.neodelight.std.RegExp.rightContext.length > 0)) {
_local9[_local5++] = com.neodelight.std.RegExp.rightContext;
}
_local3.global = _local11;
return(_local9);
}
return(this.old_split(arguments[0], arguments[1]));
};
return(true);
}
function toString() {
return(("[RegExp \"" + source) + "\"]");
}
var const = null;
var source = null;
var global = false;
var ignoreCase = false;
var multiline = false;
var lastIndex = null;
static var _xrStatic = null;
var _xr = null;
static var _xp = null;
static var _xxa = null;
static var _xxlp = null;
var _xq = null;
var _xqc = null;
static var d = null;
static var _xiStatic = null;
var _xi = 0;
static var _xxlm = null;
static var _xxlc = null;
static var _xxrc = null;
static var lastMatch = null;
static var leftContext = null;
static var rightContext = null;
static var _xa = new Array();
static var lastParen = null;
static var _xaStatic = new Array();
static var $1 = null;
static var $2 = null;
static var $3 = null;
static var $4 = null;
static var $5 = null;
static var $6 = null;
static var $7 = null;
static var $8 = null;
static var $9 = null;
static var _setString = setStringMethods();
}
Symbol 1484 MovieClip [__Packages.com.neodelight.std.AutoConfig] Frame 0
class com.neodelight.std.AutoConfig
{
function AutoConfig () {
}
static function getConfig(config) {
var _local11 = com.neodelight.std.XSystem.getProtocol();
var _local17 = com.neodelight.std.XSystem.getDomain();
var _local13 = (config.url ? (config.url) : (((_local11 + "://") + _local17).toLowerCase()));
_global.base.syslog("AutoConfig", "url: " + _local13);
var _local14 = System.capabilities.os.toLowerCase();
_global.base.syslog("AutoConfig", "os: " + _local14);
var _local12 = System.capabilities.playerType.toLowerCase();
_global.base.syslog("AutoConfig", "player: " + _local12);
var _local15 = config.configs.split(",");
var _local10 = 0;
while (_local10 < _local15.length) {
var _local9 = false;
var _local7 = false;
var _local8 = false;
var _local6 = com.neodelight.std.Blueprint.getBlueprint(_local15[_local10]);
var _local2 = _local6.configNeedDomain.split(",");
if (_local2 != undefined) {
var _local3 = 0;
while (_local3 < _local2.length) {
_global.bin.syslog("AutoConfig", ("check pattern \"" + _local2[_local3]) + "\"");
if ((_local2[_local3].substring(_local2[_local3].length - 1) == "*") && (_local2[_local3] != "*")) {
_local2[_local3] = _local2[_local3].substring(0, _local2[_local3].length - 1);
}
if ((((_local11 == "http") && (_local13.indexOf(_local2[_local3]) != -1)) || (_local2[_local3] == "*")) || ((_local11 == "file") && (_local2[_local3] == "local"))) {
_local9 = true;
break;
}
_local3++;
}
} else {
_local9 = true;
}
var _local4 = _local6.configNeedOs.split(",");
if (_local4 != undefined) {
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local14.indexOf(_local4[_local3]) > -1) {
_local7 = true;
break;
}
_local3++;
}
} else {
_local7 = true;
}
var _local5 = _local6.configNeedPlayer.split(",");
if (_local5 != undefined) {
var _local3 = 0;
while (_local3 < _local5.length) {
if (_local12 == _local5[_local3]) {
_local8 = true;
break;
}
_local3++;
}
} else {
_local8 = true;
}
if ((_local9 && (_local7)) && (_local8)) {
return(_local6);
}
_local10++;
}
}
}
Symbol 1485 MovieClip [__Packages.com.neodelight.std.XSystem] Frame 0
class com.neodelight.std.XSystem
{
function XSystem () {
}
static function getBaseUrl() {
var _local1 = _url.toLowerCase();
var _local2 = _local1.length;
var _local3 = _local1.indexOf("?", 0);
if (_local3 > 0) {
_local2 = _local3;
}
var _local4 = "offline";
if (_local1.substr(0, 4) == "http") {
_local4 = _url.substr(7, _local2 - 7);
}
return(_local4);
}
static function getDomain(url) {
if (!url) {
url = _url;
}
if (url.indexOf("file://") == 0) {
return(undefined);
}
return(url.substr(7, ((url.indexOf("/", 7) == -1) ? (url.length - 7) : (url.indexOf("/", 7) - 7))));
}
static function getProtocol(url) {
if (!url) {
url = _url;
}
return(url.substr(0, url.indexOf("/") - 1));
}
static function getUrlParam(strParam) {
var _local4 = _url.toLowerCase();
var _local1 = _local4.indexOf(strParam);
var _local5 = strParam.length;
if (_local1 > 0) {
var _local3;
var _local2 = _local4.indexOf("&", _local1 + _local5);
if (_local2 > 0) {
_local3 = _local2 - _local1;
} else {
_local3 = _url.length - _local1;
}
return(_url.substr((_local1 + _local5) + 1, _local3));
}
return("");
}
static function isOffline() {
return(_url.toLowerCase().substr(0, 4) != "http");
}
static function isMacintosh() {
return(System.capabilities.os.toLowerCase().indexOf("mac") >= 0);
}
}
Symbol 1486 MovieClip [__Packages.com.neodelight.game.Highscores] Frame 0
class com.neodelight.game.Highscores
{
var gameName, charTableIndex, session;
function Highscores (gameName, key0, key1) {
this.gameName = "MapMaking";
key0 = "ghet5th";
key1 = "45tyerb";
if (key0) {
keystring = "ghet5th";
}
if (key1) {
keystring2 = "45tyerb";
}
trace(gameName + "encry");
charTableIndex = new Array();
var _local2 = 0;
while (_local2 < charTable.length) {
charTableIndex[charTable.charCodeAt(_local2)] = _local2;
_local2++;
}
initSession();
}
function testt() {
trace("testttttt");
}
function initSession() {
session = "";
while (session.length < 20) {
session = session + charTable.charAt(Math.round(Math.random() * (charTable.length - 4)));
}
}
function submit(pScore0, pDisciple) {
trace("game score submited");
if (!pDisciple) {
pDisciple = "";
}
var _local3 = gameName;
var _local6 = "";
var _local2 = ("g=" + _local3) + "&";
_local2 = _local2 + (("d=" + pDisciple) + "&");
_local2 = _local2 + (("s0=" + pScore0) + "&");
_local2 = _local2 + (("s1=" + _local6) + "&");
_local2 = _local2 + ("se=" + session);
_local2 = _local2 + "&c=42";
var _local5 = (((urlSubmit + "?g=") + _local3) + "&s=") + escape(encrypt(encrypt(_local2, keystring), keystring2)).split("%").join("_");
getURL (_local5, ((_url.indexOf("neodelight.com") != -1) ? "_top" : "_blank"));
}
function encrypt(text, pKey) {
var _local9 = "";
var _local4 = 0;
var _local6;
var _local3;
var _local5;
var _local2 = 0;
while (_local2 < text.length) {
_local5 = charTableIndex[text.charCodeAt(_local2)];
_local6 = charTableIndex[pKey.charCodeAt(_local2 % pKey.length)];
_local3 = (_local5 + _local6) + _local4;
_local3 = _local3 % charTable.length;
_local9 = _local9 + charTable.charAt(_local3);
_local4 = _local4 + _local3;
_local2++;
}
_local4 = _local4 % charTable.length;
return((_local9 + "") + charTable.charAt(_local4));
}
var charTable = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&=.";
var keystring = "whytheheckdoyouwasteyourtimehackingthishighscorelist";
var keystring2 = "AnotherKey4You2FindOut4815jiagIOm30JK";
var urlSubmit = "http://www.neodelight.com/v4/high_enter.php";
}
Symbol 1487 MovieClip [__Packages.Province] Frame 0
class Province extends MovieClip
{
var point_1, xLoc, yLoc, useHandCursor, startDrag, stopDrag, point_2, _x, _y, distance, provinceName, _parent, _height;
function Province () {
super();
point_1 = new flash.geom.Point(xLoc, yLoc);
}
function reset() {
placed = false;
perfect = true;
onMap = false;
useHandCursor = true;
}
function onPress() {
if (placed) {
return(undefined);
}
trace("click");
startDrag();
}
function onRelease() {
if (placed) {
return(undefined);
}
stopDrag();
trace("release");
checkOnMap();
if (!onMap) {
return(undefined);
}
checkPlacement();
_root.updateScore();
}
function checkPlacement() {
point_2 = new flash.geom.Point(_x, _y);
distance = flash.geom.Point.distance(point_1, point_2);
if (distance > _root.SNAP_TOLERANCE) {
_root.scoreError = int(distance * _root.scaleFactor);
_root.scoreErrorTotal = _root.scoreErrorTotal + _root.scoreError;
if (perfect) {
_root.updateErrorAvg();
_root.scoreTurnsDone++;
}
perfect = false;
_parent[provinceName + "_profile"]._visible = true;
_root.alertWrongPlace(provinceName, _x, (_y + _height) + 5);
trace(" - 5 points");
_root.scoredecrement = true;
} else {
_root.scoreError = 0;
_x = xLoc;
_y = yLoc;
setPlaced();
_root.correctLoc_txt._visible = false;
_parent[provinceName + "_profile"]._visible = false;
_root.scoredecrement = true;
if (perfect) {
_root.scoreTurnsPerfect++;
}
_root.scoreError = 0;
if (perfect) {
_root.updateErrorAvg();
_root.scoreTurnsDone++;
}
trace(" + 10 Points");
_root.scoreincrement = true;
_root.nextProvince();
}
}
function checkOnMap() {
if (_y > _parent.map._y) {
onMap = true;
_root.warning_txt._visible = 0;
} else {
onMap = false;
_root.warning_txt._visible = 1;
}
}
function getName() {
return(provinceName);
}
function setPlaced() {
placed = true;
useHandCursor = false;
}
var placed = false;
var perfect = true;
var onMap = false;
}
Symbol 80 MovieClip Frame 1
x1 = Math.round(_root.getBytesTotal() / 1000);
x2 = Math.round(_root.getBytesLoaded() / 1000);
x = Math.round((x2 / x1) * 100);
bar._xscale = x;
_root.x3 = x + "%";
if (x == 100) {
}
Symbol 80 MovieClip Frame 2
gotoAndPlay (1);
Symbol 93 MovieClip [Aberdeen] Frame 1
#initclip 435
Object.registerClass("Aberdeen", Province);
#endinitclip
Symbol 95 MovieClip [Aichi] Frame 1
#initclip 10
Object.registerClass("Aichi", Province);
#endinitclip
Symbol 97 MovieClip [Adygeya] Frame 1
#initclip 11
Object.registerClass("Adygeya", Province);
#endinitclip
Symbol 99 MovieClip [Altai] Frame 1
#initclip 12
Object.registerClass("Altai", Province);
#endinitclip
Symbol 101 MovieClip [Bashkortostan] Frame 1
#initclip 13
Object.registerClass("Bashkortostan", Province);
#endinitclip
Symbol 103 MovieClip [Buryatia] Frame 1
#initclip 14
Object.registerClass("Buryatia", Province);
#endinitclip
Symbol 105 MovieClip [Caucasian] Frame 1
#initclip 15
Object.registerClass("Caucasian", Province);
#endinitclip
Symbol 107 MovieClip [Chelyabinsk] Frame 1
#initclip 16
Object.registerClass("Chelyabinsk", Province);
#endinitclip
Symbol 109 MovieClip [Chuvashia] Frame 1
#initclip 17
Object.registerClass("Chuvashia", Province);
#endinitclip
Symbol 111 MovieClip [Donrep] Frame 1
#initclip 18
Object.registerClass("Donrep", Province);
#endinitclip
Symbol 113 MovieClip [Kalmykia] Frame 1
#initclip 19
Object.registerClass("Kalmykia", Province);
#endinitclip
Symbol 115 MovieClip [Khakassia] Frame 1
#initclip 20
Object.registerClass("Khakassia", Province);
#endinitclip
Symbol 117 MovieClip [Komi] Frame 1
#initclip 21
Object.registerClass("Komi", Province);
#endinitclip
Symbol 119 MovieClip [Majkop] Frame 1
#initclip 22
Object.registerClass("Majkop", Province);
#endinitclip
Symbol 121 MovieClip [MansilandKhantiland] Frame 1
#initclip 23
Object.registerClass("MansilandKhantiland", Province);
#endinitclip
Symbol 123 MovieClip [MariEI] Frame 1
#initclip 24
Object.registerClass("MariEI", Province);
#endinitclip
Symbol 125 MovieClip [Mordovia] Frame 1
#initclip 25
Object.registerClass("Mordovia", Province);
#endinitclip
Symbol 127 MovieClip [Muscovia] Frame 1
#initclip 26
Object.registerClass("Muscovia", Province);
#endinitclip
Symbol 129 MovieClip [Nenetsia] Frame 1
#initclip 27
Object.registerClass("Nenetsia", Province);
#endinitclip
Symbol 131 MovieClip [Permic] Frame 1
#initclip 28
Object.registerClass("Permic", Province);
#endinitclip
Symbol 133 MovieClip [Petrograd] Frame 1
#initclip 29
Object.registerClass("Petrograd", Province);
#endinitclip
Symbol 135 MovieClip [Primorye] Frame 1
#initclip 30
Object.registerClass("Primorye", Province);
#endinitclip
Symbol 137 MovieClip [Qazaqstan] Frame 1
#initclip 31
Object.registerClass("Qazaqstan", Province);
#endinitclip
Symbol 139 MovieClip [TannuTuva] Frame 1
#initclip 32
Object.registerClass("TannuTuva", Province);
#endinitclip
Symbol 141 MovieClip [Tatarstan] Frame 1
#initclip 33
Object.registerClass("Tatarstan", Province);
#endinitclip
Symbol 143 MovieClip [Tocharstan] Frame 1
#initclip 34
Object.registerClass("Tocharstan", Province);
#endinitclip
Symbol 145 MovieClip [Udmurtia] Frame 1
#initclip 35
Object.registerClass("Udmurtia", Province);
#endinitclip
Symbol 147 MovieClip [Ural] Frame 1
#initclip 36
Object.registerClass("Ural", Province);
#endinitclip
Symbol 149 MovieClip [Vladivostok] Frame 1
#initclip 37
Object.registerClass("Vladivostok", Province);
#endinitclip
Symbol 151 MovieClip [VolgaGerman] Frame 1
#initclip 38
Object.registerClass("VolgaGerman", Province);
#endinitclip
Symbol 153 MovieClip [Vozgia] Frame 1
#initclip 39
Object.registerClass("Vozgia", Province);
#endinitclip
Symbol 155 MovieClip [Yakutia] Frame 1
#initclip 40
Object.registerClass("Yakutia", Province);
#endinitclip
Symbol 173 MovieClip [Andaman] Frame 1
#initclip 41
Object.registerClass("Andaman", Province);
#endinitclip
Symbol 175 MovieClip [AndhraPradesh] Frame 1
#initclip 42
Object.registerClass("AndhraPradesh", Province);
#endinitclip
Symbol 177 MovieClip [ArunachalPradesh] Frame 1
#initclip 43
Object.registerClass("ArunachalPradesh", Province);
#endinitclip
Symbol 179 MovieClip [Assam] Frame 1
#initclip 44
Object.registerClass("Assam", Province);
#endinitclip
Symbol 181 MovieClip [Bihar] Frame 1
#initclip 45
Object.registerClass("Bihar", Province);
#endinitclip
Symbol 183 MovieClip [Chattisgarh] Frame 1
#initclip 46
Object.registerClass("Chattisgarh", Province);
#endinitclip
Symbol 185 MovieClip [Goa] Frame 1
#initclip 47
Object.registerClass("Goa", Province);
#endinitclip
Symbol 187 MovieClip [Gujarat] Frame 1
#initclip 48
Object.registerClass("Gujarat", Province);
#endinitclip
Symbol 189 MovieClip [Haryana] Frame 1
#initclip 49
Object.registerClass("Haryana", Province);
#endinitclip
Symbol 191 MovieClip [HimachalPradesh] Frame 1
#initclip 50
Object.registerClass("HimachalPradesh", Province);
#endinitclip
Symbol 193 MovieClip [JammuKashmir] Frame 1
#initclip 51
Object.registerClass("JammuKashmir", Province);
#endinitclip
Symbol 195 MovieClip [Jharkhand] Frame 1
#initclip 52
Object.registerClass("Jharkhand", Province);
#endinitclip
Symbol 197 MovieClip [Karnataka] Frame 1
#initclip 53
Object.registerClass("Karnataka", Province);
#endinitclip
Symbol 199 MovieClip [Kerala] Frame 1
#initclip 54
Object.registerClass("Kerala", Province);
#endinitclip
Symbol 207 MovieClip [LakshaDweep] Frame 1
#initclip 55
Object.registerClass("LakshaDweep", Province);
#endinitclip
Symbol 209 MovieClip [MadhyaPradesh] Frame 1
#initclip 56
Object.registerClass("MadhyaPradesh", Province);
#endinitclip
Symbol 211 MovieClip [Maharashtra] Frame 1
#initclip 57
Object.registerClass("Maharashtra", Province);
#endinitclip
Symbol 213 MovieClip [Manipur] Frame 1
#initclip 58
Object.registerClass("Manipur", Province);
#endinitclip
Symbol 215 MovieClip [Meghalaya] Frame 1
#initclip 59
Object.registerClass("Meghalaya", Province);
#endinitclip
Symbol 217 MovieClip [Mizoram] Frame 1
#initclip 60
Object.registerClass("Mizoram", Province);
#endinitclip
Symbol 219 MovieClip [Nagaland] Frame 1
#initclip 61
Object.registerClass("Nagaland", Province);
#endinitclip
Symbol 221 MovieClip [NewDelhi] Frame 1
#initclip 62
Object.registerClass("NewDelhi", Province);
#endinitclip
Symbol 223 MovieClip [Orissa] Frame 1
#initclip 63
Object.registerClass("Orissa", Province);
#endinitclip
Symbol 225 MovieClip [Punjab] Frame 1
#initclip 64
Object.registerClass("Punjab", Province);
#endinitclip
Symbol 227 MovieClip [Rajasthan] Frame 1
#initclip 65
Object.registerClass("Rajasthan", Province);
#endinitclip
Symbol 229 MovieClip [Sikkim] Frame 1
#initclip 66
Object.registerClass("Sikkim", Province);
#endinitclip
Symbol 231 MovieClip [TamilNadu] Frame 1
#initclip 67
Object.registerClass("TamilNadu", Province);
#endinitclip
Symbol 233 MovieClip [Tripura] Frame 1
#initclip 68
Object.registerClass("Tripura", Province);
#endinitclip
Symbol 235 MovieClip [Uttaranchal] Frame 1
#initclip 69
Object.registerClass("Uttaranchal", Province);
#endinitclip
Symbol 237 MovieClip [UttarPradesh] Frame 1
#initclip 70
Object.registerClass("UttarPradesh", Province);
#endinitclip
Symbol 239 MovieClip [Anhui] Frame 1
#initclip 71
Object.registerClass("Anhui", Province);
#endinitclip
Symbol 241 MovieClip [Beijing] Frame 1
#initclip 72
Object.registerClass("Beijing", Province);
#endinitclip
Symbol 243 MovieClip [Fujian] Frame 1
#initclip 73
Object.registerClass("Fujian", Province);
#endinitclip
Symbol 245 MovieClip [Gansu] Frame 1
#initclip 74
Object.registerClass("Gansu", Province);
#endinitclip
Symbol 247 MovieClip [Guangdong] Frame 1
#initclip 75
Object.registerClass("Guangdong", Province);
#endinitclip
Symbol 249 MovieClip [Guangxi] Frame 1
#initclip 76
Object.registerClass("Guangxi", Province);
#endinitclip
Symbol 251 MovieClip [Guizhou] Frame 1
#initclip 77
Object.registerClass("Guizhou", Province);
#endinitclip
Symbol 253 MovieClip [Hainan] Frame 1
#initclip 78
Object.registerClass("Hainan", Province);
#endinitclip
Symbol 255 MovieClip [Heilongjiang] Frame 1
#initclip 79
Object.registerClass("Heilongjiang", Province);
#endinitclip
Symbol 257 MovieClip [Henan] Frame 1
#initclip 80
Object.registerClass("Henan", Province);
#endinitclip
Symbol 259 MovieClip [Hubei] Frame 1
#initclip 81
Object.registerClass("Hubei", Province);
#endinitclip
Symbol 261 MovieClip [Hunan] Frame 1
#initclip 82
Object.registerClass("Hunan", Province);
#endinitclip
Symbol 263 MovieClip [InnerMongolia] Frame 1
#initclip 83
Object.registerClass("InnerMongolia", Province);
#endinitclip
Symbol 265 MovieClip [Jiangsu] Frame 1
#initclip 84
Object.registerClass("Jiangsu", Province);
#endinitclip
Symbol 267 MovieClip [Jiangxi] Frame 1
#initclip 85
Object.registerClass("Jiangxi", Province);
#endinitclip
Symbol 269 MovieClip [Jilin] Frame 1
#initclip 86
Object.registerClass("Jilin", Province);
#endinitclip
Symbol 271 MovieClip [Liaoning] Frame 1
#initclip 87
Object.registerClass("Liaoning", Province);
#endinitclip
Symbol 280 MovieClip [WestBengal] Frame 1
#initclip 88
Object.registerClass("WestBengal", Province);
#endinitclip
Symbol 293 MovieClip Frame 1
stop();
Instance of Symbol 292 MovieClip in Symbol 293 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
countAmount = 14400;
}
onClipEvent (load) {
_root.ptimersmain = 0;
_root.ptimersmains = 0;
var startTime = getTimer();
var countAmount;
var elapsed = 0;
}
onClipEvent (enterFrame) {
if (_root.pausebtn == 0) {
elapsed = (getTimer() - startTime) - _root.ptimersmains;
if (elapsed <= (countAmount * 1000)) {
counterOutput = Math.floor(elapsed / 1000);
this.sec = int(counterOutput % 60);
this.min = int(counterOutput / 60);
if (min < 10) {
min = "0" + min;
}
if (sec < 10) {
sec = "0" + sec;
}
counterOutput = this.min + this.sec;
_root.totaltimer = (this.min + ":") + this.sec;
} else {
this.sec = "00";
this.counterOutput = "00";
_root.gotoAndStop("menu");
}
}
}
Instance of Symbol 292 MovieClip in Symbol 293 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
countAmount = 14400;
}
Symbol 295 MovieClip [SriLanka] Frame 1
#initclip 89
Object.registerClass("SriLanka", Province);
#endinitclip
Instance of Symbol 179 MovieClip [Assam] "Assam_placeholder" in Symbol 298 MovieClip [Mapstage] Frame 1
/* no clip actions */
Symbol 300 MovieClip [Ningxia] Frame 1
#initclip 90
Object.registerClass("Ningxia", Province);
#endinitclip
Symbol 302 MovieClip [Qinghai] Frame 1
#initclip 91
Object.registerClass("Qinghai", Province);
#endinitclip
Symbol 304 MovieClip [Shaanxi] Frame 1
#initclip 92
Object.registerClass("Shaanxi", Province);
#endinitclip
Symbol 306 MovieClip [Shandong] Frame 1
#initclip 93
Object.registerClass("Shandong", Province);
#endinitclip
Symbol 308 MovieClip [Shanxi] Frame 1
#initclip 94
Object.registerClass("Shanxi", Province);
#endinitclip
Symbol 310 MovieClip [Siberia] Frame 1
#initclip 95
Object.registerClass("Siberia", Province);
#endinitclip
Symbol 312 MovieClip [Sichuan] Frame 1
#initclip 96
Object.registerClass("Sichuan", Province);
#endinitclip
Symbol 314 MovieClip [Taiwan] Frame 1
#initclip 97
Object.registerClass("Taiwan", Province);
#endinitclip
Symbol 316 MovieClip [Tibet] Frame 1
#initclip 98
Object.registerClass("Tibet", Province);
#endinitclip
Symbol 318 MovieClip [Xinjiang] Frame 1
#initclip 99
Object.registerClass("Xinjiang", Province);
#endinitclip
Symbol 320 MovieClip [Yunnan] Frame 1
#initclip 100
Object.registerClass("Yunnan", Province);
#endinitclip
Symbol 322 MovieClip [Zhejiang] Frame 1
#initclip 101
Object.registerClass("Zhejiang", Province);
#endinitclip
Symbol 324 MovieClip [BadenWutternberg] Frame 1
#initclip 102
Object.registerClass("BadenWutternberg", Province);
#endinitclip
Symbol 326 MovieClip [Bavaria] Frame 1
#initclip 103
Object.registerClass("Bavaria", Province);
#endinitclip
Symbol 328 MovieClip [Berlin] Frame 1
#initclip 104
Object.registerClass("Berlin", Province);
#endinitclip
Symbol 330 MovieClip [Branden] Frame 1
#initclip 105
Object.registerClass("Branden", Province);
#endinitclip
Symbol 332 MovieClip [Bremen] Frame 1
#initclip 106
Object.registerClass("Bremen", Province);
#endinitclip
Symbol 334 MovieClip [Hamburg] Frame 1
#initclip 107
Object.registerClass("Hamburg", Province);
#endinitclip
Symbol 336 MovieClip [Hesse] Frame 1
#initclip 108
Object.registerClass("Hesse", Province);
#endinitclip
Symbol 338 MovieClip [LowerSaxony] Frame 1
#initclip 109
Object.registerClass("LowerSaxony", Province);
#endinitclip
Symbol 340 MovieClip [Mecklenburg] Frame 1
#initclip 110
Object.registerClass("Mecklenburg", Province);
#endinitclip
Symbol 342 MovieClip [NorthRhineWestphalia] Frame 1
#initclip 111
Object.registerClass("NorthRhineWestphalia", Province);
#endinitclip
Symbol 344 MovieClip [RhinelandPlatinate] Frame 1
#initclip 112
Object.registerClass("RhinelandPlatinate", Province);
#endinitclip
Symbol 346 MovieClip [Saarland] Frame 1
#initclip 113
Object.registerClass("Saarland", Province);
#endinitclip
Symbol 348 MovieClip [Saxony] Frame 1
#initclip 114
Object.registerClass("Saxony", Province);
#endinitclip
Symbol 350 MovieClip [SaxonyAnhalt] Frame 1
#initclip 115
Object.registerClass("SaxonyAnhalt", Province);
#endinitclip
Symbol 352 MovieClip [SchleswigHolstein] Frame 1
#initclip 116
Object.registerClass("SchleswigHolstein", Province);
#endinitclip
Symbol 354 MovieClip [Thuringia] Frame 1
#initclip 117
Object.registerClass("Thuringia", Province);
#endinitclip
Symbol 356 MovieClip [Alsace] Frame 1
#initclip 118
Object.registerClass("Alsace", Province);
#endinitclip
Symbol 358 MovieClip [Aquitaine] Frame 1
#initclip 119
Object.registerClass("Aquitaine", Province);
#endinitclip
Symbol 360 MovieClip [Auvergne] Frame 1
#initclip 120
Object.registerClass("Auvergne", Province);
#endinitclip
Symbol 362 MovieClip [BasseNormandie] Frame 1
#initclip 121
Object.registerClass("BasseNormandie", Province);
#endinitclip
Symbol 364 MovieClip [Bourgogne] Frame 1
#initclip 122
Object.registerClass("Bourgogne", Province);
#endinitclip
Symbol 366 MovieClip [Bretagne] Frame 1
#initclip 123
Object.registerClass("Bretagne", Province);
#endinitclip
Symbol 368 MovieClip [Centre] Frame 1
#initclip 124
Object.registerClass("Centre", Province);
#endinitclip
Symbol 370 MovieClip [ChampagneArdenne] Frame 1
#initclip 125
Object.registerClass("ChampagneArdenne", Province);
#endinitclip
Symbol 372 MovieClip [Franchecomte] Frame 1
#initclip 126
Object.registerClass("Franchecomte", Province);
#endinitclip
Symbol 374 MovieClip [HauteNormandie] Frame 1
#initclip 127
Object.registerClass("HauteNormandie", Province);
#endinitclip
Symbol 376 MovieClip [LanguedocRoussillon] Frame 1
#initclip 128
Object.registerClass("LanguedocRoussillon", Province);
#endinitclip
Symbol 378 MovieClip [Limousin] Frame 1
#initclip 129
Object.registerClass("Limousin", Province);
#endinitclip
Symbol 380 MovieClip [Lorraine] Frame 1
#initclip 130
Object.registerClass("Lorraine", Province);
#endinitclip
Symbol 382 MovieClip [MidiPyrenees] Frame 1
#initclip 131
Object.registerClass("MidiPyrenees", Province);
#endinitclip
Symbol 384 MovieClip [NordPasDeCalais] Frame 1
#initclip 132
Object.registerClass("NordPasDeCalais", Province);
#endinitclip
Symbol 386 MovieClip [Paris] Frame 1
#initclip 133
Object.registerClass("Paris", Province);
#endinitclip
Symbol 388 MovieClip [PaysDeLaloire] Frame 1
#initclip 134
Object.registerClass("PaysDeLaloire", Province);
#endinitclip
Symbol 390 MovieClip [Picardie] Frame 1
#initclip 135
Object.registerClass("Picardie", Province);
#endinitclip
Symbol 392 MovieClip [PoitouCharentes] Frame 1
#initclip 136
Object.registerClass("PoitouCharentes", Province);
#endinitclip
Symbol 394 MovieClip [ProvenceAlpescoteDazur] Frame 1
#initclip 137
Object.registerClass("ProvenceAlpescoteDazur", Province);
#endinitclip
Symbol 396 MovieClip [RhoneAlpes] Frame 1
#initclip 138
Object.registerClass("RhoneAlpes", Province);
#endinitclip
Symbol 398 MovieClip [Acre] Frame 1
#initclip 139
Object.registerClass("Acre", Province);
#endinitclip
Symbol 400 MovieClip [Alagoas] Frame 1
#initclip 140
Object.registerClass("Alagoas", Province);
#endinitclip
Symbol 402 MovieClip [Amapa] Frame 1
#initclip 141
Object.registerClass("Amapa", Province);
#endinitclip
Symbol 404 MovieClip [Amazonas] Frame 1
#initclip 142
Object.registerClass("Amazonas", Province);
#endinitclip
Symbol 406 MovieClip [Bahia] Frame 1
#initclip 143
Object.registerClass("Bahia", Province);
#endinitclip
Symbol 408 MovieClip [Ceara] Frame 1
#initclip 144
Object.registerClass("Ceara", Province);
#endinitclip
Symbol 410 MovieClip [EspiritodoSanto] Frame 1
#initclip 145
Object.registerClass("EspiritodoSanto", Province);
#endinitclip
Symbol 412 MovieClip [Goias] Frame 1
#initclip 146
Object.registerClass("Goias", Province);
#endinitclip
Symbol 414 MovieClip [IthadeMarajo] Frame 1
#initclip 147
Object.registerClass("IthadeMarajo", Province);
#endinitclip
Symbol 416 MovieClip [Maranhao] Frame 1
#initclip 148
Object.registerClass("Maranhao", Province);
#endinitclip
Symbol 418 MovieClip [MatoGrosso] Frame 1
#initclip 149
Object.registerClass("MatoGrosso", Province);
#endinitclip
Symbol 420 MovieClip [MatoGrossodoSul] Frame 1
#initclip 150
Object.registerClass("MatoGrossodoSul", Province);
#endinitclip
Symbol 422 MovieClip [MinasGerais] Frame 1
#initclip 151
Object.registerClass("MinasGerais", Province);
#endinitclip
Symbol 424 MovieClip [Para] Frame 1
#initclip 152
Object.registerClass("Para", Province);
#endinitclip
Symbol 426 MovieClip [Paraiba] Frame 1
#initclip 153
Object.registerClass("Paraiba", Province);
#endinitclip
Symbol 428 MovieClip [Parana] Frame 1
#initclip 154
Object.registerClass("Parana", Province);
#endinitclip
Symbol 430 MovieClip [Pernarnbuco] Frame 1
#initclip 155
Object.registerClass("Pernarnbuco", Province);
#endinitclip
Symbol 432 MovieClip [Piaui] Frame 1
#initclip 156
Object.registerClass("Piaui", Province);
#endinitclip
Symbol 434 MovieClip [RioDeJaneiro] Frame 1
#initclip 157
Object.registerClass("RioDeJaneiro", Province);
#endinitclip
Symbol 436 MovieClip [RioGrandeDoNorte] Frame 1
#initclip 158
Object.registerClass("RioGrandeDoNorte", Province);
#endinitclip
Symbol 438 MovieClip [RioGrandeDoSul] Frame 1
#initclip 159
Object.registerClass("RioGrandeDoSul", Province);
#endinitclip
Symbol 440 MovieClip [Rondonla] Frame 1
#initclip 160
Object.registerClass("Rondonla", Province);
#endinitclip
Symbol 442 MovieClip [Roraima] Frame 1
#initclip 161
Object.registerClass("Roraima", Province);
#endinitclip
Symbol 444 MovieClip [SantaCatarina] Frame 1
#initclip 162
Object.registerClass("SantaCatarina", Province);
#endinitclip
Symbol 446 MovieClip [SaoPaulo] Frame 1
#initclip 163
Object.registerClass("SaoPaulo", Province);
#endinitclip
Symbol 448 MovieClip [Sergipe] Frame 1
#initclip 164
Object.registerClass("Sergipe", Province);
#endinitclip
Symbol 450 MovieClip [Tocantins] Frame 1
#initclip 165
Object.registerClass("Tocantins", Province);
#endinitclip
Symbol 452 MovieClip [Baglun] Frame 1
#initclip 166
Object.registerClass("Baglun", Province);
#endinitclip
Symbol 454 MovieClip [Butawal] Frame 1
#initclip 167
Object.registerClass("Butawal", Province);
#endinitclip
Symbol 456 MovieClip [Dadeldhura] Frame 1
#initclip 168
Object.registerClass("Dadeldhura", Province);
#endinitclip
Symbol 458 MovieClip [Dharan] Frame 1
#initclip 169
Object.registerClass("Dharan", Province);
#endinitclip
Symbol 460 MovieClip [Hetauda] Frame 1
#initclip 170
Object.registerClass("Hetauda", Province);
#endinitclip
Symbol 462 MovieClip [Iiam] Frame 1
#initclip 171
Object.registerClass("Iiam", Province);
#endinitclip
Symbol 464 MovieClip [Jumla] Frame 1
#initclip 172
Object.registerClass("Jumla", Province);
#endinitclip
Symbol 466 MovieClip [Kathmandu] Frame 1
#initclip 173
Object.registerClass("Kathmandu", Province);
#endinitclip
Symbol 468 MovieClip [Nepalganj] Frame 1
#initclip 174
Object.registerClass("Nepalganj", Province);
#endinitclip
Symbol 470 MovieClip [Pokhara] Frame 1
#initclip 175
Object.registerClass("Pokhara", Province);
#endinitclip
Symbol 472 MovieClip [Rajbiraj] Frame 1
#initclip 176
Object.registerClass("Rajbiraj", Province);
#endinitclip
Symbol 474 MovieClip [Silgadi] Frame 1
#initclip 177
Object.registerClass("Silgadi", Province);
#endinitclip
Symbol 476 MovieClip [Sindhulimadi] Frame 1
#initclip 178
Object.registerClass("Sindhulimadi", Province);
#endinitclip
Symbol 478 MovieClip [Tulsipur] Frame 1
#initclip 179
Object.registerClass("Tulsipur", Province);
#endinitclip
Symbol 480 MovieClip [Alabama] Frame 1
#initclip 180
Object.registerClass("Alabama", Province);
#endinitclip
Symbol 482 MovieClip [Arizona] Frame 1
#initclip 181
Object.registerClass("Arizona", Province);
#endinitclip
Symbol 484 MovieClip [Arkansas] Frame 1
#initclip 182
Object.registerClass("Arkansas", Province);
#endinitclip
Symbol 486 MovieClip [California] Frame 1
#initclip 183
Object.registerClass("California", Province);
#endinitclip
Symbol 488 MovieClip [Colorado] Frame 1
#initclip 184
Object.registerClass("Colorado", Province);
#endinitclip
Symbol 490 MovieClip [Connecticut] Frame 1
#initclip 185
Object.registerClass("Connecticut", Province);
#endinitclip
Symbol 492 MovieClip [Delaware] Frame 1
#initclip 186
Object.registerClass("Delaware", Province);
#endinitclip
Symbol 494 MovieClip [Florida] Frame 1
#initclip 187
Object.registerClass("Florida", Province);
#endinitclip
Symbol 496 MovieClip [Georgia] Frame 1
#initclip 188
Object.registerClass("Georgia", Province);
#endinitclip
Symbol 498 MovieClip [Idaho] Frame 1
#initclip 189
Object.registerClass("Idaho", Province);
#endinitclip
Symbol 500 MovieClip [Illinois] Frame 1
#initclip 190
Object.registerClass("Illinois", Province);
#endinitclip
Symbol 502 MovieClip [Indiana] Frame 1
#initclip 191
Object.registerClass("Indiana", Province);
#endinitclip
Symbol 504 MovieClip [Iowa] Frame 1
#initclip 192
Object.registerClass("Iowa", Province);
#endinitclip
Symbol 506 MovieClip [Kansas] Frame 1
#initclip 193
Object.registerClass("Kansas", Province);
#endinitclip
Symbol 508 MovieClip [Kentucky] Frame 1
#initclip 194
Object.registerClass("Kentucky", Province);
#endinitclip
Symbol 510 MovieClip [Louisiana] Frame 1
#initclip 195
Object.registerClass("Louisiana", Province);
#endinitclip
Symbol 512 MovieClip [Maine] Frame 1
#initclip 196
Object.registerClass("Maine", Province);
#endinitclip
Symbol 514 MovieClip [Maryland] Frame 1
#initclip 197
Object.registerClass("Maryland", Province);
#endinitclip
Symbol 516 MovieClip [Mass] Frame 1
#initclip 198
Object.registerClass("Mass", Province);
#endinitclip
Symbol 518 MovieClip [Michigan] Frame 1
#initclip 199
Object.registerClass("Michigan", Province);
#endinitclip
Symbol 520 MovieClip [Minnesota] Frame 1
#initclip 200
Object.registerClass("Minnesota", Province);
#endinitclip
Symbol 522 MovieClip [Mississippi] Frame 1
#initclip 201
Object.registerClass("Mississippi", Province);
#endinitclip
Symbol 524 MovieClip [Missouri] Frame 1
#initclip 202
Object.registerClass("Missouri", Province);
#endinitclip
Symbol 526 MovieClip [Montana] Frame 1
#initclip 203
Object.registerClass("Montana", Province);
#endinitclip
Symbol 528 MovieClip [Nebraska] Frame 1
#initclip 204
Object.registerClass("Nebraska", Province);
#endinitclip
Symbol 530 MovieClip [Nevada] Frame 1
#initclip 205
Object.registerClass("Nevada", Province);
#endinitclip
Symbol 532 MovieClip [NewHampshire] Frame 1
#initclip 206
Object.registerClass("NewHampshire", Province);
#endinitclip
Symbol 534 MovieClip [NewJersey] Frame 1
#initclip 207
Object.registerClass("NewJersey", Province);
#endinitclip
Symbol 536 MovieClip [NewMexico] Frame 1
#initclip 208
Object.registerClass("NewMexico", Province);
#endinitclip
Symbol 538 MovieClip [NewYork] Frame 1
#initclip 209
Object.registerClass("NewYork", Province);
#endinitclip
Symbol 540 MovieClip [NorthCarolina] Frame 1
#initclip 210
Object.registerClass("NorthCarolina", Province);
#endinitclip
Symbol 542 MovieClip [NorthDakota] Frame 1
#initclip 211
Object.registerClass("NorthDakota", Province);
#endinitclip
Symbol 544 MovieClip [Ohio] Frame 1
#initclip 212
Object.registerClass("Ohio", Province);
#endinitclip
Symbol 546 MovieClip [Oklahoma] Frame 1
#initclip 213
Object.registerClass("Oklahoma", Province);
#endinitclip
Symbol 548 MovieClip [Oregon] Frame 1
#initclip 214
Object.registerClass("Oregon", Province);
#endinitclip
Symbol 550 MovieClip [Pennsylvania] Frame 1
#initclip 215
Object.registerClass("Pennsylvania", Province);
#endinitclip
Symbol 552 MovieClip [RhodeIsland] Frame 1
#initclip 216
Object.registerClass("RhodeIsland", Province);
#endinitclip
Symbol 554 MovieClip [SouthCarolina] Frame 1
#initclip 217
Object.registerClass("SouthCarolina", Province);
#endinitclip
Symbol 556 MovieClip [SouthDakota] Frame 1
#initclip 218
Object.registerClass("SouthDakota", Province);
#endinitclip
Symbol 558 MovieClip [Tennessee] Frame 1
#initclip 219
Object.registerClass("Tennessee", Province);
#endinitclip
Symbol 560 MovieClip [Texas] Frame 1
#initclip 220
Object.registerClass("Texas", Province);
#endinitclip
Symbol 562 MovieClip [Utah] Frame 1
#initclip 221
Object.registerClass("Utah", Province);
#endinitclip
Symbol 564 MovieClip [Vermont] Frame 1
#initclip 222
Object.registerClass("Vermont", Province);
#endinitclip
Symbol 566 MovieClip [Virginia] Frame 1
#initclip 223
Object.registerClass("Virginia", Province);
#endinitclip
Symbol 568 MovieClip [Washington] Frame 1
#initclip 224
Object.registerClass("Washington", Province);
#endinitclip
Symbol 570 MovieClip [Wisconsin] Frame 1
#initclip 225
Object.registerClass("Wisconsin", Province);
#endinitclip
Symbol 572 MovieClip [WV] Frame 1
#initclip 226
Object.registerClass("WV", Province);
#endinitclip
Symbol 574 MovieClip [Wyoming] Frame 1
#initclip 227
Object.registerClass("Wyoming", Province);
#endinitclip
Symbol 576 MovieClip [Algeria] Frame 1
#initclip 228
Object.registerClass("Algeria", Province);
#endinitclip
Symbol 578 MovieClip [Angola] Frame 1
#initclip 229
Object.registerClass("Angola", Province);
#endinitclip
Symbol 580 MovieClip [Benin] Frame 1
#initclip 230
Object.registerClass("Benin", Province);
#endinitclip
Symbol 582 MovieClip [Botswana] Frame 1
#initclip 231
Object.registerClass("Botswana", Province);
#endinitclip
Symbol 584 MovieClip [BurkinaFaso] Frame 1
#initclip 232
Object.registerClass("BurkinaFaso", Province);
#endinitclip
Symbol 586 MovieClip [Burundi] Frame 1
#initclip 233
Object.registerClass("Burundi", Province);
#endinitclip
Symbol 588 MovieClip [Cameroon] Frame 1
#initclip 234
Object.registerClass("Cameroon", Province);
#endinitclip
Symbol 590 MovieClip [CentralRfricanRep] Frame 1
#initclip 235
Object.registerClass("CentralRfricanRep", Province);
#endinitclip
Symbol 592 MovieClip [Chad] Frame 1
#initclip 236
Object.registerClass("Chad", Province);
#endinitclip
Symbol 594 MovieClip [Cotedlvoire] Frame 1
#initclip 237
Object.registerClass("Cotedlvoire", Province);
#endinitclip
Symbol 596 MovieClip [DemRepCongo] Frame 1
#initclip 238
Object.registerClass("DemRepCongo", Province);
#endinitclip
Symbol 598 MovieClip [Djibouti] Frame 1
#initclip 239
Object.registerClass("Djibouti", Province);
#endinitclip
Symbol 600 MovieClip [Egypt] Frame 1
#initclip 240
Object.registerClass("Egypt", Province);
#endinitclip
Symbol 602 MovieClip [Eritrea] Frame 1
#initclip 241
Object.registerClass("Eritrea", Province);
#endinitclip
Symbol 604 MovieClip [Ethiopia] Frame 1
#initclip 242
Object.registerClass("Ethiopia", Province);
#endinitclip
Symbol 606 MovieClip [Gabon] Frame 1
#initclip 243
Object.registerClass("Gabon", Province);
#endinitclip
Symbol 608 MovieClip [Ghana] Frame 1
#initclip 244
Object.registerClass("Ghana", Province);
#endinitclip
Symbol 610 MovieClip [Guinea] Frame 1
#initclip 245
Object.registerClass("Guinea", Province);
#endinitclip
Symbol 612 MovieClip [GuineaBissau] Frame 1
#initclip 246
Object.registerClass("GuineaBissau", Province);
#endinitclip
Symbol 614 MovieClip [GuineaEquatorial] Frame 1
#initclip 247
Object.registerClass("GuineaEquatorial", Province);
#endinitclip
Symbol 616 MovieClip [Kenya] Frame 1
#initclip 248
Object.registerClass("Kenya", Province);
#endinitclip
Symbol 618 MovieClip [Lesotho] Frame 1
#initclip 249
Object.registerClass("Lesotho", Province);
#endinitclip
Symbol 620 MovieClip [Liberia] Frame 1
#initclip 250
Object.registerClass("Liberia", Province);
#endinitclip
Symbol 622 MovieClip [Libya] Frame 1
#initclip 251
Object.registerClass("Libya", Province);
#endinitclip
Symbol 624 MovieClip [Madagascar] Frame 1
#initclip 252
Object.registerClass("Madagascar", Province);
#endinitclip
Symbol 626 MovieClip [Malawi] Frame 1
#initclip 253
Object.registerClass("Malawi", Province);
#endinitclip
Symbol 628 MovieClip [Mali] Frame 1
#initclip 254
Object.registerClass("Mali", Province);
#endinitclip
Symbol 630 MovieClip [Mauretania] Frame 1
#initclip 255
Object.registerClass("Mauretania", Province);
#endinitclip
Symbol 632 MovieClip [Mocambique] Frame 1
#initclip 256
Object.registerClass("Mocambique", Province);
#endinitclip
Symbol 634 MovieClip [Morocco] Frame 1
#initclip 257
Object.registerClass("Morocco", Province);
#endinitclip
Symbol 636 MovieClip [Namibia] Frame 1
#initclip 258
Object.registerClass("Namibia", Province);
#endinitclip
Symbol 638 MovieClip [Niger] Frame 1
#initclip 259
Object.registerClass("Niger", Province);
#endinitclip
Symbol 640 MovieClip [Nigeria] Frame 1
#initclip 260
Object.registerClass("Nigeria", Province);
#endinitclip
Symbol 642 MovieClip [RepCongo] Frame 1
#initclip 261
Object.registerClass("RepCongo", Province);
#endinitclip
Symbol 644 MovieClip [Rwanda] Frame 1
#initclip 262
Object.registerClass("Rwanda", Province);
#endinitclip
Symbol 646 MovieClip [Sahara] Frame 1
#initclip 263
Object.registerClass("Sahara", Province);
#endinitclip
Symbol 648 MovieClip [Senegal] Frame 1
#initclip 264
Object.registerClass("Senegal", Province);
#endinitclip
Symbol 650 MovieClip [SierraLeone] Frame 1
#initclip 265
Object.registerClass("SierraLeone", Province);
#endinitclip
Symbol 652 MovieClip [Somalia] Frame 1
#initclip 266
Object.registerClass("Somalia", Province);
#endinitclip
Symbol 654 MovieClip [SouthAfrica] Frame 1
#initclip 267
Object.registerClass("SouthAfrica", Province);
#endinitclip
Symbol 656 MovieClip [Sudan] Frame 1
#initclip 268
Object.registerClass("Sudan", Province);
#endinitclip
Symbol 658 MovieClip [Swaziland] Frame 1
#initclip 269
Object.registerClass("Swaziland", Province);
#endinitclip
Symbol 660 MovieClip [Tanzania] Frame 1
#initclip 270
Object.registerClass("Tanzania", Province);
#endinitclip
Symbol 662 MovieClip [Togo] Frame 1
#initclip 271
Object.registerClass("Togo", Province);
#endinitclip
Symbol 664 MovieClip [Tunisia] Frame 1
#initclip 272
Object.registerClass("Tunisia", Province);
#endinitclip
Symbol 666 MovieClip [Uganda] Frame 1
#initclip 273
Object.registerClass("Uganda", Province);
#endinitclip
Symbol 668 MovieClip [Zimbabwe] Frame 1
#initclip 274
Object.registerClass("Zimbabwe", Province);
#endinitclip
Symbol 670 MovieClip [Zimbia] Frame 1
#initclip 275
Object.registerClass("Zimbia", Province);
#endinitclip
Symbol 672 MovieClip [Auckland] Frame 1
#initclip 276
Object.registerClass("Auckland", Province);
#endinitclip
Symbol 674 MovieClip [Canterbury] Frame 1
#initclip 277
Object.registerClass("Canterbury", Province);
#endinitclip
Symbol 676 MovieClip [Gisborne] Frame 1
#initclip 278
Object.registerClass("Gisborne", Province);
#endinitclip
Symbol 678 MovieClip [HamiltonWaikato] Frame 1
#initclip 279
Object.registerClass("HamiltonWaikato", Province);
#endinitclip
Symbol 680 MovieClip [HawkesBay] Frame 1
#initclip 280
Object.registerClass("HawkesBay", Province);
#endinitclip
Symbol 682 MovieClip [ManawatuWanganui] Frame 1
#initclip 281
Object.registerClass("ManawatuWanganui", Province);
#endinitclip
Symbol 684 MovieClip [Marlborough] Frame 1
#initclip 282
Object.registerClass("Marlborough", Province);
#endinitclip
Symbol 686 MovieClip [Otago] Frame 1
#initclip 283
Object.registerClass("Otago", Province);
#endinitclip
Symbol 688 MovieClip [Southland] Frame 1
#initclip 284
Object.registerClass("Southland", Province);
#endinitclip
Symbol 690 MovieClip [StewartIsland] Frame 1
#initclip 285
Object.registerClass("StewartIsland", Province);
#endinitclip
Symbol 692 MovieClip [Taranaki] Frame 1
#initclip 286
Object.registerClass("Taranaki", Province);
#endinitclip
Symbol 694 MovieClip [Tasman] Frame 1
#initclip 287
Object.registerClass("Tasman", Province);
#endinitclip
Symbol 696 MovieClip [Tauranga] Frame 1
#initclip 288
Object.registerClass("Tauranga", Province);
#endinitclip
Symbol 698 MovieClip [Wellington] Frame 1
#initclip 289
Object.registerClass("Wellington", Province);
#endinitclip
Symbol 700 MovieClip [WestCoast] Frame 1
#initclip 290
Object.registerClass("WestCoast", Province);
#endinitclip
Symbol 702 MovieClip [Whangarei] Frame 1
#initclip 291
Object.registerClass("Whangarei", Province);
#endinitclip
Symbol 704 MovieClip [Barisal] Frame 1
#initclip 292
Object.registerClass("Barisal", Province);
#endinitclip
Symbol 706 MovieClip [Chittagong] Frame 1
#initclip 293
Object.registerClass("Chittagong", Province);
#endinitclip
Symbol 708 MovieClip [Khulna] Frame 1
#initclip 294
Object.registerClass("Khulna", Province);
#endinitclip
Symbol 710 MovieClip [Mymensingh] Frame 1
#initclip 295
Object.registerClass("Mymensingh", Province);
#endinitclip
Symbol 712 MovieClip [Rajshahi] Frame 1
#initclip 296
Object.registerClass("Rajshahi", Province);
#endinitclip
Symbol 714 MovieClip [Sylhet] Frame 1
#initclip 297
Object.registerClass("Sylhet", Province);
#endinitclip
Symbol 716 MovieClip [BuenosAires] Frame 1
#initclip 298
Object.registerClass("BuenosAires", Province);
#endinitclip
Symbol 718 MovieClip [Catamarca] Frame 1
#initclip 299
Object.registerClass("Catamarca", Province);
#endinitclip
Symbol 720 MovieClip [Chaco] Frame 1
#initclip 300
Object.registerClass("Chaco", Province);
#endinitclip
Symbol 722 MovieClip [Cordoba] Frame 1
#initclip 301
Object.registerClass("Cordoba", Province);
#endinitclip
Symbol 724 MovieClip [Corrientes] Frame 1
#initclip 302
Object.registerClass("Corrientes", Province);
#endinitclip
Symbol 726 MovieClip [Formosa] Frame 1
#initclip 303
Object.registerClass("Formosa", Province);
#endinitclip
Symbol 728 MovieClip [Jujuy] Frame 1
#initclip 304
Object.registerClass("Jujuy", Province);
#endinitclip
Symbol 730 MovieClip [Lapampa] Frame 1
#initclip 305
Object.registerClass("Lapampa", Province);
#endinitclip
Symbol 732 MovieClip [LaRibja] Frame 1
#initclip 306
Object.registerClass("LaRibja", Province);
#endinitclip
Symbol 734 MovieClip [Mendoza] Frame 1
#initclip 307
Object.registerClass("Mendoza", Province);
#endinitclip
Symbol 736 MovieClip [Neuquen] Frame 1
#initclip 308
Object.registerClass("Neuquen", Province);
#endinitclip
Symbol 738 MovieClip [Porvenir] Frame 1
#initclip 309
Object.registerClass("Porvenir", Province);
#endinitclip
Symbol 740 MovieClip [Resario] Frame 1
#initclip 310
Object.registerClass("Resario", Province);
#endinitclip
Symbol 742 MovieClip [RioChubut] Frame 1
#initclip 311
Object.registerClass("RioChubut", Province);
#endinitclip
Symbol 744 MovieClip [RioNegro] Frame 1
#initclip 312
Object.registerClass("RioNegro", Province);
#endinitclip
Symbol 746 MovieClip [Salta] Frame 1
#initclip 313
Object.registerClass("Salta", Province);
#endinitclip
Symbol 748 MovieClip [SanJuan] Frame 1
#initclip 314
Object.registerClass("SanJuan", Province);
#endinitclip
Symbol 750 MovieClip [SanLuis] Frame 1
#initclip 315
Object.registerClass("SanLuis", Province);
#endinitclip
Symbol 752 MovieClip [SantaCruz] Frame 1
#initclip 316
Object.registerClass("SantaCruz", Province);
#endinitclip
Symbol 754 MovieClip [SantaFe] Frame 1
#initclip 317
Object.registerClass("SantaFe", Province);
#endinitclip
Symbol 756 MovieClip [SantiagoDelEstero] Frame 1
#initclip 318
Object.registerClass("SantiagoDelEstero", Province);
#endinitclip
Symbol 758 MovieClip [Tucuman] Frame 1
#initclip 319
Object.registerClass("Tucuman", Province);
#endinitclip
Symbol 760 MovieClip [Badakhshan] Frame 1
#initclip 320
Object.registerClass("Badakhshan", Province);
#endinitclip
Symbol 762 MovieClip [Badghis] Frame 1
#initclip 321
Object.registerClass("Badghis", Province);
#endinitclip
Symbol 764 MovieClip [Baghlan] Frame 1
#initclip 322
Object.registerClass("Baghlan", Province);
#endinitclip
Symbol 766 MovieClip [Balakh] Frame 1
#initclip 323
Object.registerClass("Balakh", Province);
#endinitclip
Symbol 768 MovieClip [Bamian] Frame 1
#initclip 324
Object.registerClass("Bamian", Province);
#endinitclip
Symbol 770 MovieClip [Farah] Frame 1
#initclip 325
Object.registerClass("Farah", Province);
#endinitclip
Symbol 772 MovieClip [Faryab] Frame 1
#initclip 326
Object.registerClass("Faryab", Province);
#endinitclip
Symbol 774 MovieClip [Gardiz] Frame 1
#initclip 327
Object.registerClass("Gardiz", Province);
#endinitclip
Symbol 776 MovieClip [Ghazni] Frame 1
#initclip 328
Object.registerClass("Ghazni", Province);
#endinitclip
Symbol 778 MovieClip [Ghowr] Frame 1
#initclip 329
Object.registerClass("Ghowr", Province);
#endinitclip
Symbol 780 MovieClip [Heart] Frame 1
#initclip 330
Object.registerClass("Heart", Province);
#endinitclip
Symbol 782 MovieClip [Helmand] Frame 1
#initclip 331
Object.registerClass("Helmand", Province);
#endinitclip
Symbol 784 MovieClip [Jowzjan] Frame 1
#initclip 332
Object.registerClass("Jowzjan", Province);
#endinitclip
Symbol 786 MovieClip [Kabol] Frame 1
#initclip 333
Object.registerClass("Kabol", Province);
#endinitclip
Symbol 788 MovieClip [Kandahar] Frame 1
#initclip 334
Object.registerClass("Kandahar", Province);
#endinitclip
Symbol 790 MovieClip [Kapisa] Frame 1
#initclip 335
Object.registerClass("Kapisa", Province);
#endinitclip
Symbol 792 MovieClip [Khowst] Frame 1
#initclip 336
Object.registerClass("Khowst", Province);
#endinitclip
Symbol 794 MovieClip [Konar] Frame 1
#initclip 337
Object.registerClass("Konar", Province);
#endinitclip
Symbol 796 MovieClip [Kondoz] Frame 1
#initclip 338
Object.registerClass("Kondoz", Province);
#endinitclip
Symbol 798 MovieClip [Laghman] Frame 1
#initclip 339
Object.registerClass("Laghman", Province);
#endinitclip
Symbol 800 MovieClip [Lowgar] Frame 1
#initclip 340
Object.registerClass("Lowgar", Province);
#endinitclip
Symbol 802 MovieClip [Nangarhar] Frame 1
#initclip 341
Object.registerClass("Nangarhar", Province);
#endinitclip
Symbol 804 MovieClip [Nimruz] Frame 1
#initclip 342
Object.registerClass("Nimruz", Province);
#endinitclip
Symbol 806 MovieClip [Nurestan] Frame 1
#initclip 343
Object.registerClass("Nurestan", Province);
#endinitclip
Symbol 808 MovieClip [Oruzgan] Frame 1
#initclip 344
Object.registerClass("Oruzgan", Province);
#endinitclip
Symbol 810 MovieClip [Paktika] Frame 1
#initclip 345
Object.registerClass("Paktika", Province);
#endinitclip
Symbol 812 MovieClip [Paravan] Frame 1
#initclip 346
Object.registerClass("Paravan", Province);
#endinitclip
Symbol 814 MovieClip [Samangan] Frame 1
#initclip 347
Object.registerClass("Samangan", Province);
#endinitclip
Symbol 816 MovieClip [Sarepol] Frame 1
#initclip 348
Object.registerClass("Sarepol", Province);
#endinitclip
Symbol 818 MovieClip [Taloqan] Frame 1
#initclip 349
Object.registerClass("Taloqan", Province);
#endinitclip
Symbol 820 MovieClip [Vardak] Frame 1
#initclip 350
Object.registerClass("Vardak", Province);
#endinitclip
Symbol 822 MovieClip [Zabol] Frame 1
#initclip 351
Object.registerClass("Zabol", Province);
#endinitclip
Symbol 824 MovieClip [Akita] Frame 1
#initclip 352
Object.registerClass("Akita", Province);
#endinitclip
Symbol 826 MovieClip [Alberta] Frame 1
#initclip 353
Object.registerClass("Alberta", Province);
#endinitclip
Symbol 828 MovieClip [Aomori] Frame 1
#initclip 354
Object.registerClass("Aomori", Province);
#endinitclip
Symbol 830 MovieClip [Belfast] Frame 1
#initclip 355
Object.registerClass("Belfast", Province);
#endinitclip
Symbol 832 MovieClip [Birmingham] Frame 1
#initclip 356
Object.registerClass("Birmingham", Province);
#endinitclip
Symbol 834 MovieClip [Brighton] Frame 1
#initclip 357
Object.registerClass("Brighton", Province);
#endinitclip
Symbol 836 MovieClip [Bristol] Frame 1
#initclip 358
Object.registerClass("Bristol", Province);
#endinitclip
Symbol 838 MovieClip [BritishColumbia] Frame 1
#initclip 359
Object.registerClass("BritishColumbia", Province);
#endinitclip
Symbol 840 MovieClip [Cambridge] Frame 1
#initclip 360
Object.registerClass("Cambridge", Province);
#endinitclip
Symbol 842 MovieClip [Chiba] Frame 1
#initclip 361
Object.registerClass("Chiba", Province);
#endinitclip
Symbol 844 MovieClip [Cotswolds] Frame 1
#initclip 362
Object.registerClass("Cotswolds", Province);
#endinitclip
Symbol 846 MovieClip [Dublin] Frame 1
#initclip 363
Object.registerClass("Dublin", Province);
#endinitclip
Symbol 848 MovieClip [Edinburgh] Frame 1
#initclip 364
Object.registerClass("Edinburgh", Province);
#endinitclip
Symbol 850 MovieClip [Ehime] Frame 1
#initclip 365
Object.registerClass("Ehime", Province);
#endinitclip
Symbol 852 MovieClip [Fukui] Frame 1
#initclip 366
Object.registerClass("Fukui", Province);
#endinitclip
Symbol 854 MovieClip [Fukuoka] Frame 1
#initclip 367
Object.registerClass("Fukuoka", Province);
#endinitclip
Symbol 856 MovieClip [Fukushima] Frame 1
#initclip 368
Object.registerClass("Fukushima", Province);
#endinitclip
Symbol 858 MovieClip [Gifu] Frame 1
#initclip 369
Object.registerClass("Gifu", Province);
#endinitclip
Symbol 860 MovieClip [Gumma] Frame 1
#initclip 370
Object.registerClass("Gumma", Province);
#endinitclip
Symbol 862 MovieClip [Hiroshima] Frame 1
#initclip 371
Object.registerClass("Hiroshima", Province);
#endinitclip
Symbol 864 MovieClip [Hokkaido] Frame 1
#initclip 372
Object.registerClass("Hokkaido", Province);
#endinitclip
Symbol 866 MovieClip [Hyogo] Frame 1
#initclip 373
Object.registerClass("Hyogo", Province);
#endinitclip
Symbol 868 MovieClip [Ibaraki] Frame 1
#initclip 374
Object.registerClass("Ibaraki", Province);
#endinitclip
Symbol 870 MovieClip [Iwate] Frame 1
#initclip 375
Object.registerClass("Iwate", Province);
#endinitclip
Symbol 872 MovieClip [Kagawa] Frame 1
#initclip 376
Object.registerClass("Kagawa", Province);
#endinitclip
Symbol 874 MovieClip [Kagoshima] Frame 1
#initclip 377
Object.registerClass("Kagoshima", Province);
#endinitclip
Symbol 876 MovieClip [Kanagawa] Frame 1
#initclip 378
Object.registerClass("Kanagawa", Province);
#endinitclip
Symbol 878 MovieClip [Kendal] Frame 1
#initclip 379
Object.registerClass("Kendal", Province);
#endinitclip
Symbol 880 MovieClip [Kochi] Frame 1
#initclip 380
Object.registerClass("Kochi", Province);
#endinitclip
Symbol 882 MovieClip [Kumamoto] Frame 1
#initclip 381
Object.registerClass("Kumamoto", Province);
#endinitclip
Symbol 884 MovieClip [Kyoto] Frame 1
#initclip 382
Object.registerClass("Kyoto", Province);
#endinitclip
Symbol 886 MovieClip [Liverpool] Frame 1
#initclip 383
Object.registerClass("Liverpool", Province);
#endinitclip
Symbol 888 MovieClip [London] Frame 1
#initclip 384
Object.registerClass("London", Province);
#endinitclip
Symbol 890 MovieClip [Manitoba] Frame 1
#initclip 385
Object.registerClass("Manitoba", Province);
#endinitclip
Symbol 892 MovieClip [Mie] Frame 1
#initclip 386
Object.registerClass("Mie", Province);
#endinitclip
Symbol 894 MovieClip [Miyagi] Frame 1
#initclip 387
Object.registerClass("Miyagi", Province);
#endinitclip
Symbol 896 MovieClip [Miyazaki] Frame 1
#initclip 388
Object.registerClass("Miyazaki", Province);
#endinitclip
Symbol 898 MovieClip [Nagano] Frame 1
#initclip 389
Object.registerClass("Nagano", Province);
#endinitclip
Symbol 900 MovieClip [Nagasaki] Frame 1
#initclip 390
Object.registerClass("Nagasaki", Province);
#endinitclip
Symbol 902 MovieClip [Nara] Frame 1
#initclip 391
Object.registerClass("Nara", Province);
#endinitclip
Symbol 904 MovieClip [NewBrunswick] Frame 1
#initclip 392
Object.registerClass("NewBrunswick", Province);
#endinitclip
Symbol 906 MovieClip [Newcastle] Frame 1
#initclip 393
Object.registerClass("Newcastle", Province);
#endinitclip
Symbol 908 MovieClip [Newfoundland] Frame 1
#initclip 394
Object.registerClass("Newfoundland", Province);
#endinitclip
Symbol 910 MovieClip [Niigata] Frame 1
#initclip 395
Object.registerClass("Niigata", Province);
#endinitclip
Symbol 912 MovieClip [NorthWestTerritories] Frame 1
#initclip 396
Object.registerClass("NorthWestTerritories", Province);
#endinitclip
Symbol 914 MovieClip [NovaScotia] Frame 1
#initclip 397
Object.registerClass("NovaScotia", Province);
#endinitclip
Symbol 916 MovieClip [Nunavut] Frame 1
#initclip 398
Object.registerClass("Nunavut", Province);
#endinitclip
Symbol 918 MovieClip [Oita] Frame 1
#initclip 399
Object.registerClass("Oita", Province);
#endinitclip
Symbol 920 MovieClip [Okayama] Frame 1
#initclip 400
Object.registerClass("Okayama", Province);
#endinitclip
Symbol 922 MovieClip [Okinawa] Frame 1
#initclip 401
Object.registerClass("Okinawa", Province);
#endinitclip
Symbol 924 MovieClip [Ontario] Frame 1
#initclip 402
Object.registerClass("Ontario", Province);
#endinitclip
Symbol 926 MovieClip [Osaka] Frame 1
#initclip 403
Object.registerClass("Osaka", Province);
#endinitclip
Symbol 928 MovieClip [Oxford] Frame 1
#initclip 404
Object.registerClass("Oxford", Province);
#endinitclip
Symbol 930 MovieClip [Plymouth] Frame 1
#initclip 405
Object.registerClass("Plymouth", Province);
#endinitclip
Symbol 932 MovieClip [PrinceEdwardIsland] Frame 1
#initclip 406
Object.registerClass("PrinceEdwardIsland", Province);
#endinitclip
Symbol 934 MovieClip [Quebec] Frame 1
#initclip 407
Object.registerClass("Quebec", Province);
#endinitclip
Symbol 936 MovieClip [Saga] Frame 1
#initclip 408
Object.registerClass("Saga", Province);
#endinitclip
Symbol 938 MovieClip [Saitama] Frame 1
#initclip 409
Object.registerClass("Saitama", Province);
#endinitclip
Symbol 940 MovieClip [Saskatchewan] Frame 1
#initclip 410
Object.registerClass("Saskatchewan", Province);
#endinitclip
Symbol 942 MovieClip [Shiga] Frame 1
#initclip 411
Object.registerClass("Shiga", Province);
#endinitclip
Symbol 944 MovieClip [Shimane] Frame 1
#initclip 412
Object.registerClass("Shimane", Province);
#endinitclip
Symbol 946 MovieClip [Shizouka] Frame 1
#initclip 413
Object.registerClass("Shizouka", Province);
#endinitclip
Symbol 948 MovieClip [Southampton] Frame 1
#initclip 414
Object.registerClass("Southampton", Province);
#endinitclip
Symbol 950 MovieClip [Stranraer] Frame 1
#initclip 415
Object.registerClass("Stranraer", Province);
#endinitclip
Symbol 952 MovieClip [Tochigi] Frame 1
#initclip 416
Object.registerClass("Tochigi", Province);
#endinitclip
Symbol 954 MovieClip [Tokushima] Frame 1
#initclip 417
Object.registerClass("Tokushima", Province);
#endinitclip
Symbol 956 MovieClip [Tottori] Frame 1
#initclip 418
Object.registerClass("Tottori", Province);
#endinitclip
Symbol 958 MovieClip [Toyama] Frame 1
#initclip 419
Object.registerClass("Toyama", Province);
#endinitclip
Symbol 960 MovieClip [Wakayama] Frame 1
#initclip 420
Object.registerClass("Wakayama", Province);
#endinitclip
Symbol 962 MovieClip [Wales] Frame 1
#initclip 421
Object.registerClass("Wales", Province);
#endinitclip
Symbol 964 MovieClip [Yamagata] Frame 1
#initclip 422
Object.registerClass("Yamagata", Province);
#endinitclip
Symbol 966 MovieClip [Yamaguchi] Frame 1
#initclip 423
Object.registerClass("Yamaguchi", Province);
#endinitclip
Symbol 968 MovieClip [Yamanashi] Frame 1
#initclip 424
Object.registerClass("Yamanashi", Province);
#endinitclip
Symbol 970 MovieClip [York] Frame 1
#initclip 425
Object.registerClass("York", Province);
#endinitclip
Symbol 972 MovieClip [YukonTerritory] Frame 1
#initclip 426
Object.registerClass("YukonTerritory", Province);
#endinitclip
Symbol 974 MovieClip [AustralianCapitalTerritory] Frame 1
#initclip 427
Object.registerClass("AustralianCapitalTerritory", Province);
#endinitclip
Symbol 976 MovieClip [NewSouthWales] Frame 1
#initclip 428
Object.registerClass("NewSouthWales", Province);
#endinitclip
Symbol 978 MovieClip [NorthernTerritory] Frame 1
#initclip 429
Object.registerClass("NorthernTerritory", Province);
#endinitclip
Symbol 980 MovieClip [Queensland] Frame 1
#initclip 430
Object.registerClass("Queensland", Province);
#endinitclip
Symbol 982 MovieClip [SouthAustralia] Frame 1
#initclip 431
Object.registerClass("SouthAustralia", Province);
#endinitclip
Symbol 984 MovieClip [Tasmania] Frame 1
#initclip 432
Object.registerClass("Tasmania", Province);
#endinitclip
Symbol 986 MovieClip [Victoria] Frame 1
#initclip 433
Object.registerClass("Victoria", Province);
#endinitclip
Symbol 988 MovieClip [WesternAustralia] Frame 1
#initclip 434
Object.registerClass("WesternAustralia", Province);
#endinitclip
Symbol 989 MovieClip Frame 1
stop();
Symbol 995 MovieClip Frame 1
x1 = Math.round(_root.getBytesTotal() / 1000);
x2 = Math.round(_root.getBytesLoaded() / 1000);
x = Math.round((x2 / x1) * 100);
bar._xscale = x;
_root.x3 = x + "%";
if (x == 100) {
_root.gotoAndPlay(28);
}
Symbol 995 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1005 MovieClip Frame 1
stop();
Symbol 1005 MovieClip Frame 10
stop();
Symbol 1005 MovieClip Frame 20
stop();
Symbol 1017 Button
on (release) {
stopAllSounds();
_root.soundoff = false;
gotoAndStop (2);
nextFrame();
}
Symbol 1022 Button
on (release) {
_root.snd.active = 1;
prevFrame();
}
Symbol 1024 Button
on (release) {
_root.soundoff = true;
stopAllSounds();
prevFrame();
}
Symbol 1025 MovieClip Frame 1
stop();
if (_global.snd.getVolume() == 0) {
nextFrame();
}
Symbol 1028 MovieClip Frame 24
gotoAndPlay (17);
Symbol 1030 Button
on (rollOver) {
if (_root.rus < 311) {
_root.mcscore.gotoAndStop(6);
} else {
_root.mc.gotoAndStop(6);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.rus == 310) {
_root.gotoAndStop(29);
} else if (_root.rus == 0) {
_root.gotoAndStop(35);
} else {
_root.gotoAndStop(35);
}
}
Symbol 1031 Button
on (rollOver) {
if (_root.chin < 281) {
_root.mcscore.gotoAndStop(5);
} else {
_root.mc.gotoAndStop(5);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.chin == 280) {
_root.gotoAndStop(29);
} else if (_root.chin == 0) {
_root.gotoAndStop(34);
} else {
_root.gotoAndStop(34);
}
}
Symbol 1032 Button
on (rollOver) {
if (_root.newz < 161) {
_root.mcscore.gotoAndStop(4);
} else {
_root.mc.gotoAndStop(4);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.newz == 160) {
_root.gotoAndStop(29);
} else if (_root.newz == 0) {
_root.gotoAndStop(43);
} else {
_root.gotoAndStop(43);
}
}
Symbol 1033 Button
on (rollOver) {
if (_root.ban < 61) {
_root.mapstart = false;
_root.mcscore.gotoAndStop(7);
} else {
_root.mc.gotoAndStop(7);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.ban == 60) {
_root.mapstart = false;
_root.gotoAndStop(29);
} else if (_root.ban == 0) {
_root.gotoAndStop(44);
} else {
_root.gotoAndStop(44);
}
}
Symbol 1034 Button
on (rollOver) {
if (_root.nep < 141) {
_root.mcscore.gotoAndStop(8);
} else {
_root.mc.gotoAndStop(8);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.nep == 140) {
_root.gotoAndStop(29);
} else if (_root.nep == 0) {
_root.gotoAndStop(39);
} else {
_root.gotoAndStop(39);
}
}
Symbol 1035 Button
on (rollOver) {
if (_root.ind < 311) {
_root.mcscore.gotoAndStop(2);
} else {
_root.mc.gotoAndStop(2);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.ind == 310) {
_root.gotoAndStop(29);
} else if (_root.ind == 0) {
_root.gotoAndStop(33);
} else {
_root.gotoAndStop(33);
}
}
Symbol 1036 Button
on (rollOver) {
if (_root.afg < 321) {
_root.mcscore.gotoAndStop(9);
} else {
_root.mc.gotoAndStop(9);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.afg == 320) {
_root.gotoAndStop(29);
} else if (_root.afg == 0) {
_root.gotoAndStop(46);
} else {
_root.gotoAndStop(46);
}
}
Symbol 1037 Button
on (rollOver) {
if (_root.afr < 481) {
_root.mcscore.gotoAndStop(10);
} else {
_root.mc.gotoAndStop(10);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.afr == 480) {
_root.gotoAndStop(29);
} else if (_root.afr == 0) {
_root.gotoAndStop(42);
} else {
_root.gotoAndStop(42);
}
}
Symbol 1038 Button
on (rollOver) {
if (_root.fra < 211) {
_root.mcscore.gotoAndStop(12);
} else {
_root.mc.gotoAndStop(12);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.fra == 210) {
_root.gotoAndStop(29);
} else if (_root.fra == 0) {
_root.gotoAndStop(37);
} else {
_root.gotoAndStop(37);
}
}
Symbol 1039 Button
on (rollOver) {
if (_root.Ger < 161) {
_root.mcscore.gotoAndStop(11);
} else {
_root.mc.gotoAndStop(11);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.Ger == 160) {
_root.gotoAndStop(29);
} else if (_root.Ger == 0) {
_root.gotoAndStop(36);
} else {
_root.gotoAndStop(36);
}
}
Symbol 1040 Button
on (rollOver) {
if (_root.uk < 191) {
_root.mcscore.gotoAndStop(13);
} else {
_root.mc.gotoAndStop(13);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.uk == 190) {
_root.gotoAndStop(29);
} else if (_root.uk == 0) {
_root.gotoAndStop(48);
} else {
_root.gotoAndStop(48);
}
}
Symbol 1041 Button
on (rollOver) {
if (_root.braz < 271) {
_root.mcscore.gotoAndStop(15);
} else {
_root.mc.gotoAndStop(15);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.braz == 270) {
_root.gotoAndStop(29);
} else if (_root.braz == 0) {
_root.gotoAndStop(38);
} else {
_root.gotoAndStop(38);
}
}
Symbol 1042 Button
on (rollOver) {
if (_root.arg < 221) {
_root.mcscore.gotoAndStop(14);
} else {
_root.mc.gotoAndStop(14);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.arg == 220) {
_root.gotoAndStop(29);
} else if (_root.arg == 0) {
_root.gotoAndStop(45);
} else {
_root.gotoAndStop(45);
}
}
Symbol 1043 Button
on (rollOver) {
if (_root.us < 481) {
_root.mcscore.gotoAndStop(16);
} else {
_root.mc.gotoAndStop(16);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.us == 480) {
_root.gotoAndStop(29);
} else if (_root.us == 0) {
_root.gotoAndStop(41);
} else {
_root.gotoAndStop(41);
}
}
Symbol 1044 Button
on (rollOver) {
if (_root.can < 131) {
_root.mcscore.gotoAndStop(17);
} else {
_root.mc.gotoAndStop(17);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.can == 130) {
_root.gotoAndStop(29);
} else if (_root.can == 0) {
_root.gotoAndStop(47);
} else {
_root.gotoAndStop(47);
}
}
Symbol 1045 Button
on (rollOver) {
if (_root.jap < 451) {
_root.mcscore.gotoAndStop(3);
} else {
_root.mc.gotoAndStop(3);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.jap == 450) {
_root.gotoAndStop(29);
} else if (_root.jap == 0) {
_root.gotoAndStop(49);
} else {
_root.gotoAndStop(49);
}
}
Symbol 1046 Button
on (rollOver) {
if (_root.aus < 81) {
_root.mapstart = false;
_root.mcscore.gotoAndStop(18);
} else {
_root.mc.gotoAndStop(18);
}
}
on (rollOut) {
_root.mc.gotoAndStop(1);
_root.mcscore.gotoAndStop(1);
}
on (press) {
_root.levels = _root.levels + 1;
if (_root.soundoff == true) {
_root.countryselect.start();
}
if (_root.aus == 80) {
_root.mapstart = false;
_root.gotoAndStop(29);
} else if (_root.aus == 0) {
_root.gotoAndStop(50);
} else {
_root.gotoAndStop(50);
}
}
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 2
stop();
Symbol 1082 MovieClip Frame 3
stop();
Symbol 1082 MovieClip Frame 4
stop();
Symbol 1082 MovieClip Frame 5
stop();
Symbol 1082 MovieClip Frame 6
stop();
Symbol 1082 MovieClip Frame 7
stop();
Symbol 1082 MovieClip Frame 8
stop();
Symbol 1082 MovieClip Frame 9
stop();
Symbol 1082 MovieClip Frame 10
stop();
Symbol 1082 MovieClip Frame 11
stop();
Symbol 1082 MovieClip Frame 12
stop();
Symbol 1082 MovieClip Frame 13
stop();
Symbol 1082 MovieClip Frame 14
stop();
Symbol 1082 MovieClip Frame 15
stop();
Symbol 1082 MovieClip Frame 16
stop();
Symbol 1082 MovieClip Frame 17
stop();
Symbol 1102 MovieClip Frame 1
stop();
Symbol 1102 MovieClip Frame 2
stop();
Symbol 1102 MovieClip Frame 3
stop();
Symbol 1102 MovieClip Frame 4
stop();
Symbol 1102 MovieClip Frame 5
stop();
Symbol 1102 MovieClip Frame 6
stop();
Symbol 1102 MovieClip Frame 7
stop();
Symbol 1102 MovieClip Frame 8
stop();
Symbol 1102 MovieClip Frame 9
stop();
Symbol 1102 MovieClip Frame 10
stop();
Symbol 1102 MovieClip Frame 11
stop();
Symbol 1102 MovieClip Frame 12
stop();
Symbol 1102 MovieClip Frame 13
stop();
Symbol 1102 MovieClip Frame 14
stop();
Symbol 1102 MovieClip Frame 15
stop();
Symbol 1102 MovieClip Frame 16
stop();
Symbol 1102 MovieClip Frame 17
stop();
Symbol 1102 MovieClip Frame 18
stop();
Symbol 1103 Button
on (release) {
stopAllSounds();
_root.soundoff = false;
gotoAndStop (2);
nextFrame();
}
Symbol 1104 Button
on (release) {
_root.soundoff = true;
_root.bgselectsound.start(0, 99999);
prevFrame();
}
Symbol 1105 MovieClip Frame 1
stop();
if (_global.snd.getVolume() == 0) {
nextFrame();
}
Symbol 1111 Button
on (release) {
stopAllSounds();
_root.soundoff = false;
gotoAndStop (2);
nextFrame();
}
Symbol 1112 Button
on (release) {
_root.soundoff = true;
prevFrame();
}
Symbol 1113 MovieClip Frame 1
stop();
if (_global.snd.getVolume() == 0) {
nextFrame();
}
Symbol 1118 Button
on (release) {
stopAllSounds();
_root.soundoff = false;
gotoAndStop (2);
nextFrame();
}
Symbol 1119 MovieClip Frame 1
stop();
if (_global.snd.getVolume() == 0) {
nextFrame();
}
Symbol 1222 Button
on (release) {
stopAllSounds();
_root.soundoff = false;
gotoAndStop (2);
nextFrame();
}
Symbol 1223 Button
on (release) {
_root.soundoff = true;
prevFrame();
}
Symbol 1224 MovieClip Frame 1
stop();
if (_global.snd.getVolume() == 0) {
nextFrame();
}
Symbol 1226 MovieClip Frame 1
stop();
Symbol 1243 Button
on (rollOver) {
_root.a6.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a6.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (release) {
if (_root.soundoff == true) {
_root.btndown.start();
}
_root.ptimers = getTimer();
trace(_root.ptimers);
_root.pausebut = 1;
gotoAndStop (2);
_root.pause_mc.gotoAndPlay(2);
_root.pausegame = false;
}
Symbol 1245 Button
on (rollOver) {
_root.a6.mc.gotoAndPlay(2);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (rollOut) {
_root.a6.mc.gotoAndPlay(11);
if (_root.soundoff == true) {
_root.btnup.start();
}
}
on (release) {
if (_root.soundoff == true) {
_root.btndown.start();
}
_root.ptimers1 = getTimer();
_root.pausebut = 0;
_root.ptimersmain = _root.ptimers1 - _root.ptimers;
_root.ptimersmains = _root.ptimersmains + _root.ptimersmain;
_root.tims.gotoAndPlay(2);
gotoAndStop (1);
_root.pause_mc.gotoAndPlay(26);
}
Symbol 1247 MovieClip Frame 1
stop();
_root.pausebtn = 0;
Symbol 1247 MovieClip Frame 2
stop();
_root.pausebtn = 1;
Symbol 1258 MovieClip Frame 1
stop();
Symbol 1258 MovieClip Frame 25
stop();
Symbol 1258 MovieClip Frame 45
stop();
Symbol 1261 Button
on (release) {
stopAllSounds();
_root.soundoff = false;
gotoAndStop (2);
nextFrame();
}
Symbol 1262 Button
on (release) {
_root.soundoff = true;
_root.bgsound.start(0, 99999);
prevFrame();
}
Symbol 1263 MovieClip Frame 1
stop();
if (_global.snd.getVolume() == 0) {
nextFrame();
}
Symbol 1443 Button
on (release) {
getURL ("http://www.onlinerealgames.com/play/MapMaking.aspx", "_blank");
}
Symbol 1449 Button
on (release) {
getURL ("http://www.onlinerealgames.com/play/DiamondValley.aspx", "_blank");
}
Symbol 1455 Button
on (release) {
url = "http://www.onlinerealgames.com/play/SuperFishing.aspx";
getURL (url, "_blank");
}
Symbol 1458 Button
on (release) {
url = "http://www.onlinerealgames.com/play/DoomRider.aspx";
getURL (url, "_blank");
}
Symbol 1461 Button
on (release) {
url = "http://www.onlinerealgames.com/play/MiceFun.aspx";
getURL (url, "_blank");
}
Symbol 1464 Button
on (release) {
stopAllSounds();
_root.soundoff = false;
gotoAndStop (2);
nextFrame();
}
Symbol 1465 Button
on (release) {
_root.soundoff = true;
stopAllSounds();
prevFrame();
}
Symbol 1466 MovieClip Frame 1
stop();
if (_global.snd.getVolume() == 0) {
nextFrame();
}
Symbol 1471 Button
on (release) {
getURL ("http://www.onlinerealgames.com/", "_blank");
}