Frame 1
blackanimation.gotoAndStop(15);
Stage.showMenu = false;
var debug = true;
var gameID = 85;
var gameName = "blacksails";
stop();
fscommand ("showmenu", "false");
prel.onEnterFrame = function () {
prel.procent.text = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) > 99) {
play();
delete this.onEnterFrame;
}
};
Frame 2
stop();
Frame 4
stop();
_quality = "HIGH";
Frame 5
stop();
yourflag = 1;
shipmon = 1;
yourcannons = 1;
sails = 0.99;
men = 20;
heroHP = 20;
maximumHP = _root.heroHP;
newshipmodel = 1;
shipdamagere = 0;
mymonth = 1;
enemyabordaged = false;
enemy2abordaged = false;
cannonballsc = 100;
chainballsc = 50;
grapeballsc = 30;
bombballsc = 20;
guns = 20;
swords = 50;
mymonth = 1;
score = 0;
_root.flagportroyale = 1;
_root.flagtortuga = 4;
_root.flagportauprince = 3;
_root.flagaltuira = 3;
_root.flaglatasia = 1;
_root.flagstpabloport = 2;
_root.flaggvadelupa = 2;
_root.flagmartinica = 2;
_root.flagmargarita = 3;
_root.flagcaracas = 3;
_root.flagportospain = 3;
_root.flagmaracaibo = 3;
_root.flagsantamarta = 3;
_root.flagalexandria = 4;
_root.flagbarbosa = 4;
_root.flagsantodominigo = 1;
_root.flagignatiusport = 3;
_root.flagarmando = 3;
_root.flaghavana = 3;
_root.flagwandisland = 1;
_root.flagfortorichardo = 1;
_root.flagdeloubre = 2;
_root.flaggrandbahama = 1;
_root.flagfortcaroline = 1;
_root.flageleuthera = 1;
_root.flagpensacola = 2;
_root.flagbiloxi = 2;
_root.flagneworleans = 2;
_root.flagsisal = 3;
_root.flagcorpuschristi = 3;
_root.flagcampeche = 3;
_root.flagveracruz = 3;
_root.flagtampico = 3;
bt_start.onRelease = function () {
var _local1 = SharedObject.getLocal("savedObject");
for (var _local2 in _local1.data) {
delete _local1.data[_local2];
}
_local1.flush();
};
bt_back.onRelease = function () {
var _local1 = SharedObject.getLocal("savedObject");
for (var _local2 in _local1.data) {
delete _local1.data[_local2];
}
_local1.flush();
};
Instance of Symbol 225 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 272 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.yourflag == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 276 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.yourflag == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 280 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.yourflag == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 287 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.shipmon == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 293 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.shipmon == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 7
music.gotoAndStop(17);
blackanimation.gotoAndPlay(2);
Frame 8
wintext = ((("" + yourname) + " the King of ") + winneras) + "";
blackanimation.gotoAndPlay(2);
Instance of Symbol 332 MovieClip in Frame 8
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Frame 9
function updateScoreboard(sNum) {
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
_root["mcScoreboard" + sNum].mcLoading._visible = false;
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = _root["mcScoreboard" + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.item = myPlayer.length;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.speedy = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.desty = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "ups")) {
trace("ups");
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
trace((this._parent.mcBlock._height + " - ") + (this.mcScore._height * this.item));
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "downs")) {
trace("downs");
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
if (sNum == 1) {
updateScoreboard(2);
}
};
if (sNum == 1) {
xmlPlayer.load((((("http://" + _root.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _root.gameID) + "&rand=") + random(999999));
} else if (sNum == 2) {
xmlPlayer.load(((((("http://" + _root.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _root.gameID) + "&rand=") + random(999999)) + "&filt=1");
}
}
stop();
var gameID = 85;
Dsource = "www";
mcScoreboard1.sboard.dir = "stop";
mcScoreboard2.sboard.dir = "stop";
mcScoreboard1.sboard.mcScoreHolder.mcScore._visible = false;
mcScoreboard2.sboard.mcScoreHolder.mcScore._visible = false;
updateScoreboard(1);
btnMain.onRelease = function () {
currentPage = "main";
fader.play();
};
Frame 10
onEnterFrame = function () {
if (_root.men > _root.menship) {
_root.men--;
}
};
_root.level._x = _root.levelxpos;
_root.level._y = _root.levelypos;
_root.level2._x = _root.leveltopxpos;
_root.level2._y = _root.leveltopypos;
_root.music.gotoAndStop(3);
_root.pausegame = false;
_root.sails = 0.99;
stop();
Speed = 3;
tiny = 100;
small = 200;
medium = 400;
huge = 600;
enemyabordaged = false;
enemy2abordaged = false;
_quality = "LOW";
_root.pausegame = false;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (_root.pausegame == false) {
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
hero.gotoAndStop("runS");
}
if (level.land.hitTest(hero._x, hero._y, true)) {
level._x = level.xold;
level._y = level.yold;
level2._x = level.xold;
level2._y = level.yold;
}
level.xold = level._x;
level.yold = level._y;
level._x = level._x + levelMoveX;
level._y = level._y + levelMoveY;
level2._x = level2._x + levelMoveX;
level2._y = level2._y + levelMoveY;
}
};
Instance of Symbol 369 MovieClip "level" in Frame 10
onClipEvent (load) {
_x = _root.levelxpos;
_y = _root.levelypos;
xold = _x;
yold = _y;
}
Instance of Symbol 449 MovieClip "level2" in Frame 10
onClipEvent (load) {
_x = _root.leveltopxpos;
_y = _root.leveltopypos;
xold = _x;
yold = _y;
}
Instance of Symbol 560 MovieClip "question" in Frame 10
onClipEvent (enterFrame) {
if (((((((((((((((((((((((((((((((((_root.flagportroyale == _root.yourflag) and (_root.flagportauprince == _root.yourflag)) and (_root.flagtortuga == _root.yourflag)) and (_root.flagaltuira == _root.yourflag)) and (_root.flaglatasia == _root.yourflag)) and (_root.flagstpabloport == _root.yourflag)) and (_root.flaggvadelupa == _root.yourflag)) and (_root.flagmartinica == _root.yourflag)) and (_root.flagmargarita == _root.yourflag)) and (_root.flagcaracas == _root.yourflag)) and (_root.flagportospain == _root.yourflag)) and (_root.flagmaracaibo == _root.yourflag)) and (_root.flagsantamarta == _root.yourflag)) and (_root.flagalexandria == _root.yourflag)) and (_root.flagbarbosa == _root.yourflag)) and (_root.flagsantodominigo == _root.yourflag)) and (_root.flagignatiusport == _root.yourflag)) and (_root.flagarmando == _root.yourflag)) and (_root.flaghavana == _root.yourflag)) and (_root.flagwandisland == _root.yourflag)) and (_root.flagfortorichardo == _root.yourflag)) and (_root.flagdeloubre == _root.yourflag)) and (_root.flaggrandbahama == _root.yourflag)) and (_root.flagfortcaroline == _root.yourflag)) and (_root.flageleuthera == _root.yourflag)) and (_root.flagpensacola == _root.yourflag)) and (_root.flagbiloxi == _root.yourflag)) and (_root.flagneworleans == _root.yourflag)) and (_root.flagsisal == _root.yourflag)) and (_root.flagcorpuschristi == _root.yourflag)) and (_root.flagcampeche == _root.yourflag)) and (_root.flagveracruz == _root.yourflag)) and (_root.flagtampico == _root.yourflag)) {
_root.gotoAndStop("winner");
}
}
Instance of Symbol 838 MovieClip "ship" in Frame 10
onClipEvent (enterFrame) {
_root.heroHP = _root.maximumHP;
}
Instance of Symbol 840 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.day == 0) {
_root.men = 20;
this.gotoAndPlay(2);
}
}
Instance of Symbol 879 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
_x = (_x + _root.windx);
_y = (_y + _root.windy);
}
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
accel = _root.ship.acceleration;
rotate = _root.ship._rotation;
xm = Math.cos(rotate * (Math.PI/180)) * accel;
ym = Math.sin(rotate * (Math.PI/180)) * accel;
_x = (_x - xm);
_y = (_y - ym);
}
}
Frame 15
_quality = "HIGH";
stop();
_root.windx = (random(50) / 200) - (random(50) / 200);
_root.windy = (random(50) / 200) - (random(50) / 200);
_root.cannonballspeed = 3;
_root.enemyweapon = random(4) + 1;
_root.enemyabordaged = false;
_root.enemy2abordaged = false;
_root.aenemy2dead = false;
Instance of Symbol 885 MovieClip "bwater" in Frame 15
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
accel = _root.ship.acceleration;
rotate = _root.ship._rotation;
xm = Math.cos(rotate * (Math.PI/180)) * accel;
ym = Math.sin(rotate * (Math.PI/180)) * accel;
_x = (_x - xm);
_y = (_y - ym);
_y = (_y - _root.windy);
_x = (_x - _root.windx);
}
}
Instance of Symbol 886 MovieClip "watertiles" in Frame 15
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 886 MovieClip "waterdummy" in Frame 15
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 886 MovieClip "firedummy" in Frame 15
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 886 MovieClip "waterdummy2" in Frame 15
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 886 MovieClip "waterdummy3" in Frame 15
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 886 MovieClip "firedummy2" in Frame 15
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 911 MovieClip "enemy" in Frame 15
onClipEvent (load) {
if (_root.shipmodel >= 1) {
model = random(3);
}
if (_root.shipmodel >= 2) {
model = random(4);
}
if (_root.shipmodel >= 3) {
model = random(5);
}
if (_root.shipmodel >= 4) {
model = random(7);
}
if (_root.shipmodel >= 5) {
model = random(8);
}
if (_root.shipmodel >= 6) {
model = random(9);
}
if (_root.shipmodel >= 7) {
model = random(10);
}
if (_root.shipmodel >= 8) {
model = random(10) + 1;
}
if (_root.shipmodel >= 9) {
model = random(10) + 2;
}
if (_root.shipmodel >= 10) {
model = random(10) + 3;
}
if (_root.shipmodel >= 11) {
model = random(10) + 4;
}
if (_root.shipmodel >= 12) {
model = random(10) + 5;
}
if (_root.shipmodel >= 13) {
model = random(10) + 6;
}
if (_root.shipmodel >= 14) {
model = random(10) + 7;
}
if (_root.shipmodel >= 15) {
model = random(8) + 9;
}
if (_root.shipmodel >= 16) {
model = random(6) + 11;
}
if (_root.shipmodel >= 17) {
model = random(4) + 13;
}
if (_root.shipmodel >= 19) {
model = random(4) + 13;
}
trace(model);
enemydead = false;
_root.abordage = 0;
this.dead = false;
_root.sailsenemy = 0.99;
_x = random(650);
_y = random(150);
speed = 1 + random(2);
dx = 0;
dy = 0;
wtn = 0;
wtd = 0;
fire = 0;
wrot = 0;
wx = 0;
wy = 0;
}
onClipEvent (enterFrame) {
if (enemydead == false) {
this.gotoAndStop(model);
}
if ((!_root.abordage) == 1) {
if (_root.pausegame == false) {
if (this.dead == false) {
if (_root.enemyabordaged == false) {
dx = _root.ship._x - _x;
dy = _root.ship._y - _y;
rad = Math.atan(dy / dx);
if (dx < 0) {
rot = 180 + ((rad * 180) / Math.PI);
} else {
rot = (rad * 180) / Math.PI;
}
_rotation = (rot - 90);
this.sails.gotoAndStop(40);
vx = speed * Math.cos((_rotation * Math.PI) / 180);
vy = speed * Math.sin((_rotation * Math.PI) / 180);
_x = (_x + vx);
_y = (_y + vy);
wtn++;
if (wtn > 2) {
wtd++;
if (wtd > 100) {
wtd = 0;
}
_root.waterdummy2.attachMovie("water", "wtr" + wtd, wtd, {_x:this._x, _y:this._y, _rotation:this._rotation});
wtn = 0;
}
_y = (_y + _root.windy);
_x = (_x + _root.windx);
}
}
}
}
}
onClipEvent (enterFrame) {
if ((((this.rightsideattack.hitTest(_root.ship) and (_root.right2side >= 1)) and (_root.pausegame == false)) and (this.dead == false)) and (_root.enemyabordaged == false)) {
if ((!_root.abordage) == 1) {
i = 0;
while (i < cannons) {
fire++;
this.rightreload.gotoAndPlay(2);
if (fire > 100) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy2.attachMovie("cannonball2", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation + 90) + random(15)});
i++;
}
}
}
if ((((this.leftsideattack.hitTest(_root.ship) and (_root.left2side >= 1)) and (_root.pausegame == false)) and (this.dead == false)) and (_root.enemyabordaged == false)) {
if ((!_root.abordage) == 1) {
i = 0;
while (i < this.cannons) {
fire++;
this.leftreload.gotoAndPlay(2);
if (fire > 50) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy2.attachMovie("cannonball2", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation - 90) + random(15)});
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
accel = _root.ship.acceleration;
rotate = _root.ship._rotation;
xm = Math.cos(rotate * (Math.PI/180)) * accel;
ym = Math.sin(rotate * (Math.PI/180)) * accel;
_x = (_x - xm);
_y = (_y - ym);
_y = (_y - _root.windy);
_x = (_x - _root.windx);
if (_x < _root.bwater._x) {
_x = _root.bwater._x;
}
if (_x > (_root.bwater._x + 1500)) {
_x = (_root.bwater._x + 1500);
}
if (_y < _root.bwater._y) {
_y = _root.bwater._y;
}
if (_y > (_root.bwater._y + 1500)) {
_y = (_root.bwater._y + 1500);
}
}
if ((_root.enemyHP <= 0) and (enemydead == false)) {
enemydead = true;
_root.points = Number(_root.points) + (200 * this._currentframe);
_root.score = Number(_root.score) + (200 * this._currentframe);
this.gotoAndStop(20);
}
}
Instance of Symbol 838 MovieClip "ship" in Frame 15
onClipEvent (load) {
acceleration = 2;
rot = 0.1;
speed = 0.1;
rotate = 0;
wtd = 0;
wtn = 0;
fire = 0;
wrot = 0;
wx = 0;
wy = 0;
levelMoveX = 0;
levelMoveY = 0;
_root.heroHP = _root.maximumHP;
_root.weaponshot = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(49)) {
_root.weapon = 1;
this.model.leftreload.gotoAndPlay(3);
this.model.rightreload.gotoAndPlay(3);
} else if (Key.isDown(50)) {
_root.weapon = 2;
this.model.leftreload.gotoAndPlay(3);
this.model.rightreload.gotoAndPlay(3);
} else if (Key.isDown(51)) {
_root.weapon = 3;
this.model.leftreload.gotoAndPlay(3);
this.model.rightreload.gotoAndPlay(3);
} else if (Key.isDown(52)) {
_root.weapon = 4;
this.model.leftreload.gotoAndPlay(3);
this.model.rightreload.gotoAndPlay(3);
}
if (_root.pausegame == false) {
if ((!_root.abordage) == 1) {
if ((!_root.abordage2) == 1) {
if (Key.isDown(37)) {
if (rotate > -1.5) {
rotate = rotate - rot;
}
}
if (Key.isDown(39)) {
if (rotate < 1.5) {
rotate = rotate + rot;
}
}
if (Key.isDown(38)) {
acceleration = acceleration + speed;
this.model.sails.gotoAndStop(this.model.sails._currentframe + 1);
} else {
this.model.sails.gotoAndStop(this.model.sails._currentframe - 1);
}
if (Key.isDown(40)) {
acceleration = acceleration - speed;
}
_rotation = (_rotation + rotate);
xmov = Math.cos(_rotation * (Math.PI/180)) * acceleration;
ymov = Math.sin(_rotation * (Math.PI/180)) * acceleration;
_x = (_x + xmov);
_y = (_y + ymov);
rotate = rotate * 0.95;
acceleration = acceleration * _root.sails;
if (acceleration >= 1) {
acceleration = 1;
}
if (acceleration <= 0) {
acceleration = 0;
}
if (_root.sails <= 0.75) {
_root.sails = 0.75;
this.model.sails._alpha = 75;
}
if (acceleration >= 0.1) {
wtn++;
if (wtn > 2) {
wtd++;
if (wtd > 100) {
wtd = 0;
}
_root.waterdummy.attachMovie("water", "wtr" + wtd, wtd, {_x:this._x, _y:this._y, _rotation:this._rotation});
wtn = 0;
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (((Key.isDown(88) and (_root.rightside >= 1)) and (_root.weaponshot >= 1)) and (_root.pausegame == false)) {
if (((!_root.abordage) == 1) or (_root.abordage2 == 1)) {
i = 0;
while (i < this.model.cannons) {
fire++;
this.model.rightreload.gotoAndPlay(2);
if (fire > 40) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy.attachMovie("cannonball", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation + 90) + random(15)});
i++;
}
}
}
if (((Key.isDown(90) and (_root.leftside >= 1)) and (_root.weaponshot >= 1)) and (_root.pausegame == false)) {
if (((!_root.abordage) == 1) or (_root.abordage2 == 1)) {
i = 0;
while (i < this.model.cannons) {
fire++;
this.model.leftreload.gotoAndPlay(2);
if (fire > 100) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy.attachMovie("cannonball", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation - 90) + random(15)});
i++;
}
}
if (Key.isDown(69)) {
_root.clouds = false;
_root.effects = false;
}
if (Key.isDown(87)) {
_root.clouds = true;
_root.effects = true;
}
xold = this._x;
yold = this._y;
this._x = this._x + levelMoveX;
this._y = this._y + levelMoveY;
}
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
if (_x <= 150) {
_root.bwater._x = _root.bwater._x + accel;
_root.enemy._x = _root.enemy._x + accel;
_root.enemy2._x = _root.enemy2._x + accel;
_x = (_x + accel);
}
if (_x >= 450) {
_root.bwater._x = _root.bwater._x - accel;
_root.enemy._x = _root.enemy._x - accel;
_root.enemy2._x = _root.enemy2._x - accel;
_x = (_x - accel);
}
if (_y <= 150) {
_root.bwater._y = _root.bwater._y + accel;
_root.enemy._y = _root.enemy._y + accel;
_root.enemy2._y = _root.enemy2._y + accel;
_y = (_y + accel);
}
if (_y >= 350) {
_root.bwater._y = _root.bwater._y - accel;
_root.enemy._y = _root.enemy._y - accel;
_root.enemy2._y = _root.enemy2._y - accel;
_y = (_y - accel);
}
if (_x < _root.bwater._x) {
_x = _root.bwater._x;
}
if (_x > (_root.bwater._x + 1500)) {
_x = (_root.bwater._x + 1500);
}
if (_y < _root.bwater._y) {
_y = _root.bwater._y;
}
if (_y > (_root.bwater._y + 1500)) {
_y = (_root.bwater._y + 1500);
}
accel = acceleration;
}
if (_root.enemy.shipbody.hitTest(this._x, this._y, true)) {
_root.abordage = 1;
this._x = xold;
this._y = yold;
}
if (_root.enemy2.shipbody.hitTest(this._x, this._y, true)) {
_root.abordage2 = 1;
this._x = xold;
this._y = yold;
}
xold = this._x;
yold = this._y;
if ((_root.abordage == 1) or (_root.abordage2 == 1)) {
_y = (_y - _root.windy);
_x = (_x - _root.windx);
acceleration = 0;
}
}
Instance of Symbol 911 MovieClip "enemy2" in Frame 15
onClipEvent (load) {
if (_root.shipmodel >= 1) {
model = random(3);
}
if (_root.shipmodel >= 2) {
model = random(4);
}
if (_root.shipmodel >= 3) {
model = random(5);
}
if (_root.shipmodel >= 4) {
model = random(7);
}
if (_root.shipmodel >= 5) {
model = random(8);
}
if (_root.shipmodel >= 6) {
model = random(9);
}
if (_root.shipmodel >= 7) {
model = random(10);
}
if (_root.shipmodel >= 8) {
model = random(10) + 1;
}
if (_root.shipmodel >= 9) {
model = random(10) + 2;
}
if (_root.shipmodel >= 10) {
model = random(10) + 3;
}
if (_root.shipmodel >= 11) {
model = random(10) + 4;
}
if (_root.shipmodel >= 12) {
model = random(10) + 5;
}
if (_root.shipmodel >= 13) {
model = random(10) + 6;
}
if (_root.shipmodel >= 14) {
model = random(10) + 7;
}
if (_root.shipmodel >= 15) {
model = random(8) + 9;
}
if (_root.shipmodel >= 16) {
model = random(6) + 11;
}
if (_root.shipmodel >= 17) {
model = random(4) + 13;
}
if (_root.shipmodel >= 19) {
model = random(4) + 13;
}
trace(model);
enemydead = false;
_root.abordage2 = 0;
this.dead = false;
_root.sails2enemy = 0.99;
_x = random(650);
_y = random(500);
speed = 1 + random(1);
dx = 0;
dy = 0;
wtn = 0;
wtd = 0;
fire = 0;
wrot = 0;
wx = 0;
wy = 0;
}
onClipEvent (enterFrame) {
if (enemydead == false) {
this.gotoAndStop(model);
}
if ((!_root.abordage2) == 1) {
if (_root.pausegame == false) {
if (this.dead == false) {
if (_root.enemy2abordaged == false) {
dx = _root.ship._x - _x;
dy = _root.ship._y - _y;
rad = Math.atan(dy / dx);
if (dx < 0) {
rot = 180 + ((rad * 180) / Math.PI);
} else {
rot = (rad * 180) / Math.PI;
}
_rotation = (rot - 90);
this.sails.gotoAndStop(40);
vx = speed * Math.cos((_rotation * Math.PI) / 180);
vy = speed * Math.sin((_rotation * Math.PI) / 180);
_x = (_x + vx);
_y = (_y + vy);
wtn++;
if (wtn > 2) {
wtd++;
if (wtd > 100) {
wtd = 0;
}
_root.waterdummy3.attachMovie("water", "wtr" + wtd, wtd, {_x:this._x, _y:this._y, _rotation:this._rotation});
wtn = 0;
}
_y = (_y + _root.windy);
_x = (_x + _root.windx);
}
}
}
}
}
onClipEvent (enterFrame) {
if ((((this.rightsideattack.hitTest(_root.ship) and (_root.right2side >= 1)) and (_root.pausegame == false)) and (this.dead == false)) and (_root.enemy2abordaged == false)) {
if ((!_root.abordage2) == 1) {
i = 0;
while (i < cannons) {
fire++;
this.rightreload.gotoAndPlay(2);
if (fire > 100) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy2.attachMovie("cannonball2", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation + 90) + random(15)});
i++;
}
}
}
if ((((this.leftsideattack.hitTest(_root.ship) and (_root.left2side >= 1)) and (_root.pausegame == false)) and (this.dead == false)) and (_root.enemy2abordaged == false)) {
if ((!_root.abordage2) == 1) {
i = 0;
while (i < this.cannons) {
fire++;
this.leftreload.gotoAndPlay(2);
if (fire > 50) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy2.attachMovie("cannonball2", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation - 90) + random(15)});
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
accel = _root.ship.acceleration;
rotate = _root.ship._rotation;
xm = Math.cos(rotate * (Math.PI/180)) * accel;
ym = Math.sin(rotate * (Math.PI/180)) * accel;
_x = (_x - xm);
_y = (_y - ym);
_y = (_y - _root.windy);
_x = (_x - _root.windx);
if (_x < _root.bwater._x) {
_x = _root.bwater._x;
}
if (_x > (_root.bwater._x + 1500)) {
_x = (_root.bwater._x + 1500);
}
if (_y < _root.bwater._y) {
_y = _root.bwater._y;
}
if (_y > (_root.bwater._y + 1500)) {
_y = (_root.bwater._y + 1500);
}
}
if ((_root.enemy2HP <= 0) and (enemydead == false)) {
enemydead = true;
_root.points = Number(_root.points) + (200 * this._currentframe);
_root.score = Number(_root.score) + (200 * this._currentframe);
this.gotoAndStop(20);
}
}
Instance of Symbol 998 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.aenemy2dead == false) {
if (_root.explosion == 1) {
if ((_root.enemy.dead == true) and (_root.enemy2.dead == true)) {
this.gotoAndStop(91);
}
if ((_root.enemy.dead == true) and (_root.enemy2abordaged == true)) {
this.gotoAndStop(93);
}
if ((_root.enemyabordaged == true) and (_root.enemy2.dead == true)) {
this.gotoAndStop(94);
}
if ((_root.enemy2abordaged == true) and (_root.enemyabordaged == true)) {
this.gotoAndStop(92);
}
}
}
if (_root.aenemy2dead == true) {
if (_root.explosion == 1) {
if (_root.enemy.dead == true) {
this.gotoAndStop(91);
}
if (_root.enemyabordaged) {
this.gotoAndStop(94);
}
}
}
}
Frame 16
_quality = "HIGH";
stop();
_root.windx = (random(50) / 200) - (random(50) / 200);
_root.windy = (random(50) / 200) - (random(50) / 200);
_root.cannonballspeed = 3;
_root.enemyweapon = random(4) + 1;
_root.enemyabordaged = false;
_root.enemy2abordaged = false;
_root.aenemy2dead = true;
_root.enemy2.dead = true;
Instance of Symbol 911 MovieClip "enemy" in Frame 16
onClipEvent (load) {
if (_root.shipmodel >= 1) {
model = random(3);
}
if (_root.shipmodel >= 2) {
model = random(4);
}
if (_root.shipmodel >= 3) {
model = random(5);
}
if (_root.shipmodel >= 4) {
model = random(7);
}
if (_root.shipmodel >= 5) {
model = random(8);
}
if (_root.shipmodel >= 6) {
model = random(9);
}
if (_root.shipmodel >= 7) {
model = random(10);
}
if (_root.shipmodel >= 8) {
model = random(10) + 1;
}
if (_root.shipmodel >= 9) {
model = random(10) + 2;
}
if (_root.shipmodel >= 10) {
model = random(10) + 3;
}
if (_root.shipmodel >= 11) {
model = random(10) + 4;
}
if (_root.shipmodel >= 12) {
model = random(10) + 5;
}
if (_root.shipmodel >= 13) {
model = random(10) + 6;
}
if (_root.shipmodel >= 14) {
model = random(10) + 7;
}
if (_root.shipmodel >= 15) {
model = random(8) + 9;
}
if (_root.shipmodel >= 16) {
model = random(6) + 11;
}
if (_root.shipmodel >= 17) {
model = random(4) + 13;
}
if (_root.shipmodel >= 19) {
model = random(4) + 13;
}
trace(model);
enemydead = false;
_root.abordage = 0;
this.dead = false;
_root.sailsenemy = 0.99;
_x = random(650);
_y = (350 + random(150));
speed = 1 + random(2);
dx = 0;
dy = 0;
wtn = 0;
wtd = 0;
fire = 0;
wrot = 0;
wx = 0;
wy = 0;
}
onClipEvent (enterFrame) {
if (enemydead == false) {
this.gotoAndStop(model);
}
if ((!_root.abordage) == 1) {
if (_root.pausegame == false) {
if (this.dead == false) {
if (_root.enemyabordaged == false) {
dx = _root.ship._x - _x;
dy = _root.ship._y - _y;
rad = Math.atan(dy / dx);
if (dx < 0) {
rot = 180 + ((rad * 180) / Math.PI);
} else {
rot = (rad * 180) / Math.PI;
}
_rotation = (rot - 90);
this.sails.gotoAndStop(40);
vx = speed * Math.cos((_rotation * Math.PI) / 180);
vy = speed * Math.sin((_rotation * Math.PI) / 180);
_x = (_x + vx);
_y = (_y + vy);
wtn++;
if (wtn > 2) {
wtd++;
if (wtd > 100) {
wtd = 0;
}
_root.waterdummy2.attachMovie("water", "wtr" + wtd, wtd, {_x:this._x, _y:this._y, _rotation:this._rotation});
wtn = 0;
}
_y = (_y + _root.windy);
_x = (_x + _root.windx);
}
}
}
}
}
onClipEvent (enterFrame) {
if ((((this.rightsideattack.hitTest(_root.ship) and (_root.right2side >= 1)) and (_root.pausegame == false)) and (this.dead == false)) and (_root.enemyabordaged == false)) {
if ((!_root.abordage) == 1) {
i = 0;
while (i < cannons) {
fire++;
this.rightreload.gotoAndPlay(2);
if (fire > 100) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy2.attachMovie("cannonball2", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation + 90) + random(15)});
i++;
}
}
}
if ((((this.leftsideattack.hitTest(_root.ship) and (_root.left2side >= 1)) and (_root.pausegame == false)) and (this.dead == false)) and (_root.enemyabordaged == false)) {
if ((!_root.abordage) == 1) {
i = 0;
while (i < this.cannons) {
fire++;
this.leftreload.gotoAndPlay(2);
if (fire > 50) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy2.attachMovie("cannonball2", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation - 90) + random(15)});
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
accel = _root.ship.acceleration;
rotate = _root.ship._rotation;
xm = Math.cos(rotate * (Math.PI/180)) * accel;
ym = Math.sin(rotate * (Math.PI/180)) * accel;
_x = (_x - xm);
_y = (_y - ym);
_y = (_y - _root.windy);
_x = (_x - _root.windx);
if (_x < _root.bwater._x) {
_x = _root.bwater._x;
}
if (_x > (_root.bwater._x + 1500)) {
_x = (_root.bwater._x + 1500);
}
if (_y < _root.bwater._y) {
_y = _root.bwater._y;
}
if (_y > (_root.bwater._y + 1500)) {
_y = (_root.bwater._y + 1500);
}
}
if ((_root.enemyHP <= 0) and (enemydead == false)) {
enemydead = true;
_root.points = Number(_root.points) + (200 * this._currentframe);
_root.score = Number(_root.score) + (200 * this._currentframe);
this.gotoAndStop(20);
}
}
Instance of Symbol 838 MovieClip "ship" in Frame 16
onClipEvent (load) {
acceleration = 2;
rot = 0.1;
speed = 0.1;
rotate = 0;
wtd = 0;
wtn = 0;
fire = 0;
wrot = 0;
wx = 0;
wy = 0;
levelMoveX = 0;
levelMoveY = 0;
_root.heroHP = _root.maximumHP;
_root.weaponshot = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(49)) {
_root.weapon = 1;
this.model.leftreload.gotoAndPlay(3);
this.model.rightreload.gotoAndPlay(3);
} else if (Key.isDown(50)) {
_root.weapon = 2;
this.model.leftreload.gotoAndPlay(3);
this.model.rightreload.gotoAndPlay(3);
} else if (Key.isDown(51)) {
_root.weapon = 3;
this.model.leftreload.gotoAndPlay(3);
this.model.rightreload.gotoAndPlay(3);
} else if (Key.isDown(52)) {
_root.weapon = 4;
this.model.leftreload.gotoAndPlay(3);
this.model.rightreload.gotoAndPlay(3);
}
if (_root.pausegame == false) {
if ((!_root.abordage) == 1) {
if ((!_root.abordage2) == 1) {
if (Key.isDown(37)) {
if (rotate > -1.5) {
rotate = rotate - rot;
}
}
if (Key.isDown(39)) {
if (rotate < 1.5) {
rotate = rotate + rot;
}
}
if (Key.isDown(38)) {
acceleration = acceleration + speed;
this.model.sails.gotoAndStop(this.model.sails._currentframe + 1);
} else {
this.model.sails.gotoAndStop(this.model.sails._currentframe - 1);
}
if (Key.isDown(40)) {
acceleration = acceleration - speed;
}
_rotation = (_rotation + rotate);
xmov = Math.cos(_rotation * (Math.PI/180)) * acceleration;
ymov = Math.sin(_rotation * (Math.PI/180)) * acceleration;
_x = (_x + xmov);
_y = (_y + ymov);
rotate = rotate * 0.95;
acceleration = acceleration * _root.sails;
if (acceleration >= 1) {
acceleration = 1;
}
if (acceleration <= 0) {
acceleration = 0;
}
if (_root.sails <= 0.75) {
_root.sails = 0.75;
this.model.sails._alpha = 75;
}
if (acceleration >= 0.1) {
wtn++;
if (wtn > 2) {
wtd++;
if (wtd > 100) {
wtd = 0;
}
_root.waterdummy.attachMovie("water", "wtr" + wtd, wtd, {_x:this._x, _y:this._y, _rotation:this._rotation});
wtn = 0;
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (((Key.isDown(88) and (_root.rightside >= 1)) and (_root.weaponshot >= 1)) and (_root.pausegame == false)) {
if (((!_root.abordage) == 1) or (_root.abordage2 == 1)) {
i = 0;
while (i < this.model.cannons) {
fire++;
this.model.rightreload.gotoAndPlay(2);
if (fire > 40) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy.attachMovie("cannonball", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation + 90) + random(15)});
i++;
}
}
}
if (((Key.isDown(90) and (_root.leftside >= 1)) and (_root.weaponshot >= 1)) and (_root.pausegame == false)) {
if (((!_root.abordage) == 1) or (_root.abordage2 == 1)) {
i = 0;
while (i < this.model.cannons) {
fire++;
this.model.leftreload.gotoAndPlay(2);
if (fire > 100) {
fire = 0;
}
wrot = random(90) - random(90);
wx = Math.cos(wrot * (Math.PI/180)) * 5;
wy = Math.sin(wrot * (Math.PI/180)) * 5;
_root.firedummy.attachMovie("cannonball", "ball" + fire, fire, {_x:_x + wx, _y:_y + wy, _rotation:(this._rotation - 90) + random(15)});
i++;
}
}
if (Key.isDown(69)) {
_root.clouds = false;
_root.effects = false;
}
if (Key.isDown(87)) {
_root.clouds = true;
_root.effects = true;
}
xold = this._x;
yold = this._y;
this._x = this._x + levelMoveX;
this._y = this._y + levelMoveY;
}
}
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
if (_x <= 150) {
_root.bwater._x = _root.bwater._x + accel;
_root.enemy._x = _root.enemy._x + accel;
_root.enemy2._x = _root.enemy2._x + accel;
_x = (_x + accel);
}
if (_x >= 450) {
_root.bwater._x = _root.bwater._x - accel;
_root.enemy._x = _root.enemy._x - accel;
_root.enemy2._x = _root.enemy2._x - accel;
_x = (_x - accel);
}
if (_y <= 150) {
_root.bwater._y = _root.bwater._y + accel;
_root.enemy._y = _root.enemy._y + accel;
_root.enemy2._y = _root.enemy2._y + accel;
_y = (_y + accel);
}
if (_y >= 350) {
_root.bwater._y = _root.bwater._y - accel;
_root.enemy._y = _root.enemy._y - accel;
_root.enemy2._y = _root.enemy2._y - accel;
_y = (_y - accel);
}
if (_x < _root.bwater._x) {
_x = _root.bwater._x;
}
if (_x > (_root.bwater._x + 1500)) {
_x = (_root.bwater._x + 1500);
}
if (_y < _root.bwater._y) {
_y = _root.bwater._y;
}
if (_y > (_root.bwater._y + 1500)) {
_y = (_root.bwater._y + 1500);
}
accel = acceleration;
}
if (_root.enemy.shipbody.hitTest(this._x, this._y, true)) {
_root.abordage = 1;
this._x = xold;
this._y = yold;
}
if (_root.enemy2.shipbody.hitTest(this._x, this._y, true)) {
_root.abordage2 = 1;
this._x = xold;
this._y = yold;
}
xold = this._x;
yold = this._y;
if ((_root.abordage == 1) or (_root.abordage2 == 1)) {
_y = (_y - _root.windy);
_x = (_x - _root.windx);
acceleration = 0;
}
}
Frame 17
_quality = "HIGH";
stop();
_root.windx = (random(50) / 200) - (random(50) / 200);
_root.windy = (random(50) / 200) - (random(50) / 200);
_root.cannonballspeed = 3;
_root.enemyweapon = random(4) + 1;
_root.enemyabordaged = false;
_root.aenemy2dead = true;
_root.enemy2.dead = true;
Frame 41
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 1054 MovieClip in Frame 41
onClipEvent (enterFrame) {
gotoAndStop(_root.town);
}
Instance of Symbol 394 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen = 1;
} else {
_root.Buildingopen = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen3 = 1;
} else {
_root.Buildingopen3 = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen4 = 1;
} else {
_root.Buildingopen4 = 0;
}
}
Instance of Symbol 225 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 1065 MovieClip in Frame 41
onClipEvent (load) {
gotoAndStop(_root.town);
}
Instance of Symbol 1105 MovieClip "hero" in Frame 41
onClipEvent (load) {
xold = _x;
yold = _y;
}
Instance of Symbol 568 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
if (((Key.isDown(38) or Key.isDown(40)) or Key.isDown(37)) or Key.isDown(39)) {
this.timegoes.gotoAndStop(this.timegoes._currentframe + 1);
}
}
}
Instance of Symbol 332 MovieClip "flagtown" in Frame 41
onClipEvent (load) {
gotoAndStop(_root.town);
}
Instance of Symbol 608 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.yourcannons == 1) {
this.gotoAndStop(1);
} else if (_root.yourcannons == 2) {
this.gotoAndStop(2);
} else if (_root.yourcannons == 3) {
this.gotoAndStop(3);
}
}
Instance of Symbol 1182 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.Buildingopen2 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1195 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.Buildingopen == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1222 MovieClip "shipyard" in Frame 41
onClipEvent (enterFrame) {
if (_root.Buildingopen3 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1240 MovieClip "king" in Frame 41
onClipEvent (enterFrame) {
this.gotoAndStop(_root.town + 1);
}
Frame 42
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen = 1;
} else {
_root.Buildingopen = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen3 = 1;
} else {
_root.Buildingopen3 = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Instance of Symbol 332 MovieClip "flagtown" in Frame 42
onClipEvent (load) {
gotoAndStop(_root.town);
trace(_root.town);
}
Frame 43
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Frame 44
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen1 = 1;
} else {
_root.Buildingopen1 = 0;
}
}
Instance of Symbol 1195 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (_root.Buildingopen1 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 46
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen = 1;
} else {
_root.Buildingopen = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen3 = 1;
} else {
_root.Buildingopen3 = 0;
}
}
Instance of Symbol 1054 MovieClip in Frame 46
onClipEvent (enterFrame) {
gotoAndStop(_root.town);
}
Instance of Symbol 1105 MovieClip "hero" in Frame 46
onClipEvent (load) {
xold = _x;
yold = _y;
}
Instance of Symbol 568 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
if (((Key.isDown(38) or Key.isDown(40)) or Key.isDown(37)) or Key.isDown(39)) {
this.timegoes.gotoAndStop(this.timegoes._currentframe + 1);
}
}
}
Instance of Symbol 332 MovieClip "flagtown" in Frame 46
onClipEvent (load) {
gotoAndStop(_root.town);
trace(_root.town);
}
Instance of Symbol 608 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.yourcannons == 1) {
this.gotoAndStop(1);
} else if (_root.yourcannons == 2) {
this.gotoAndStop(2);
} else if (_root.yourcannons == 3) {
this.gotoAndStop(3);
}
}
Instance of Symbol 1182 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.Buildingopen2 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1195 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.Buildingopen == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1222 MovieClip "shipyard" in Frame 46
onClipEvent (enterFrame) {
if (_root.Buildingopen3 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1240 MovieClip in Frame 46
onClipEvent (enterFrame) {
this.gotoAndStop(_root.town + 1);
}
Frame 47
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Frame 48
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Frame 49
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen1 = 1;
} else {
_root.Buildingopen1 = 0;
}
}
Instance of Symbol 1195 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.Buildingopen1 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 51
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen = 1;
} else {
_root.Buildingopen = 0;
}
}
Instance of Symbol 394 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen3 = 1;
} else {
_root.Buildingopen3 = 0;
}
}
Instance of Symbol 1054 MovieClip in Frame 51
onClipEvent (enterFrame) {
gotoAndStop(_root.town);
}
Instance of Symbol 394 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen4 = 1;
} else {
_root.Buildingopen4 = 0;
}
}
Instance of Symbol 1105 MovieClip "hero" in Frame 51
onClipEvent (load) {
xold = _x;
yold = _y;
}
Instance of Symbol 568 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
if (((Key.isDown(38) or Key.isDown(40)) or Key.isDown(37)) or Key.isDown(39)) {
this.timegoes.gotoAndStop(this.timegoes._currentframe + 1);
}
}
}
Instance of Symbol 332 MovieClip "flagtown" in Frame 51
onClipEvent (load) {
gotoAndStop(_root.town);
trace(_root.town);
}
Instance of Symbol 1182 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.Buildingopen2 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1195 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.Buildingopen == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1222 MovieClip "shipyard" in Frame 51
onClipEvent (enterFrame) {
if (_root.Buildingopen3 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1240 MovieClip in Frame 51
onClipEvent (enterFrame) {
this.gotoAndStop(_root.town + 1);
}
Instance of Symbol 608 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.yourcannons == 1) {
this.gotoAndStop(1);
} else if (_root.yourcannons == 2) {
this.gotoAndStop(2);
} else if (_root.yourcannons == 3) {
this.gotoAndStop(3);
}
}
Frame 52
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Instance of Symbol 608 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.yourcannons == 1) {
this.gotoAndStop(1);
} else if (_root.yourcannons == 2) {
this.gotoAndStop(2);
} else if (_root.yourcannons == 3) {
this.gotoAndStop(3);
}
}
Frame 53
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 53
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen2 = 1;
} else {
_root.Buildingopen2 = 0;
}
}
Frame 54
Speed = 1.8;
faceDirection = "N";
damage = maximumHP - heroHP;
onEnterFrame = function () {
levelMoveX = 0;
levelMoveY = 0;
if (Key.isDown(37)) {
if (Key.isDown(38)) {
levelMoveX = Speed * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NW";
hero.gotoAndStop("runNW");
} else if (Key.isDown(40)) {
levelMoveX = Speed * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SW";
hero.gotoAndStop("runSW");
} else {
levelMoveX = Speed;
faceDirection = "W";
hero.gotoAndStop("runW");
}
} else if (Key.isDown(39)) {
if (Key.isDown(38)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = Speed * 0.4;
faceDirection = "NE";
hero.gotoAndStop("runNE");
} else if (Key.isDown(40)) {
levelMoveX = (-Speed) * 0.75;
levelMoveY = (-Speed) * 0.4;
faceDirection = "SE";
hero.gotoAndStop("runSE");
} else {
levelMoveX = -Speed;
faceDirection = "E";
hero.gotoAndStop("runE");
}
} else if (Key.isDown(38)) {
levelMoveY = Speed;
faceDirection = "N";
hero.gotoAndStop("runN");
} else if (Key.isDown(40)) {
levelMoveY = -Speed;
faceDirection = "S";
hero.gotoAndStop("runS");
} else {
hero.gotoAndStop("stand" + faceDirection);
}
if (level.hitTest(hero._x, hero._y, true)) {
hero._x = level.xold;
hero._y = level.yold;
}
level.xold = hero._x;
level.yold = hero._y;
hero._x = hero._x - levelMoveX;
hero._y = hero._y - levelMoveY;
};
Instance of Symbol 394 MovieClip in Frame 54
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen1 = 1;
} else {
_root.Buildingopen1 = 0;
}
}
Instance of Symbol 1195 MovieClip in Frame 54
onClipEvent (enterFrame) {
if (_root.Buildingopen1 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 4 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 5 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 5 MovieClip Frame 48
this.onEnterFrame = function () {
if (_root.yourcannons == 1) {
gotoAndStop (100);
}
};
Symbol 5 MovieClip Frame 73
this.onEnterFrame = function () {
if (_root.yourcannons == 2) {
gotoAndStop (100);
}
};
Symbol 5 MovieClip Frame 100
_parent.gotoAndStop(5);
Symbol 7 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 8 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 8 MovieClip Frame 48
this.onEnterFrame = function () {
if (_root.yourcannons == 1) {
gotoAndStop (100);
}
};
Symbol 8 MovieClip Frame 73
this.onEnterFrame = function () {
if (_root.yourcannons == 2) {
gotoAndStop (100);
}
};
Symbol 8 MovieClip Frame 100
_parent.gotoAndStop(5);
Symbol 10 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 11 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 11 MovieClip Frame 48
this.onEnterFrame = function () {
if (_root.yourcannons == 1) {
gotoAndStop (100);
}
};
Symbol 11 MovieClip Frame 73
this.onEnterFrame = function () {
if (_root.yourcannons == 2) {
gotoAndStop (100);
}
};
Symbol 11 MovieClip Frame 100
_parent.gotoAndStop(5);
Symbol 17 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 18 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 18 MovieClip Frame 48
this.onEnterFrame = function () {
if (_root.yourcannons == 1) {
gotoAndStop (100);
}
};
Symbol 18 MovieClip Frame 73
this.onEnterFrame = function () {
if (_root.yourcannons == 2) {
gotoAndStop (100);
}
};
Symbol 18 MovieClip Frame 100
_parent.gotoAndStop(5);
Symbol 20 MovieClip Frame 21
stop();
Symbol 32 MovieClip Frame 11
stop();
Symbol 34 MovieClip [cannonball] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.pausegame == false) {
if (_currentframe == 1) {
this._x = this._x + (_root.cannonballspeed * Math.cos((this._rotation * Math.PI) / 180));
this._y = this._y + (_root.cannonballspeed * Math.sin((this._rotation * Math.PI) / 180));
}
if (this.cannonball_mc.hitTest(_root.enemy.shipbody)) {
_root.enemyHP--;
gotoAndStop (6);
}
}
if (this.cannonball_mc.hitTest(_root.enemy2.shipbody)) {
_root.enemy2HP--;
gotoAndStop (6);
}
};
gotoAndStop(_root.weapon);
Instance of Symbol 5 MovieClip "cannonball_mc" in Symbol 34 MovieClip [cannonball] Frame 1
onClipEvent (load) {
_root.cannonballsc--;
}
Symbol 34 MovieClip [cannonball] Frame 2
stop();
_root.chainballsc--;
chainatack = 2;
this.onEnterFrame = function () {
if (_root.pausegame == false) {
if (_currentframe == 2) {
this._x = this._x + (_root.cannonballspeed * Math.cos((this._rotation * Math.PI) / 180));
this._y = this._y + (_root.cannonballspeed * Math.sin((this._rotation * Math.PI) / 180));
}
if (this.chainball_mc.hitTest(_root.enemy.shipbody)) {
_root.sailsenemy--;
_root.enemyHP = _root.enemyHP - chainatack;
gotoAndStop (6);
}
if (this.chainball_mc.hitTest(_root.enemy2.shipbody)) {
_root.sails2enemy--;
_root.enemy2HP = _root.enemy2HP - chainatack;
gotoAndStop (6);
}
}
};
Symbol 34 MovieClip [cannonball] Frame 3
stop();
_root.grapeballsc--;
this.onEnterFrame = function () {
if (_root.pausegame == false) {
if (_currentframe == 3) {
this._x = this._x + (_root.cannonballspeed * Math.cos((this._rotation * Math.PI) / 180));
this._y = this._y + (_root.cannonballspeed * Math.sin((this._rotation * Math.PI) / 180));
}
if (this.grapeball_mc.hitTest(_root.enemy.shipbody)) {
_root.enemy.men--;
gotoAndStop (6);
}
if (this.grapeball_mc.hitTest(_root.enemy2.shipbody)) {
_root.enemy2.men--;
gotoAndStop (6);
}
}
};
Symbol 34 MovieClip [cannonball] Frame 4
stop();
bombatack = 5;
_root.bombballsc--;
this.onEnterFrame = function () {
if (_root.pausegame == false) {
if (_currentframe == 4) {
this._x = this._x + (_root.cannonballspeed * Math.cos((this._rotation * Math.PI) / 180));
this._y = this._y + (_root.cannonballspeed * Math.sin((this._rotation * Math.PI) / 180));
}
if (this.bombball_mc.hitTest(_root.enemy.shipbody)) {
_root.enemyHP = _root.enemyHP - bombatack;
gotoAndStop (6);
}
if (this.bombball_mc.hitTest(_root.enemy2.shipbody)) {
_root.enemy2HP = _root.enemy2HP - bombatack;
gotoAndStop (6);
}
}
};
Symbol 35 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 35 MovieClip Frame 48
_parent.gotoAndStop(5);
Symbol 36 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 36 MovieClip Frame 48
_parent.gotoAndStop(5);
Symbol 37 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 37 MovieClip Frame 48
_parent.gotoAndStop(5);
Symbol 38 MovieClip Frame 1
gotoAndPlay(random(10) + 1);
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 38 MovieClip Frame 48
_parent.gotoAndStop(5);
Symbol 39 MovieClip [cannonball2] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.pausegame == false) {
if (_currentframe == 1) {
this._x = this._x + (_root.cannonballspeed * Math.cos((this._rotation * Math.PI) / 180));
this._y = this._y + (_root.cannonballspeed * Math.sin((this._rotation * Math.PI) / 180));
}
if (this.cannonball_mc.hitTest(_root.ship)) {
_root.heroHP--;
gotoAndStop (6);
}
}
};
gotoAndStop(_root.enemyweapon);
gotoAndStop(_root.enemy2weapon);
Symbol 39 MovieClip [cannonball2] Frame 2
hurtpercent = 0.01;
sailsattack = 5;
this.onEnterFrame = function () {
if (_root.pausegame == false) {
if (_currentframe == 2) {
this._x = this._x + (_root.cannonballspeed * Math.cos((this._rotation * Math.PI) / 180));
this._y = this._y + (_root.cannonballspeed * Math.sin((this._rotation * Math.PI) / 180));
}
if (this.chainball_mc.hitTest(_root.ship)) {
_root.heroHP--;
_root.sails = _root.sails - hurtpercent;
_root.topmenu.sailsa = _root.topmenu.sailsa - sailsattack;
gotoAndStop (6);
}
}
};
Symbol 39 MovieClip [cannonball2] Frame 3
stop();
this.onEnterFrame = function () {
if (_root.pausegame == false) {
if (_currentframe == 3) {
this._x = this._x + (_root.cannonballspeed * Math.cos((this._rotation * Math.PI) / 180));
this._y = this._y + (_root.cannonballspeed * Math.sin((this._rotation * Math.PI) / 180));
}
if (this.grapeball_mc.hitTest(_root.ship)) {
_root.men--;
gotoAndStop (6);
}
}
};
Symbol 39 MovieClip [cannonball2] Frame 4
bombatack = 5;
this.onEnterFrame = function () {
if (_root.pausegame == false) {
if (_currentframe == 4) {
this._x = this._x + (_root.cannonballspeed * Math.cos((this._rotation * Math.PI) / 180));
this._y = this._y + (_root.cannonballspeed * Math.sin((this._rotation * Math.PI) / 180));
}
if (this.bombball_mc.hitTest(_root.ship)) {
_root.heroHP = _root.heroHP - bombatack;
gotoAndStop (6);
}
}
};
Symbol 45 MovieClip [watertile] Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 47 MovieClip [water] Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
if (_root.effects == false) {
this.removeMovieClip();
}
};
Symbol 47 MovieClip [water] Frame 51
removeMovieClip(this);
Symbol 49 MovieClip [smoke] Frame 21
stop();
Symbol 96 MovieClip [explos] Frame 29
_root.explosion = 1;
Symbol 96 MovieClip [explos] Frame 30
_root.explosion = 2;
Symbol 96 MovieClip [explos] Frame 31
stop();
Symbol 103 MovieClip Frame 1
_root.earl223 = function (val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
};
Symbol 129 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
_root.stopwherea = true;
Symbol 137 MovieClip Frame 21
stop();
Symbol 137 MovieClip Frame 46
if (_root.stopwherea == true) {
_root.gotoAndStop(_root.stopwhere);
}
Symbol 141 Button
on (press) {
getURL ("http://www.freeonlinegames.com/?blacksails", "_blank");
}
on (keyPress "i") {
gotoAndStop (2);
}
Symbol 142 Button
on (press) {
getURL ("http://www.freeonlinegames.com/?blacksails", "_blank");
}
on (keyPress "g") {
gotoAndStop (3);
}
Symbol 143 Button
on (press) {
getURL ("http://www.freeonlinegames.com/?blacksails", "_blank");
}
on (keyPress "n") {
gotoAndStop (4);
}
Symbol 144 Button
on (press) {
getURL ("http://www.freeonlinegames.com/?blacksails", "_blank");
}
on (keyPress "a") {
gotoAndStop (5);
}
Symbol 145 Button
on (press) {
getURL ("http://www.freeonlinegames.com/?blacksails", "_blank");
}
on (keyPress "t") {
gotoAndStop (6);
}
Symbol 148 MovieClip Frame 181
_parent.gotoAndStop(1);
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 6
_root.shipmodel = 19;
_root.gold = 100000 /* 0x0186A0 */;
Symbol 169 MovieClip Frame 42
Symbol 169 MovieClip Frame 55
stop();
_parent.play();
Symbol 210 MovieClip Frame 1
stop();
l = 0;
Instance of Symbol 154 MovieClip "mcNotice" in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 210 MovieClip Frame 28
l++;
if (l < 5) {
gotoAndPlay ("loop");
} else if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.music.gotoAndStop(13);
_root.blackanimation.gotoAndPlay(27);
_root.stopwhere = 4;
stop();
} else {
trace(_root.debug);
if (_root.debug) {
_root.okToPlay = true;
_root.music.gotoAndStop(13);
_root.blackanimation.gotoAndPlay(27);
_root.stopwhere = 4;
stop();
} else {
mcNotice._visible = true;
l = -99999;
gotoAndPlay ("loop");
}
}
Instance of Symbol 210 MovieClip "logo" in Symbol 211 MovieClip Frame 1
on (release) {
getURL ("http://www.freeonlinegames.com/?" + _root.gameName, "_blank");
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 3
stopAllSounds();
gotoAndStop (2);
Symbol 223 MovieClip Frame 5
stopAllSounds();
gotoAndStop (4);
Symbol 223 MovieClip Frame 7
stopAllSounds();
gotoAndStop (6);
Symbol 223 MovieClip Frame 9
stopAllSounds();
gotoAndStop (8);
Symbol 223 MovieClip Frame 11
stopAllSounds();
gotoAndStop (10);
Symbol 223 MovieClip Frame 13
stopAllSounds();
gotoAndStop (12);
Symbol 223 MovieClip Frame 15
stopAllSounds();
gotoAndStop (14);
Symbol 223 MovieClip Frame 17
stopAllSounds();
gotoAndStop (16);
Symbol 230 Button
on (press, keyPress "n") {
gotoAndStop (1);
}
Symbol 232 Button
on (press, keyPress "y") {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 5;
}
Symbol 235 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 235 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 246 Button
on (press) {
mySharedObject = SharedObject.getLocal("savedObject");
_root.gamesaved = mySharedObject.data.gamesaved;
if (_root.gamesaved == 1) {
mySharedObject = SharedObject.getLocal("savedObject");
_root.gold = mySharedObject.data.gold;
_root.score = mySharedObject.data.score;
_root.men = mySharedObject.data.men;
_root.swords = mySharedObject.data.swords;
_root.guns = mySharedObject.data.guns;
_root.mymonth = mySharedObject.data.mymonth;
_root.yourname = mySharedObject.data.yourname;
_root.shipmodel = mySharedObject.data.shipmodel;
_root.yourflag = mySharedObject.data.yourflag;
_root.yourcannons = mySharedObject.data.yourcannons;
_root.day = mySharedObject.data.day;
_root.levelxpos = mySharedObject.data.levelxpos;
_root.levelypos = mySharedObject.data.levelypos;
_root.leveltopxpos = mySharedObject.data.leveltopxpos;
_root.leveltopypos = mySharedObject.data.leveltopypos;
_root.flagportroyale = mySharedObject.data.flagportroyale;
_root.flagtortuga = mySharedObject.data.flagtortuga;
_root.flagportauprince = mySharedObject.data.flagportauprince;
_root.flagaltuira = mySharedObject.data.flagaltuira;
_root.flaglatasia = mySharedObject.data.flaglatasia;
_root.flagstpabloport = mySharedObject.data.flagstpabloport;
_root.flaggvadelupa = mySharedObject.data.flaggvadelupa;
_root.flagmartinica = mySharedObject.data.flagmartinica;
_root.flagmargarita = mySharedObject.data.flagmargarita;
_root.flagcaracas = mySharedObject.data.flagcaracas;
_root.flagportospain = mySharedObject.data.flagportospain;
_root.flagmaracaibo = mySharedObject.data.flagmaracaibo;
_root.flagsantamarta = mySharedObject.data.flagsantamarta;
_root.flagalexandria = mySharedObject.data.flagalexandria;
_root.flagbarbosa = mySharedObject.data.flagbarbosa;
_root.flagsantodominigo = mySharedObject.data.flagsantodominigo;
_root.flagignatiusport = mySharedObject.data.flagignatiusport;
_root.flagarmando = mySharedObject.data.flagarmando;
_root.flaghavana = mySharedObject.data.flaghavana;
_root.flagwandisland = mySharedObject.data.flagwandisland;
_root.flagfortorichardo = mySharedObject.data.flagfortorichardo;
_root.flagdeloubre = mySharedObject.data.flagdeloubre;
_root.flaggrandbahama = mySharedObject.data.flaggrandbahama;
_root.flagfortcaroline = mySharedObject.data.flagfortcaroline;
_root.flageleuthera = mySharedObject.data.flageleuthera;
_root.flagpensacola = mySharedObject.data.flagpensacola;
_root.flagbiloxi = mySharedObject.data.flagbiloxi;
_root.flagneworleans = mySharedObject.data.flagneworleans;
_root.flagsisal = mySharedObject.data.flagsisal;
_root.flagcorpuschristi = mySharedObject.data.flagcorpuschristi;
_root.flagcampeche = mySharedObject.data.flagcampeche;
_root.flagveracruz = mySharedObject.data.flagveracruz;
_root.flagtampico = mySharedObject.data.flagtampico;
_root.cannonballsc = mySharedObject.data.cannonballsc;
_root.chainballsc = mySharedObject.data.chainballsc;
_root.grapeballsc = mySharedObject.data.grapeballsc;
_root.bombballsc = mySharedObject.data.bombballsc;
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 10;
}
}
Symbol 247 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 6;
}
Symbol 248 Button
on (press) {
_root.warnme.gotoAndStop(2);
}
Symbol 254 Button
on (press) {
getURL ("http://www.freeonlinegames.com/?blacksails", "_blank");
}
Symbol 255 Button
on (press) {
getURL ("http://www.freegamesforyourwebsite.com/?blacksails", "_blank");
}
Symbol 259 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 9;
}
Symbol 261 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 11;
}
Symbol 271 Button
on (press) {
_root.yourflag = 1;
gotoAndStop (2);
}
Symbol 272 MovieClip Frame 1
stop();
Symbol 275 Button
on (press) {
_root.yourflag = 2;
gotoAndStop (2);
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 279 Button
on (press) {
_root.yourflag = 3;
gotoAndStop (2);
}
Symbol 280 MovieClip Frame 1
stop();
Symbol 284 Button
on (press) {
_root.shipmon = 1;
gotoAndStop (2);
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 291 Button
on (press) {
_root.shipmon = 2;
gotoAndStop (2);
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 300 Button
on (press) {
_root.day = 0;
if (_root.shipmon == 2) {
_root.gold = 4000;
_root.shipmodel = 2;
}
if (_root.shipmon == 1) {
_root.gold = 2000;
_root.shipmodel = 4;
}
if (_root.yourflag == 1) {
_root.levelxpos = -145;
_root.levelypos = 320;
_root.leveltopxpos = -145;
_root.leveltopypos = 320;
}
if (_root.yourflag == 2) {
_root.levelxpos = -944;
_root.levelypos = -330;
_root.leveltopxpos = -944;
_root.leveltopypos = -330;
}
if (_root.yourflag == 3) {
_root.levelxpos = 25;
_root.levelypos = 170;
_root.leveltopxpos = 25;
_root.leveltopypos = 170;
}
_root.blackanimation.gotoAndPlay("close");
_root.men = 20;
_root.stopwhere = 10;
}
Symbol 302 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 4;
}
Symbol 308 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 4;
}
Symbol 311 Button
on (press) {
_root.clouds = false;
_root.effects = false;
gotoAndStop (2);
}
Symbol 314 Button
on (press) {
_root.clouds = true;
_root.effects = true;
gotoAndStop (1);
}
Symbol 315 MovieClip Frame 1
stop();
Symbol 318 Button
on (press) {
if (_root.score <= 0) {
submit_but.enabled = false;
submit_but._alpha = 100;
} else {
var myVar = new LoadVars();
myVar.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
myVar.score = _root.score;
myVar.score2 = _root.earl223(String(_root.score));
myVar.gamer = 85;
myVar.id = random(9999999);
myVar.toString();
myVar.sendAndLoad("http://www.freeonlinegames.com/scoreboard/score_c.php", myVar, "POST");
submit_but.enabled = false;
submit_but._alpha = 20;
}
}
Symbol 320 Button
on (press) {
_root.music.gotoAndStop(13);
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 4;
}
Symbol 322 Button
on (press) {
getURL ("http://www.freeonlinegames.com/?blacksails", "_blank");
}
Symbol 332 MovieClip Frame 1
stop();
_root.attacker = england;
_root.winneras = "England";
Symbol 332 MovieClip Frame 2
_root.attacker = france;
_root.winneras = "France";
Symbol 332 MovieClip Frame 3
_root.attacker = spain;
_root.winneras = "Spain";
Symbol 332 MovieClip Frame 4
_root.attacker = pirates;
_root.winneras = "Pirates";
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
stop();
Symbol 357 Button
on (press) {
sboard.dir = "ups";
}
on (release) {
sboard.dir = "stop";
}
Symbol 358 Button
on (press) {
sboard.dir = "downs";
}
on (release) {
sboard.dir = "stop";
}
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 40
_root.gotoAndStop(3);
Instance of Symbol 368 MovieClip "land" in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.speed = 10;
}
}
Symbol 384 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
Instance of Symbol 403 MovieClip "portauprince" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Port-au-Prince";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagportauprince);
}
Instance of Symbol 403 MovieClip "deloubre" in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "De-Loubre";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagdeloubre);
}
Instance of Symbol 403 MovieClip "havana" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Havana";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flaghavana);
}
Instance of Symbol 403 MovieClip "eleuthera" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Eleuthera";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flageleuthera);
}
Instance of Symbol 403 MovieClip "grandbahama" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Grand Bahama";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flaggrandbahama);
}
Instance of Symbol 403 MovieClip "altuira" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Altuira";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagaltuira);
}
Instance of Symbol 403 MovieClip "pensacola" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Pensacola";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagpensacola);
}
Instance of Symbol 403 MovieClip "neworleans" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "New orleans";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagneworleans);
}
Instance of Symbol 403 MovieClip "biloxi" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Biloxi";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagbiloxi);
}
Instance of Symbol 403 MovieClip "corpuschristi" in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Corpus Christi";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagcorpuschristi);
}
Instance of Symbol 403 MovieClip "tampico" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Tampico";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagtampico);
}
Instance of Symbol 403 MovieClip "veracruz" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Veracruz";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagveracruz);
}
Instance of Symbol 403 MovieClip "campeche" in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Campeche";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagcampeche);
}
Instance of Symbol 403 MovieClip "sisal" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Sisal";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagsisal);
}
Instance of Symbol 403 MovieClip "armando" in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Armando";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagarmando);
}
Instance of Symbol 403 MovieClip "portroyale" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Port Royale";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagportroyale);
}
Instance of Symbol 403 MovieClip "tortuga" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Tortuga";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagtortuga);
}
Instance of Symbol 403 MovieClip "santodominigo" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Santo Dominigo";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagsantodominigo);
}
Instance of Symbol 403 MovieClip "latasia" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Latasia";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flaglatasia);
}
Instance of Symbol 403 MovieClip "stpabloport" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "St. Pablo Port";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagstpabloport);
}
Instance of Symbol 403 MovieClip "martinica" in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Martinica";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagmartinica);
}
Instance of Symbol 403 MovieClip "gvadelupa" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Gvadelupa";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flaggvadelupa);
}
Instance of Symbol 403 MovieClip "margarita" in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Margarita";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagmargarita);
}
Instance of Symbol 403 MovieClip "caracas" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Caracas";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagcaracas);
}
Instance of Symbol 403 MovieClip "portospain" in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "PortoSpain";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagportospain);
}
Instance of Symbol 403 MovieClip "maracaibo" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Maracaibo";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagmaracaibo);
}
Instance of Symbol 403 MovieClip "santamarta" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Santa Marta";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagsantamarta);
}
Instance of Symbol 403 MovieClip "fortcaroline" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Fort Caroline";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagfortcaroline);
}
Instance of Symbol 403 MovieClip "fortorichardo" in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Fort'o Richardo";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagfortorichardo);
}
Instance of Symbol 403 MovieClip "alexandria" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Alexandria";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagalexandria);
}
Instance of Symbol 403 MovieClip "barbosa" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Barbosa";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagbarbosa);
}
Instance of Symbol 403 MovieClip "ignatiusport" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Ignatius Port";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagignatiusport);
}
Instance of Symbol 403 MovieClip "wandisland" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((questionit == true) and _root.hero.hitTest(this.mask)) {
_root.townname = "Wand Island";
_root.question.gotoAndStop(2);
_root.pausegame = true;
_root.town = this.flag._currentframe;
}
if (_root.hero.hitTest(this.mask)) {
questionit = false;
} else {
questionit = true;
}
this.flag.gotoAndStop(_root.flagwandisland);
}
Instance of Symbol 448 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pausegame == false) {
_x = (_x - 0.3);
_y = (_y + 0.3);
}
}
Symbol 450 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 26
if (_root.townname == "Port Royale") {
_root.gotoAndStop("esmall");
}
if (_root.townname == "Port-au-Prince") {
_root.gotoAndStop("smedium");
}
if (_root.townname == "Tortuga") {
_root.gotoAndStop("emedium");
}
if (_root.townname == "Altuira") {
_root.gotoAndStop("smedium");
}
if (_root.townname == "Latasia") {
_root.gotoAndStop("esmall");
}
if (_root.townname == "St. Pablo Port") {
_root.gotoAndStop("fsmall");
}
if (_root.townname == "Gvadelupa") {
_root.gotoAndStop("fhuge");
}
if (_root.townname == "Martinica") {
_root.gotoAndStop("ftiny");
}
if (_root.townname == "Margarita") {
_root.gotoAndStop("stiny");
}
if (_root.townname == "Caracas") {
_root.gotoAndStop("smedium");
}
if (_root.townname == "PortoSpain") {
_root.gotoAndStop("stiny");
}
if (_root.townname == "Maracaibo") {
_root.gotoAndStop("ssmall");
}
if (_root.townname == "Santa Marta") {
_root.gotoAndStop("smedium");
}
if (_root.townname == "Alexandria") {
_root.gotoAndStop("emedium");
}
if (_root.townname == "Barbosa") {
_root.gotoAndStop("esmall");
}
if (_root.townname == "Santo Dominigo") {
_root.gotoAndStop("emedium");
}
if (_root.townname == "Ignatius Port") {
_root.gotoAndStop("ssmall");
}
if (_root.townname == "Armando") {
_root.gotoAndStop("ssmall");
}
if (_root.townname == "Havana") {
_root.gotoAndStop("shuge");
}
if (_root.townname == "Wand Island") {
_root.gotoAndStop("esmall");
}
if (_root.townname == "Fort'o Richardo") {
_root.gotoAndStop("etiny");
}
if (_root.townname == "De-Loubre") {
_root.gotoAndStop("ftiny");
}
if (_root.townname == "Grand Bahama") {
_root.gotoAndStop("ehuge");
}
if (_root.townname == "Fort Caroline") {
_root.gotoAndStop("esmall");
}
if (_root.townname == "Eleuthera") {
_root.gotoAndStop("emedium");
}
if (_root.townname == "Pensacola") {
_root.gotoAndStop("fmedium");
}
if (_root.townname == "Biloxi") {
_root.gotoAndStop("fsmall");
}
if (_root.townname == "New orleans") {
_root.gotoAndStop("fmedium");
}
if (_root.townname == "Sisal") {
_root.gotoAndStop("esmall");
}
if (_root.townname == "Corpus Christi") {
_root.gotoAndStop("stiny");
}
if (_root.townname == "Campeche") {
_root.gotoAndStop("stiny");
}
if (_root.townname == "Veracruz") {
_root.gotoAndStop("stiny");
}
if (_root.townname == "Tampico") {
_root.gotoAndStop("smedium");
}
Symbol 452 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
gotoAndStop(random(400) + 1);
Symbol 452 MovieClip Frame 602
_parent.gotoAndStop(4);
Symbol 453 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
gotoAndStop(random(400) + 1);
Symbol 453 MovieClip Frame 501
_parent.gotoAndStop(3);
Symbol 455 Button
on (press) {
startDrag ("_root.question");
}
on (release) {
stopDrag();
}
Symbol 460 Button
on (press, keyPress "n") {
gotoAndStop (1);
_root.pausegame = false;
_root.pausebutton.gotoAndStop(2);
}
Symbol 461 Button
on (press, keyPress "<Enter>") {
_root.levelxpos = _root.level._x;
_root.levelypos = _root.level._y;
_root.leveltopxpos = _root.level2._x;
_root.leveltopypos = _root.level2._y;
townactive.gotoAndPlay(2);
_root.stopwhere = 0;
_root.stopwherea = false;
_root.blackanimation.gotoAndPlay("close");
gotoAndStop (1);
}
Symbol 466 Button
on (press, keyPress "a") {
_root.townattack = true;
if (_root.townname == "Port Royale") {
_root.townmen = _root._root.small;
}
if (_root.townname == "Port-au-Prince") {
_root.townmen = _root.medium;
}
if (_root.townname == "Tortuga") {
_root.townmen = _root.medium;
}
if (_root.townname == "Altuira") {
_root.townmen = _root.medium;
}
if (_root.townname == "Latasia") {
_root.townmen = _root.small;
}
if (_root.townname == "St. Pablo Port") {
_root.townmen = _root.small;
}
if (_root.townname == "Gvadelupa") {
_root.townmen = _root.huge;
}
if (_root.townname == "Martinica") {
_root.townmen = _root.tiny;
}
if (_root.townname == "Margarita") {
_root.townmen = _root.tiny;
}
if (_root.townname == "Caracas") {
_root.townmen = _root.medium;
}
if (_root.townname == "PortoSpain") {
_root.townmen = _root.tiny;
}
if (_root.townname == "Maracaibo") {
_root.townmen = _root.small;
}
if (_root.townname == "Santa Marta") {
_root.townmen = _root.medium;
}
if (_root.townname == "Alexandria") {
_root.townmen = _root.medium;
}
if (_root.townname == "Barbosa") {
_root.townmen = _root.small;
}
if (_root.townname == "Santo Dominigo") {
_root.townmen = _root.medium;
}
if (_root.townname == "Ignatius Port") {
_root.townmen = _root.small;
}
if (_root.townname == "Armando") {
_root.townmen = _root.small;
}
if (_root.townname == "Havana") {
_root.townmen = _root.huge;
}
if (_root.townname == "Wand Island") {
_root.townmen = _root.small;
}
if (_root.townname == "Fort'o Richardo") {
_root.townmen = _root.tiny;
}
if (_root.townname == "De-Loubre") {
_root.townmen = _root.tiny;
}
if (_root.townname == "Grand Bahama") {
_root.townmen = _root.huge;
}
if (_root.townname == "Fort Caroline") {
_root.townmen = _root.small;
}
if (_root.townname == "Eleuthera") {
_root.townmen = _root.medium;
}
if (_root.townname == "Pensacola") {
_root.townmen = _root.medium;
}
if (_root.townname == "Biloxi") {
_root.townmen = _root.small;
}
if (_root.townname == "New orleans") {
_root.townmen = _root.medium;
}
if (_root.townname == "Sisal") {
_root.townmen = _root.small;
}
if (_root.townname == "Corpus Christi") {
_root.townmen = _root.tiny;
}
if (_root.townname == "Campeche") {
_root.townmen = _root.tiny;
}
if (_root.townname == "Veracruz") {
_root.townmen = _root.tiny;
}
if (_root.townname == "Tampico") {
_root.townmen = _root.medium;
}
gotoAndStop (6);
}
Symbol 469 MovieClip Frame 1
stop();
Symbol 474 Button
on (press) {
_root.pausegame = false;
gotoAndStop (1);
}
Symbol 476 Button
on (press, keyPress "<Enter>") {
_root.levelxpos = _root.level._x;
_root.levelypos = _root.level._y;
_root.leveltopxpos = _root.level2._x;
_root.leveltopypos = _root.level2._y;
_root.enemyHP = 1;
_root.enemy2HP = 1;
_root.music.gotoAndStop(11);
_root.stopwhere = 16;
_root.blackanimation.gotoAndPlay("close");
}
Symbol 478 Button
on (press, keyPress "<Enter>") {
_root.levelxpos = _root.level._x;
_root.levelypos = _root.level._y;
_root.leveltopxpos = _root.level2._x;
_root.leveltopypos = _root.level2._y;
_root.enemyHP = 1;
_root.enemy2HP = 1;
_root.music.gotoAndStop(11);
_root.stopwhere = 15;
_root.blackanimation.gotoAndPlay("close");
}
Symbol 479 MovieClip Frame 1
stop();
Symbol 484 Button
on (press, keyPress "<Enter>") {
_root.levelxpos = _root.level._x;
_root.levelypos = _root.level._y;
_root.leveltopxpos = _root.level2._x;
_root.leveltopypos = _root.level2._y;
_root.enemyHP = 1;
_root.enemy2HP = 1;
_root.music.gotoAndStop(11);
_root.stopwhere = random(2) + 15;
_root.blackanimation.gotoAndPlay("close");
}
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 8
stop();
_root.pausegame = false;
_parent.gotoAndStop(1);
Symbol 502 Button
on (press, keyPress "<Enter>") {
_root.question.firstspeech.gotoAndStop(_root.question.firstspeech._currentframe + 1);
}
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 15
_root.townmen--;
_root.townguns--;
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 15
_root.men--;
_root.guns--;
Symbol 526 MovieClip Frame 1
stop();
Symbol 537 Button
on (press, keyPress "<Enter>") {
_root.warstart = 1;
_root.question.enemy.readymen.gotoAndPlay(2);
_root.question.us.readymen.gotoAndPlay(2);
gotoAndStop (2);
}
Symbol 540 Button
on (press) {
_parent.gotoAndStop(2);
}
Symbol 547 MovieClip Frame 1
stop();
Instance of Symbol 332 MovieClip in Symbol 547 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.town);
}
onClipEvent (enterFrame) {
if (this._currentframe == _root.yourflag) {
_root.yourflag = 4;
}
}
Symbol 555 Button
on (press, keyPress "<Enter>") {
_root.pausegame = false;
gotoAndStop (1);
}
Symbol 558 Button
on (press, keyPress "<Enter>") {
_root.pausegame = false;
_root.score = Number(_root.score) + 3000;
gotoAndStop (1);
}
on (press) {
if (_root.townname == "Port Royale") {
_root.flagportroyale = _root.yourflag;
}
if (_root.townname == "Port-au-Prince") {
_root.flagportauprince = _root.yourflag;
}
if (_root.townname == "Tortuga") {
_root.flagtortuga = _root.yourflag;
}
if (_root.townname == "Altuira") {
_root.flagaltuira = _root.yourflag;
}
if (_root.townname == "Latasia") {
_root.flaglatasia = _root.yourflag;
}
if (_root.townname == "St. Pablo Port") {
_root.flagstpabloport = _root.yourflag;
}
if (_root.townname == "Gvadelupa") {
_root.flaggvadelupa = _root.yourflag;
}
if (_root.townname == "Martinica") {
_root.flagmartinica = _root.yourflag;
}
if (_root.townname == "Margarita") {
_root.flagmargarita = _root.yourflag;
}
if (_root.townname == "Caracas") {
_root.flagcaracas = _root.yourflag;
}
if (_root.townname == "PortoSpain") {
_root.flagportospain = _root.yourflag;
}
if (_root.townname == "Maracaibo") {
_root.flagmaracaibo = _root.yourflag;
}
if (_root.townname == "Santa Marta") {
_root.flagsantamarta = _root.yourflag;
}
if (_root.townname == "Alexandria") {
_root.flagalexandria = _root.yourflag;
}
if (_root.townname == "Barbosa") {
_root.flagbarbosa = _root.yourflag;
}
if (_root.townname == "Santo Dominigo") {
_root.flagsantodominigo = _root.yourflag;
}
if (_root.townname == "Ignatius Port") {
_root.flagignatiusport = _root.yourflag;
}
if (_root.townname == "Armando") {
_root.flagarmando = _root.yourflag;
}
if (_root.townname == "Havana") {
_root.flaghavana = _root.yourflag;
}
if (_root.townname == "Wand Island") {
_root.flagwandisland = _root.yourflag;
}
if (_root.townname == "Fort'o Richardo") {
_root.flagfortorichardo = _root.yourflag;
}
if (_root.townname == "De-Loubre") {
_root.flagdeloubre = _root.yourflag;
}
if (_root.townname == "Grand Bahama") {
_root.flaggrandbahama = _root.yourflag;
}
if (_root.townname == "Fort Caroline") {
_root.flagfortcaroline = _root.yourflag;
}
if (_root.townname == "Eleuthera") {
_root.flageleuthera = _root.yourflag;
}
if (_root.townname == "Pensacola") {
_root.flagpensacola = _root.yourflag;
}
if (_root.townname == "Biloxi") {
_root.flagbiloxi = _root.yourflag;
}
if (_root.townname == "New orleans") {
_root.flagneworleans = _root.yourflag;
}
if (_root.townname == "Sisal") {
_root.flagsisal = _root.yourflag;
}
if (_root.townname == "Corpus Christi") {
_root.flagcorpuschristi = _root.yourflag;
}
if (_root.townname == "Campeche") {
_root.flagcampeche = _root.yourflag;
}
if (_root.townname == "Veracruz") {
_root.flagveracruz = _root.yourflag;
}
if (_root.townname == "Tampico") {
_root.flagtampico = _root.yourflag;
}
}
Symbol 560 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 560 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 332 MovieClip in Symbol 560 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.town);
_root.pausegame = true;
}
Instance of Symbol 469 MovieClip in Symbol 560 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(4) + 2);
}
Instance of Symbol 332 MovieClip in Symbol 560 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
_root.attackerflag = this._currentframe;
}
onClipEvent (enterFrame) {
_root.pausegame = true;
}
Instance of Symbol 479 MovieClip "warships" in Symbol 560 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(random(2) + 1);
}
Symbol 560 MovieClip Frame 4
_root.pausegame = true;
Instance of Symbol 332 MovieClip in Symbol 560 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
_root.attackerflag = 4;
_root.attacker = 4;
_root.pausegame = true;
}
Symbol 560 MovieClip Frame 5
_root.pausegame = true;
Symbol 560 MovieClip Frame 6
_root.townguns = _root.townmen;
Instance of Symbol 503 MovieClip in Symbol 560 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.warstart == 1) {
this.gotoAndPlay(random(15) + 1);
}
}
Instance of Symbol 504 MovieClip in Symbol 560 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.warstart == 1) {
this.gotoAndPlay(random(15) + 1);
}
}
onClipEvent (enterFrame) {
if ((_root.men <= 1) or (_root.guns <= 0)) {
_parent.gotoAndStop(7);
}
if (_root.townmen <= 0) {
_parent.gotoAndStop(8);
}
}
Instance of Symbol 526 MovieClip "us" in Symbol 560 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.yourflag);
this.readymen.gotoAndStop(1);
}
Instance of Symbol 526 MovieClip "enemy" in Symbol 560 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.town);
this.readymen.gotoAndStop(1);
}
Instance of Symbol 332 MovieClip in Symbol 560 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.town);
}
onClipEvent (enterFrame) {
_root.pausegame = true;
}
Instance of Symbol 332 MovieClip in Symbol 560 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.yourflag);
}
Symbol 560 MovieClip Frame 7
_root.warstart = 0;
_root.music.gotoAndStop(3);
Instance of Symbol 526 MovieClip in Symbol 560 MovieClip Frame 7
onClipEvent (enterFrame) {
this.readymen.gotoAndStop(1);
this.gotoAndStop(_root.town);
}
Symbol 560 MovieClip Frame 8
_root.warstart = 0;
_root.music.gotoAndStop(3);
Instance of Symbol 526 MovieClip in Symbol 560 MovieClip Frame 8
onClipEvent (enterFrame) {
this.readymen.gotoAndStop(1);
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 332 MovieClip in Symbol 560 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_root.yourflag);
}
onClipEvent (enterFrame) {
_root.pausegame = true;
}
Symbol 567 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 567 MovieClip Frame 22
_root.day++;
Symbol 584 Button
on (press) {
_root.gamesaved = 1;
mySharedObject = SharedObject.getLocal("savedObject");
mySharedObject.data.gold = _root.gold;
mySharedObject.data.score = _root.score;
mySharedObject.data.gamesaved = _root.gamesaved;
mySharedObject.data.mymonth = _root.mymonth;
mySharedObject.data.men = _root.men;
mySharedObject.data.swords = _root.swords;
mySharedObject.data.guns = _root.guns;
mySharedObject.data.yourname = _root.yourname;
mySharedObject.data.shipmodel = _root.shipmodel;
mySharedObject.data.yourflag = _root.yourflag;
mySharedObject.data.yourcannons = _root.yourcannons;
mySharedObject.data.day = _root.day;
mySharedObject.data.levelxpos = _root.level._x;
mySharedObject.data.levelypos = _root.level._y;
mySharedObject.data.leveltopxpos = _root.level2._x;
mySharedObject.data.leveltopypos = _root.level2._y;
mySharedObject.data.flagportroyale = _root.flagportroyale;
mySharedObject.data.flagtortuga = _root.flagtortuga;
mySharedObject.data.flagportauprince = _root.flagportauprince;
mySharedObject.data.flagaltuira = _root.flagaltuira;
mySharedObject.data.flaglatasia = _root.flaglatasia;
mySharedObject.data.flagstpabloport = _root.flagstpabloport;
mySharedObject.data.flaggvadelupa = _root.flaggvadelupa;
mySharedObject.data.flagmartinica = _root.flagmartinica;
mySharedObject.data.flagmargarita = _root.flagmargarita;
mySharedObject.data.flagcaracas = _root.flagcaracas;
mySharedObject.data.flagportospain = _root.flagportospain;
mySharedObject.data.flagmaracaibo = _root.flagmaracaibo;
mySharedObject.data.flagsantamarta = _root.flagsantamarta;
mySharedObject.data.flagalexandria = _root.flagalexandria;
mySharedObject.data.flagbarbosa = _root.flagbarbosa;
mySharedObject.data.flagsantodominigo = _root.flagsantodominigo;
mySharedObject.data.flagignatiusport = _root.flagignatiusport;
mySharedObject.data.flagarmando = _root.flagarmando;
mySharedObject.data.flaghavana = _root.flaghavana;
mySharedObject.data.flagwandisland = _root.flagwandisland;
mySharedObject.data.flagfortorichardo = _root.flagfortorichardo;
mySharedObject.data.flagdeloubre = _root.flagdeloubre;
mySharedObject.data.flaggrandbahama = _root.flaggrandbahama;
mySharedObject.data.flagfortcaroline = _root.flagfortcaroline;
mySharedObject.data.flageleuthera = _root.flageleuthera;
mySharedObject.data.flagpensacola = _root.flagpensacola;
mySharedObject.data.flagbiloxi = _root.flagbiloxi;
mySharedObject.data.flagneworleans = _root.flagneworleans;
mySharedObject.data.flagsisal = _root.flagsisal;
mySharedObject.data.flagcorpuschristi = _root.flagcorpuschristi;
mySharedObject.data.flagcampeche = _root.flagcampeche;
mySharedObject.data.flagveracruz = _root.flagveracruz;
mySharedObject.data.flagtampico = _root.flagtampico;
mySharedObject.data.cannonballsc = _root.cannonballsc;
mySharedObject.data.chainballsc = _root.chainballsc;
mySharedObject.data.grapeballsc = _root.grapeballsc;
mySharedObject.data.bombballsc = _root.bombballsc;
mySharedObject.flush();
_root.savedmc.gotoAndPlay(2);
}
Symbol 608 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 1
stop();
Instance of Symbol 608 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.yourcannons == 1) {
this.gotoAndStop(1);
} else if (_root.yourcannons == 2) {
this.gotoAndStop(2);
} else if (_root.yourcannons == 3) {
this.gotoAndStop(3);
}
}
Symbol 693 MovieClip Frame 18
gotoAndStop (17);
Symbol 695 Button
on (press) {
if (_root.score <= 0) {
submit_but.enabled = false;
submit_but._alpha = 100;
} else {
var myVar = new LoadVars();
myVar.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
myVar.score = _root.score;
myVar.score2 = _root.earl223(String(_root.score));
myVar.gamer = 85;
myVar.id = random(9999999);
myVar.toString();
myVar.sendAndLoad("http://www.freeonlinegames.com/scoreboard/score_c.php", myVar, "POST");
submit_but.enabled = false;
submit_but._alpha = 20;
}
}
Symbol 700 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 4;
}
Symbol 704 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
}
Instance of Symbol 225 MovieClip in Symbol 709 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 593 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 332 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 693 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shipmodel);
}
Symbol 710 MovieClip Frame 29
stop();
Symbol 713 Button
on (press, keyPress "p") {
_root.pausegame = false;
gotoAndStop (2);
}
Instance of Symbol 593 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 332 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 693 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shipmodel);
}
Symbol 714 MovieClip Frame 30
stop();
_root.pausegame = false;
Symbol 715 Button
on (press, keyPress "p") {
_root.pausegame = false;
gotoAndStop (1);
}
Symbol 716 MovieClip Frame 1
stop();
_root.pausegame = true;
Symbol 716 MovieClip Frame 2
_root.pausegame = false;
Symbol 716 MovieClip Frame 3
_root.pausegame = false;
Symbol 729 MovieClip Frame 1
stop();
Symbol 729 MovieClip Frame 13
_root.newyear++;
gotoAndStop (1);
Instance of Symbol 332 MovieClip in Symbol 732 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 716 MovieClip "pausebutton" in Symbol 732 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 729 MovieClip "mymonth" in Symbol 732 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.mymonth);
}
Instance of Symbol 731 MovieClip in Symbol 732 MovieClip Frame 1
onClipEvent (enterFrame) {
trace(_root.mymonth);
if (_root.day >= 31) {
_root.menu.mymonth.gotoAndStop(_root.menu.mymonth._currentframe + 1);
_root.gold = _root.gold - (_root.men * 5);
_root.mymonth = _root.mymonth + 1;
_root.day = 1;
}
}
Symbol 734 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 734 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 743 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
};
Symbol 744 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 1
stop();
Symbol 753 MovieClip Frame 1
stop();
_root.leftside = 1;
Symbol 753 MovieClip Frame 2
_root.leftside = 0;
Symbol 753 MovieClip Frame 101
gotoAndStop (1);
Symbol 755 MovieClip Frame 1
stop();
_root.rightside = 1;
Symbol 755 MovieClip Frame 2
_root.rightside = 0;
Symbol 755 MovieClip Frame 101
gotoAndStop (1);
Symbol 757 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 1
stop();
Symbol 771 MovieClip Frame 1
stop();
Symbol 779 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 1
stop();
Symbol 794 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 816 MovieClip Frame 1
stop();
Symbol 823 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 1
cannons = 1;
_root.menship = 20;
_root.maximumHP = 20;
stop();
Instance of Symbol 744 MovieClip "watere" in Symbol 833 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ship.acceleration >= 0.8) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 753 MovieClip "leftreload" in Symbol 833 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe >= 2) {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
}
}
Instance of Symbol 755 MovieClip "rightreload" in Symbol 833 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe >= 2) {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
}
}
Symbol 833 MovieClip Frame 2
cannons = 2;
_root.menship = 35;
_root.maximumHP = 40;
Symbol 833 MovieClip Frame 3
cannons = 3;
_root.menship = 50;
_root.maximumHP = 50;
Symbol 833 MovieClip Frame 4
cannons = 4;
_root.menship = 80;
_root.maximumHP = 80;
Symbol 833 MovieClip Frame 5
cannons = 6;
_root.menship = 115;
_root.maximumHP = 150;
Symbol 833 MovieClip Frame 6
cannons = 9;
_root.menship = 130;
_root.maximumHP = 120;
Symbol 833 MovieClip Frame 7
cannons = 12;
_root.menship = 150;
_root.maximumHP = 150;
Symbol 833 MovieClip Frame 8
cannons = 14;
_root.menship = 200;
_root.maximumHP = 190;
Symbol 833 MovieClip Frame 9
cannons = 14;
_root.menship = 200;
_root.maximumHP = 240;
Symbol 833 MovieClip Frame 10
cannons = 16;
_root.menship = 220;
_root.maximumHP = 300;
Symbol 833 MovieClip Frame 11
cannons = 16;
_root.menship = 220;
_root.maximumHP = 350;
Symbol 833 MovieClip Frame 12
cannons = 18;
_root.menship = 250;
_root.maximumHP = 280;
Symbol 833 MovieClip Frame 13
cannons = 16;
_root.menship = 300;
_root.maximumHP = 400;
Symbol 833 MovieClip Frame 14
cannons = 22;
_root.menship = 400;
_root.maximumHP = 420;
Symbol 833 MovieClip Frame 15
cannons = 26;
_root.menship = 450;
_root.maximumHP = 460;
Symbol 833 MovieClip Frame 16
cannons = 20;
_root.menship = 500;
_root.maximumHP = 500;
Symbol 833 MovieClip Frame 17
cannons = 30;
_root.menship = 600;
_root.maximumHP = 600;
Symbol 833 MovieClip Frame 19
cannons = 40;
_root.menship = 1000;
_root.maximumHP = 1000;
Instance of Symbol 744 MovieClip "watere" in Symbol 833 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.ship.acceleration >= 0.8) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 834 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 10
_root.enemy.men--;
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 10
_root.enemy2.men--;
Symbol 836 MovieClip Frame 1
stop();
Symbol 836 MovieClip Frame 10
_root.men--;
_root.swords--;
Symbol 837 MovieClip Frame 1
stop();
Symbol 837 MovieClip Frame 2
_root.explosion = 1;
stop();
Instance of Symbol 833 MovieClip "model" in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shipmodel);
}
Instance of Symbol 834 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.abordage == 1) and ((!_root.enemyabordaged) == true)) {
_root.aboani.gotoAndStop(2);
this.gotoAndPlay(random(10) + 1);
}
}
Instance of Symbol 835 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.abordage2 == 1) and ((!_root.enemy2abordaged) == true)) {
_root.abo2ani.gotoAndStop(2);
this.gotoAndPlay(random(10) + 1);
}
}
Instance of Symbol 836 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.abordage == 1) {
if ((!_root.enemyabordaged) == true) {
this.gotoAndPlay(random(10) + 1);
} else {
_root.aboani.gotoAndStop(2);
_root.pausegame = false;
}
}
if (_root.abordage2 == 1) {
if ((!_root.enemy2abordaged) == true) {
this.gotoAndPlay(random(10) + 1);
_root.abo2ani.gotoAndStop(2);
} else {
_root.abo2ani.gotoAndStop(1);
_root.pausegame = false;
}
}
if ((_root.men <= 0) and (_root.abordage == 1)) {
_root.gotoAndStop(7);
}
if ((_root.men <= 0) and (_root.abordage == 2)) {
_root.gotoAndStop(7);
}
if ((_root.swords <= 0) and (_root.abordage == 1)) {
_root.gotoAndStop(7);
}
if ((_root.swords <= 0) and (_root.abordage == 2)) {
_root.gotoAndStop(7);
}
}
onClipEvent (enterFrame) {
if (_root.enemy.men <= 0) {
_root.abordage = 0;
_root.enemyabordaged = true;
_root.aboani.gotoAndStop(1);
}
if (_root.enemy2.men <= 0) {
_root.abordage2 = 0;
_root.enemy2abordaged = true;
_root.abo2ani.gotoAndStop(1);
}
}
Instance of Symbol 837 MovieClip in Symbol 838 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.enemyabordaged == true) {
this.gotoAndStop(2);
}
if (_root.enemy2abordaged == true) {
this.gotoAndStop(2);
}
}
Symbol 840 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 122
stop();
_root.question.gotoAndStop(5);
Symbol 842 MovieClip Frame 1
stop();
Symbol 844 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 4;
}
Symbol 847 Button
on (press) {
gotoAndStop(_currentframe + 1);
}
Symbol 849 Button
on (press) {
gotoAndStop(_currentframe - 1);
}
Symbol 875 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 8
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 4;
Symbol 878 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.clouds == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
stop();
Symbol 884 MovieClip Frame 1
stop();
Instance of Symbol 884 MovieClip in Symbol 885 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(3) + 1);
}
Symbol 888 MovieClip Frame 1
stop();
_root.left2side = 1;
Symbol 888 MovieClip Frame 2
_root.left2side = 0;
Symbol 888 MovieClip Frame 101
gotoAndStop (1);
Symbol 890 MovieClip Frame 1
stop();
_root.right2side = 1;
Symbol 890 MovieClip Frame 2
_root.right2side = 0;
Symbol 890 MovieClip Frame 101
gotoAndStop (1);
Symbol 891 MovieClip Frame 1
stop();
Symbol 911 MovieClip Frame 1
cannons = 1;
men = 20;
hull = 20;
stop();
Instance of Symbol 744 MovieClip "watere" in Symbol 911 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ship.acceleration >= 0.8) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 888 MovieClip "leftreload" in Symbol 911 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.leftside == 1) {
reloadnow = true;
}
if (this.leftside == 0) {
reloadnow = false;
}
if (this._currentframe >= 2) {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
}
}
Instance of Symbol 890 MovieClip "rightreload" in Symbol 911 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.rightside == 1) {
trace("aa");
reloadnow = true;
}
if (this.rightside == 0) {
reloadnow = false;
}
if (this._currentframe >= 2) {
if (_root.pausegame == false) {
this.play();
} else {
this.stop();
}
}
}
Symbol 911 MovieClip Frame 2
cannons = 2;
men = 35;
hull = 40;
Symbol 911 MovieClip Frame 3
cannons = 3;
men = 50;
hull = 50;
Symbol 911 MovieClip Frame 4
cannons = 4;
men = 80;
hull = 80;
Symbol 911 MovieClip Frame 5
cannons = 6;
men = 115;
hull = 150;
Symbol 911 MovieClip Frame 6
cannons = 9;
men = 130;
hull = 120;
Symbol 911 MovieClip Frame 7
cannons = 12;
men = 150;
hull = 150;
Symbol 911 MovieClip Frame 8
cannons = 14;
men = 200;
hull = 190;
Symbol 911 MovieClip Frame 9
cannons = 14;
men = 200;
hull = 240;
Symbol 911 MovieClip Frame 10
cannons = 16;
men = 220;
hull = 300;
Symbol 911 MovieClip Frame 11
cannons = 16;
men = 220;
hull = 350;
Symbol 911 MovieClip Frame 12
cannons = 18;
men = 250;
hull = 280;
Symbol 911 MovieClip Frame 13
cannons = 16;
men = 300;
hull = 400;
Symbol 911 MovieClip Frame 14
cannons = 22;
men = 400;
hull = 420;
Symbol 911 MovieClip Frame 15
cannons = 26;
men = 450;
hull = 460;
Symbol 911 MovieClip Frame 16
cannons = 20;
men = 500;
hull = 500;
Symbol 911 MovieClip Frame 17
cannons = 30;
men = 600;
hull = 600;
Symbol 911 MovieClip Frame 18
cannons = 30;
hull = 500;
men = 500;
Symbol 911 MovieClip Frame 20
dead = true;
Symbol 911 MovieClip Frame 25
gotoAndStop (1);
Symbol 934 MovieClip Frame 1
stop();
Instance of Symbol 918 MovieClip "readymen" in Symbol 934 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 923 MovieClip "readymen" in Symbol 934 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 928 MovieClip "readymen" in Symbol 934 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 933 MovieClip "readymen" in Symbol 934 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndPlay(2);
}
Symbol 947 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 1
stop();
_root.pausegame = false;
Symbol 948 MovieClip Frame 2
_root.pausegame = true;
Instance of Symbol 225 MovieClip in Symbol 948 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 934 MovieClip "us" in Symbol 948 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.yourflag);
this.readymen.gotoAndStop(1);
}
Instance of Symbol 332 MovieClip in Symbol 948 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.attackerflag);
}
onClipEvent (enterFrame) {
_root.pausegame = true;
}
Instance of Symbol 332 MovieClip in Symbol 948 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 934 MovieClip "enemy" in Symbol 948 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.attackerflag);
}
Instance of Symbol 545 MovieClip in Symbol 948 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.men <= 0) {
_root.gotoAndStop(7);
}
if (_root.enemy.men <= 0) {
_root.pausegame = false;
_root.enemyabordaged = true;
gotoAndStop (1);
}
}
Instance of Symbol 947 MovieClip in Symbol 948 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.attacker);
}
Symbol 954 MovieClip Frame 1
stop();
_root.pausegame = false;
Symbol 954 MovieClip Frame 2
_root.pausegame = true;
Instance of Symbol 225 MovieClip in Symbol 954 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 934 MovieClip "us" in Symbol 954 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 332 MovieClip in Symbol 954 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.attackerflag);
}
onClipEvent (enterFrame) {
_root.pausegame = true;
}
Instance of Symbol 332 MovieClip in Symbol 954 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 934 MovieClip "enemy" in Symbol 954 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.attackerflag);
}
Instance of Symbol 545 MovieClip in Symbol 954 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.men <= 0) {
_root.gotoAndStop(7);
}
if (_root.enemy2.men <= 0) {
_root.pausegame = false;
_root.enemy2abordaged = true;
gotoAndStop (1);
}
}
Instance of Symbol 947 MovieClip in Symbol 954 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.attacker);
}
Symbol 958 Button
on (press, keyPress "n") {
_root.pausegame = false;
gotoAndStop (1);
}
Symbol 959 Button
on (press, keyPress "y") {
_root.men = 1;
_root.shipmodel = 1;
_root.pausegame = false;
_root.stopwhere = 10;
_root.blackanimation.gotoAndPlay("close");
}
Symbol 960 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 960 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 971 MovieClip Frame 1
stop();
Instance of Symbol 332 MovieClip in Symbol 977 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.attackerflag);
}
onClipEvent (enterFrame) {
if (_root.topmenu.sailsa <= 0) {
_root.topmenu.sailsa = 0;
}
if (_root.heroHP <= 0) {
_root.gotoAndStop(7);
_root.heroHP = 0;
}
if (_root.swords <= 0) {
_root.gotoAndStop(7);
_root.swords = 0;
}
if (_root.men <= 0) {
_root.men = 0;
}
if (_root.enemy.men <= 1) {
_root.enemy.men = 0;
}
if (_root.enemy2.men <= 1) {
_root.enemy2.men = 0;
}
if (_root.enemyHP <= 0) {
_root.enemyHP = 0;
}
if (_root.enemy2HP <= 0) {
_root.enemy2HP = 0;
}
if (_root.cannonballsc <= 0) {
_root.cannonballsc = 0;
}
if (_root.chainballsc <= 0) {
_root.chainballsc = 0;
}
if (_root.grapeballsc <= 0) {
_root.grapeballsc = 0;
}
if (_root.bombballsc <= 0) {
_root.bombballsc = 0;
}
}
Instance of Symbol 971 MovieClip in Symbol 977 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.enemy.model);
}
Instance of Symbol 971 MovieClip in Symbol 977 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.enemy2.model);
if (_root.aenemy2dead == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 984 Button
on (press) {
_root.gold = Number(_root.gold) + _root.points;
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 10;
gotoAndStop (1);
}
Symbol 993 Button
on (press) {
_root.gold = Number(_root.gold) + _root.points;
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 10;
}
Symbol 994 Button
on (release) {
_root.shipmodel = _root.enemy.model;
_root.yourcannons = 1;
_root.gold = Number(_root.gold) + _root.points;
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 10;
gotoAndStop (1);
}
Symbol 995 Button
on (release) {
_root.shipmodel = _root.enemy2.model;
_root.yourcannons = 1;
_root.gold = Number(_root.gold) + _root.points;
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 10;
gotoAndStop (1);
}
Instance of Symbol 332 MovieClip in Symbol 998 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.attackerflag);
}
onClipEvent (enterFrame) {
if (this._currentframe == _root.yourflag) {
_root.yourflag = 4;
}
}
Instance of Symbol 332 MovieClip in Symbol 998 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Symbol 998 MovieClip Frame 4
_root.enemyHP = _root.enemy.hull;
_root.enemy2HP = _root.enemy2.hull;
_root.points = 0;
Symbol 998 MovieClip Frame 90
stop();
Symbol 998 MovieClip Frame 91
_root.pausegame = true;
_root.music.gotoAndStop(13);
Instance of Symbol 225 MovieClip in Symbol 998 MovieClip Frame 91
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 998 MovieClip Frame 92
_root.pausegame = true;
_root.music.gotoAndStop(11);
_root.points = Number(random(4000));
Instance of Symbol 971 MovieClip in Symbol 998 MovieClip Frame 92
onClipEvent (load) {
this.gotoAndStop(_root.enemy.model);
}
Instance of Symbol 971 MovieClip in Symbol 998 MovieClip Frame 92
onClipEvent (load) {
this.gotoAndStop(_root.enemy2.model);
}
Instance of Symbol 225 MovieClip in Symbol 998 MovieClip Frame 92
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 998 MovieClip Frame 93
_root.pausegame = true;
_root.music.gotoAndStop(11);
_root.points = Number(random(2000));
Instance of Symbol 225 MovieClip in Symbol 998 MovieClip Frame 93
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 971 MovieClip in Symbol 998 MovieClip Frame 93
onClipEvent (load) {
this.gotoAndStop(_root.enemy2.model);
}
Symbol 998 MovieClip Frame 94
_root.pausegame = true;
_root.music.gotoAndStop(11);
_root.points = Number(random(2000));
Instance of Symbol 971 MovieClip in Symbol 998 MovieClip Frame 94
onClipEvent (load) {
this.gotoAndStop(_root.enemy.model);
}
Symbol 1024 MovieClip Frame 1
stop();
Instance of Symbol 332 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Instance of Symbol 716 MovieClip "pausebutton" in Symbol 1025 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 608 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.yourcannons == 1) {
this.gotoAndStop(1);
} else if (_root.yourcannons == 2) {
this.gotoAndStop(2);
} else if (_root.yourcannons == 3) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(49)) {
_root.weapon = 1;
} else if (Key.isDown(50)) {
_root.weapon = 2;
} else if (Key.isDown(51)) {
_root.weapon = 3;
} else if (Key.isDown(52)) {
_root.weapon = 4;
}
}
Instance of Symbol 1024 MovieClip in Symbol 1025 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
if (_root.weapon == 1) {
_root.weaponshot = _root.cannonballsc;
} else if (_root.weapon == 2) {
_root.weaponshot = _root.chainballsc;
} else if (_root.weapon == 3) {
_root.weaponshot = _root.grapeballsc;
} else if (_root.weapon == 4) {
_root.weaponshot = _root.bombballsc;
}
}
Symbol 1027 Button
on (press) {
_root.pausegame = true;
_root.retreatani.gotoAndStop(2);
}
Symbol 1028 MovieClip Frame 20
stop();
Symbol 1054 MovieClip Frame 1
stop();
Instance of Symbol 394 MovieClip in Symbol 1054 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.Buildingopen4 = 1;
} else {
_root.Buildingopen4 = 0;
}
}
Symbol 1063 Button
on (press) {
_root.blackanimation.gotoAndPlay("close");
_root.stopwhere = 10;
}
Symbol 1065 MovieClip Frame 1
stop();
_root.music.gotoAndStop(5);
Symbol 1065 MovieClip Frame 2
_root.music.gotoAndStop(7);
Symbol 1065 MovieClip Frame 3
_root.music.gotoAndStop(9);
Symbol 1065 MovieClip Frame 4
_root.music.gotoAndStop(15);
Symbol 1105 MovieClip Frame 1
stop();
Symbol 1119 Button
on (press) {
if ((_root.cannonballsc >= (_root.limit + 1)) and (_root.gold >= 1)) {
_root.cannonballsc = Number(_root.cannonballsc) + 1;
_root.gold = Number(_root.gold) - 1;
}
}
Symbol 1124 Button
on (press) {
if ((_root.cannonballsc >= (_root.limit + 1)) and (_root.gold >= 10)) {
_root.cannonballsc = Number(_root.cannonballsc) + 10;
_root.gold = Number(_root.gold) - 10;
}
}
Symbol 1129 Button
on (press) {
if ((_root.cannonballsc >= (_root.limit + 1)) and (_root.gold >= 100)) {
_root.cannonballsc = Number(_root.cannonballsc) + 100;
_root.gold = Number(_root.gold) - 100;
}
}
Symbol 1130 Button
on (press) {
if ((_root.chainballsc >= (_root.limit + 1)) and (_root.gold >= 3)) {
_root.chainballsc = Number(_root.chainballsc) + 1;
_root.gold = Number(_root.gold) - 3;
}
}
Symbol 1131 Button
on (press) {
if ((_root.chainballsc >= (_root.limit + 1)) and (_root.gold >= 30)) {
_root.chainballsc = Number(_root.chainballsc) + 10;
_root.gold = Number(_root.gold) - 30;
}
}
Symbol 1132 Button
on (press) {
if ((_root.chainballsc >= (_root.limit + 1)) and (_root.gold >= 300)) {
_root.chainballsc = Number(_root.chainballsc) + 100;
_root.gold = Number(_root.gold) - 300;
}
}
Symbol 1133 Button
on (press) {
if ((_root.grapeballsc >= (_root.limit + 1)) and (_root.gold >= 4)) {
_root.grapeballsc = Number(_root.grapeballsc) + 1;
_root.gold = Number(_root.gold) - 4;
}
}
Symbol 1134 Button
on (press) {
if ((_root.grapeballsc >= (_root.limit + 1)) and (_root.gold >= 40)) {
_root.grapeballsc = Number(_root.grapeballsc) + 10;
_root.gold = Number(_root.gold) - 40;
}
}
Symbol 1135 Button
on (press) {
if ((_root.grapeballsc >= (_root.limit + 1)) and (_root.gold >= 400)) {
_root.grapeballsc = Number(_root.grapeballsc) + 100;
_root.gold = Number(_root.gold) - 400;
}
}
Symbol 1136 Button
on (press) {
if ((_root.bombballsc >= (_root.limit + 1)) and (_root.gold >= 10)) {
_root.bombballsc = Number(_root.bombballsc) + 1;
_root.gold = Number(_root.gold) - 10;
}
}
Symbol 1137 Button
on (press) {
if ((_root.bombballsc >= (_root.limit + 1)) and (_root.gold >= 100)) {
_root.bombballsc = Number(_root.bombballsc) + 10;
_root.gold = Number(_root.gold) - 100;
}
}
Symbol 1138 Button
on (press) {
if ((_root.bombballsc >= (_root.limit + 1)) and (_root.gold >= 1000)) {
_root.bombballsc = Number(_root.bombballsc) + 100;
_root.gold = Number(_root.gold) - 1000;
}
}
Symbol 1139 Button
on (press) {
if ((_root.swords >= (_root.limit + 1)) and (_root.gold >= 15)) {
_root.swords = Number(_root.swords) + 1;
_root.gold = Number(_root.gold) - 15;
}
}
Symbol 1140 Button
on (press) {
if ((_root.swords >= (_root.limit + 1)) and (_root.gold >= 150)) {
_root.swords = Number(_root.swords) + 10;
_root.gold = Number(_root.gold) - 150;
}
}
Symbol 1141 Button
on (press) {
if ((_root.swords >= (_root.limit + 1)) and (_root.gold >= 1500)) {
_root.swords = Number(_root.swords) + 100;
_root.gold = Number(_root.gold) - 1500;
}
}
Symbol 1142 Button
on (press) {
if ((_root.guns >= (_root.limit + 1)) and (_root.gold >= 50)) {
_root.guns = Number(_root.guns) + 1;
_root.gold = Number(_root.gold) - 50;
}
}
Symbol 1143 Button
on (press) {
if ((_root.guns >= (_root.limit + 1)) and (_root.gold >= 500)) {
_root.guns = Number(_root.guns) + 10;
_root.gold = Number(_root.gold) - 500;
}
}
Symbol 1144 Button
on (press) {
if ((_root.guns >= (_root.limit + 1)) and (_root.gold >= 5000)) {
_root.guns = Number(_root.guns) + 100;
_root.gold = Number(_root.gold) - 5000;
}
}
Symbol 1182 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 1182 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 225 MovieClip in Symbol 1182 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 1188 Button
on (press) {
if ((_root.menship >= (_root.men + 1)) and (_root.gold >= 5)) {
_root.men = Number(_root.men) + 1;
_root.gold = Number(_root.gold) - 5;
}
}
Symbol 1189 Button
on (press) {
if ((_root.menship >= (_root.men + 10)) and (_root.gold >= 50)) {
_root.men = Number(_root.men) + 10;
_root.gold = Number(_root.gold) - 50;
}
}
Symbol 1190 Button
on (press) {
if ((_root.menship >= (_root.men + 100)) and (_root.gold >= 500)) {
_root.men = Number(_root.men) + 100;
_root.gold = Number(_root.gold) - 500;
}
}
Symbol 1195 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 1195 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 1202 Button
on (press) {
_root.shipyard.shipyardmc.buyship.gotoAndStop(_root.shipyard.shipyardmc.buyship._currentframe + 1);
_root.shipyard.shipyardmc.prices.gotoAndStop(_root.shipyard.shipyardmc.prices._currentframe + 1);
}
Symbol 1203 Button
on (press) {
_root.shipyard.shipyardmc.buyship.gotoAndStop(_root.shipyard.shipyardmc.buyship._currentframe - 1);
_root.shipyard.shipyardmc.prices.gotoAndStop(_root.shipyard.shipyardmc.prices._currentframe - 1);
}
Symbol 1206 Button
on (press) {
if (_root.gold >= _root.goldneeded) {
_root.gold = _root.gold - _root.goldneeded;
gotoAndStop (2);
}
}
Symbol 1207 Button
on (press) {
if (_root.yourcannons == 2) {
_root.prise2cannons = (_root.ship.model.cannons * 100) * 2;
_root.gold = _root.gold + _root.prise2cannons;
_root.yourcannons = 1;
} else {
if (_root.yourcannons == 3) {
_root.prise3cannons = (_root.ship.model.cannons * 200) * 2;
_root.gold = _root.gold + _root.prise3cannons;
_root.yourcannons = 1;
}
this.gotoAndStop(2);
}
}
Symbol 1208 MovieClip Frame 1
stop();
Symbol 1209 Button
on (press) {
if (_root.yourcannons == 3) {
_root.prise2cannons = (_root.ship.model.cannons * 100) * 2;
_root.gold = _root.gold + _root.prise2cannons;
_root.yourcannons = 2;
}
if (_root.yourcannons == 1) {
if (_root.gold >= _root.prise2cannons) {
_root.yourcannons = 2;
_root.gold = _root.gold - _root.prise2cannons;
}
this.gotoAndStop(2);
}
}
Symbol 1210 MovieClip Frame 1
stop();
Symbol 1211 Button
on (press) {
if (_root.yourcannons == 2) {
_root.prise2cannons = (_root.ship.model.cannons * 100) * 2;
_root.gold = _root.gold + _root.prise2cannons;
_root.gold = _root.gold - _root.prise3cannons;
_root.yourcannons = 3;
}
if (_root.yourcannons == 1) {
if (_root.gold >= _root.prise3cannons) {
_root.yourcannons = 3;
_root.gold = _root.gold - _root.prise3cannons;
}
this.gotoAndStop(2);
}
}
Symbol 1212 MovieClip Frame 1
stop();
Symbol 1217 MovieClip Frame 1
stop();
_root.goldneeded = 0;
Symbol 1217 MovieClip Frame 2
_root.goldneeded = 800;
Symbol 1217 MovieClip Frame 3
_root.goldneeded = 2000;
Symbol 1217 MovieClip Frame 4
_root.goldneeded = 2500;
Symbol 1217 MovieClip Frame 5
_root.goldneeded = 3000;
Symbol 1217 MovieClip Frame 6
_root.goldneeded = 4500;
Symbol 1217 MovieClip Frame 7
_root.goldneeded = 6000;
Symbol 1217 MovieClip Frame 8
_root.goldneeded = 7000;
Symbol 1217 MovieClip Frame 9
_root.goldneeded = 7800;
Symbol 1217 MovieClip Frame 10
_root.goldneeded = 8500;
Symbol 1217 MovieClip Frame 11
_root.goldneeded = 12000;
Symbol 1217 MovieClip Frame 12
_root.goldneeded = 14000;
Symbol 1217 MovieClip Frame 13
_root.goldneeded = 15000;
Symbol 1217 MovieClip Frame 14
_root.goldneeded = 20000;
Symbol 1217 MovieClip Frame 15
_root.goldneeded = 25000;
Symbol 1217 MovieClip Frame 16
_root.goldneeded = 30000;
Symbol 1217 MovieClip Frame 17
_root.goldneeded = 50000;
Symbol 1220 Button
on (press) {
gotoAndStop (1);
}
Symbol 1221 MovieClip Frame 1
stop();
trace((((_root.damage + " ") + _root.maximumHP) + " ") + _root.shipmodel);
_root.shipdamagere = Math.round((_root.damage / _root.maximumHP) * (_root.repaircost + _root.shipmodel));
Instance of Symbol 225 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 693 MovieClip "buyship" in Symbol 1221 MovieClip Frame 1
onClipEvent (enterFrame) {
trace(_root.newshipmodel);
_root.newshipmodel = this._currentframe;
this.gotoAndStop(_root.newshipmodel);
_root.heroHP = _root.hero.model._currentframe * 20;
}
Instance of Symbol 1208 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.prise1cannons = (_root.ship.model.cannons * 25) * 2;
if (_root.yourcannons == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1210 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.prise2cannons = (_root.ship.model.cannons * 100) * 2;
if (_root.yourcannons == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1212 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.prise3cannons = (_root.ship.model.cannons * 200) * 2;
if (_root.yourcannons == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 225 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 693 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shipmodel);
}
Symbol 1221 MovieClip Frame 2
_root.shipmodel = _root.newshipmodel;
Instance of Symbol 225 MovieClip in Symbol 1221 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 693 MovieClip in Symbol 1221 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shipmodel);
}
Symbol 1222 MovieClip Frame 1
stop();
Symbol 1228 Button
on (press) {
if (_root.gold >= 2500) {
_root.yourflag = 1;
_root.gold = Number(_root.gold) - 2500;
_root.king.england.boughtmc.gotoAndPlay(2);
}
}
Symbol 1230 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 1230 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Instance of Symbol 332 MovieClip in Symbol 1230 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.yourflag);
}
Symbol 1230 MovieClip Frame 34
stop();
Symbol 1231 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 1231 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 1234 Button
on (press) {
if (_root.gold >= 2500) {
_root.yourflag = 2;
_root.gold = Number(_root.gold) - 2500;
_root.king.france.boughtmc.gotoAndPlay(2);
}
}
Symbol 1235 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 1235 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 1238 Button
on (press) {
if (_root.gold >= 2500) {
_root.yourflag = 3;
_root.gold = Number(_root.gold) - 2500;
_root.king.spain.boughtmc.gotoAndPlay(2);
}
}
Symbol 1239 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 1239 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.pausegame = true;
}
}
Symbol 1240 MovieClip Frame 1
stop();
Instance of Symbol 1231 MovieClip "england" in Symbol 1240 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.Buildingopen4 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1235 MovieClip "france" in Symbol 1240 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.Buildingopen4 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1239 MovieClip "spain" in Symbol 1240 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.Buildingopen4 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}