Frame 1
stop();
Stage.showMenu = false;
_quality = "HIGH";
_global.gameQuality = "HIGH";
detailToggle_mc._visible = false;
soundToggle_mc._visible = true;
soundToggle_mc.onRelease = function () {
if (openingSound.getVolume() > 0) {
soundToggle_mc.gotoAndStop("down");
openingSound.setVolume(0);
} else {
soundToggle_mc.gotoAndStop("up");
openingSound.setVolume(100);
}
};
openingSound = new Sound(this);
openingSound.attachSound("opening");
openingSound.start();
chooseYourVessel_mc._alpha = 0;
chooseYourVessel_mc.onRelease = function () {
gotoAndPlay ("intro");
};
chooseYourVessel_mc.onEnterFrame = function () {
if (Key.isDown(83)) {
gotoAndPlay ("intro");
}
};
chooseYourVessel_mc.onRollOver = function () {
this._alpha = 60;
};
chooseYourVessel_mc.onRollOut = function () {
this._alpha = 0;
};
Frame 2
stop();
_quality = "HIGH";
detailToggle_mc._visible = false;
soundToggle_mc._visible = true;
soundToggle_mc.onRelease = function () {
if (openingSound.getVolume() > 0) {
soundToggle_mc.gotoAndStop("down");
openingSound.setVolume(0);
} else {
soundToggle_mc.gotoAndStop("up");
openingSound.setVolume(100);
}
};
btnNext_mc.onRelease = function () {
gotoAndPlay ("selectBoat");
};
btnNext_mc.onEnterFrame = function () {
if (Key.isDown(78)) {
gotoAndPlay ("selectBoat");
}
};
Frame 3
function goToRaceStart() {
_global.shipClass = shipChoice;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_global.leg = "london";
_global.nextCity = "lisbon";
_global.nextDock = "lisbonDock_mc";
_global.shipRotation = 0;
gotoAndPlay ("start");
}
function goToPracticeStart() {
gotoAndPlay ("slideShow0");
_global.shipClass = shipChoice;
_global.shipRotation = 0;
}
stop();
_quality = "HIGH";
detailToggle_mc._visible = false;
soundToggle_mc._visible = false;
_global.city = new Array();
_global.totalPoints = 0;
nextPortArrow_mc.removeMovieClip();
endA = 237;
endB = 150;
endC = 71;
endY = endB;
shipChoice = "B";
arrowDown = false;
openingSound.stop();
slider_mc.onEnterFrame = function () {
if ((_xmouse < 120) && (_xmouse > 20)) {
if (_ymouse < endC) {
} else if (_ymouse < (endC + 70)) {
endY = endC;
shipChoice = "C";
} else if (_ymouse < (endB + 70)) {
endY = endB;
shipChoice = "B";
} else if (_ymouse < (endA + 70)) {
endY = endA;
shipChoice = "A";
}
}
if (Key.isDown(49)) {
endY = endC;
shipChoice = "C";
} else if (Key.isDown(50)) {
endY = endB;
shipChoice = "B";
} else if (Key.isDown(51)) {
endY = endA;
shipChoice = "A";
}
if (Key.isDown(38) && (!arrowDown)) {
arrowDown = true;
if (shipChoice == "A") {
endY = endB;
shipChoice = "B";
} else {
endY = endC;
shipChoice = "C";
}
} else if (Key.isDown(40) && (!arrowDown)) {
arrowDown = true;
if (shipChoice == "C") {
endY = endB;
shipChoice = "B";
} else {
endY = endA;
shipChoice = "A";
}
} else if ((!Key.isDown(38)) && (!Key.isDown(40))) {
arrowDown = false;
}
shipDescriptions_mc.gotoAndPlay(shipChoice);
if (shipChoice == "A") {
slider_mc.selectArrowUp_mc._visible = true;
slider_mc.selectArrowDown_mc._visible = false;
} else if (shipChoice == "B") {
slider_mc.selectArrowUp_mc._visible = true;
slider_mc.selectArrowDown_mc._visible = true;
} else if (shipChoice == "C") {
slider_mc.selectArrowUp_mc._visible = false;
slider_mc.selectArrowDown_mc._visible = true;
}
if (Key.isDown(32) || (Key.isDown(82))) {
goToRaceStart();
}
this._y = this._y + ((endY - this._y) / 5);
};
textBGMask_mc.onEnterFrame = function () {
this._y = this._y + (((163 + endY) - this._y) / 5);
};
btnRace_mc.onRelease = function () {
goToRaceStart();
};
btnPractice_mc.onRelease = function () {
goToPracticeStart();
};
Frame 4
stop();
_quality = "HIGH";
detailToggle_mc._visible = false;
soundToggle_mc._visible = false;
btnNext_mc.onRelease = function () {
gotoAndPlay ("slideShow1");
};
btnBack_mc.onRelease = function () {
gotoAndPlay ("selectBoat");
};
Frame 5
function restartLeg() {
if (Key.isDown(32)) {
gotoAndStop ("restartSlideShow1");
}
}
function moveBG(target, bg) {
bg._x = bg._x - ((Math.cos(target.radians) * target.speed) + (Math.cos(target.momentumRad) * target.momentumSpeed));
bg._y = bg._y - ((Math.sin(target.radians) * target.speed) + (Math.sin(target.momentumRad) * target.momentumSpeed));
}
function moveClouds(target, bg) {
bg._x = bg._x - (((Math.cos(target.radians) * target.speed) + (Math.cos(target.momentumRad) * target.momentumSpeed)) * 2);
bg._y = bg._y - (((Math.sin(target.radians) * target.speed) + (Math.sin(target.momentumRad) * target.momentumSpeed)) * 2);
}
function turnIt(target) {
if (Key.isDown(37)) {
target._rotation = target._rotation - target.turning;
target.degrees = target.degrees - target.turning;
if (target.degrees < 0) {
target.degrees = target.degrees + 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
if (Key.isDown(39)) {
target._rotation = target._rotation + target.turning;
target.degrees = target.degrees + target.turning;
if (target.degrees > 360) {
target.degrees = target.degrees - 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
if (target.hitStorm) {
target._rotation = target._rotation + (target.turning * 2);
target.degrees = target.degrees + (target.turning * 2);
if (target.degrees > 360) {
target.degrees = target.degrees - 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
target.radians = ((target._rotation + 30) * Math.PI) / 180;
}
function changeSpeed(target) {
target.momentumSpeed = target.momentumSpeed * 0.97;
if (target.momentumSpeed < 0.05) {
target.momentumSpeed = 0;
}
if (Key.isDown(38) && (target.speed < target.maxSpeed)) {
target.speed = target.speed + target.acceleration;
if (target.speed > target.maxSpeed) {
target.speed = target.maxSpeed;
}
if (target.momentumSpeed < target.speed) {
target.momentumSpeed = target.speed;
}
target.momentumRad = target.radians;
} else {
target.speed = target.speed * 0.96;
}
if (Key.isDown(40) && (target.speed > 0)) {
target.speed = target.speed - target.braking;
if (target.speed < 0.05) {
target.speed = 0;
}
}
if (target.speed < 0.05) {
target.speed = 0;
}
if (target.hitLand) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "4";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 4) {
timer.seconds = timer.seconds - 4;
} else {
timer.seconds = 0;
}
}
} else if (target.hitIceBerg) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "3";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 3) {
timer.seconds = timer.seconds - 3;
} else {
timer.seconds = 0;
}
}
} else if (target.hitRock) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "2";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 2) {
timer.seconds = timer.seconds - 2;
} else {
timer.seconds = 0;
}
}
} else if (target.hitWhale) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "3";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 3) {
timer.seconds = timer.seconds - 3;
} else {
timer.seconds = 0;
}
}
}
}
stop();
_quality = "HIGH";
detailToggle_mc._visible = false;
soundToggle_mc._visible = false;
tutorialShip_mc._rotation = _global.shipRotation;
switch (_global.shipClass) {
case "A" :
tutorialShipLayer_mc.attachMovie("shipA", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 6;
tutorialShip_mc.acceleration = 0.1;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
break;
case "B" :
tutorialShipLayer_mc.attachMovie("shipB", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 5.5;
tutorialShip_mc.acceleration = 0.2;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
break;
case "C" :
tutorialShipLayer_mc.attachMovie("shipC", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 5;
tutorialShip_mc.acceleration = 0.5;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
}
tutorialShip_mc.degrees = _global.shipRotation;
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(tutorialShip_mc.degrees / 12));
tutorialShip_mc.momentumRad = tutorialShip_mc.radians;
tutorialShip_mc.momentumSpeed = 0;
tutorialShip_mc.speed = 0;
tutorialShip_mc.waterTrail = 0;
tutorialShip_mc.orangeBuoys = 0;
tutorialShip_mc.hitLand = false;
tutorialShip_mc.hitIceBerg = false;
tutorialShip_mc.hitRock = false;
tutorialShip_mc.hitStorm = false;
tutorialShip_mc.finished = false;
tutorialShip_mc.onEnterFrame = function () {
moveBG(this, tutorialMap_mc);
changeSpeed(this);
turnIt(this);
restartLeg();
};
btnNext_mc.onRelease = function () {
gotoAndPlay ("slideShow2");
};
btnBack_mc.onRelease = function () {
gotoAndPlay ("slideShow0");
};
Frame 6
gotoAndPlay ("slideShow1");
_quality = "HIGH";
Frame 7
function restartLeg() {
if (Key.isDown(32)) {
gotoAndStop ("restartSlideShow2");
}
}
function moveBG(target, bg) {
bg._x = bg._x - ((Math.cos(target.radians) * target.speed) + (Math.cos(target.momentumRad) * target.momentumSpeed));
bg._y = bg._y - ((Math.sin(target.radians) * target.speed) + (Math.sin(target.momentumRad) * target.momentumSpeed));
}
function moveClouds(target, bg) {
bg._x = bg._x - (((Math.cos(target.radians) * target.speed) + (Math.cos(target.momentumRad) * target.momentumSpeed)) * 2);
bg._y = bg._y - (((Math.sin(target.radians) * target.speed) + (Math.sin(target.momentumRad) * target.momentumSpeed)) * 2);
}
function hitIceBergs(target) {
if (tutorialMap_mc.tutorialIceBergs_mc.hitTest(target._x, target._y, true)) {
target.hitIceBerg = true;
} else {
target.hitIceBerg = false;
}
}
function hitRocks(target) {
if (tutorialMap_mc.tutorialRocks_mc.hitTest(target._x, target._y, true)) {
target.hitRock = true;
} else {
target.hitRock = false;
}
}
function hitStorms(target) {
if (tutorialStormLayer_mc.hitTest(target._x, target._y, true)) {
target.hitStorm = true;
} else {
target.hitStorm = false;
}
}
function hitWhales(target) {
if (tutorialMap_mc.tutorialWhales_mc.hitTest(target._x, target._y, true)) {
target.hitWhale = true;
} else {
target.hitWhale = false;
}
}
function turnIt(target) {
if (Key.isDown(37)) {
target._rotation = target._rotation - target.turning;
target.degrees = target.degrees - target.turning;
if (target.degrees < 0) {
target.degrees = target.degrees + 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
if (Key.isDown(39)) {
target._rotation = target._rotation + target.turning;
target.degrees = target.degrees + target.turning;
if (target.degrees > 360) {
target.degrees = target.degrees - 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
if (target.hitStorm) {
target._rotation = target._rotation + (target.turning * 2);
target.degrees = target.degrees + (target.turning * 2);
if (target.degrees > 360) {
target.degrees = target.degrees - 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
target.radians = ((target._rotation + 30) * Math.PI) / 180;
}
function changeSpeed(target) {
target.momentumSpeed = target.momentumSpeed * 0.97;
if (target.momentumSpeed < 0.05) {
target.momentumSpeed = 0;
}
if (Key.isDown(38) && (target.speed < target.maxSpeed)) {
target.speed = target.speed + target.acceleration;
if (target.speed > target.maxSpeed) {
target.speed = target.maxSpeed;
}
if (target.momentumSpeed < target.speed) {
target.momentumSpeed = target.speed;
}
target.momentumRad = target.radians;
} else {
target.speed = target.speed * 0.96;
}
if (Key.isDown(40) && (target.speed > 0)) {
target.speed = target.speed - target.braking;
if (target.speed < 0.05) {
target.speed = 0;
}
}
if (target.speed < 0.05) {
target.speed = 0;
}
if (target.hitLand) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "4";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 4) {
timer.seconds = timer.seconds - 4;
} else {
timer.seconds = 0;
}
}
} else if (target.hitIceBerg) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "3";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 3) {
timer.seconds = timer.seconds - 3;
} else {
timer.seconds = 0;
}
}
} else if (target.hitRock) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "2";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 2) {
timer.seconds = timer.seconds - 2;
} else {
timer.seconds = 0;
}
}
} else if (target.hitWhale) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "3";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 3) {
timer.seconds = timer.seconds - 3;
} else {
timer.seconds = 0;
}
}
}
}
stop();
_quality = "HIGH";
detailToggle_mc._visible = false;
soundToggle_mc._visible = false;
tutorialShip_mc._rotation = _global.shipRotation;
switch (_global.shipClass) {
case "A" :
tutorialShipLayer_mc.attachMovie("shipA", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 6;
tutorialShip_mc.acceleration = 0.1;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
break;
case "B" :
tutorialShipLayer_mc.attachMovie("shipB", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 5.5;
tutorialShip_mc.acceleration = 0.2;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
break;
case "C" :
tutorialShipLayer_mc.attachMovie("shipC", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 5;
tutorialShip_mc.acceleration = 0.5;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
}
tutorialShip_mc.degrees = _global.shipRotation;
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(tutorialShip_mc.degrees / 12));
tutorialShip_mc.momentumRad = tutorialShip_mc.radians;
tutorialShip_mc.momentumSpeed = 0;
tutorialShip_mc.speed = 0;
tutorialShip_mc.waterTrail = 0;
tutorialShip_mc.orangeBuoys = 0;
tutorialShip_mc.hitLand = false;
tutorialShip_mc.hitIceBerg = false;
tutorialShip_mc.hitRock = false;
tutorialShip_mc.hitStorm = false;
tutorialShip_mc.finished = false;
tutorialShip_mc.onEnterFrame = function () {
moveBG(this, tutorialMap_mc);
changeSpeed(this);
turnIt(this);
hitIceBergs(this);
hitRocks(this);
hitStorms(this);
hitWhales(this);
restartLeg();
};
btnNext_mc.onRelease = function () {
gotoAndPlay ("slideShow3");
};
btnBack_mc.onRelease = function () {
gotoAndPlay ("slideShow1");
};
function addStorm(x, y, num, startFrame) {
tutorialStormLayer_mc.attachMovie(("storm0" + num) + "", ("storm" + numStorms) + "_mc", numStorms);
tutorialStormLayer_mc[("storm" + numStorms) + "_mc"]._x = x;
tutorialStormLayer_mc[("storm" + numStorms) + "_mc"]._y = y;
tutorialStormLayer_mc[("storm" + numStorms) + "_mc"].gotoAndPlay(startFrame);
numStorms = numStorms + 1;
}
tutorialStormLayer_mc.onEnterFrame = function () {
tutorialStormLayer_mc._x = tutorialMap_mc._x;
tutorialStormLayer_mc._y = tutorialMap_mc._y;
};
numStorms = 0;
addStorm(50, 100, 1, 1);
Frame 8
gotoAndPlay ("slideShow2");
Frame 9
function restartLeg() {
if (Key.isDown(32)) {
gotoAndStop ("restartSlideShow3");
}
}
function moveBG(target, bg) {
bg._x = bg._x - ((Math.cos(target.radians) * target.speed) + (Math.cos(target.momentumRad) * target.momentumSpeed));
bg._y = bg._y - ((Math.sin(target.radians) * target.speed) + (Math.sin(target.momentumRad) * target.momentumSpeed));
}
function moveClouds(target, bg) {
bg._x = bg._x - (((Math.cos(target.radians) * target.speed) + (Math.cos(target.momentumRad) * target.momentumSpeed)) * 2);
bg._y = bg._y - (((Math.sin(target.radians) * target.speed) + (Math.sin(target.momentumRad) * target.momentumSpeed)) * 2);
}
function hitDock(target, dock) {
if ((tutorialMap_mc.tutorialDocks_mc.hitTest(target._x, target._y, true) && (target.speed < 0.5)) && (target.momentumSpeed < 0.5)) {
target.finished = true;
grats_txt.text = "Congratulations, you've completed the tutorial. You're now rady to sail!";
}
}
function turnIt(target) {
if (Key.isDown(37)) {
target._rotation = target._rotation - target.turning;
target.degrees = target.degrees - target.turning;
if (target.degrees < 0) {
target.degrees = target.degrees + 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
if (Key.isDown(39)) {
target._rotation = target._rotation + target.turning;
target.degrees = target.degrees + target.turning;
if (target.degrees > 360) {
target.degrees = target.degrees - 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
if (target.hitStorm) {
target._rotation = target._rotation + (target.turning * 2);
target.degrees = target.degrees + (target.turning * 2);
if (target.degrees > 360) {
target.degrees = target.degrees - 360;
}
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
target.radians = ((target._rotation + 30) * Math.PI) / 180;
}
function changeSpeed(target) {
target.momentumSpeed = target.momentumSpeed * 0.97;
if (target.momentumSpeed < 0.05) {
target.momentumSpeed = 0;
}
if (Key.isDown(38) && (target.speed < target.maxSpeed)) {
target.speed = target.speed + target.acceleration;
if (target.speed > target.maxSpeed) {
target.speed = target.maxSpeed;
}
if (target.momentumSpeed < target.speed) {
target.momentumSpeed = target.speed;
}
target.momentumRad = target.radians;
} else {
target.speed = target.speed * 0.96;
}
if (Key.isDown(40) && (target.speed > 0)) {
target.speed = target.speed - target.braking;
if (target.speed < 0.05) {
target.speed = 0;
}
}
if (target.speed < 0.05) {
target.speed = 0;
}
if (target.hitLand) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "4";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 4) {
timer.seconds = timer.seconds - 4;
} else {
timer.seconds = 0;
}
}
} else if (target.hitIceBerg) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "3";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 3) {
timer.seconds = timer.seconds - 3;
} else {
timer.seconds = 0;
}
}
} else if (target.hitRock) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "2";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 2) {
timer.seconds = timer.seconds - 2;
} else {
timer.seconds = 0;
}
}
} else if (target.hitWhale) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "3";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 3) {
timer.seconds = timer.seconds - 3;
} else {
timer.seconds = 0;
}
}
}
}
stop();
_quality = "HIGH";
detailToggle_mc._visible = false;
soundToggle_mc._visible = false;
tutorialShip_mc._rotation = _global.shipRotation;
switch (_global.shipClass) {
case "A" :
tutorialShipLayer_mc.attachMovie("shipA", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 6;
tutorialShip_mc.acceleration = 0.1;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
break;
case "B" :
tutorialShipLayer_mc.attachMovie("shipB", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 5.5;
tutorialShip_mc.acceleration = 0.2;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
break;
case "C" :
tutorialShipLayer_mc.attachMovie("shipC", "ship3d_mc", 1);
tutorialShipLayer_mc.ship3d_mc._x = 231;
tutorialShipLayer_mc.ship3d_mc._y = 178;
tutorialShip_mc.radians = ((tutorialShip_mc._rotation + 30) * Math.PI) / 180;
tutorialShip_mc.maxSpeed = 5;
tutorialShip_mc.acceleration = 0.5;
tutorialShip_mc.braking = 2;
tutorialShip_mc.turning = 12;
}
tutorialShip_mc.degrees = _global.shipRotation;
tutorialShipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(tutorialShip_mc.degrees / 12));
tutorialShip_mc.momentumRad = tutorialShip_mc.radians;
tutorialShip_mc.momentumSpeed = 0;
tutorialShip_mc.speed = 0;
tutorialShip_mc.waterTrail = 0;
tutorialShip_mc.orangeBuoys = 0;
tutorialShip_mc.hitLand = false;
tutorialShip_mc.hitIceBerg = false;
tutorialShip_mc.hitRock = false;
tutorialShip_mc.hitStorm = false;
tutorialShip_mc.finished = false;
tutorialShip_mc.onEnterFrame = function () {
if (!tutorialShip_mc.finished) {
moveBG(this, tutorialMap_mc);
changeSpeed(this);
turnIt(this);
hitDock(this, _global.nextDock);
restartLeg();
} else {
restartLeg();
}
};
tutorialFadeToBlack_mc.onEnterFrame = function () {
if (tutorialShip_mc.finished && (this._alpha < 65)) {
this._alpha = this._alpha + 5;
}
if (tutorialShip_mc.finished && (gratsText_mc._alpha < 100)) {
gratsText_mc._alpha = gratsText_mc._alpha + 10;
}
};
btnNext_mc.onRelease = function () {
gotoAndPlay ("selectBoat");
};
btnBack_mc.onRelease = function () {
gotoAndPlay ("slideShow2");
};
Frame 10
gotoAndPlay ("slideShow3");
Frame 11
function toggleQuality() {
if (Key.isDown(33)) {
_global.gameQuality = "HIGH";
_quality = "HIGH";
detailToggle_mc.gotoAndStop("up");
detailText_mc.gotoAndPlay("high");
} else if (Key.isDown(34)) {
_global.gameQuality = "LOW";
_quality = "LOW";
detailToggle_mc.gotoAndStop("down");
detailText_mc.gotoAndPlay("low");
}
}
function cheatSpeed() {
if (!ship_mc.oldMaxSpeed) {
ship_mc.oldMaxSpeed = ship_mc.maxSpeed;
}
if (Key.isDown(80)) {
ship_mc.maxSpeed = 20;
} else {
ship_mc.maxSpeed = ship_mc.oldMaxSpeed;
}
}
function fadeOut(target) {
if (target._alpha < 42) {
target._alpha = target._alpha + 5;
}
}
function setFlags() {
if (_global.city.lisbon) {
flagLisbon_mc.gotoAndStop("color");
flagLisbon_mc._alpha = 100;
}
if (_global.city.alexandria) {
flagAlexandria_mc.gotoAndStop("color");
flagAlexandria_mc._alpha = 100;
}
if (_global.city.dakar) {
flagDakar_mc.gotoAndStop("color");
flagDakar_mc._alpha = 100;
}
if (_global.city.rioDeJaneiro) {
flagRioDeJaneiro_mc.gotoAndStop("color");
flagRioDeJaneiro_mc._alpha = 100;
}
if (_global.city.caracas) {
flagCaracas_mc.gotoAndStop("color");
flagCaracas_mc._alpha = 100;
}
if (_global.city.newOrleans) {
flagNewOrleans_mc.gotoAndStop("color");
flagNewOrleans_mc._alpha = 100;
}
if (_global.city.halifax) {
flagHalifax_mc.gotoAndStop("color");
flagHalifax_mc._alpha = 100;
}
}
function createWaterTrail(target, x, y) {
i = target.waterTrail;
if (((i % 2) && (target.speed > 1.5)) && (Key.isDown(38))) {
map_mc.waterTrails_mc.attachMovie("waterTrail", ("waterTrail" + i) + "_mc", 300 + i);
map_mc.waterTrails_mc[("waterTrail" + i) + "_mc"]._x = (map_mc._x * -1) + x;
map_mc.waterTrails_mc[("waterTrail" + i) + "_mc"]._y = (map_mc._y * -1) + y;
map_mc.waterTrails_mc[("waterTrail" + i) + "_mc"]._rotation = target._rotation + 30;
}
if (target.waterTrail < 14) {
target.waterTrail = target.waterTrail + 1;
} else {
target.waterTrail = 0;
}
}
function updateTimer() {
if ((!ship_mc.finished) && (!timer.outOfTime)) {
if (timer.milliseconds == 0) {
timer.milliseconds = 9;
timer.seconds = timer.seconds - 1;
} else {
timer.milliseconds = timer.milliseconds - 1;
}
if ((timer.seconds <= 0) && (timer.milliseconds <= 0)) {
clearInterval(timerInterval);
timer.seconds = 0;
timer.milliseconds = 0;
timer.outOfTime = true;
outOfTime_txt.text = "You're out of time.\nPress \"spacebar\" to try again.";
}
timer_txt.text = (timer.seconds + ".") + timer.milliseconds;
}
}
function restartLeg() {
if (Key.isDown(32)) {
clearInterval(timerInterval);
movingSound.stop();
_global.city[_global.nextCity] = false;
gotoAndPlay ("restart");
}
}
function restartRace() {
if (Key.isDown(36)) {
clearInterval(timerInterval);
movingSound.stop();
gotoAndPlay ("selectBoat");
}
}
function startNextLeg() {
if (Key.isDown(35) || (Key.isDown(13))) {
clearInterval(timerInterval);
movingSound.stop();
switch (_global.leg) {
case "london" :
_global.londonSeconds = timer.seconds;
_global.londonMilliseconds = timer.milliseconds;
_global.leg = "lisbon";
_global.nextCity = "alexandria";
_global.nextDock = "alexandriaDock_mc";
_global.shipRotation = 45;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
gotoAndPlay ("restart");
break;
case "lisbon" :
_global.lisbonSeconds = timer.seconds;
_global.lisbonMilliseconds = timer.milliseconds;
_global.leg = "alexandria";
_global.nextCity = "dakar";
_global.nextDock = "dakarDock_mc";
_global.shipRotation = 180;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
gotoAndPlay ("restart");
break;
case "alexandria" :
_global.alexandriaSeconds = timer.seconds;
_global.alexandriaMilliseconds = timer.milliseconds;
_global.leg = "dakar";
_global.nextCity = "rioDeJaneiro";
_global.nextDock = "rioDeJaneiroDock_mc";
_global.shipRotation = 90;
_global.startSeconds = 14;
_global.startMilliseconds = 0;
gotoAndPlay ("restart");
break;
case "dakar" :
_global.dakarSeconds = timer.seconds;
_global.dakarMilliseconds = timer.milliseconds;
_global.leg = "rioDeJaneiro";
_global.nextCity = "caracas";
_global.nextDock = "caracasDock_mc";
_global.shipRotation = 330;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
gotoAndPlay ("restart");
break;
case "rioDeJaneiro" :
_global.rioDeJaneiroSeconds = timer.seconds;
_global.rioDeJaneiroMilliseconds = timer.milliseconds;
_global.leg = "caracas";
_global.nextCity = "newOrleans";
_global.nextDock = "newOrleansDock_mc";
_global.shipRotation = 195;
_global.startSeconds = 25;
_global.startMilliseconds = 0;
gotoAndPlay ("restart");
break;
case "caracas" :
_global.caracasSeconds = timer.seconds;
_global.caracasMilliseconds = timer.milliseconds;
_global.leg = "newOrleans";
_global.nextCity = "halifax";
_global.nextDock = "halifaxDock_mc";
_global.shipRotation = 340;
_global.startSeconds = 20;
_global.startMilliseconds = 0;
gotoAndPlay ("restart");
break;
case "newOrleans" :
_global.newOrleansSeconds = timer.seconds;
_global.newOrleansMilliseconds = timer.milliseconds;
_global.leg = "finish";
gotoAndPlay ("finish");
}
}
}
function hitLand(target) {
if (map_mc.continents_mc.hitTest(target._x, target._y, true)) {
target.hitLand = true;
} else {
target.hitLand = false;
}
}
function hitIceBergs(target) {
if (map_mc.iceBergs_mc.hitTest(target._x, target._y, true)) {
target.hitIceBerg = true;
} else {
target.hitIceBerg = false;
}
}
function hitRocks(target) {
if (map_mc.rocks_mc.hitTest(target._x, target._y, true)) {
target.hitRock = true;
} else {
target.hitRock = false;
}
}
function hitStorms(target) {
if (stormLayer_mc.hitTest(target._x, target._y, true)) {
target.hitStorm = true;
} else {
target.hitStorm = false;
}
}
function hitWhales(target) {
if (map_mc.whales_mc.hitTest(target._x, target._y, true)) {
target.hitWhale = true;
} else {
target.hitWhale = false;
}
}
function hitDock(target, dock) {
if ((map_mc.docks_mc[_global.nextDock].hitTest(target._x, target._y, true) && (target.speed < 0.5)) && (target.momentumSpeed < 0.5)) {
if (!target.city[_global.nextCity]) {
clearInterval(timerInterval);
movingSound.stop();
welcomeText_mc.gotoAndPlay(_global.nextCity);
cheeringSound = new Sound(this);
cheeringSound.attachSound("cheering");
cheeringSound.start();
target.finished = true;
_global.city[_global.nextCity] = true;
setFlags();
nextPortArrow_mc.removeMovieClip();
_quality = "HIGH";
}
}
}
function moveBG(target, bg) {
bg._x = bg._x - ((Math.cos(target.radians) * target.speed) + (Math.cos(target.momentumRad) * target.momentumSpeed));
bg._y = bg._y - ((Math.sin(target.radians) * target.speed) + (Math.sin(target.momentumRad) * target.momentumSpeed));
}
function moveClouds(target, bg) {
bg._x = bg._x - (((Math.cos(target.radians) * target.speed) + (Math.cos(target.momentumRad) * target.momentumSpeed)) * 2);
bg._y = bg._y - (((Math.sin(target.radians) * target.speed) + (Math.sin(target.momentumRad) * target.momentumSpeed)) * 2);
}
function turnIt(target) {
if (Key.isDown(37)) {
target._rotation = target._rotation - target.turning;
target.degrees = target.degrees - target.turning;
if (target.degrees < 0) {
target.degrees = target.degrees + 360;
}
shipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
if (Key.isDown(39)) {
target._rotation = target._rotation + target.turning;
target.degrees = target.degrees + target.turning;
if (target.degrees > 360) {
target.degrees = target.degrees - 360;
}
shipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
if (target.hitStorm) {
if (!_global.thunderPlaying) {
thunderSound.start();
_global.thunderPlaying = true;
}
target._rotation = target._rotation + (target.turning * 2);
target.degrees = target.degrees + (target.turning * 2);
if (target.degrees > 360) {
target.degrees = target.degrees - 360;
}
shipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(target.degrees / 12));
}
target.radians = ((target._rotation + 30) * Math.PI) / 180;
}
function changeSpeed(target) {
target.momentumSpeed = target.momentumSpeed * 0.97;
if (target.momentumSpeed < 0.05) {
target.momentumSpeed = 0;
}
if (Key.isDown(38) && (target.speed < target.maxSpeed)) {
target.speed = target.speed + target.acceleration;
if (target.speed > target.maxSpeed) {
target.speed = target.maxSpeed;
}
if (target.momentumSpeed < target.speed) {
target.momentumSpeed = target.speed;
}
target.momentumRad = target.radians;
} else {
target.speed = target.speed * 0.96;
}
if (Key.isDown(40) && (target.speed > 0)) {
target.speed = target.speed - target.braking;
if (target.speed < 0.05) {
target.speed = 0;
}
}
if (target.speed < 0.05) {
target.speed = 0;
}
if (target.hitLand) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "4";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 4) {
timer.seconds = timer.seconds - 4;
} else {
timer.seconds = 0;
}
}
} else if (target.hitIceBerg) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "3";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 3) {
timer.seconds = timer.seconds - 3;
} else {
timer.seconds = 0;
}
}
} else if (target.hitRock) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "2";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 2) {
timer.seconds = timer.seconds - 2;
} else {
timer.seconds = 0;
}
}
} else if (target.hitWhale) {
target.speed = 0.5;
target.momentumSpeed = 0;
if (pointsMinus_mc._currentframe == 1) {
pointsMinus_mc.displayText = "3";
pointsMinus_mc.gotoAndPlay("start");
if (timer.seconds >= 3) {
timer.seconds = timer.seconds - 3;
} else {
timer.seconds = 0;
}
}
}
movingSound.setVolume((target.speed * 10) + (target.momentumSpeed * 10));
}
stop();
_quality = _global.gameQuality;
detailToggle_mc._visible = true;
soundToggle_mc._visible = true;
soundToggle_mc.onRelease = function () {
if (openingSound.getVolume() > 0) {
soundToggle_mc.gotoAndStop("down");
openingSound.setVolume(0);
} else {
soundToggle_mc.gotoAndStop("up");
openingSound.setVolume(100);
}
};
ship_mc._rotation = _global.shipRotation;
switch (_global.shipClass) {
case "A" :
shipLayer_mc.attachMovie("shipA", "ship3d_mc", 1);
shipLayer_mc.ship3d_mc._x = 231;
shipLayer_mc.ship3d_mc._y = 178;
ship_mc.radians = ((ship_mc._rotation + 30) * Math.PI) / 180;
ship_mc.maxSpeed = 6;
ship_mc.acceleration = 0.1;
ship_mc.braking = 2;
ship_mc.turning = 12;
break;
case "B" :
shipLayer_mc.attachMovie("shipB", "ship3d_mc", 1);
shipLayer_mc.ship3d_mc._x = 231;
shipLayer_mc.ship3d_mc._y = 178;
ship_mc.radians = ((ship_mc._rotation + 30) * Math.PI) / 180;
ship_mc.maxSpeed = 5.5;
ship_mc.acceleration = 0.2;
ship_mc.braking = 2;
ship_mc.turning = 12;
break;
case "C" :
shipLayer_mc.attachMovie("shipC", "ship3d_mc", 1);
shipLayer_mc.ship3d_mc._x = 231;
shipLayer_mc.ship3d_mc._y = 178;
ship_mc.radians = ((ship_mc._rotation + 30) * Math.PI) / 180;
ship_mc.maxSpeed = 5;
ship_mc.acceleration = 0.5;
ship_mc.braking = 2;
ship_mc.turning = 12;
}
ship_mc.degrees = _global.shipRotation;
shipLayer_mc.ship3d_mc.gotoAndStop(Math.floor(ship_mc.degrees / 12));
ship_mc.momentumRad = ship_mc.radians;
ship_mc.momentumSpeed = 0;
ship_mc.speed = 0;
ship_mc.waterTrail = 0;
ship_mc.orangeBuoys = 0;
ship_mc.hitLand = false;
ship_mc.hitIceBerg = false;
ship_mc.hitRock = false;
ship_mc.hitStorm = false;
ship_mc.finished = false;
ship_mc.onEnterFrame = function () {
if ((!ship_mc.finished) && (!timer.outOfTime)) {
toggleQuality();
moveBG(this, map_mc);
changeSpeed(this);
turnIt(this);
hitLand(this);
hitDock(this, _global.nextDock);
hitIceBergs(this);
hitRocks(this);
hitStorms(this);
hitWhales(this);
restartRace();
restartLeg();
} else if (ship_mc.finished) {
startNextLeg();
restartRace();
fadeOut(fadeToBlack_mc);
} else if (timer.outOfTime) {
restartLeg();
restartRace();
fadeOut(fadeToBlack_mc);
}
};
thunderSound = new Sound(this);
thunderSound.attachSound("thunder");
thunderSound.onSoundComplete = function () {
_global.thunderPlaying = false;
};
movingSound.stop();
movingSound = new Sound(ship_mc);
movingSound.attachSound("moving");
movingSound.start(0, 2);
detailToggle_mc.onRelease = function () {
if (_global.gameQuality == "LOW") {
_global.gameQuality = "HIGH";
_quality = "HIGH";
detailToggle_mc.gotoAndStop("up");
detailText_mc.gotoAndPlay("high");
} else if (_global.gameQuality == "HIGH") {
_global.gameQuality = "LOW";
_quality = "LOW";
detailToggle_mc.gotoAndStop("down");
detailText_mc.gotoAndPlay("low");
}
};
attachMovie("nextPortArrow", "nextPortArrow_mc", 8989);
nextPortArrow_mc._x = 218;
nextPortArrow_mc._y = 164;
nextPortArrow_mc.onEnterFrame = function () {
portY = (map_mc._y + map_mc.docks_mc[_global.nextDock]._y) - 164;
portX = (map_mc._x + map_mc.docks_mc[_global.nextDock]._x) - 218;
angle = Math.atan2(portY, portX);
angle = (angle * 180) / Math.PI;
nextPortArrow_mc._rotation = angle;
};
timer = new Object();
timer.outOfTime = false;
timer.seconds = _global.startSeconds;
timer.milliseconds = _global.startMilliseconds;
timerInterval = setInterval(updateTimer, 100);
cloudLayer_mc.attachMovie("clouds", "clouds_mc", 200);
cloudLayer_mc.clouds_mc._alpha = 80;
cloudLayer_mc.clouds_mc.onEnterFrame = function () {
if ((!ship_mc.finished) && (!timer.outOfTime)) {
moveClouds(ship_mc, this);
}
if (this._x > 1000) {
this._x = -1000;
}
if (this._x < -1000) {
this._x = 1000;
}
if (this._y > 700) {
this._y = -700;
}
if (this._y < -700) {
this._y = 700;
}
};
setFlags();
function addStorm(x, y, num, startFrame) {
stormLayer_mc.attachMovie(("storm0" + num) + "", ("storm" + numStorms) + "_mc", numStorms);
stormLayer_mc[("storm" + numStorms) + "_mc"]._x = x;
stormLayer_mc[("storm" + numStorms) + "_mc"]._y = y;
stormLayer_mc[("storm" + numStorms) + "_mc"].gotoAndPlay(startFrame);
numStorms = numStorms + 1;
}
stormLayer_mc.onEnterFrame = function () {
if ((!ship_mc.finished) && (!timer.outOfTime)) {
stormLayer_mc._x = map_mc._x;
stormLayer_mc._y = map_mc._y;
}
};
numStorms = 0;
switch (_global.leg) {
case "london" :
addStorm(-1900, -3250, 1, 1);
break;
case "lisbon" :
addStorm(600, -1437, 1, 1);
addStorm(2160, -900, 1, 1);
break;
case "alexandria" :
addStorm(1400, -1245, 1, 1);
addStorm(1365, -1185, 1, 6);
addStorm(1305, -1040, 1, 12);
addStorm(1350, -1000, 1, 15);
break;
case "dakar" :
break;
case "rioDeJaneiro" :
addStorm(-6996, 3463, 1, 1);
addStorm(-5925, 5502, 1, 1);
break;
case "caracas" :
addStorm(-12040, 362, 1, 1);
addStorm(-12280, 362, 1, 16);
addStorm(-12200, 312, 1, 22);
break;
case "newOrleans" :
addStorm(-12232, -360, 1, 1);
addStorm(-11710, -75, 1, 15);
addStorm(-10700, -100, 1, 1);
addStorm(-11231, 13, 1, 20);
break;
case "halifax" :
}
Frame 12
gotoAndPlay ("start");
Frame 13
function restartRace() {
clearInterval(timerInterval);
clearInterval(restartInterval);
gotoAndPlay ("selectBoat");
_global.totalSeconds = 0;
_global.totalMilliseconds = 0;
_global.totalPoints = 0;
}
stop();
_quality = "HIGH";
detailToggle_mc._visible = false;
soundToggle_mc._visible = true;
soundToggle_mc.onRelease = function () {
if (openingSound.getVolume() > 0) {
soundToggle_mc.gotoAndStop("down");
openingSound.setVolume(0);
} else {
soundToggle_mc.gotoAndStop("up");
openingSound.setVolume(100);
}
};
posting_txt._visible = false;
finishFadeToBlack_mc.onEnterFrame = function () {
if (this._alpha < 45) {
this._alpha = this._alpha + 1;
}
};
nextPortArrow_mc.removeMovieClip();
_global.totalMilliseconds = 0;
_global.totalSeconds = 0;
londonTime_txt.text = (_global.londonSeconds + ".") + _global.londonMilliseconds;
lisbonTime_txt.text = (_global.lisbonSeconds + ".") + _global.lisbonMilliseconds;
alexandriaTime_txt.text = (_global.alexandriaSeconds + ".") + _global.alexandriaMilliseconds;
dakarTime_txt.text = (_global.dakarSeconds + ".") + _global.dakarMilliseconds;
rioDeJaneiroTime_txt.text = (_global.rioDeJaneiroSeconds + ".") + _global.rioDeJaneiroMilliseconds;
caracasTime_txt.text = (_global.caracasSeconds + ".") + _global.caracasMilliseconds;
newOrleansTime_txt.text = (_global.newOrleansSeconds + ".") + _global.newOrleansMilliseconds;
_global.totalMilliseconds = _global.totalMilliseconds + _global.londonMilliseconds;
_global.totalMilliseconds = _global.totalMilliseconds + _global.lisbonMilliseconds;
_global.totalMilliseconds = _global.totalMilliseconds + _global.alexandriaMilliseconds;
_global.totalMilliseconds = _global.totalMilliseconds + _global.dakarMilliseconds;
_global.totalMilliseconds = _global.totalMilliseconds + _global.rioDeJaneiroMilliseconds;
_global.totalMilliseconds = _global.totalMilliseconds + _global.caracasMilliseconds;
_global.totalMilliseconds = _global.totalMilliseconds + _global.newOrleansMilliseconds;
_global.totalSeconds = _global.totalSeconds + Math.floor(_global.totalMilliseconds / 10);
_global.totalMilliseconds = _global.totalMilliseconds % 10;
_global.totalSeconds = _global.totalSeconds + _global.londonSeconds;
_global.totalSeconds = _global.totalSeconds + _global.lisbonSeconds;
_global.totalSeconds = _global.totalSeconds + _global.alexandriaSeconds;
_global.totalSeconds = _global.totalSeconds + _global.dakarSeconds;
_global.totalSeconds = _global.totalSeconds + _global.rioDeJaneiroSeconds;
_global.totalSeconds = _global.totalSeconds + _global.caracasSeconds;
_global.totalSeconds = _global.totalSeconds + _global.newOrleansSeconds;
totalTime_txt.text = _global.totalPoints;
totalTimeDS_txt.text = totalTime_txt.text;
paradeObject = new Object();
paradeObject._x = 140;
paradeObject._y = 130;
i = 0;
paradeLayer_mc.onEnterFrame = function () {
n = Math.floor(Math.random() * 100);
if (n < 20) {
n = "A";
} else if (n < 60) {
n = "B";
} else {
n = "C";
}
if ((i % 45) == 0) {
paradeLayer_mc.attachMovie("parade" + n, (paradeA + "i") + "_mc", i, paradeObject);
}
i++;
};
btnRestart_mc.onRelease = function () {
restartRace();
};
yourName = true;
playerName_txt.onSetFocus = function () {
if (yourName) {
playerName_txt.text = "";
yourName = false;
}
};
btnPost_mc.onRelease = function () {
btnPost_mc.enabled = false;
btnRestart_mc.enabled = false;
comm.action = "submitscore";
comm.clientid = 1;
comm.gameid = 130;
if (_global.totalPoints == 0) {
_global.totalPoints = 1;
}
comm.score = _global.totalPoints;
comm.level = "";
comm.username = playerName_txt.text;
comm.gamedata = "";
comm.loadVariables("/kids/games/submitscore.jsp", "POST");
restartInterval = setInterval(restartRace, 5000);
posting_txt._visible = true;
};
Symbol 26 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 27 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yscale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmlText");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 28 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local19 = parseInt(value);
if (!isNaN(_local19)) {
value = _local19;
}
var _local18 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local18)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.substring(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local15 = propName.substring(4, propName.length);
var _local17 = _local15.substring(0, 1);
_local17 = _local17.toLowerCase();
_local15 = _local17 + _local15.substring(1, _local15.length);
this.textStyle[_local15] = value;
this.invalidate("setSize");
} else {
for (var _local16 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local16]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local18;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 51 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 60 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 61 MovieClip [UpArrow] Frame 1
stop();
Symbol 61 MovieClip [UpArrow] Frame 2
stop();
Symbol 61 MovieClip [UpArrow] Frame 3
stop();
Symbol 68 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 75 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 80 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 81 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 89 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 97 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 105 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 106 MovieClip [DownArrow] Frame 1
stop();
Symbol 106 MovieClip [DownArrow] Frame 2
stop();
Symbol 106 MovieClip [DownArrow] Frame 3
stop();
Symbol 141 MovieClip [buoyP4] Frame 20
gotoAndPlay (1);
Symbol 141 MovieClip [buoyP4] Frame 21
stop();
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 143 MovieClip [buoyP3] Frame 20
gotoAndPlay (1);
Symbol 143 MovieClip [buoyP3] Frame 21
stop();
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 145 MovieClip [buoyP1] Frame 20
gotoAndPlay (1);
Symbol 145 MovieClip [buoyP1] Frame 21
stop();
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 147 MovieClip [buoyP2] Frame 20
gotoAndPlay (1);
Symbol 147 MovieClip [buoyP2] Frame 21
stop();
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 301 MovieClip [shipA] Frame 1
stop();
Symbol 301 MovieClip [shipA] Frame 2
stop();
Symbol 301 MovieClip [shipA] Frame 3
stop();
Symbol 301 MovieClip [shipA] Frame 4
stop();
Symbol 301 MovieClip [shipA] Frame 5
stop();
Symbol 301 MovieClip [shipA] Frame 6
stop();
Symbol 301 MovieClip [shipA] Frame 7
stop();
Symbol 301 MovieClip [shipA] Frame 8
stop();
Symbol 301 MovieClip [shipA] Frame 9
stop();
Symbol 301 MovieClip [shipA] Frame 10
stop();
Symbol 301 MovieClip [shipA] Frame 11
stop();
Symbol 301 MovieClip [shipA] Frame 12
stop();
Symbol 301 MovieClip [shipA] Frame 13
stop();
Symbol 301 MovieClip [shipA] Frame 14
stop();
Symbol 301 MovieClip [shipA] Frame 15
stop();
Symbol 301 MovieClip [shipA] Frame 16
stop();
Symbol 301 MovieClip [shipA] Frame 17
stop();
Symbol 301 MovieClip [shipA] Frame 18
stop();
Symbol 301 MovieClip [shipA] Frame 19
stop();
Symbol 301 MovieClip [shipA] Frame 20
stop();
Symbol 301 MovieClip [shipA] Frame 21
stop();
Symbol 301 MovieClip [shipA] Frame 22
stop();
Symbol 301 MovieClip [shipA] Frame 23
stop();
Symbol 301 MovieClip [shipA] Frame 24
stop();
Symbol 301 MovieClip [shipA] Frame 25
stop();
Symbol 301 MovieClip [shipA] Frame 26
stop();
Symbol 301 MovieClip [shipA] Frame 27
stop();
Symbol 301 MovieClip [shipA] Frame 28
stop();
Symbol 301 MovieClip [shipA] Frame 29
stop();
Symbol 301 MovieClip [shipA] Frame 30
stop();
Symbol 362 MovieClip [shipC] Frame 1
stop();
Symbol 362 MovieClip [shipC] Frame 2
stop();
Symbol 362 MovieClip [shipC] Frame 3
stop();
Symbol 362 MovieClip [shipC] Frame 4
stop();
Symbol 362 MovieClip [shipC] Frame 5
stop();
Symbol 362 MovieClip [shipC] Frame 6
stop();
Symbol 362 MovieClip [shipC] Frame 7
stop();
Symbol 362 MovieClip [shipC] Frame 8
stop();
Symbol 362 MovieClip [shipC] Frame 9
stop();
Symbol 362 MovieClip [shipC] Frame 10
stop();
Symbol 362 MovieClip [shipC] Frame 11
stop();
Symbol 362 MovieClip [shipC] Frame 12
stop();
Symbol 362 MovieClip [shipC] Frame 13
stop();
Symbol 362 MovieClip [shipC] Frame 14
stop();
Symbol 362 MovieClip [shipC] Frame 15
stop();
Symbol 362 MovieClip [shipC] Frame 16
stop();
Symbol 362 MovieClip [shipC] Frame 17
stop();
Symbol 362 MovieClip [shipC] Frame 18
stop();
Symbol 362 MovieClip [shipC] Frame 19
stop();
Symbol 362 MovieClip [shipC] Frame 20
stop();
Symbol 362 MovieClip [shipC] Frame 21
stop();
Symbol 362 MovieClip [shipC] Frame 22
stop();
Symbol 362 MovieClip [shipC] Frame 23
stop();
Symbol 362 MovieClip [shipC] Frame 24
stop();
Symbol 362 MovieClip [shipC] Frame 25
stop();
Symbol 362 MovieClip [shipC] Frame 26
stop();
Symbol 362 MovieClip [shipC] Frame 27
stop();
Symbol 362 MovieClip [shipC] Frame 28
stop();
Symbol 362 MovieClip [shipC] Frame 29
stop();
Symbol 362 MovieClip [shipC] Frame 30
stop();
Symbol 423 MovieClip [shipB] Frame 1
stop();
Symbol 423 MovieClip [shipB] Frame 2
stop();
Symbol 423 MovieClip [shipB] Frame 3
stop();
Symbol 423 MovieClip [shipB] Frame 4
stop();
Symbol 423 MovieClip [shipB] Frame 5
stop();
Symbol 423 MovieClip [shipB] Frame 6
stop();
Symbol 423 MovieClip [shipB] Frame 7
stop();
Symbol 423 MovieClip [shipB] Frame 8
stop();
Symbol 423 MovieClip [shipB] Frame 9
stop();
Symbol 423 MovieClip [shipB] Frame 10
stop();
Symbol 423 MovieClip [shipB] Frame 11
stop();
Symbol 423 MovieClip [shipB] Frame 12
stop();
Symbol 423 MovieClip [shipB] Frame 13
stop();
Symbol 423 MovieClip [shipB] Frame 14
stop();
Symbol 423 MovieClip [shipB] Frame 15
stop();
Symbol 423 MovieClip [shipB] Frame 16
stop();
Symbol 423 MovieClip [shipB] Frame 17
stop();
Symbol 423 MovieClip [shipB] Frame 18
stop();
Symbol 423 MovieClip [shipB] Frame 19
stop();
Symbol 423 MovieClip [shipB] Frame 20
stop();
Symbol 423 MovieClip [shipB] Frame 21
stop();
Symbol 423 MovieClip [shipB] Frame 22
stop();
Symbol 423 MovieClip [shipB] Frame 23
stop();
Symbol 423 MovieClip [shipB] Frame 24
stop();
Symbol 423 MovieClip [shipB] Frame 25
stop();
Symbol 423 MovieClip [shipB] Frame 26
stop();
Symbol 423 MovieClip [shipB] Frame 27
stop();
Symbol 423 MovieClip [shipB] Frame 28
stop();
Symbol 423 MovieClip [shipB] Frame 29
stop();
Symbol 423 MovieClip [shipB] Frame 30
stop();
Symbol 426 MovieClip [waterTrail] Frame 12
stop();
Symbol 434 MovieClip [pointsDisplay] Frame 1
stop();
Symbol 434 MovieClip [pointsDisplay] Frame 2
play();
innerPointsMinus_mc.points_txt.text = displayText;
Symbol 434 MovieClip [pointsDisplay] Frame 23
gotoAndStop ("blank");
Symbol 451 MovieClip [paradeA] Frame 300
this.removeMovieClip();
Symbol 452 MovieClip [paradeB] Frame 300
this.removeMovieClip();
Symbol 453 MovieClip [paradeC] Frame 300
this.removeMovieClip();
Symbol 461 MovieClip Frame 45
stop();
Symbol 467 MovieClip Frame 1
this.speed = 1;
this.onEnterFrame = function () {
if (this._x > 1000) {
this._x = -500 - Math.floor(Math.random() * 500);
this._y = 200 + Math.floor(Math.random() * 800);
this.speed = Math.random();
}
this._x = this._x + (1 + (2 * this.speed));
this._y = this._y - (0.5 + (1 * this.speed));
};
Symbol 469 MovieClip Frame 1
this.speed = 4;
this.onEnterFrame = function () {
if (this._x > 1000) {
this._x = -500 - Math.floor(Math.random() * 300);
this._y = 200 + Math.floor(Math.random() * 600);
this.speed = Math.random();
}
this._x = this._x + (2 + (2 * this.speed));
this._y = this._y - (1 + (1 * this.speed));
};
Symbol 471 MovieClip Frame 1
this.speed = 4;
this.onEnterFrame = function () {
if (this._x > 1000) {
this._x = -5 - Math.floor(Math.random() * 400);
this._y = 200 + Math.floor(Math.random() * 700);
this.speed = Math.random();
}
this._x = this._x + (2 + (2 * this.speed));
this._y = this._y - (1 + (1 * this.speed));
};
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
stop();
Symbol 481 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 2
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 26
gotoAndStop ("blank");
Symbol 489 MovieClip Frame 51
gotoAndStop ("blank");
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 2
stop();
Symbol 516 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
stop();
Symbol 533 MovieClip Frame 3
stop();
Symbol 542 MovieClip Frame 1
tutorialWaterTextures_mc._alpha = 50;
tutorialWaterTextures_mc.onEnterFrame = function () {
if (_parent.tutorialMap_mc._x < (250 - this._x)) {
this._x = this._x + 500;
}
if (_parent.tutorialMap_mc._x > (250 - this._x)) {
this._x = this._x - 500;
}
if (_parent.tutorialMap_mc._y < (250 - this._y)) {
this._y = this._y + 500;
}
if (_parent.tutorialMap_mc._y > (250 - this._y)) {
this._y = this._y - 500;
}
};
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture1_mc", 201, textureWater);
tutorialWaterTextures_mc.waterTexture1_mc._x = tutorialWaterTextures_mc.waterTexture1_mc._x - 500;
tutorialWaterTextures_mc.waterTexture1_mc._y = tutorialWaterTextures_mc.waterTexture1_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture2_mc", 202, textureWater);
tutorialWaterTextures_mc.waterTexture2_mc._y = tutorialWaterTextures_mc.waterTexture2_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture3_mc", 203, textureWater);
tutorialWaterTextures_mc.waterTexture3_mc._x = tutorialWaterTextures_mc.waterTexture3_mc._x + 500;
tutorialWaterTextures_mc.waterTexture3_mc._y = tutorialWaterTextures_mc.waterTexture3_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture4_mc", 204, textureWater);
tutorialWaterTextures_mc.waterTexture4_mc._x = tutorialWaterTextures_mc.waterTexture4_mc._x - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture5_mc", 205, textureWater);
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture6_mc", 206, textureWater);
tutorialWaterTextures_mc.waterTexture6_mc._x = tutorialWaterTextures_mc.waterTexture6_mc._x + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture7_mc", 207, textureWater);
tutorialWaterTextures_mc.waterTexture7_mc._x = tutorialWaterTextures_mc.waterTexture7_mc._x - 500;
tutorialWaterTextures_mc.waterTexture7_mc._y = tutorialWaterTextures_mc.waterTexture7_mc._y + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture8_mc", 208, textureWater);
tutorialWaterTextures_mc.waterTexture8_mc._y = tutorialWaterTextures_mc.waterTexture8_mc._y + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture9_mc", 209, textureWater);
tutorialWaterTextures_mc.waterTexture9_mc._x = tutorialWaterTextures_mc.waterTexture9_mc._x + 500;
tutorialWaterTextures_mc.waterTexture9_mc._y = tutorialWaterTextures_mc.waterTexture9_mc._y + 500;
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 2
stop();
Symbol 552 MovieClip Frame 3
stop();
Symbol 552 MovieClip Frame 4
stop();
Symbol 552 MovieClip Frame 5
stop();
Symbol 552 MovieClip Frame 6
stop();
Symbol 552 MovieClip Frame 7
stop();
Symbol 556 MovieClip Frame 1
miniRoutes_mc.gotoAndStop(_global.leg);
miniShip_mc.onEnterFrame = function () {
miniShip_mc._x = -0.00714285714285714 * _parent.map_mc._x;
miniShip_mc._y = -0.00714285714285714 * _parent.map_mc._y;
miniShip_mc._rotation = _parent.ship_mc._rotation;
};
Symbol 583 MovieClip Frame 1
function addRock(x, y, num) {
tutorialRocks_mc.attachMovie(("rock0" + num) + "", ("rock" + numRocks) + "_mc", numRocks);
tutorialRocks_mc[("rock" + numRocks) + "_mc"]._x = _parent._x + x;
tutorialRocks_mc[("rock" + numRocks) + "_mc"]._y = _parent._y + y;
numRocks = numRocks + 1;
}
numRocks = 0;
addRock(330, 220, 1);
addRock(310, 260, 8);
addRock(380, 200, 6);
function addIceBerg(x, y, num, dX, dY, dis, maxDis) {
tutorialIceBergs_mc.attachMovie(("iceberg0" + num) + "", ("iceBerg" + numIceBergs) + "_mc", numIceBergs);
tutorialIceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].dx = dX;
tutorialIceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].dy = dY;
tutorialIceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].distance = dis;
tutorialIceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].maxDistance = maxDis;
tutorialIceBergs_mc[("iceBerg" + numIceBergs) + "_mc"]._x = _parent._x + x;
tutorialIceBergs_mc[("iceBerg" + numIceBergs) + "_mc"]._y = _parent._y + y;
tutorialIceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].onEnterFrame = function () {
if (this.distance < this.maxDistance) {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.distance = this.distance + 1;
} else {
this.dx = this.dx * -1;
this.dy = this.dy * -1;
this.distance = 0;
}
};
numIceBergs = numIceBergs + 1;
}
numIceBergs = 0;
addIceBerg(75, 210, 3, 1, 0, 0, 40);
function addWhale(x, y, num, dX, dY, dis, maxDis) {
tutorialWhales_mc.attachMovie(("whale0" + num) + "", ("whale" + numWhales) + "_mc", numWhales);
tutorialWhales_mc[("whale" + numWhales) + "_mc"].dx = dX;
tutorialWhales_mc[("whale" + numWhales) + "_mc"].dy = dY;
tutorialWhales_mc[("whale" + numWhales) + "_mc"].distance = dis;
tutorialWhales_mc[("whale" + numWhales) + "_mc"].maxDistance = maxDis;
tutorialWhales_mc[("whale" + numWhales) + "_mc"]._x = _parent._x + x;
tutorialWhales_mc[("whale" + numWhales) + "_mc"]._y = _parent._y + y;
tutorialWhales_mc[("whale" + numWhales) + "_mc"].onEnterFrame = function () {
if (this.distance < this.maxDistance) {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.distance = this.distance + 1;
} else {
this.dx = this.dx * -1;
this.dy = this.dy * -1;
this._xscale = this._xscale * -1;
this.distance = 0;
}
};
numWhales = numWhales + 1;
}
numWhales = 0;
addWhale(345, 110, 1, 3, 0, 0, 30);
tutorialWaterTextures_mc._alpha = 50;
tutorialWaterTextures_mc.onEnterFrame = function () {
if (_parent.tutorialMap_mc._x < (250 - this._x)) {
this._x = this._x + 500;
}
if (_parent.tutorialMap_mc._x > (250 - this._x)) {
this._x = this._x - 500;
}
if (_parent.tutorialMap_mc._y < (250 - this._y)) {
this._y = this._y + 500;
}
if (_parent.tutorialMap_mc._y > (250 - this._y)) {
this._y = this._y - 500;
}
};
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture1_mc", 201, textureWater);
tutorialWaterTextures_mc.waterTexture1_mc._x = tutorialWaterTextures_mc.waterTexture1_mc._x - 500;
tutorialWaterTextures_mc.waterTexture1_mc._y = tutorialWaterTextures_mc.waterTexture1_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture2_mc", 202, textureWater);
tutorialWaterTextures_mc.waterTexture2_mc._y = tutorialWaterTextures_mc.waterTexture2_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture3_mc", 203, textureWater);
tutorialWaterTextures_mc.waterTexture3_mc._x = tutorialWaterTextures_mc.waterTexture3_mc._x + 500;
tutorialWaterTextures_mc.waterTexture3_mc._y = tutorialWaterTextures_mc.waterTexture3_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture4_mc", 204, textureWater);
tutorialWaterTextures_mc.waterTexture4_mc._x = tutorialWaterTextures_mc.waterTexture4_mc._x - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture5_mc", 205, textureWater);
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture6_mc", 206, textureWater);
tutorialWaterTextures_mc.waterTexture6_mc._x = tutorialWaterTextures_mc.waterTexture6_mc._x + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture7_mc", 207, textureWater);
tutorialWaterTextures_mc.waterTexture7_mc._x = tutorialWaterTextures_mc.waterTexture7_mc._x - 500;
tutorialWaterTextures_mc.waterTexture7_mc._y = tutorialWaterTextures_mc.waterTexture7_mc._y + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture8_mc", 208, textureWater);
tutorialWaterTextures_mc.waterTexture8_mc._y = tutorialWaterTextures_mc.waterTexture8_mc._y + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture9_mc", 209, textureWater);
tutorialWaterTextures_mc.waterTexture9_mc._x = tutorialWaterTextures_mc.waterTexture9_mc._x + 500;
tutorialWaterTextures_mc.waterTexture9_mc._y = tutorialWaterTextures_mc.waterTexture9_mc._y + 500;
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 2
play();
innerPointsHolder_mc.attachMovie("innerPointsMinus" + displayText, "boo", 1);
if (Math.random() < 0.5) {
crashSound = new Sound(this);
crashSound.attachSound("crash");
crashSound.start();
} else {
crashSound = new Sound(this);
crashSound.attachSound("crash2");
crashSound.start();
}
Symbol 584 MovieClip Frame 23
gotoAndStop ("blank");
Symbol 589 MovieClip Frame 1
tutorialDocks_mc.attachMovie("tutorialDockArea", "tutorialDock_mc", 201);
tutorialDocks_mc.tutorialDock_mc._x = _parent._x + 50;
tutorialDocks_mc.tutorialDock_mc._y = _parent._y + 150;
function addBuoy(x, y, val) {
tutorialBuoys_mc.attachMovie("buoyP" + val, ("buoy" + numBuoys) + "_mc", numBuoys, buoyInit);
tutorialBuoys_mc[("buoy" + numBuoys) + "_mc"].bonusTime = val;
tutorialBuoys_mc[("buoy" + numBuoys) + "_mc"]._x = _parent._x + x;
tutorialBuoys_mc[("buoy" + numBuoys) + "_mc"]._y = _parent._y + y;
numBuoys = numBuoys + 1;
}
buoyInit = new Object();
buoyInit.onEnterFrame = function () {
if (this.hitTest(_parent.tutorialShip_mc._x, _parent.tutorialShip_mc._y, true)) {
this.gotoAndPlay("end");
if (_parent.pointsPlus_mc._currentframe == 1) {
_parent.pointsPlus_mc.displayText = this.bonusTime;
_parent.pointsPlus_mc.gotoAndPlay("start");
_parent.timer.seconds = _parent.timer.seconds + this.bonusTime;
}
}
};
numBuoys = 0;
addBuoy(350, 130, 2);
addBuoy(330, 210, 1);
tutorialWaterTextures_mc._alpha = 50;
tutorialWaterTextures_mc.onEnterFrame = function () {
if (_parent.tutorialMap_mc._x < (250 - this._x)) {
this._x = this._x + 500;
}
if (_parent.tutorialMap_mc._x > (250 - this._x)) {
this._x = this._x - 500;
}
if (_parent.tutorialMap_mc._y < (250 - this._y)) {
this._y = this._y + 500;
}
if (_parent.tutorialMap_mc._y > (250 - this._y)) {
this._y = this._y - 500;
}
};
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture1_mc", 201, textureWater);
tutorialWaterTextures_mc.waterTexture1_mc._x = tutorialWaterTextures_mc.waterTexture1_mc._x - 500;
tutorialWaterTextures_mc.waterTexture1_mc._y = tutorialWaterTextures_mc.waterTexture1_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture2_mc", 202, textureWater);
tutorialWaterTextures_mc.waterTexture2_mc._y = tutorialWaterTextures_mc.waterTexture2_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture3_mc", 203, textureWater);
tutorialWaterTextures_mc.waterTexture3_mc._x = tutorialWaterTextures_mc.waterTexture3_mc._x + 500;
tutorialWaterTextures_mc.waterTexture3_mc._y = tutorialWaterTextures_mc.waterTexture3_mc._y - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture4_mc", 204, textureWater);
tutorialWaterTextures_mc.waterTexture4_mc._x = tutorialWaterTextures_mc.waterTexture4_mc._x - 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture5_mc", 205, textureWater);
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture6_mc", 206, textureWater);
tutorialWaterTextures_mc.waterTexture6_mc._x = tutorialWaterTextures_mc.waterTexture6_mc._x + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture7_mc", 207, textureWater);
tutorialWaterTextures_mc.waterTexture7_mc._x = tutorialWaterTextures_mc.waterTexture7_mc._x - 500;
tutorialWaterTextures_mc.waterTexture7_mc._y = tutorialWaterTextures_mc.waterTexture7_mc._y + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture8_mc", 208, textureWater);
tutorialWaterTextures_mc.waterTexture8_mc._y = tutorialWaterTextures_mc.waterTexture8_mc._y + 500;
tutorialWaterTextures_mc.attachMovie("waterTexture", "waterTexture9_mc", 209, textureWater);
tutorialWaterTextures_mc.waterTexture9_mc._x = tutorialWaterTextures_mc.waterTexture9_mc._x + 500;
tutorialWaterTextures_mc.waterTexture9_mc._y = tutorialWaterTextures_mc.waterTexture9_mc._y + 500;
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 2
play();
innerPointsHolder_mc.attachMovie("innerPointsPlus" + displayText, "boo", 1);
bellSound = new Sound(this);
bellSound.attachSound("bell");
bellSound.start();
Symbol 590 MovieClip Frame 17
gotoAndStop ("blank");
Symbol 599 MovieClip Frame 1
switch (_global.leg) {
case "london" :
this._x = 1200;
this._y = 4000;
break;
case "lisbon" :
this._x = 2570;
this._y = 1980;
break;
case "alexandria" :
this._x = -2352;
this._y = 820;
break;
case "dakar" :
this._x = 3550;
this._y = -1310;
break;
case "rioDeJaneiro" :
this._x = 6900;
this._y = -6350;
break;
case "caracas" :
this._x = 9940;
this._y = -1880;
break;
case "newOrleans" :
this._x = 12697;
this._y = 712;
break;
case "halifax" :
this._x = 9235;
this._y = 2668;
}
duplicateMovieClip ("continents_mc", "continentsMask_mc", 100);
landTextures_mc.setMask(continentsMask_mc);
cities_mc.attachMovie("london", "london_mc", 101);
cities_mc.london_mc._x = _parent._x - 1119;
cities_mc.london_mc._y = _parent._y - 3855;
cities_mc.attachMovie("lisbon", "lisbon_mc", 102);
cities_mc.lisbon_mc._x = _parent._x - 2200;
cities_mc.lisbon_mc._y = _parent._y - 1790;
cities_mc.attachMovie("alexandria", "alexandria_mc", 103);
cities_mc.alexandria_mc._x = _parent._x + 2620;
cities_mc.alexandria_mc._y = _parent._y - 610;
cities_mc.attachMovie("dakar", "dakar_mc", 104);
cities_mc.dakar_mc._x = _parent._x - 3190;
cities_mc.dakar_mc._y = _parent._y + 1520;
cities_mc.attachMovie("rioDeJaneiro", "rioDeJaneiro_mc", 105);
cities_mc.rioDeJaneiro_mc._x = _parent._x - 6693;
cities_mc.rioDeJaneiro_mc._y = _parent._y + 6442;
cities_mc.attachMovie("caracas", "caracas_mc", 106);
cities_mc.caracas_mc._x = _parent._x - 9760;
cities_mc.caracas_mc._y = _parent._y + 2085;
cities_mc.attachMovie("newOrleans", "newOrleans_mc", 107);
cities_mc.newOrleans_mc._x = _parent._x - 12495;
cities_mc.newOrleans_mc._y = _parent._y - 604;
cities_mc.attachMovie("newYork", "newYork_mc", 108);
cities_mc.newYork_mc._x = _parent._x - 10634;
cities_mc.newYork_mc._y = _parent._y - 2100;
cities_mc.attachMovie("halifax", "halifax_mc", 109);
cities_mc.halifax_mc._x = _parent._x - 9235;
cities_mc.halifax_mc._y = _parent._y - 2668;
cities_mc.attachMovie("shipDocked01", "shipDocked01_mc", 110);
cities_mc.shipDocked01_mc._x = _parent._x - 9116;
cities_mc.shipDocked01_mc._y = _parent._y - 2684;
cities_mc.attachMovie("shipDocked02", "shipDocked02_mc", 111);
cities_mc.shipDocked02_mc._x = _parent._x - 9148;
cities_mc.shipDocked02_mc._y = _parent._y - 2674;
function addBuoy(x, y, val) {
buoys_mc.attachMovie("buoyP" + val, ("buoy" + numBuoys) + "_mc", numBuoys, buoyInit);
buoys_mc[("buoy" + numBuoys) + "_mc"].bonusTime = val;
buoys_mc[("buoy" + numBuoys) + "_mc"]._x = _parent._x + x;
buoys_mc[("buoy" + numBuoys) + "_mc"]._y = _parent._y + y;
numBuoys = numBuoys + 1;
}
buoyInit = new Object();
buoyInit.onEnterFrame = function () {
if (this.hitTest(_parent.ship_mc._x, _parent.ship_mc._y, true)) {
this.gotoAndPlay("end");
if (_parent.pointsPlus_mc._currentframe == 1) {
_parent.pointsPlus_mc.displayText = this.bonusTime;
_parent.pointsPlus_mc.gotoAndPlay("start");
_parent.timer.seconds = _parent.timer.seconds + this.bonusTime;
}
}
};
numBuoys = 0;
switch (_global.leg) {
case "london" :
addBuoy(-1045, -3548, 1);
addBuoy(-1748, -3455, 1);
addBuoy(-1280, -2920, 4);
addBuoy(-2320, -2390, 1);
break;
case "lisbon" :
addBuoy(-1476, -1372, 1);
addBuoy(-770, -1495, 2);
addBuoy(260, -1538, 3);
addBuoy(1150, -1272, 1);
addBuoy(2070, -813, 1);
break;
case "alexandria" :
addBuoy(1310, -1120, 4);
addBuoy(115, -1612, 1);
addBuoy(-2600, -284, 1);
break;
case "dakar" :
n = 0;
i = 0;
while (i < 24) {
if (n == 0) {
n = 8;
} else {
n = 0;
}
addBuoy((-3700 - (120 * i)) - (i * n), 1838 + (220 * i), 1);
i++;
}
break;
case "rioDeJaneiro" :
addBuoy(-7554, 3481, 4);
break;
case "caracas" :
addBuoy(-11578, 540, 2);
addBuoy(-12160, 367, 1);
addBuoy(-10188, 1350, 1);
break;
case "newOrleans" :
addBuoy(-11780, -440, 1);
addBuoy(-10970, 352, 2);
addBuoy(-11020, 120, 1);
n = 0;
i = 0;
while (i < 13) {
if (n == 0) {
n = 8;
} else {
n = 0;
}
addBuoy((-10815 + (120 * i)) + (i * n), -(220 * i), 1);
i++;
}
break;
case "halifax" :
}
function addIceBerg(x, y, num, dX, dY, dis, maxDis) {
iceBergs_mc.attachMovie(("iceberg0" + num) + "", ("iceBerg" + numIceBergs) + "_mc", numIceBergs);
iceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].dx = dX;
iceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].dy = dY;
iceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].distance = dis;
iceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].maxDistance = maxDis;
iceBergs_mc[("iceBerg" + numIceBergs) + "_mc"]._x = _parent._x + x;
iceBergs_mc[("iceBerg" + numIceBergs) + "_mc"]._y = _parent._y + y;
iceBergs_mc[("iceBerg" + numIceBergs) + "_mc"].onEnterFrame = function () {
if (this.distance < this.maxDistance) {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.distance = this.distance + 1;
} else {
this.dx = this.dx * -1;
this.dy = this.dy * -1;
this.distance = 0;
}
};
numIceBergs = numIceBergs + 1;
}
numIceBergs = 0;
switch (_global.leg) {
case "london" :
addIceBerg(-1229, -3501, 2, 0.5, -1, 0, 60);
addIceBerg(-1925, -2905, 2, -1, -1, 0, 100);
break;
case "lisbon" :
break;
case "alexandria" :
break;
case "dakar" :
break;
case "rioDeJaneiro" :
break;
case "caracas" :
addIceBerg(-10197, 1421, 1, 1, -0.5, 50, 100);
addIceBerg(-10367, 1301, 3, 1.5, 0, 0, 100);
break;
case "newOrleans" :
addIceBerg(-12164, -530, 2, -0.5, 1, 0, 100);
addIceBerg(-12033, -490, 3, 0.5, 1, 50, 100);
addIceBerg(-11185, 179, 3, 1, 0, 50, 100);
addIceBerg(-10376, -796, 2, 1, 0.5, 0, 80);
addIceBerg(-10300, -1010, 3, 1, 0.5, 25, 50);
break;
case "halifax" :
}
function addRock(x, y, num) {
rocks_mc.attachMovie(("rock0" + num) + "", ("rock" + numRocks) + "_mc", numRocks);
rocks_mc[("rock" + numRocks) + "_mc"]._x = _parent._x + x;
rocks_mc[("rock" + numRocks) + "_mc"]._y = _parent._y + y;
numRocks = numRocks + 1;
}
numRocks = 0;
switch (_global.leg) {
case "london" :
addRock(-1045, -3688, 1);
addRock(-1045, -3688, 2);
addRock(-1548, -3455, 3);
addRock(-2090, -2911, 8);
addRock(-1578, -3485, 6);
addRock(-1548, -3555, 7);
addRock(-2470, -2140, 6);
break;
case "lisbon" :
addRock(-850, -1568, 8);
addRock(-870, -1558, 1);
addRock(-940, -1508, 7);
addRock(-770, -1518, 5);
addRock(90, -1620, 3);
addRock(116, -1602, 2);
addRock(-2010, -1300, 8);
addRock(-2302, -1542, 7);
addRock(2635, -701, 8);
break;
case "alexandria" :
addRock(-850, -1568, 8);
addRock(-870, -1558, 1);
addRock(-940, -1508, 7);
addRock(-770, -1518, 5);
addRock(90, -1620, 3);
addRock(116, -1602, 2);
addRock(-2010, -1300, 8);
addRock(-2302, -1542, 7);
addRock(2635, -701, 8);
addRock(-3004, 40, 5);
addRock(-3266, 131, 1);
addRock(-3216, 151, 8);
addRock(-3166, 121, 3);
addRock(-3412, 776, 6);
addRock(-3294, 1343, 2);
break;
case "dakar" :
break;
case "rioDeJaneiro" :
addRock(-9550, 2020, 8);
addRock(-6315, 6494, 7);
addRock(-5570, 4500, 2);
addRock(-5490, 4500, 3);
addRock(-5460, 4500, 4);
addRock(-5420, 4500, 5);
addRock(-5390, 4500, 6);
addRock(-5350, 4500, 1);
addRock(-6259, 6274, 3);
addRock(-6279, 6274, 2);
break;
case "caracas" :
addRock(-11910, 625, 8);
addRock(-12440, -413, 7);
addRock(-12390, -413, 6);
addRock(-12350, -423, 5);
addRock(-12340, -433, 4);
addRock(-12300, -450, 3);
addRock(-11900, 490, 7);
break;
case "newOrleans" :
addRock(-12440, -413, 7);
addRock(-12390, -413, 6);
addRock(-12350, -423, 5);
addRock(-12340, -433, 4);
addRock(-12300, -450, 3);
addRock(-11580, -40, 5);
addRock(-11520, -36, 4);
addRock(-11615, -36, 5);
addRock(-11650, 0, 1);
addRock(-11330, 180, 8);
addRock(-11105, 34, 8);
break;
case "halifax" :
}
function addWhale(x, y, num, dX, dY, dis, maxDis) {
whales_mc.attachMovie(("whale0" + num) + "", ("whale" + numWhales) + "_mc", numWhales);
whales_mc[("whale" + numWhales) + "_mc"].dx = dX;
whales_mc[("whale" + numWhales) + "_mc"].dy = dY;
whales_mc[("whale" + numWhales) + "_mc"].distance = dis;
whales_mc[("whale" + numWhales) + "_mc"].maxDistance = maxDis;
whales_mc[("whale" + numWhales) + "_mc"]._x = _parent._x + x;
whales_mc[("whale" + numWhales) + "_mc"]._y = _parent._y + y;
whales_mc[("whale" + numWhales) + "_mc"].onEnterFrame = function () {
if (this.distance < this.maxDistance) {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.distance = this.distance + 1;
} else {
this.dx = this.dx * -1;
this.dy = this.dy * -1;
this._xscale = this._xscale * -1;
this.distance = 0;
}
};
numWhales = numWhales + 1;
}
numWhales = 0;
switch (_global.leg) {
case "london" :
addWhale(-2640, -2375, 1, 3, 0, 0, 60);
break;
case "lisbon" :
addWhale(-2285, -1410, 1, 3, 0, 0, 100);
addWhale(550, -1260, 1, 3, 0, 0, 160);
break;
case "alexandria" :
addWhale(-3780, 1429, 1, 3, 0, 0, 105);
break;
case "dakar" :
break;
case "rioDeJaneiro" :
addWhale(-7505, 2904, 1, 2, 0, 0, 150);
break;
case "caracas" :
addWhale(-10867, 970, 1, 2, 0, 0, 100);
break;
case "newOrleans" :
break;
case "halifax" :
}
switch (_global.leg) {
case "london" :
landTextures_mc._x = -1200;
landTextures_mc._y = -4000;
break;
case "lisbon" :
landTextures_mc._x = -2570;
landTextures_mc._y = -1980;
break;
case "alexandria" :
landTextures_mc._x = 2352;
landTextures_mc._y = -820;
break;
case "dakar" :
landTextures_mc._x = -3550;
landTextures_mc._y = 1310;
break;
case "rioDeJaneiro" :
landTextures_mc._x = -6900;
landTextures_mc._y = 6350;
break;
case "caracas" :
landTextures_mc._x = -9940;
landTextures_mc._y = 1880;
break;
case "newOrleans" :
landTextures_mc._x = -12697;
landTextures_mc._y = -712;
break;
case "halifax" :
landTextures_mc._x = -9275;
landTextures_mc._y = -2668;
}
landTextures_mc.onEnterFrame = function () {
if (_parent.map_mc._x < (250 - this._x)) {
this._x = this._x + 500;
}
if (_parent.map_mc._x > (250 - this._x)) {
this._x = this._x - 500;
}
if (_parent.map_mc._y < (250 - this._y)) {
this._y = this._y + 500;
}
if (_parent.map_mc._y > (250 - this._y)) {
this._y = this._y - 500;
}
};
landTextures_mc.attachMovie("landTexture", "landTexture1_mc", 201);
landTextures_mc.landTexture1_mc._x = landTextures_mc.landTexture1_mc._x - 500;
landTextures_mc.landTexture1_mc._y = landTextures_mc.landTexture1_mc._y - 500;
landTextures_mc.attachMovie("landTexture", "landTexture2_mc", 202);
landTextures_mc.landTexture2_mc._y = landTextures_mc.landTexture2_mc._y - 500;
landTextures_mc.attachMovie("landTexture", "landTexture3_mc", 203);
landTextures_mc.landTexture3_mc._x = landTextures_mc.landTexture3_mc._x + 500;
landTextures_mc.landTexture3_mc._y = landTextures_mc.landTexture3_mc._y - 500;
landTextures_mc.attachMovie("landTexture", "landTexture4_mc", 204);
landTextures_mc.landTexture4_mc._x = landTextures_mc.landTexture4_mc._x - 500;
landTextures_mc.attachMovie("landTexture", "landTexture5_mc", 205);
landTextures_mc.attachMovie("landTexture", "landTexture6_mc", 206);
landTextures_mc.landTexture6_mc._x = landTextures_mc.landTexture6_mc._x + 500;
landTextures_mc.attachMovie("landTexture", "landTexture7_mc", 207);
landTextures_mc.landTexture7_mc._x = landTextures_mc.landTexture7_mc._x - 500;
landTextures_mc.landTexture7_mc._y = landTextures_mc.landTexture7_mc._y + 500;
landTextures_mc.attachMovie("landTexture", "landTexture8_mc", 208);
landTextures_mc.landTexture8_mc._y = landTextures_mc.landTexture8_mc._y + 500;
landTextures_mc.attachMovie("landTexture", "landTexture9_mc", 209);
landTextures_mc.landTexture9_mc._x = landTextures_mc.landTexture9_mc._x + 500;
landTextures_mc.landTexture9_mc._y = landTextures_mc.landTexture9_mc._y + 500;
docks_mc.attachMovie("dockArea", "londonDock_mc", 201);
docks_mc.londonDock_mc._x = _parent._x - 989;
docks_mc.londonDock_mc._y = _parent._y - 3825;
docks_mc.attachMovie("dockArea", "lisbonDock_mc", 202);
docks_mc.lisbonDock_mc._x = _parent._x - 2280;
docks_mc.lisbonDock_mc._y = _parent._y - 1780;
docks_mc.attachMovie("dockArea", "alexandriaDock_mc", 203);
docks_mc.alexandriaDock_mc._x = _parent._x + 2525;
docks_mc.alexandriaDock_mc._y = _parent._y - 620;
docks_mc.attachMovie("dockArea", "dakarDock_mc", 204);
docks_mc.dakarDock_mc._x = _parent._x - 3290;
docks_mc.dakarDock_mc._y = _parent._y + 1520;
docks_mc.attachMovie("dockArea", "rioDeJaneiroDock_mc", 205);
docks_mc.rioDeJaneiroDock_mc._x = _parent._x - 6693;
docks_mc.rioDeJaneiroDock_mc._y = _parent._y + 6492;
docks_mc.attachMovie("dockArea", "caracasDock_mc", 206);
docks_mc.caracasDock_mc._x = _parent._x - 9710;
docks_mc.caracasDock_mc._y = _parent._y + 2085;
docks_mc.attachMovie("dockArea", "newOrleansDock_mc", 207);
docks_mc.newOrleansDock_mc._x = _parent._x - 12495;
docks_mc.newOrleansDock_mc._y = _parent._y - 554;
docks_mc.attachMovie("dockArea", "newYorkDock_mc", 208);
docks_mc.newYorkDock_mc._x = _parent._x - 10634;
docks_mc.newYorkDock_mc._y = _parent._y - 2100;
docks_mc.attachMovie("dockArea", "halifaxDock_mc", 209);
docks_mc.halifaxDock_mc._x = _parent._x - 9275;
docks_mc.halifaxDock_mc._y = _parent._y - 2663;
switch (_global.leg) {
case "london" :
waterTextures_mc._x = -1200;
waterTextures_mc._y = -4000;
break;
case "lisbon" :
waterTextures_mc._x = -2570;
waterTextures_mc._y = -1980;
break;
case "alexandria" :
waterTextures_mc._x = 2352;
waterTextures_mc._y = -820;
break;
case "dakar" :
waterTextures_mc._x = -3550;
waterTextures_mc._y = 1310;
break;
case "rioDeJaneiro" :
waterTextures_mc._x = -6900;
waterTextures_mc._y = 6350;
break;
case "caracas" :
waterTextures_mc._x = -9940;
waterTextures_mc._y = 1880;
break;
case "newOrleans" :
waterTextures_mc._x = -12697;
waterTextures_mc._y = -712;
break;
case "halifax" :
waterTextures_mc._x = -9275;
waterTextures_mc._y = -2668;
}
waterTextures_mc._alpha = 50;
waterTextures_mc.onEnterFrame = function () {
if (_parent.map_mc._x < (250 - this._x)) {
this._x = this._x + 500;
}
if (_parent.map_mc._x > (250 - this._x)) {
this._x = this._x - 500;
}
if (_parent.map_mc._y < (250 - this._y)) {
this._y = this._y + 500;
}
if (_parent.map_mc._y > (250 - this._y)) {
this._y = this._y - 500;
}
};
waterTextures_mc.attachMovie("waterTexture", "waterTexture1_mc", 201, textureWater);
waterTextures_mc.waterTexture1_mc._x = waterTextures_mc.waterTexture1_mc._x - 500;
waterTextures_mc.waterTexture1_mc._y = waterTextures_mc.waterTexture1_mc._y - 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture2_mc", 202, textureWater);
waterTextures_mc.waterTexture2_mc._y = waterTextures_mc.waterTexture2_mc._y - 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture3_mc", 203, textureWater);
waterTextures_mc.waterTexture3_mc._x = waterTextures_mc.waterTexture3_mc._x + 500;
waterTextures_mc.waterTexture3_mc._y = waterTextures_mc.waterTexture3_mc._y - 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture4_mc", 204, textureWater);
waterTextures_mc.waterTexture4_mc._x = waterTextures_mc.waterTexture4_mc._x - 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture5_mc", 205, textureWater);
waterTextures_mc.attachMovie("waterTexture", "waterTexture6_mc", 206, textureWater);
waterTextures_mc.waterTexture6_mc._x = waterTextures_mc.waterTexture6_mc._x + 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture7_mc", 207, textureWater);
waterTextures_mc.waterTexture7_mc._x = waterTextures_mc.waterTexture7_mc._x - 500;
waterTextures_mc.waterTexture7_mc._y = waterTextures_mc.waterTexture7_mc._y + 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture8_mc", 208, textureWater);
waterTextures_mc.waterTexture8_mc._y = waterTextures_mc.waterTexture8_mc._y + 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture9_mc", 209, textureWater);
waterTextures_mc.waterTexture9_mc._x = waterTextures_mc.waterTexture9_mc._x + 500;
waterTextures_mc.waterTexture9_mc._y = waterTextures_mc.waterTexture9_mc._y + 500;
Symbol 602 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 2
stop();
Symbol 610 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 2
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 2
stop();
Symbol 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 2
stop();
Symbol 622 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 2
stop();
Symbol 626 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 2
stop();
Symbol 630 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 2
stop();
Symbol 645 MovieClip Frame 1
count = 0;
onEnterFrame = function () {
if (count > score) {
count = score;
} else {
score_txt.text = count;
count = count + 9;
}
};
Symbol 659 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 2
stop();
time_txt.text = (_parent.timer.seconds + ".") + _parent.timer.milliseconds;
bonusTime = (_parent.timer.seconds * 10) + _parent.timer.milliseconds;
bonusPoints_txt.text = (((_parent.timer.seconds + ".") + _parent.timer.milliseconds) + " x 10 = ") + bonusTime;
scoreCounter_mc.count = _global.totalPoints;
scoreCounter_mc.score = bonusTime + _global.totalPoints;
_global.totalPoints = _global.totalPoints + bonusTime;
btnRestart_mc.onRelease = function () {
_global.totalPoints = _global.totalPoints - bonusTime;
clearInterval(timerInterval);
_global.city[_global.nextCity] = false;
_parent.gotoAndPlay("restart");
};
btnContinue_mc.onRelease = function () {
clearInterval(timerInterval);
switch (_global.leg) {
case "london" :
_global.londonSeconds = timer.seconds;
_global.londonMilliseconds = timer.milliseconds;
_global.leg = "lisbon";
_global.nextCity = "alexandria";
_global.nextDock = "alexandriaDock_mc";
_global.shipRotation = 45;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "lisbon" :
_global.lisbonSeconds = timer.seconds;
_global.lisbonMilliseconds = timer.milliseconds;
_global.leg = "alexandria";
_global.nextCity = "dakar";
_global.nextDock = "dakarDock_mc";
_global.shipRotation = 180;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "alexandria" :
_global.alexandriaSeconds = timer.seconds;
_global.alexandriaMilliseconds = timer.milliseconds;
_global.leg = "dakar";
_global.nextCity = "rioDeJaneiro";
_global.nextDock = "rioDeJaneiroDock_mc";
_global.shipRotation = 90;
_global.startSeconds = 14;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "dakar" :
_global.dakarSeconds = timer.seconds;
_global.dakarMilliseconds = timer.milliseconds;
_global.leg = "rioDeJaneiro";
_global.nextCity = "caracas";
_global.nextDock = "caracasDock_mc";
_global.shipRotation = 330;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "rioDeJaneiro" :
_global.rioDeJaneiroSeconds = timer.seconds;
_global.rioDeJaneiroMilliseconds = timer.milliseconds;
_global.leg = "caracas";
_global.nextCity = "newOrleans";
_global.nextDock = "newOrleansDock_mc";
_global.shipRotation = 195;
_global.startSeconds = 25;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "caracas" :
_global.caracasSeconds = timer.seconds;
_global.caracasMilliseconds = timer.milliseconds;
_global.leg = "newOrleans";
_global.nextCity = "halifax";
_global.nextDock = "halifaxDock_mc";
_global.shipRotation = 340;
_global.startSeconds = 20;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "newOrleans" :
_global.newOrleansSeconds = timer.seconds;
_global.newOrleansMilliseconds = timer.milliseconds;
_global.leg = "finish";
_parent.gotoAndPlay("finish");
}
};
Symbol 659 MovieClip Frame 3
stop();
time_txt.text = (_parent.timer.seconds + ".") + _parent.timer.milliseconds;
bonusTime = (_parent.timer.seconds * 10) + _parent.timer.milliseconds;
bonusPoints_txt.text = (((_parent.timer.seconds + ".") + _parent.timer.milliseconds) + " x 10 = ") + bonusTime;
scoreCounter_mc.count = _global.totalPoints;
scoreCounter_mc.score = bonusTime + _global.totalPoints;
_global.totalPoints = _global.totalPoints + bonusTime;
btnRestart_mc.onRelease = function () {
_global.totalPoints = _global.totalPoints - bonusTime;
clearInterval(timerInterval);
_global.city[_global.nextCity] = false;
_parent.gotoAndPlay("restart");
};
btnContinue_mc.onRelease = function () {
clearInterval(timerInterval);
switch (_global.leg) {
case "london" :
_global.londonSeconds = timer.seconds;
_global.londonMilliseconds = timer.milliseconds;
_global.leg = "lisbon";
_global.nextCity = "alexandria";
_global.nextDock = "alexandriaDock_mc";
_global.shipRotation = 45;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "lisbon" :
_global.lisbonSeconds = timer.seconds;
_global.lisbonMilliseconds = timer.milliseconds;
_global.leg = "alexandria";
_global.nextCity = "dakar";
_global.nextDock = "dakarDock_mc";
_global.shipRotation = 180;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "alexandria" :
_global.alexandriaSeconds = timer.seconds;
_global.alexandriaMilliseconds = timer.milliseconds;
_global.leg = "dakar";
_global.nextCity = "rioDeJaneiro";
_global.nextDock = "rioDeJaneiroDock_mc";
_global.shipRotation = 90;
_global.startSeconds = 14;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "dakar" :
_global.dakarSeconds = timer.seconds;
_global.dakarMilliseconds = timer.milliseconds;
_global.leg = "rioDeJaneiro";
_global.nextCity = "caracas";
_global.nextDock = "caracasDock_mc";
_global.shipRotation = 330;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "rioDeJaneiro" :
_global.rioDeJaneiroSeconds = timer.seconds;
_global.rioDeJaneiroMilliseconds = timer.milliseconds;
_global.leg = "caracas";
_global.nextCity = "newOrleans";
_global.nextDock = "newOrleansDock_mc";
_global.shipRotation = 195;
_global.startSeconds = 25;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "caracas" :
_global.caracasSeconds = timer.seconds;
_global.caracasMilliseconds = timer.milliseconds;
_global.leg = "newOrleans";
_global.nextCity = "halifax";
_global.nextDock = "halifaxDock_mc";
_global.shipRotation = 340;
_global.startSeconds = 20;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "newOrleans" :
_global.newOrleansSeconds = timer.seconds;
_global.newOrleansMilliseconds = timer.milliseconds;
_global.leg = "finish";
_parent.gotoAndPlay("finish");
}
};
Symbol 659 MovieClip Frame 4
stop();
time_txt.text = (_parent.timer.seconds + ".") + _parent.timer.milliseconds;
bonusTime = (_parent.timer.seconds * 10) + _parent.timer.milliseconds;
bonusPoints_txt.text = (((_parent.timer.seconds + ".") + _parent.timer.milliseconds) + " x 10 = ") + bonusTime;
scoreCounter_mc.count = _global.totalPoints;
scoreCounter_mc.score = bonusTime + _global.totalPoints;
_global.totalPoints = _global.totalPoints + bonusTime;
btnRestart_mc.onRelease = function () {
_global.totalPoints = _global.totalPoints - bonusTime;
clearInterval(timerInterval);
_global.city[_global.nextCity] = false;
_parent.gotoAndPlay("restart");
};
btnContinue_mc.onRelease = function () {
clearInterval(timerInterval);
switch (_global.leg) {
case "london" :
_global.londonSeconds = timer.seconds;
_global.londonMilliseconds = timer.milliseconds;
_global.leg = "lisbon";
_global.nextCity = "alexandria";
_global.nextDock = "alexandriaDock_mc";
_global.shipRotation = 45;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "lisbon" :
_global.lisbonSeconds = timer.seconds;
_global.lisbonMilliseconds = timer.milliseconds;
_global.leg = "alexandria";
_global.nextCity = "dakar";
_global.nextDock = "dakarDock_mc";
_global.shipRotation = 180;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "alexandria" :
_global.alexandriaSeconds = timer.seconds;
_global.alexandriaMilliseconds = timer.milliseconds;
_global.leg = "dakar";
_global.nextCity = "rioDeJaneiro";
_global.nextDock = "rioDeJaneiroDock_mc";
_global.shipRotation = 90;
_global.startSeconds = 14;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "dakar" :
_global.dakarSeconds = timer.seconds;
_global.dakarMilliseconds = timer.milliseconds;
_global.leg = "rioDeJaneiro";
_global.nextCity = "caracas";
_global.nextDock = "caracasDock_mc";
_global.shipRotation = 330;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "rioDeJaneiro" :
_global.rioDeJaneiroSeconds = timer.seconds;
_global.rioDeJaneiroMilliseconds = timer.milliseconds;
_global.leg = "caracas";
_global.nextCity = "newOrleans";
_global.nextDock = "newOrleansDock_mc";
_global.shipRotation = 195;
_global.startSeconds = 25;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "caracas" :
_global.caracasSeconds = timer.seconds;
_global.caracasMilliseconds = timer.milliseconds;
_global.leg = "newOrleans";
_global.nextCity = "halifax";
_global.nextDock = "halifaxDock_mc";
_global.shipRotation = 340;
_global.startSeconds = 20;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "newOrleans" :
_global.newOrleansSeconds = timer.seconds;
_global.newOrleansMilliseconds = timer.milliseconds;
_global.leg = "finish";
_parent.gotoAndPlay("finish");
}
};
Symbol 659 MovieClip Frame 5
stop();
time_txt.text = (_parent.timer.seconds + ".") + _parent.timer.milliseconds;
bonusTime = (_parent.timer.seconds * 10) + _parent.timer.milliseconds;
bonusPoints_txt.text = (((_parent.timer.seconds + ".") + _parent.timer.milliseconds) + " x 10 = ") + bonusTime;
scoreCounter_mc.count = _global.totalPoints;
scoreCounter_mc.score = bonusTime + _global.totalPoints;
_global.totalPoints = _global.totalPoints + bonusTime;
btnRestart_mc.onRelease = function () {
_global.totalPoints = _global.totalPoints - bonusTime;
clearInterval(timerInterval);
_global.city[_global.nextCity] = false;
_parent.gotoAndPlay("restart");
};
btnContinue_mc.onRelease = function () {
clearInterval(timerInterval);
switch (_global.leg) {
case "london" :
_global.londonSeconds = timer.seconds;
_global.londonMilliseconds = timer.milliseconds;
_global.leg = "lisbon";
_global.nextCity = "alexandria";
_global.nextDock = "alexandriaDock_mc";
_global.shipRotation = 45;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "lisbon" :
_global.lisbonSeconds = timer.seconds;
_global.lisbonMilliseconds = timer.milliseconds;
_global.leg = "alexandria";
_global.nextCity = "dakar";
_global.nextDock = "dakarDock_mc";
_global.shipRotation = 180;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "alexandria" :
_global.alexandriaSeconds = timer.seconds;
_global.alexandriaMilliseconds = timer.milliseconds;
_global.leg = "dakar";
_global.nextCity = "rioDeJaneiro";
_global.nextDock = "rioDeJaneiroDock_mc";
_global.shipRotation = 90;
_global.startSeconds = 14;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "dakar" :
_global.dakarSeconds = timer.seconds;
_global.dakarMilliseconds = timer.milliseconds;
_global.leg = "rioDeJaneiro";
_global.nextCity = "caracas";
_global.nextDock = "caracasDock_mc";
_global.shipRotation = 330;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "rioDeJaneiro" :
_global.rioDeJaneiroSeconds = timer.seconds;
_global.rioDeJaneiroMilliseconds = timer.milliseconds;
_global.leg = "caracas";
_global.nextCity = "newOrleans";
_global.nextDock = "newOrleansDock_mc";
_global.shipRotation = 195;
_global.startSeconds = 25;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "caracas" :
_global.caracasSeconds = timer.seconds;
_global.caracasMilliseconds = timer.milliseconds;
_global.leg = "newOrleans";
_global.nextCity = "halifax";
_global.nextDock = "halifaxDock_mc";
_global.shipRotation = 340;
_global.startSeconds = 20;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "newOrleans" :
_global.newOrleansSeconds = timer.seconds;
_global.newOrleansMilliseconds = timer.milliseconds;
_global.leg = "finish";
_parent.gotoAndPlay("finish");
}
};
Symbol 659 MovieClip Frame 6
stop();
time_txt.text = (_parent.timer.seconds + ".") + _parent.timer.milliseconds;
bonusTime = (_parent.timer.seconds * 10) + _parent.timer.milliseconds;
bonusPoints_txt.text = (((_parent.timer.seconds + ".") + _parent.timer.milliseconds) + " x 10 = ") + bonusTime;
scoreCounter_mc.count = _global.totalPoints;
scoreCounter_mc.score = bonusTime + _global.totalPoints;
_global.totalPoints = _global.totalPoints + bonusTime;
btnRestart_mc.onRelease = function () {
_global.totalPoints = _global.totalPoints - bonusTime;
clearInterval(timerInterval);
_global.city[_global.nextCity] = false;
_parent.gotoAndPlay("restart");
};
btnContinue_mc.onRelease = function () {
clearInterval(timerInterval);
switch (_global.leg) {
case "london" :
_global.londonSeconds = timer.seconds;
_global.londonMilliseconds = timer.milliseconds;
_global.leg = "lisbon";
_global.nextCity = "alexandria";
_global.nextDock = "alexandriaDock_mc";
_global.shipRotation = 45;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "lisbon" :
_global.lisbonSeconds = timer.seconds;
_global.lisbonMilliseconds = timer.milliseconds;
_global.leg = "alexandria";
_global.nextCity = "dakar";
_global.nextDock = "dakarDock_mc";
_global.shipRotation = 180;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "alexandria" :
_global.alexandriaSeconds = timer.seconds;
_global.alexandriaMilliseconds = timer.milliseconds;
_global.leg = "dakar";
_global.nextCity = "rioDeJaneiro";
_global.nextDock = "rioDeJaneiroDock_mc";
_global.shipRotation = 90;
_global.startSeconds = 14;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "dakar" :
_global.dakarSeconds = timer.seconds;
_global.dakarMilliseconds = timer.milliseconds;
_global.leg = "rioDeJaneiro";
_global.nextCity = "caracas";
_global.nextDock = "caracasDock_mc";
_global.shipRotation = 330;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "rioDeJaneiro" :
_global.rioDeJaneiroSeconds = timer.seconds;
_global.rioDeJaneiroMilliseconds = timer.milliseconds;
_global.leg = "caracas";
_global.nextCity = "newOrleans";
_global.nextDock = "newOrleansDock_mc";
_global.shipRotation = 195;
_global.startSeconds = 25;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "caracas" :
_global.caracasSeconds = timer.seconds;
_global.caracasMilliseconds = timer.milliseconds;
_global.leg = "newOrleans";
_global.nextCity = "halifax";
_global.nextDock = "halifaxDock_mc";
_global.shipRotation = 340;
_global.startSeconds = 20;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "newOrleans" :
_global.newOrleansSeconds = timer.seconds;
_global.newOrleansMilliseconds = timer.milliseconds;
_global.leg = "finish";
_parent.gotoAndPlay("finish");
}
};
Symbol 659 MovieClip Frame 7
stop();
time_txt.text = (_parent.timer.seconds + ".") + _parent.timer.milliseconds;
bonusTime = (_parent.timer.seconds * 10) + _parent.timer.milliseconds;
bonusPoints_txt.text = (((_parent.timer.seconds + ".") + _parent.timer.milliseconds) + " x 10 = ") + bonusTime;
scoreCounter_mc.count = _global.totalPoints;
scoreCounter_mc.score = bonusTime + _global.totalPoints;
_global.totalPoints = _global.totalPoints + bonusTime;
btnRestart_mc.onRelease = function () {
_global.totalPoints = _global.totalPoints - bonusTime;
clearInterval(timerInterval);
_global.city[_global.nextCity] = false;
_parent.gotoAndPlay("restart");
};
btnContinue_mc.onRelease = function () {
clearInterval(timerInterval);
switch (_global.leg) {
case "london" :
_global.londonSeconds = timer.seconds;
_global.londonMilliseconds = timer.milliseconds;
_global.leg = "lisbon";
_global.nextCity = "alexandria";
_global.nextDock = "alexandriaDock_mc";
_global.shipRotation = 45;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "lisbon" :
_global.lisbonSeconds = timer.seconds;
_global.lisbonMilliseconds = timer.milliseconds;
_global.leg = "alexandria";
_global.nextCity = "dakar";
_global.nextDock = "dakarDock_mc";
_global.shipRotation = 180;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "alexandria" :
_global.alexandriaSeconds = timer.seconds;
_global.alexandriaMilliseconds = timer.milliseconds;
_global.leg = "dakar";
_global.nextCity = "rioDeJaneiro";
_global.nextDock = "rioDeJaneiroDock_mc";
_global.shipRotation = 90;
_global.startSeconds = 14;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "dakar" :
_global.dakarSeconds = timer.seconds;
_global.dakarMilliseconds = timer.milliseconds;
_global.leg = "rioDeJaneiro";
_global.nextCity = "caracas";
_global.nextDock = "caracasDock_mc";
_global.shipRotation = 330;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "rioDeJaneiro" :
_global.rioDeJaneiroSeconds = timer.seconds;
_global.rioDeJaneiroMilliseconds = timer.milliseconds;
_global.leg = "caracas";
_global.nextCity = "newOrleans";
_global.nextDock = "newOrleansDock_mc";
_global.shipRotation = 195;
_global.startSeconds = 25;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "caracas" :
_global.caracasSeconds = timer.seconds;
_global.caracasMilliseconds = timer.milliseconds;
_global.leg = "newOrleans";
_global.nextCity = "halifax";
_global.nextDock = "halifaxDock_mc";
_global.shipRotation = 340;
_global.startSeconds = 20;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "newOrleans" :
_global.newOrleansSeconds = timer.seconds;
_global.newOrleansMilliseconds = timer.milliseconds;
_global.leg = "finish";
_parent.gotoAndPlay("finish");
}
};
Symbol 659 MovieClip Frame 8
stop();
time_txt.text = (_parent.timer.seconds + ".") + _parent.timer.milliseconds;
bonusTime = (_parent.timer.seconds * 10) + _parent.timer.milliseconds;
bonusPoints_txt.text = (((_parent.timer.seconds + ".") + _parent.timer.milliseconds) + " x 10 = ") + bonusTime;
scoreCounter_mc.count = _global.totalPoints;
scoreCounter_mc.score = bonusTime + _global.totalPoints;
_global.totalPoints = _global.totalPoints + bonusTime;
btnRestart_mc.onRelease = function () {
_global.totalPoints = _global.totalPoints - bonusTime;
clearInterval(timerInterval);
_global.city[_global.nextCity] = false;
_parent.gotoAndPlay("restart");
};
btnContinue_mc.onRelease = function () {
clearInterval(timerInterval);
switch (_global.leg) {
case "london" :
_global.londonSeconds = timer.seconds;
_global.londonMilliseconds = timer.milliseconds;
_global.leg = "lisbon";
_global.nextCity = "alexandria";
_global.nextDock = "alexandriaDock_mc";
_global.shipRotation = 45;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "lisbon" :
_global.lisbonSeconds = timer.seconds;
_global.lisbonMilliseconds = timer.milliseconds;
_global.leg = "alexandria";
_global.nextCity = "dakar";
_global.nextDock = "dakarDock_mc";
_global.shipRotation = 180;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "alexandria" :
_global.alexandriaSeconds = timer.seconds;
_global.alexandriaMilliseconds = timer.milliseconds;
_global.leg = "dakar";
_global.nextCity = "rioDeJaneiro";
_global.nextDock = "rioDeJaneiroDock_mc";
_global.shipRotation = 90;
_global.startSeconds = 14;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "dakar" :
_global.dakarSeconds = timer.seconds;
_global.dakarMilliseconds = timer.milliseconds;
_global.leg = "rioDeJaneiro";
_global.nextCity = "caracas";
_global.nextDock = "caracasDock_mc";
_global.shipRotation = 330;
_global.startSeconds = 60;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "rioDeJaneiro" :
_global.rioDeJaneiroSeconds = timer.seconds;
_global.rioDeJaneiroMilliseconds = timer.milliseconds;
_global.leg = "caracas";
_global.nextCity = "newOrleans";
_global.nextDock = "newOrleansDock_mc";
_global.shipRotation = 195;
_global.startSeconds = 25;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "caracas" :
_global.caracasSeconds = timer.seconds;
_global.caracasMilliseconds = timer.milliseconds;
_global.leg = "newOrleans";
_global.nextCity = "halifax";
_global.nextDock = "halifaxDock_mc";
_global.shipRotation = 340;
_global.startSeconds = 20;
_global.startMilliseconds = 0;
_parent.gotoAndPlay("restart");
break;
case "newOrleans" :
_global.newOrleansSeconds = timer.seconds;
_global.newOrleansMilliseconds = timer.milliseconds;
_global.leg = "finish";
_parent.gotoAndPlay("finish");
}
};
Symbol 662 MovieClip Frame 1
this._x = 9405;
this._y = 2808;
duplicateMovieClip ("continents_mc", "continentsMask_mc", 100);
landTextures_mc.setMask(continentsMask_mc);
cities_mc.attachMovie("london", "london_mc", 101);
cities_mc.london_mc._x = _parent._x - 1119;
cities_mc.london_mc._y = _parent._y - 3855;
cities_mc.attachMovie("lisbon", "lisbon_mc", 102);
cities_mc.lisbon_mc._x = _parent._x - 2200;
cities_mc.lisbon_mc._y = _parent._y - 1790;
cities_mc.attachMovie("alexandria", "alexandria_mc", 103);
cities_mc.alexandria_mc._x = _parent._x + 2620;
cities_mc.alexandria_mc._y = _parent._y - 610;
cities_mc.attachMovie("dakar", "dakar_mc", 104);
cities_mc.dakar_mc._x = _parent._x - 3190;
cities_mc.dakar_mc._y = _parent._y + 1520;
cities_mc.attachMovie("rioDeJaneiro", "rioDeJaneiro_mc", 105);
cities_mc.rioDeJaneiro_mc._x = _parent._x - 6693;
cities_mc.rioDeJaneiro_mc._y = _parent._y + 6442;
cities_mc.attachMovie("caracas", "caracas_mc", 106);
cities_mc.caracas_mc._x = _parent._x - 9760;
cities_mc.caracas_mc._y = _parent._y + 2085;
cities_mc.attachMovie("newOrleans", "newOrleans_mc", 107);
cities_mc.newOrleans_mc._x = _parent._x - 12495;
cities_mc.newOrleans_mc._y = _parent._y - 604;
cities_mc.attachMovie("newYork", "newYork_mc", 108);
cities_mc.newYork_mc._x = _parent._x - 10634;
cities_mc.newYork_mc._y = _parent._y - 2100;
cities_mc.attachMovie("halifax", "halifax_mc", 109);
cities_mc.halifax_mc._x = _parent._x - 9235;
cities_mc.halifax_mc._y = _parent._y - 2668;
landTextures_mc._x = -9275;
landTextures_mc._y = -2668;
landTextures_mc.attachMovie("landTexture", "landTexture1_mc", 201);
landTextures_mc.landTexture1_mc._x = landTextures_mc.landTexture1_mc._x - 500;
landTextures_mc.landTexture1_mc._y = landTextures_mc.landTexture1_mc._y - 500;
landTextures_mc.attachMovie("landTexture", "landTexture2_mc", 202);
landTextures_mc.landTexture2_mc._y = landTextures_mc.landTexture2_mc._y - 500;
landTextures_mc.attachMovie("landTexture", "landTexture3_mc", 203);
landTextures_mc.landTexture3_mc._x = landTextures_mc.landTexture3_mc._x + 500;
landTextures_mc.landTexture3_mc._y = landTextures_mc.landTexture3_mc._y - 500;
landTextures_mc.attachMovie("landTexture", "landTexture4_mc", 204);
landTextures_mc.landTexture4_mc._x = landTextures_mc.landTexture4_mc._x - 500;
landTextures_mc.attachMovie("landTexture", "landTexture5_mc", 205);
landTextures_mc.attachMovie("landTexture", "landTexture6_mc", 206);
landTextures_mc.landTexture6_mc._x = landTextures_mc.landTexture6_mc._x + 500;
landTextures_mc.attachMovie("landTexture", "landTexture7_mc", 207);
landTextures_mc.landTexture7_mc._x = landTextures_mc.landTexture7_mc._x - 500;
landTextures_mc.landTexture7_mc._y = landTextures_mc.landTexture7_mc._y + 500;
landTextures_mc.attachMovie("landTexture", "landTexture8_mc", 208);
landTextures_mc.landTexture8_mc._y = landTextures_mc.landTexture8_mc._y + 500;
landTextures_mc.attachMovie("landTexture", "landTexture9_mc", 209);
landTextures_mc.landTexture9_mc._x = landTextures_mc.landTexture9_mc._x + 500;
landTextures_mc.landTexture9_mc._y = landTextures_mc.landTexture9_mc._y + 500;
docks_mc.attachMovie("dockArea", "halifaxDock_mc", 209);
docks_mc.halifaxDock_mc._x = _parent._x - 9275;
docks_mc.halifaxDock_mc._y = _parent._y - 2663;
docks_mc.halifaxDock_mc._visible = false;
waterTextures_mc._x = -9275;
waterTextures_mc._y = -2668;
waterTextures_mc._alpha = 50;
waterTextures_mc.attachMovie("waterTexture", "waterTexture1_mc", 201, textureWater);
waterTextures_mc.waterTexture1_mc._x = waterTextures_mc.waterTexture1_mc._x - 500;
waterTextures_mc.waterTexture1_mc._y = waterTextures_mc.waterTexture1_mc._y - 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture2_mc", 202, textureWater);
waterTextures_mc.waterTexture2_mc._y = waterTextures_mc.waterTexture2_mc._y - 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture3_mc", 203, textureWater);
waterTextures_mc.waterTexture3_mc._x = waterTextures_mc.waterTexture3_mc._x + 500;
waterTextures_mc.waterTexture3_mc._y = waterTextures_mc.waterTexture3_mc._y - 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture4_mc", 204, textureWater);
waterTextures_mc.waterTexture4_mc._x = waterTextures_mc.waterTexture4_mc._x - 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture5_mc", 205, textureWater);
waterTextures_mc.attachMovie("waterTexture", "waterTexture6_mc", 206, textureWater);
waterTextures_mc.waterTexture6_mc._x = waterTextures_mc.waterTexture6_mc._x + 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture7_mc", 207, textureWater);
waterTextures_mc.waterTexture7_mc._x = waterTextures_mc.waterTexture7_mc._x - 500;
waterTextures_mc.waterTexture7_mc._y = waterTextures_mc.waterTexture7_mc._y + 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture8_mc", 208, textureWater);
waterTextures_mc.waterTexture8_mc._y = waterTextures_mc.waterTexture8_mc._y + 500;
waterTextures_mc.attachMovie("waterTexture", "waterTexture9_mc", 209, textureWater);
waterTextures_mc.waterTexture9_mc._x = waterTextures_mc.waterTexture9_mc._x + 500;
waterTextures_mc.waterTexture9_mc._y = waterTextures_mc.waterTexture9_mc._y + 500;
Symbol 688 MovieClip Frame 15
stop();
Symbol 689 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
fireworksSound = new Sound(this);
fireworksSound.attachSound("firework");
fireworksSound.start();
Symbol 691 MovieClip Frame 15
stop();
Symbol 692 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
fireworksSound = new Sound(this);
fireworksSound.attachSound("firework");
fireworksSound.start();
Symbol 693 MovieClip Frame 34
stop();
Symbol 694 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
tellTarget ("isk" add i) {
gotoAndPlay(random(5));
};
i = Number(i) + 1;
}
fireworksSound = new Sound(this);
fireworksSound.attachSound("firework");
fireworksSound.start();