Frame 1
Stage.showMenu = false;
Instance of Symbol 71 MovieClip "gr_start_comp" in Frame 1
//component parameters
onClipEvent (initialize) {
gameID = "20728FB1";
gr_mode = "live ready";
gr_title = "Navy Battles";
}
Frame 2
function grt_goSeconds() {
gotoAndPlay ("gr_3seconds");
}
trace(gr_mode);
stop();
grt_startTime = getTimer();
if (gr_mode == "local test") {
gcode = "999";
trace(gcode);
grt_goSeconds();
}
if (gr_mode == "live ready") {
grt_goSeconds();
}
Frame 10
function grt_showZiz() {
var _local2 = getTimer();
var _local1 = (_local2 - grt_startTime) / 1000;
trace(_local1);
if (_local1 > 1) {
gotoAndStop ("gr_loadswf");
} else {
play();
}
}
grt_showZiz();
Frame 11
prevFrame();
Frame 20
function gr_loadswf() {
trace("gr_loadswf");
if (_framesloaded >= _totalframes) {
gr_goGame();
} else {
play();
}
}
function gr_goGame() {
gotoAndStop (53);
}
stop();
if (_root.gcode == null) {
getURL ("http://www.gamerival.com/utilities/redir.cfm?game=" add _root.gameID, "_blank");
gotoAndStop ("gr_link_redirect");
} else {
gr_loadswf();
}
Frame 21
prevFrame();
Frame 28
stop();
Frame 53
play();
Frame 54
trace("WHAD");
Array.prototype.shuffle = function () {
var _local3 = this;
var len = _local3.length;
var temp = new Array();
var _local2 = 0;
while (_local2 < len) {
var ran = Math.round(Math.random() * (_local3.length - 1));
temp[_local2] = _local3[ran];
_local3.splice(ran, 1);
_local2++;
}
var _local1 = 0;
while (_local1 < len) {
_local3[_local1] = temp[_local1];
_local1++;
}
};
Array.prototype.copy2D = function () {
var _local2 = this;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3[_local1] = _local2[_local1].slice();
_local1++;
}
return(_local3);
};
gotoAndStop ("start");
Frame 56
Frame 57
function clear() {
var _local2 = this;
for (var _local1 in shipArray) {
shipArray[_local1].clip.removeMovieClip();
}
for (var _local1 in shipCompArray) {
shipCompArray[_local1].clip.removeMovieClip();
}
var _local1 = 0;
while (_local1 < 500) {
name = "exp" + _local1;
_local2[name].removeMovieClip();
_local1++;
}
_local1 = 0;
while (_local1 < 300) {
name = "n" + _local1;
_local2[name].removeMovieClip();
name = "p" + _local1;
_local2[name].removeMovieClip();
_local1++;
}
_local1 = 0;
while (_local1 < numShip) {
name = "pShipCount" + _local1;
_local2[name].removeMovieClip();
name = "cShipCount" + _local1;
_local2[name].removeMovieClip();
_local1++;
}
if (sp_weapon) {
sp_weapon.removeMovieClip();
}
}
function startGame() {
gridSize = 15;
numShip = 7;
level = 0;
score = 0;
lost = false;
}
function shakeScreen() {
seered._visible = true;
shakeInterval = setInterval(moveBy, 8);
shake = 0;
}
function moveBy() {
var _local1 = _root;
_local1._x = random(20) - 10;
_local1._y = random(20) - 10;
shake++;
if (shake > 10) {
_local1._x = 0;
_local1._y = 0;
seered._visible = false;
clearInterval(shakeInterval);
}
}
stop();
if (ambient == null) {
ambient = new Sound();
ambient.attachSound("ambientMusic");
ambient.start(0, 9999);
}
var developer = false;
var loadLocalTest = new LoadVars();
loadLocalTest.load("local.ecf");
loadLocalTest.onLoad = function (success) {
if (Number(this.local) == 52) {
trace("developer movie");
developer = true;
}
};
Instance of Symbol 96 MovieClip in Frame 57
onClipEvent (load) {
function shakeScreen() {
seered._visible = true;
_root.shakeInterval = setInterval(moveBy, 8);
shake = 0;
}
}
Frame 60
play();
_root.clear();
if (lost) {
stop();
_root.billboard.gotoAndStop(5);
} else {
score = score + 4000;
_root.roundText = "ROUND " + (level + 1);
if ((level == 1) || (level == 4)) {
_root.billboard.gotoAndStop(1);
} else if ((level == 2) || (level == 5)) {
_root.billboard.gotoAndStop(2);
} else if ((level == 3) || (level == 6)) {
_root.billboard.gotoAndStop(3);
} else {
_root.billboard.gotoAndStop(4);
}
}
Frame 67
function cinPlay() {
if (level >= 7) {
gotoAndStop ("start");
} else {
gotoAndStop ("makemap");
}
}
stop();
Frame 68
play();
setProperty("/prot", _alpha , 0);
island0Obj = {width:5, height:7, islandSpot:[[0, 1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 0], [0, 0, 1, 1, 1, 0, 0]]};
island1Obj = {width:6, height:7, islandSpot:[[0, 1, 1, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 1, 0]]};
island2Obj = {width:3, height:6, islandSpot:[[1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1]]};
island3Obj = {width:3, height:4, islandSpot:[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]};
island4Obj = {width:5, height:6, islandSpot:[[1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0], [1, 1, 1, 1, 0, 0]]};
island5Obj = {width:3, height:3, islandSpot:[[1, 1, 1], [1, 1, 1], [1, 1, 1]]};
island6Obj = {width:4, height:6, islandSpot:[[0, 0, 1, 1, 0, 0], [1, 1, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1]]};
islandMapTotal = 7;
islandMap0 = [["island3", [0, 0]], ["island1", [8, 0]], ["island4", [2, 7]], ["island5", [11, 11]]];
islandMap1 = [["island1", [2, 2]], ["island5", [10, 10]]];
islandMap2 = [["island4", [0, 0]], ["island2", [6, 5]], ["island3", [11, 9]]];
islandMap3 = [["island1", [2, 6]], ["island4", [8, 2]]];
islandMap4 = [["island5", [8, 0]], ["island4", [2, 5]], ["island6", [9, 7]]];
islandMap5 = [["island0", [1, 7]], ["island1", [8, 0]], ["island5", [9, 9]]];
islandMap6 = [["island3", [2, 9]], ["island2", [4, 1]], ["island6", [10, 7]], ["island5", [12, 0]]];
Instance of Symbol 175 MovieClip "plane" in Frame 68
onClipEvent (load) {
}
Instance of Symbol 177 MovieClip "bbomb" in Frame 68
onClipEvent (load) {
}
Instance of Symbol 183 MovieClip "sbomb" in Frame 68
onClipEvent (load) {
}
Instance of Symbol 221 MovieClip "aircraft_carrier_setUp" in Frame 68
onClipEvent (load) {
function rotateMe() {
if (rotate == "hor") {
rotate = "ver";
this._rotation = 90;
} else {
rotate = "hor";
this._rotation = 0;
}
place();
stamp();
}
function place() {
getClip = this._droptarget;
clipNum = eval (getClip).num;
clip = _root.gridArray[eval (getClip).yNum][eval (getClip).xNum];
_root.getClip = getClip;
if ((getClip == "/prot") || (getClip == "/")) {
oldGetClip = "";
} else if (clip != undefined) {
if ((getClip == "") || (getClip == "/ship")) {
getClip = oldGetClip;
oldGetClip = "";
}
if (rotate == "hor") {
if ((clip.x + size) < _root.gridSize) {
Xpos = eval (getClip)._x;
Ypos = eval (getClip)._y;
} else if ((clip.x + size) >= _root.gridSize) {
clipX = (_root.gridSize - size) - 1;
clipY = eval (getClip).yNum;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
} else {
if ((clip.y + size) < _root.gridSize) {
Xpos = eval (getClip)._x + clip.name._width;
Ypos = eval (getClip)._y;
} else if ((clip.y + size) >= _root.gridSize) {
clipX = eval (getClip).xNum;
clipY = (_root.gridSize - size) - 1;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x + _root.hit_dummy._width;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
}
_root.shipArray[this.name].placeShip(clip.x, clip.y, rotate);
oldGetClip = getClip;
}
}
function stamp() {
exit = false;
if (((getClip == "/prot") || (getClip == "/")) || ((substring(getClip, 1, 5)) == "/ship")) {
exit = true;
}
if (Number(exit) == Number(true)) {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
}
pickUp = false;
}
function back() {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
pickUp = false;
gotoAndStop ("stop");
}
size = 4;
rotate = "hor";
orgX = _x;
orgY = _y;
oldGetClip = "";
getClip = "";
placed = "";
pickUp = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (pickUp) {
place();
}
}
Instance of Symbol 225 MovieClip "submarine1_setUp" in Frame 68
onClipEvent (load) {
function rotateMe() {
if (rotate == "hor") {
rotate = "ver";
this._rotation = 90;
} else {
rotate = "hor";
this._rotation = 0;
}
place();
}
function place() {
getClip = this._droptarget;
clipNum = eval (getClip).num;
clip = _root.gridArray[eval (getClip).yNum][eval (getClip).xNum];
_root.getClip = getClip;
if ((getClip == "/prot") || (getClip == "/")) {
oldGetClip = "";
} else if (clip != undefined) {
if ((getClip == "") || (getClip == "/ship")) {
getClip = oldGetClip;
oldGetClip = "";
}
if (rotate == "hor") {
if ((clip.x + size) < _root.gridSize) {
Xpos = eval (getClip)._x;
Ypos = eval (getClip)._y;
} else if ((clip.x + size) >= _root.gridSize) {
clipX = (_root.gridSize - size) - 1;
clipY = eval (getClip).yNum;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
} else {
if ((clip.y + size) < _root.gridSize) {
Xpos = eval (getClip)._x + clip.name._width;
Ypos = eval (getClip)._y;
} else if ((clip.y + size) >= _root.gridSize) {
clipX = eval (getClip).xNum;
clipY = (_root.gridSize - size) - 1;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x + _root.hit_dummy._width;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
}
_root.shipArray[this.name].placeShip(clip.x, clip.y, rotate);
oldGetClip = getClip;
}
}
function stamp() {
exit = false;
if (((getClip == "/prot") || (getClip == "/")) || ((substring(getClip, 1, 5)) == "/ship")) {
exit = true;
}
if (Number(exit) == Number(true)) {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
}
pickUp = false;
}
function back() {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
pickUp = false;
gotoAndStop ("stop");
}
size = 2;
rotate = "hor";
orgX = _x;
orgY = _y;
oldGetClip = "";
getClip = "";
placed = "";
pickUp = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (pickUp) {
place();
}
}
Instance of Symbol 234 MovieClip "destroyer1_setUp" in Frame 68
onClipEvent (load) {
function rotateMe() {
if (rotate == "hor") {
rotate = "ver";
this._rotation = 90;
} else {
rotate = "hor";
this._rotation = 0;
}
place();
}
function place() {
getClip = this._droptarget;
clipNum = eval (getClip).num;
clip = _root.gridArray[eval (getClip).yNum][eval (getClip).xNum];
_root.getClip = getClip;
if ((getClip == "/prot") || (getClip == "/")) {
oldGetClip = "";
} else if (clip != undefined) {
if ((getClip == "") || (getClip == "/ship")) {
getClip = oldGetClip;
oldGetClip = "";
}
if (rotate == "hor") {
if ((clip.x + size) < _root.gridSize) {
Xpos = eval (getClip)._x;
Ypos = eval (getClip)._y;
} else if ((clip.x + size) >= _root.gridSize) {
clipX = (_root.gridSize - size) - 1;
clipY = eval (getClip).yNum;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
} else {
if ((clip.y + size) < _root.gridSize) {
Xpos = eval (getClip)._x + clip.name._width;
Ypos = eval (getClip)._y;
} else if ((clip.y + size) >= _root.gridSize) {
clipX = eval (getClip).xNum;
clipY = (_root.gridSize - size) - 1;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x + _root.hit_dummy._width;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
}
_root.shipArray[this.name].placeShip(clip.x, clip.y, rotate);
oldGetClip = getClip;
}
}
function stamp() {
exit = false;
if (((getClip == "/prot") || (getClip == "/")) || ((substring(getClip, 1, 5)) == "/ship")) {
exit = true;
}
if (Number(exit) == Number(true)) {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
}
pickUp = false;
}
function back() {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
pickUp = false;
gotoAndStop ("stop");
}
size = 3;
rotate = "hor";
orgX = _x;
orgY = _y;
oldGetClip = "";
getClip = "";
placed = "";
pickUp = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (pickUp) {
place();
}
}
Instance of Symbol 237 MovieClip "frigate0_setUp" in Frame 68
onClipEvent (load) {
function rotateMe() {
if (rotate == "hor") {
rotate = "ver";
this._rotation = 90;
} else {
rotate = "hor";
this._rotation = 0;
}
place();
}
function place() {
getClip = this._droptarget;
clipNum = eval (getClip).num;
clip = _root.gridArray[eval (getClip).yNum][eval (getClip).xNum];
_root.getClip = getClip;
if ((getClip == "/prot") || (getClip == "/")) {
oldGetClip = "";
} else if (clip != undefined) {
if ((getClip == "") || (getClip == "/ship")) {
getClip = oldGetClip;
oldGetClip = "";
}
if (rotate == "hor") {
if ((clip.x + size) < _root.gridSize) {
Xpos = eval (getClip)._x;
Ypos = eval (getClip)._y;
} else if ((clip.x + size) >= _root.gridSize) {
clipX = (_root.gridSize - size) - 1;
clipY = eval (getClip).yNum;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
} else {
if ((clip.y + size) < _root.gridSize) {
Xpos = eval (getClip)._x + clip.name._width;
Ypos = eval (getClip)._y;
} else if ((clip.y + size) >= _root.gridSize) {
clipX = eval (getClip).xNum;
clipY = (_root.gridSize - size) - 1;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x + _root.hit_dummy._width;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
}
_root.shipArray[this.name].placeShip(clip.x, clip.y, rotate);
oldGetClip = getClip;
}
}
function stamp() {
exit = false;
if (((getClip == "/prot") || (getClip == "/")) || ((substring(getClip, 1, 5)) == "/ship")) {
exit = true;
}
if (Number(exit) == Number(true)) {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
}
pickUp = false;
}
function back() {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
pickUp = false;
gotoAndStop ("stop");
}
size = 1;
rotate = "hor";
orgX = _x;
orgY = _y;
oldGetClip = "";
getClip = "";
placed = "";
pickUp = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (pickUp) {
place();
}
}
Instance of Symbol 225 MovieClip "submarine0_setUp" in Frame 68
onClipEvent (load) {
function rotateMe() {
if (rotate == "hor") {
rotate = "ver";
this._rotation = 90;
} else {
rotate = "hor";
this._rotation = 0;
}
place();
}
function place() {
getClip = this._droptarget;
clipNum = eval (getClip).num;
clip = _root.gridArray[eval (getClip).yNum][eval (getClip).xNum];
_root.getClip = getClip;
if ((getClip == "/prot") || (getClip == "/")) {
oldGetClip = "";
} else if (clip != undefined) {
if ((getClip == "") || (getClip == "/ship")) {
getClip = oldGetClip;
oldGetClip = "";
}
if (rotate == "hor") {
if ((clip.x + size) < _root.gridSize) {
Xpos = eval (getClip)._x;
Ypos = eval (getClip)._y;
} else if ((clip.x + size) >= _root.gridSize) {
clipX = (_root.gridSize - size) - 1;
clipY = eval (getClip).yNum;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
} else {
if ((clip.y + size) < _root.gridSize) {
Xpos = eval (getClip)._x + clip.name._width;
Ypos = eval (getClip)._y;
} else if ((clip.y + size) >= _root.gridSize) {
clipX = eval (getClip).xNum;
clipY = (_root.gridSize - size) - 1;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x + _root.hit_dummy._width;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
}
_root.shipArray[this.name].placeShip(clip.x, clip.y, rotate);
oldGetClip = getClip;
}
}
function stamp() {
exit = false;
if (((getClip == "/prot") || (getClip == "/")) || ((substring(getClip, 1, 5)) == "/ship")) {
exit = true;
}
if (Number(exit) == Number(true)) {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
}
pickUp = false;
}
function back() {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
pickUp = false;
gotoAndStop ("stop");
}
size = 2;
rotate = "hor";
orgX = _x;
orgY = _y;
oldGetClip = "";
getClip = "";
placed = "";
pickUp = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (pickUp) {
place();
}
}
Instance of Symbol 237 MovieClip "frigate1_setUp" in Frame 68
onClipEvent (load) {
function rotateMe() {
if (rotate == "hor") {
rotate = "ver";
this._rotation = 90;
} else {
rotate = "hor";
this._rotation = 0;
}
place();
}
function place() {
getClip = this._droptarget;
clipNum = eval (getClip).num;
clip = _root.gridArray[eval (getClip).yNum][eval (getClip).xNum];
_root.getClip = getClip;
if ((getClip == "/prot") || (getClip == "/")) {
oldGetClip = "";
} else if (clip != undefined) {
if ((getClip == "") || (getClip == "/ship")) {
getClip = oldGetClip;
oldGetClip = "";
}
if (rotate == "hor") {
if ((clip.x + size) < _root.gridSize) {
Xpos = eval (getClip)._x;
Ypos = eval (getClip)._y;
} else if ((clip.x + size) >= _root.gridSize) {
clipX = (_root.gridSize - size) - 1;
clipY = eval (getClip).yNum;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
} else {
if ((clip.y + size) < _root.gridSize) {
Xpos = eval (getClip)._x + clip.name._width;
Ypos = eval (getClip)._y;
} else if ((clip.y + size) >= _root.gridSize) {
clipX = eval (getClip).xNum;
clipY = (_root.gridSize - size) - 1;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x + _root.hit_dummy._width;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
}
_root.shipArray[this.name].placeShip(clip.x, clip.y, rotate);
oldGetClip = getClip;
}
}
function stamp() {
exit = false;
if (((getClip == "/prot") || (getClip == "/")) || ((substring(getClip, 1, 5)) == "/ship")) {
exit = true;
}
if (Number(exit) == Number(true)) {
_root.shipArray[this.name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
}
pickUp = false;
}
function back() {
_root.shipArray[this.name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
pickUp = false;
gotoAndStop ("stop");
}
size = 1;
rotate = "hor";
orgX = _x;
orgY = _y;
oldGetClip = "";
getClip = "";
placed = "";
pickUp = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (pickUp) {
place();
}
}
Instance of Symbol 234 MovieClip "destroyer0_setUp" in Frame 68
onClipEvent (load) {
function rotateMe() {
if (rotate == "hor") {
rotate = "ver";
this._rotation = 90;
} else {
rotate = "hor";
this._rotation = 0;
}
place();
}
function place() {
getClip = this._droptarget;
clipNum = eval (getClip).num;
clip = _root.gridArray[eval (getClip).yNum][eval (getClip).xNum];
_root.getClip = getClip;
if ((getClip == "/prot") || (getClip == "/")) {
oldGetClip = "";
} else if (clip != undefined) {
if ((getClip == "") || (getClip == "/ship")) {
getClip = oldGetClip;
oldGetClip = "";
}
if (rotate == "hor") {
if ((clip.x + size) < _root.gridSize) {
Xpos = eval (getClip)._x;
Ypos = eval (getClip)._y;
} else if ((clip.x + size) >= _root.gridSize) {
clipX = (_root.gridSize - size) - 1;
clipY = eval (getClip).yNum;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
} else {
if ((clip.y + size) < _root.gridSize) {
Xpos = eval (getClip)._x + clip.name._width;
Ypos = eval (getClip)._y;
} else if ((clip.y + size) >= _root.gridSize) {
clipX = eval (getClip).xNum;
clipY = (_root.gridSize - size) - 1;
newClip = _root.gridArray[clipY][clipX];
clip = newClip;
Xpos = eval (newClip.name)._x + _root.hit_dummy._width;
Ypos = eval (newClip.name)._y;
}
this._x = Xpos;
this._y = Ypos;
}
_root.shipArray[this.name].placeShip(clip.x, clip.y, rotate);
oldGetClip = getClip;
}
}
function stamp() {
exit = false;
if (((getClip == "/prot") || (getClip == "/")) || ((substring(getClip, 1, 5)) == "/ship")) {
exit = true;
}
if (Number(exit) == Number(true)) {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
}
pickUp = false;
}
function back() {
_root.shipArray[this._name].cord = false;
getClip = "";
oldGetClip = "";
_x = orgX;
_y = orgY;
_rotation = 0;
rotate = "hor";
pickUp = false;
gotoAndStop ("stop");
}
size = 3;
rotate = "hor";
orgX = _x;
orgY = _y;
oldGetClip = "";
getClip = "";
placed = "";
pickUp = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (pickUp) {
place();
}
}
Frame 69
function cShipsObject(nName, nSize) {
var _local1 = this;
_local1.name = nName;
_local1.size = nSize;
_local1.hit = 0;
_local1.rotate = 0;
_local1.cord = 0;
_local1.sunk = false;
}
function cShipsObject_placeShip(x, y, rotate) {
this.cord = [x, y];
this.rotate = rotate;
}
function cShipsObject(nName, nSize) {
var _local1 = this;
_local1.name = nName;
_local1.size = nSize;
_local1.hit = 0;
_local1.rotate = 0;
_local1.cord = 0;
_local1.sunk = false;
}
function cShipsObject_placeShip(x, y, rotate) {
this.cord = [x, y];
this.rotate = rotate;
}
function setMap() {
fixHitArray = newMapArray();
if (island == true) {
fixHitArray = addIslands(fixHitArray);
}
}
function addIslands() {
islandMapInfo = eval ("islandMap" + random(islandMapTotal));
var i = 0;
while (i < islandMapInfo.length) {
target = eval ("map." + islandMapInfo[i][0]);
xSpot = islandMapInfo[i][1][0];
ySpot = islandMapInfo[i][1][1];
target._visible = true;
target._x = 0.2 + (19.1 * xSpot);
target._y = 0.2 + (19.1 * ySpot);
target = eval (islandMapInfo[i][0] + "obj");
islandSpot = target.islandSpot;
var n = 0;
while (n < target.width) {
var r = 0;
while (r < target.height) {
fixHitArray[xSpot + n][ySpot + r] = (islandSpot[n][r] ? 9 : 0);
r++;
}
n++;
}
i++;
}
return(fixHitArray);
}
function layout_map() {
var _local1 = this;
gridArray = new Array();
i = 0;
while (i < gridSize) {
gridArray[i] = new Array();
r = 0;
while (r < gridSize) {
num = (i * gridSize) + r;
name = "n" + num;
hit_dummy.duplicateMovieClip(name, num + 10);
_local1[name]._x = (map._x + 0.2) + (19.1 * r);
_local1[name]._y = (map._y + 0.2) + (19.1 * i);
_local1[name].num = num;
_local1[name].xNum = r;
_local1[name].yNum = i;
_local1[name].hit.enabled = false;
gridArray[i][r] = {name:_local1[name], x:r, y:i, hit:0};
r++;
}
i++;
}
}
function newLevel() {
var _local2 = this;
switch (level) {
case 0 :
whatShips = ["frigate0", "frigate1", "submarine0", "submarine1", "destroyer0", "destroyer1", "aircraft_carrier"];
island = false;
difficulty = 40;
armement = [3, 3, 2];
powerUpCount = 12;
break;
case 1 :
whatShips = ["frigate0", "submarine0", "destroyer0", "aircraft_carrier"];
island = true;
difficulty = 30;
armement = [3, 2, "x"];
powerUpCount = 16;
break;
case 2 :
whatShips = shipName.slice();
island = false;
armement = [3, 3, 3];
powerUpCount = 8;
break;
case 3 :
whatShips = ["frigate0", "frigate1", "submarine0", "submarine1", "destroyer0"];
difficulty = 10;
island = true;
armement = ["x", 3, 3];
powerUpCount = 8;
break;
case 4 :
whatShips = shipName.slice();
island = false;
difficulty = 7;
armement = [3, 3, 3];
powerUpCount = 9;
break;
case 5 :
whatShips = ["frigate0", "frigate1", "submarine0", "submarine1", "destroyer0", "aircraft_carrier"];
island = true;
difficulty = 3;
armement = [3, 3, 3];
powerUpCount = 8;
break;
case 6 :
whatShips = shipName.slice();
difficulty = 3;
island = false;
armement = [3, 3, 3];
powerUpCount = 10;
}
var _local1 = 0;
while (_local1 < whatShips.length) {
_local2[whatShips[_local1] + "_setUp"]._visible = true;
_local2[whatShips[_local1] + "_setUp"].name = whatShips[_local1];
_local1++;
}
ctotalHit = 0;
totalHit = 0;
numHit = 0;
gotShip = false;
point = 10;
hit = "";
turn = "me";
weapon = 0;
levelD = level + 1;
}
function newMapArray() {
var _local1 = new Array();
i = 0;
while (i < 15) {
_local1[i] = new Array();
r = 0;
while (r < 15) {
_local1[i][r] = 0;
r++;
}
i++;
}
return(_local1.copy2D());
}
function checkBoard() {
hitArray = fixHitArray.copy2D();
i = 0;
while (i < whatShips.length) {
shipObj = shipArray[whatShips[i]];
if (shipObj.cord == false) {
direction = "please place all of the ships";
return(false);
}
dir = shipObj.rotate;
size = shipObj.size;
r = 0;
while (r <= shipObj.size) {
xtemp = ((dir == "hor") ? (r) : 0);
ytemp = ((dir == "ver") ? (r) : 0);
sX = shipObj.cord[0] + xTemp;
sY = shipObj.cord[1] + yTemp;
if (hitArray[sX][sY] == 0) {
hitArray[sX][sY] = shipObj;
} else {
shipObj.clip.back();
direction = "you can not over lap the ships";
return(false);
}
r++;
}
i++;
}
return(true);
}
function placePowerUps() {
var _local1 = 0;
while (_local1 < powerUpCount) {
loop = true;
while (loop) {
y = random(gridSize);
x = random(gridSize);
if (hitCompArray[x][y] == 0) {
hitCompArray[x][y] = "bonus";
loop = false;
}
}
_local1++;
}
}
function playerMap() {
if (checkBoard()) {
clearAllships();
gotoAndPlay ("board");
}
}
function clearAllships() {
var _local1 = this;
i = 0;
while (i < shipName.length) {
_local1[shipName[i] + "_setUp"].removeMovieClip();
i++;
}
}
function findPlace(i, whatArray, firstHitArray) {
var who = whatShips[i];
var size = (whatArray[who].size + 1);
var _local3 = true;
while (_local3) {
var _local1 = random(gridSize);
var _local2 = random(gridSize);
if (firstHitArray[_local2][_local1] == 0) {
_local3 = false;
}
}
if (random(2) == 0) {
if (_local2 > ((gridSize - size) - 1)) {
var _local2 = (gridSize - size) - 1;
}
whatArray[who].cord = [_local2, _local1];
whatArray[who].rotate = "hor";
} else {
if (_local1 > ((gridSize - size) - 1)) {
var _local1 = (gridSize - size) - 1;
}
whatArray[who].cord = [_local2, _local1];
whatArray[who].rotate = "ver";
}
}
function autoPlace() {
var _local2 = this;
var _local1 = 0;
while (_local1 < whatShips.length) {
findPlace(_local1, shipArray, fixHitArray);
_local1++;
}
if (checkAutoBoard()) {
_local1 = 0;
while (_local1 < whatShips.length) {
ship = _local2[whatShips[_local1] + "_setUp"];
ship.swapDepths(900 + _local1);
who = whatShips[_local1];
dir = shipArray[who].rotate;
if (dir == "hor") {
ship._x = (map._x + 0.2) + (19.1 * shipArray[who].cord[0]);
ship._y = (map._y + 0.2) + (19.1 * shipArray[who].cord[1]);
ship._rotation = 0;
} else {
ship._x = ((map._x + 0.2) + (19.1 * shipArray[who].cord[0])) + 19.1;
ship._y = (map._y + 0.2) + (19.1 * shipArray[who].cord[1]);
ship._rotation = 90;
}
ship.cord = [x, y];
ship.rotate = shipArray[who].rotate;
ship.place();
_local1++;
}
return(true);
}
autoPlace();
return(undefined);
}
function checkAutoBoard() {
hitArray = fixHitArray.copy2D();
i = 0;
while (i < whatShips.length) {
shipObj = shipArray[whatShips[i]];
dir = shipObj.rotate;
size = shipObj.size;
r = 0;
while (r <= shipObj.size) {
xtemp = ((dir == "hor") ? (r) : 0);
ytemp = ((dir == "ver") ? (r) : 0);
sX = shipObj.cord[0] + xTemp;
sY = shipObj.cord[1] + yTemp;
if (hitArray[sX][sY] == 0) {
hitArray[sX][sY] = shipObj;
} else {
return(false);
}
r++;
}
i++;
}
return(true);
}
shipArray = new Array();
shipCompArray = new Array();
cship = [1, 1, 2, 2, 3, 3, 4];
layout_map();
shipName = ["frigate0", "frigate1", "submarine0", "submarine1", "destroyer0", "destroyer1", "aircraft_carrier"];
i = 0;
while (i < shipName.length) {
name = this[shipName[i] + "_setUp"];
name.swapDepths(900 + i);
shipArray[shipName[i]] = new cShipsObject(shipName[i], cship[i]);
shipCompArray[shipName[i]] = new cShipsObject(shipName[i], cship[i]);
i++;
}
cShipsObject.prototype.placeShip = cShipsObject_placeShip;
stop();
direction = "Press start when ready.";
newLevel();
layout_map();
shipArray = new Array();
shipCompArray = new Array();
cship = [1, 1, 2, 2, 3, 3, 4];
layout_map();
shipName = ["frigate0", "frigate1", "submarine0", "submarine1", "destroyer0", "destroyer1", "aircraft_carrier"];
i = 0;
while (i < shipName.length) {
name = this[shipName[i] + "_setUp"];
name.swapDepths(900 + i);
shipArray[shipName[i]] = new cShipsObject(shipName[i], cship[i]);
shipCompArray[shipName[i]] = new cShipsObject(shipName[i], cship[i]);
i++;
}
cShipsObject.prototype.placeShip = cShipsObject_placeShip;
setMap();
Frame 87
function addCompIslands() {
islandCompMapInfo = eval ("islandMap" + random(islandMapTotal));
var i = 0;
while (i < islandCompMapInfo.length) {
target = eval (islandCompMapInfo[i][0] + "obj");
xSpot = islandCompMapInfo[i][1][0];
ySpot = islandCompMapInfo[i][1][1];
islandSpot = target.islandSpot;
var n = 0;
while (n < target.width) {
var r = 0;
while (r < target.height) {
fixCompHitArray[xSpot + n][ySpot + r] = (islandSpot[n][r] ? 9 : 0);
r++;
}
n++;
}
i++;
}
return(fixCompHitArray);
}
function puterPlace() {
i = 0;
while (i < whatShips.length) {
findPlace(i, shipCompArray, fixCompHitArray);
i++;
}
if (checkCompBoard()) {
placePowerUps();
return(true);
}
puterPlace();
}
function checkCompBoard() {
hitCompArray = fixCompHitArray.copy2D();
i = 0;
while (i < whatShips.length) {
shipObj = shipCompArray[whatShips[i]];
dir = shipObj.rotate;
size = shipObj.size;
r = 0;
while (r <= shipObj.size) {
xtemp = ((dir == "hor") ? (r) : 0);
ytemp = ((dir == "ver") ? (r) : 0);
sX = shipObj.cord[0] + xTemp;
sY = shipObj.cord[1] + yTemp;
if (hitCompArray[sX][sY] == 0) {
hitCompArray[sX][sY] = shipObj;
} else {
return(false);
}
r++;
}
i++;
}
return(true);
}
fixCompHitArray = newMapArray();
if (island == true) {
fixCompHitArray = addCompIslands(fixCompHitArray);
}
puterPlace();
i = 0;
while (i < whatShips.length) {
name = this[whatShips[i] + "_setUp"];
name._x = -100;
i++;
}
gotoAndPlay ("goFrame");
stop();
Instance of Symbol 257 MovieClip "hitSpot" in Frame 87
/* no clip actions */
Instance of Symbol 278 MovieClip "destroyer1_game" in Frame 87
/* no clip actions */
Instance of Symbol 278 MovieClip "destroyer0_game" in Frame 87
/* no clip actions */
Frame 89
function gameMaps() {
var _local1 = this;
i = 0;
while (i < 15) {
r = 0;
while (r < 15) {
num = (i * 15) + r;
name = "n" + num;
_local1[name]._x = (map0._x + 0.2) + (19.1 * r);
_local1[name]._y = (map0._y + 0.2) + (19.1 * i);
_local1[name].num = num;
_local1[name].xNum = r;
_local1[name].yNum = i;
_local1[name].hit.enabled = false;
name = "p" + num;
hit_dummy.duplicateMovieClip(name, num + 250);
_local1[name]._x = (map1._x + 0.2) + (19.1 * r);
_local1[name]._y = (map1._y + 0.2) + (19.1 * i);
_local1[name].num = num;
_local1[name].xNum = r;
_local1[name].yNum = i;
r++;
}
i++;
}
}
function endGame() {
var _local1 = this;
n = 0;
while (n < whatShips.length) {
name = "qShip" + n;
if (!_local1[name]) {
_local1[temp.name].duplicateMovieClip(name, 1500 + n);
if (temp.rotate == "hor") {
_local1[name]._x = (map1._x + 0.2) + (19.1 * temp.cord[0]);
_local1[name]._y = (map1._y + 0.2) + (19.1 * temp.cord[1]);
_local1[name]._rotation = 0;
} else {
_local1[name]._x = ((map1._x + 0.2) + (19.1 * temp.cord[0])) + 19.1;
_local1[name]._y = (map1._y + 0.2) + (19.1 * temp.cord[1]);
_local1[name]._rotation = 90;
}
} else {
_local1[name].swapDepths(1500 + n);
}
shipCompArray[whatShips[n]].clip = _local1[name];
n++;
}
if (lost == true) {
lost = true;
Direction = "You have been defeated!";
} else {
Direction = "You Won";
}
score = Number(score) + 100;
gotShip = false;
turn = "lock";
gotoAndPlay ("endFrame");
}
function displayIslands() {
var i = 0;
while (i < islandMapInfo.length) {
target = eval ("map0." + islandMapInfo[i][0]);
xSpot = islandMapInfo[i][1][0];
ySpot = islandMapInfo[i][1][1];
target._visible = true;
target._x = 0.2 + (19.1 * xSpot);
target._y = 0.2 + (19.1 * ySpot);
i++;
}
var i = 0;
while (i < islandCompMapInfo.length) {
target = eval ("map1." + islandCompMapInfo[i][0]);
xSpot = islandCompMapInfo[i][1][0];
ySpot = islandCompMapInfo[i][1][1];
target._visible = true;
target._x = 0.2 + (19.1 * xSpot);
target._y = 0.2 + (19.1 * ySpot);
i++;
}
}
gameMaps();
if (island == true) {
displayIslands();
}
seered._visible = false;
var i = 0;
while (i < armement.length) {
if (armement[i] > 0) {
this["w_picker" + i].gotoAndStop(2);
}
this["w_picker" + i].num = armement[i];
i++;
}
i = 0;
while (i < whatShips.length) {
name = "mship" + i;
this[whatShips[i] + "_game"].duplicateMovieClip(name, 1200 + i);
who = whatShips[i];
dir = shipArray[who].rotate;
if (dir == "hor") {
this[name]._x = (map0._x + 0.2) + (19.1 * shipArray[who].cord[0]);
this[name]._y = (map0._y + 0.2) + (19.1 * shipArray[who].cord[1]);
this[name]._rotation = 0;
} else {
this[name]._x = ((map0._x + 0.2) + (19.1 * shipArray[who].cord[0])) + 19.1;
this[name]._y = (map0._y + 0.2) + (19.1 * shipArray[who].cord[1]);
this[name]._rotation = 90;
}
shipArray[who].clip = this[name];
pShipCount.duplicateMovieClip("pShipCount" + i, 2000 + i);
this["pShipCount" + i]._x = this.pShipCount._x + ((this.pShipCount._width + 5) * i);
this["pShipCount" + i]._y = this.pShipCount._y;
cShipCount.duplicateMovieClip("cShipCount" + i, 2010 + i);
this["cShipCount" + i]._x = this.cShipCount._x + ((this.cShipCount._width + 5) * i);
this["cShipCount" + i]._y = this.cShipCount._y;
i++;
}
turn = "me";
numHit = 0;
gotoAndStop ("hold");
Frame 91
play();
Frame 125
stop();
level = level + 1;
gotoAndStop ("newLevel");
Frame 128
function directionBox(n) {
if (turn == "me") {
switch (n) {
case 1 :
direction = "Air Attack";
return;
case 2 :
direction = "Missile Strike";
return;
case 3 :
direction = "Guided Torpedo";
return;
default :
direction = "your turn";
}
}
}
function singleHit(obj, x, y) {
var _local1 = _root;
hitObj = _local1.hitCompArray[x][y];
_local1.placeHitMark(x, y, hitObj);
_local1.play();
}
function pickShip() {
var _local2 = 0;
while (_local2 < whatShips.length) {
var _local1 = whatShips[_local2];
trace("temp = " + _local1);
if ((shipArray[_local1].sunk == false) && (_local1 != "aircraft_carrier")) {
return(_local1);
}
_local2++;
}
_root.armement = [0, 0, 0];
_root.weaponReset();
return(undefined);
}
function planeHit(obj, x, y) {
var _local1 = this;
var _local2 = _root;
plane.duplicateMovieClip("sp_weapon", 1600);
shipw = ((shipArray.aircraft_carrier.rotate == "hor") ? 95 : 9);
shiph = ((shipArray.aircraft_carrier.rotate == "hor") ? 9 : 95);
sp_weapon.startX = ((map0._x + 0.2) + (19.1 * shipArray.aircraft_carrier.cord[0])) + shipw;
sp_weapon.startY = ((map0._y + 0.2) + (19.1 * shipArray.aircraft_carrier.cord[1])) + shiph;
sp_weapon._x = sp_weapon.startX;
sp_weapon._y = sp_weapon.startY;
sp_weapon.cord = [x, y];
sp_weapon.targetX = (map1._x + 0.2) + (19.1 * x);
sp_weapon.targetY = (map1._y + 0.2) + (19.1 * y);
sp_weapon.stopMe = true;
sp_sound = new Sound();
sp_sound.attachSound("flyby");
sp_sound.start(0, 1);
sp_weapon.flightPlan = function () {
var _local1 = this;
distx = _local1.targetX - _local1.startX;
disty = _local1.startY - _local1.targetY;
distance = Math.sqrt(Number(distx * distx) + Number(disty * disty)) / 20;
movex = distx / distance;
movey = disty / distance;
ratio = disty / distx;
if (Number(distx) > 0) {
if (Number(ratio) > 1) {
angle = 90 - ((Math.atan(1 / ratio) * 180) / Math.PI);
} else if ((Number(ratio) > 0) and (Number(ratio) < 1)) {
angle = (Math.atan(ratio) * 180) / Math.PI;
} else if ((Number(ratio) < 0) and (Number(ratio) > Number(-1))) {
angle = 360 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if (Number(ratio) < Number(-1)) {
angle = 270 - ((Math.atan(1 / ratio) * 180) / Math.PI);
}
} else if (Number(distx) < 0) {
if (Number(ratio) > 1) {
angle = 270 - ((Math.atan(1 / ratio) * 180) / Math.PI);
} else if ((Number(ratio) > 0) and (Number(ratio) < 1)) {
angle = 180 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if ((Number(ratio) < 0) and (Number(ratio) > Number(-1))) {
angle = 180 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if (Number(ratio) < Number(-1)) {
angle = 90 - ((Math.atan(1 / ratio) * 180) / Math.PI);
}
} else if (Number(distx) == 0) {
if (Number(disty) > 0) {
angle = -90;
} else if (Number(disty) < 0) {
angle = 90;
} else if (Number(disty) == 0) {
angle = 0;
}
}
_local1._rotation = 0;
_local1._rotation = _local1._rotation + (-angle);
};
sp_weapon.hitMap = function () {
var _local1 = _root;
var _local2 = this;
var _local3 = 0;
while (_local3 < 6) {
look = 0;
while (look < 100) {
findX = _local2.cord[0] + (random(6) - 3);
findY = _local2.cord[1] + (random(6) - 3);
findX = Math.max(0, Math.min(findX, _local1.gridsize - 1));
findY = Math.max(0, Math.min(findY, _local1.gridsize - 1));
hitObj = _local1.hitCompArray[findX][findY];
if (hitObj != 9) {
look = 100;
}
look++;
}
_local1.placeHitMark(findX, findY, hitObj);
_local3++;
}
};
sp_weapon.flyBack = function () {
var _local1 = this;
_local1.nextMove = function () {
sp_sound.stop("flyby");
_root.gotoAndPlay("putertime");
this.removeMovieClip();
stopMe = true;
};
_local1.targetX = _local1.startX;
_local1.targetY = _local1.startY;
_local1.startX = _local1._x;
_local1.startY = _local1._y;
_local1.flightPlan();
stopMe = false;
};
sp_weapon.nextMove = function () {
this.gotoAndPlay("bomb");
stopMe = true;
};
sp_weapon.onEnterFrame = function () {
var _local1 = this;
if (!stopMe) {
if (Number(distance) <= 0) {
_local1.nextMove();
} else {
newx = _local1._x + Number(movex);
newy = _local1._y - movey;
_local1._x = newx;
_local1._y = newy;
distance = distance - 1;
}
}
};
sp_weapon.onLoad = function () {
var _local1 = this;
_local1.gotoAndPlay(2);
_local1._x = _local1.startX;
_local1._y = _local1.startY;
_local1.flightPlan();
stopMe = false;
};
}
function bigBomb(obj, x, y) {
var _local2 = _root;
var _local3 = this;
shipPicked = pickShip();
shipw = ((shipArray[shipPicked].rotate == "hor") ? ((shipArray[shipPicked].size * 19) / 2) : 9);
shiph = ((shipArray[shipPicked].rotate == "hor") ? 9 : ((shipArray[shipPicked].size * 19) / 2));
bbomb.duplicateMovieClip("sp_weapon", 1600);
sp_weapon.startX = ((map0._x + 0.2) + (19.1 * shipArray[shipPicked].cord[0])) + shipw;
sp_weapon.startY = ((map0._y + 0.2) + (19.1 * shipArray[shipPicked].cord[1])) + shiph;
sp_weapon._x = sp_weapon.startX;
sp_weapon._y = sp_weapon.startY;
sp_weapon._rotation = 0;
sp_weapon.cord = [x, y];
sp_weapon.targetX = (map1._x + 0.2) + (19.1 * x);
sp_weapon.targetY = (map1._y + 0.2) + (19.1 * y);
sp_weapon.stopMe = true;
sp_sound = new Sound();
sp_sound.attachSound("missle");
sp_sound.start(0, 1);
sp_weapon.flightPlan = function () {
var _local1 = this;
distx = _local1.targetX - _local1.startX;
disty = _local1.startY - _local1.targetY;
distance = Math.sqrt(Number(distx * distx) + Number(disty * disty)) / 10;
movex = distx / distance;
movey = disty / distance;
ratio = disty / distx;
if (Number(distx) > 0) {
if (Number(ratio) > 1) {
angle = 90 - ((Math.atan(1 / ratio) * 180) / Math.PI);
} else if ((Number(ratio) > 0) and (Number(ratio) < 1)) {
angle = (Math.atan(ratio) * 180) / Math.PI;
} else if ((Number(ratio) < 0) and (Number(ratio) > Number(-1))) {
angle = 360 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if (Number(ratio) < Number(-1)) {
angle = 270 - ((Math.atan(1 / ratio) * 180) / Math.PI);
}
} else if (Number(distx) < 0) {
if (Number(ratio) > 1) {
angle = 270 - ((Math.atan(1 / ratio) * 180) / Math.PI);
} else if ((Number(ratio) > 0) and (Number(ratio) < 1)) {
angle = 180 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if ((Number(ratio) < 0) and (Number(ratio) > Number(-1))) {
angle = 180 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if (Number(ratio) < Number(-1)) {
angle = 90 - ((Math.atan(1 / ratio) * 180) / Math.PI);
}
} else if (Number(distx) == 0) {
if (Number(disty) > 0) {
angle = -90;
} else if (Number(disty) < 0) {
angle = 90;
} else if (Number(disty) == 0) {
angle = 0;
}
}
_local1._rotation = 0;
_local1._rotation = _local1._rotation + (-angle);
};
sp_weapon.hitMap = function () {
var _local2 = _root;
sp_sound.stop("missle");
var _local3 = 0;
while (_local3 < 3) {
var _local1 = 0;
while (_local1 < 3) {
findX = this.cord[0] + (_local1 - 1);
findY = this.cord[1] + (_local3 - 1);
findX = Math.max(0, Math.min(findX, _local2.gridsize - 1));
findY = Math.max(0, Math.min(findY, _local2.gridsize - 1));
hitObj = _local2.hitCompArray[findX][findY];
if (hitObj != 9) {
_local2.placeHitMark(findX, findY, hitObj);
}
_local1++;
}
_local3++;
}
_local2.play();
this.removeMovieClip();
};
sp_weapon.onEnterFrame = function () {
var _local1 = this;
if (Number(distance) <= 0) {
_local1.hitMap();
} else {
newx = _local1._x + Number(movex);
newy = _local1._y - movey;
_local1._x = newx;
_local1._y = newy;
distance = distance - 1;
}
};
sp_weapon.onLoad = function () {
var _local1 = this;
_local1.gotoAndPlay(2);
_local1._x = _local1.startX;
_local1._y = _local1.startY;
_local1.flightPlan();
};
}
function smartBomb(obj, x, y) {
var _local1 = y;
var _local2 = x;
sbomb.duplicateMovieClip("sp_weapon", 1120);
shipPicked = pickShip();
shipw = ((shipArray[shipPicked].rotate == "hor") ? ((shipArray[shipPicked].size * 19) / 2) : 9);
shiph = ((shipArray[shipPicked].rotate == "hor") ? 9 : ((shipArray[shipPicked].size * 19) / 2));
sp_weapon.startX = ((map0._x + 0.2) + (19.1 * shipArray[shipPicked].cord[0])) + shipw;
sp_weapon.startY = ((map0._y + 0.2) + (19.1 * shipArray[shipPicked].cord[1])) + shiph;
sp_weapon._x = sp_weapon.startX;
sp_weapon._y = sp_weapon.startY;
sp_weapon._rotation = 0;
sp_sound = new Sound();
sp_sound.attachSound("torpedo");
sp_sound.start(0, 1);
hitObj = _root.hitCompArray[_local2][_local1];
if (typeof(hitObj) != "object") {
whatShips.shuffle();
var i = 0;
while (i < whatShips.length) {
temp = whatShips[i];
trace("wharerea " + typeof(shipCompArray[temp]));
if ((shipCompArray[temp].sunk == false) && (typeof(shipCompArray[temp]) != "function")) {
trace(temp);
trace("shipCompArray[temp] = " + shipCompArray[temp]);
trace("shipCompArray[temp].cord = " + shipCompArray[temp].cord);
_local2 = shipCompArray[temp].cord[0];
_local1 = shipCompArray[temp].cord[1];
var _local3 = 0;
while (_local3 < (shipCompArray[temp].size + 1)) {
hitObj = _root.hitCompArray[_local2][_local1];
if (typeof(hitObj) == "object") {
break;
}
_local2 = ((shipCompArray[temp].rotate == "hor") ? (_local2 + 1) : (_local2));
_local1 = ((shipCompArray[temp].rotate == "ver") ? (_local1 + 1) : (_local1));
_local3++;
}
break;
}
i++;
}
}
sp_weapon.cord = [_local2, _local1];
sp_weapon.targetX = ((map1._x + 0.2) + (19.1 * _local2)) + 9;
sp_weapon.targetY = ((map1._y + 0.2) + (19.1 * _local1)) + 9;
sp_weapon.stopMe = true;
sp_weapon.flightPlan = function () {
var _local1 = this;
distx = _local1.targetX - _local1.startX;
disty = _local1.startY - _local1.targetY;
distance = Math.sqrt(Number(distx * distx) + Number(disty * disty)) / 10;
movex = distx / distance;
movey = disty / distance;
ratio = disty / distx;
if (Number(distx) > 0) {
if (Number(ratio) > 1) {
angle = 90 - ((Math.atan(1 / ratio) * 180) / Math.PI);
} else if ((Number(ratio) > 0) and (Number(ratio) < 1)) {
angle = (Math.atan(ratio) * 180) / Math.PI;
} else if ((Number(ratio) < 0) and (Number(ratio) > Number(-1))) {
angle = 360 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if (Number(ratio) < Number(-1)) {
angle = 270 - ((Math.atan(1 / ratio) * 180) / Math.PI);
}
} else if (Number(distx) < 0) {
if (Number(ratio) > 1) {
angle = 270 - ((Math.atan(1 / ratio) * 180) / Math.PI);
} else if ((Number(ratio) > 0) and (Number(ratio) < 1)) {
angle = 180 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if ((Number(ratio) < 0) and (Number(ratio) > Number(-1))) {
angle = 180 + Number((Math.atan(ratio) * 180) / Math.PI);
} else if (Number(ratio) < Number(-1)) {
angle = 90 - ((Math.atan(1 / ratio) * 180) / Math.PI);
}
} else if (Number(distx) == 0) {
if (Number(disty) > 0) {
angle = -90;
} else if (Number(disty) < 0) {
angle = 90;
} else if (Number(disty) == 0) {
angle = 0;
}
}
_local1._rotation = 0;
_local1._rotation = _local1._rotation + (-angle);
};
sp_weapon.hitMap = function () {
var _local1 = this;
var _local2 = _root;
sp_sound.stop("torpedo");
hitObj = _local2.hitCompArray[_local1.cord[0]][_local1.cord[1]];
if (hitObj != 9) {
_local2.placeHitMark(_local1.cord[0], _local1.cord[1], hitObj);
}
_local2.play();
_local1.removeMovieClip();
};
sp_weapon.onEnterFrame = function () {
var _local1 = this;
if (Number(distance) <= 0) {
_local1.hitMap();
} else {
newx = _local1._x + Number(movex);
newy = _local1._y - movey;
_local1._x = newx;
_local1._y = newy;
distance = distance - 1;
}
};
sp_weapon.onLoad = function () {
var _local1 = this;
_local1.num = 0;
_local1.gotoAndPlay(2);
_local1._x = _local1.startX;
_local1._y = _local1.startY;
_local1.flightPlan();
};
}
function pmove(obj, x, y) {
var _local1 = y;
var _local2 = x;
var _local3 = obj;
temp = hitCompArray[_local2][_local1];
if (temp != 9) {
turn = "lock";
switch (weapon) {
case 0 :
singleHit(_local3, _local2, _local1);
break;
case 1 :
planeHit(_local3, _local2, _local1);
break;
case 2 :
bigBomb(_local3, _local2, _local1);
break;
case 3 :
smartBomb(_local3, _local2, _local1);
}
if (weapon > 0) {
armement[weapon - 1] = armement[weapon - 1] - 1;
}
weaponReset();
}
}
function weaponReset() {
var _local2 = this;
var _local1 = 0;
while (_local1 < armement.length) {
if (armement[_local1] > 0) {
_local2["w_picker" + _local1].gotoAndStop(2);
} else {
_local2["w_picker" + _local1].gotoAndStop(1);
}
_local2["w_picker" + _local1].num = armement[_local1];
_local1++;
}
weapon = 0;
}
function placeHitMark(hitX, hitY, mark) {
var _local1 = this;
var _local2 = mark;
var _local3 = hitY;
if (_local2 != 9) {
name = "exp" + numHit;
_root.hitSpot.duplicateMovieClip(name, 600 + numHit);
_local1[name]._x = (map1._x + 0.2) + (19.1 * hitX);
_local1[name]._y = (map1._y + 0.2) + (19.1 * _local3);
if (typeof(_local2) == "object") {
direction = "Hit";
snd.gotoAndStop("exp");
_local1[name].gotoAndStop(2);
score = score + 100;
_local2.hit = _local2.hit + 1;
if (_local2.hit >= (_local2.size + 1)) {
score = score + 25;
_local2.sunk = true;
name = "qShip" + totalHit;
_local1[_local2.name + "_game"].duplicateMovieClip(name, 1500 + totalHit);
if (_local2.rotate == "hor") {
_local1[name]._x = (map1._x + 0.2) + (19.1 * _local2.cord[0]);
_local1[name]._y = (map1._y + 0.2) + (19.1 * _local2.cord[1]);
_local1[name]._rotation = 0;
} else {
_local1[name]._x = ((map1._x + 0.2) + (19.1 * _local2.cord[0])) + 19.1;
_local1[name]._y = (map1._y + 0.2) + (19.1 * _local2.cord[1]);
_local1[name]._rotation = 90;
}
_local1["cShipCount" + totalHit].gotoAndStop(2);
_local1[name].bs_.gotoAndPlay("sink");
score = score + 1000;
totalHit = totalHit + 1;
}
} else if (_local2 == "bonus") {
name = "bonusHit" + numHit;
_root.bonusSpot.duplicateMovieClip(name, 3122 + numHit);
_local1[name]._x = (map1._x + 0.2) + (19.1 * hitX);
_local1[name]._y = (map1._y + 0.2) + (19.1 * _local3);
_local1[name].gotoAndStop(pickBonus() + 1);
snd.gotoAndStop("miss");
score = score + 1000;
direction = "Bonus";
bonusSound = new Sound();
bonusSound.attachSound("bonusSound");
bonusSound.start();
} else {
score = score - 10;
score = ((score < 0) ? 0 : (score));
snd.gotoAndStop("miss");
direction = "Miss";
}
hitCompArray[hitX][_local3] = 9;
numHit = numHit + 1;
turn = "comp";
if (totalHit == whatShips.length) {
endGame();
}
return(true);
}
return(false);
}
function cmove() {
if (typeof(gotShip) == "object") {
size = gotShip.size + 1;
x = gotShip.cord[0];
y = gotShip.cord[1];
if (gotShip.rotate == "hor") {
var _local2 = 0;
while (_local2 < size) {
if (hitArray[x + _local2][y] != 9) {
hitX = x + _local2;
hitY = y;
temp = hitArray[x + _local2][y];
break;
}
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < size) {
if (hitArray[x][y + _local2] != 9) {
hitX = x;
hitY = y + _local2;
temp = hitArray[x][y + _local2];
break;
}
_local2++;
}
}
} else if (random(difficulty) == 1) {
whatShips.shuffle();
var _local1 = 0;
while (_local1 < whatShips.length) {
var _local3 = shipArray[whatShips[_local1]];
if ((_local3.sunk == false) && (typeof(_local3) != "function")) {
hitX = _local3.cord[0];
hitY = _local3.cord[1];
temp = hitArray[hitX][hitY];
break;
}
_local1++;
}
} else {
attempt = 0;
last = false;
find = true;
while (find == true) {
hitX = random(gridSize);
hitY = random(gridSize);
temp = hitArray[hitX][hitY];
if (temp != 9) {
find = false;
}
if (attempt == 100) {
find = false;
last = true;
}
attempt = attempt + 1;
}
if (last == true) {
var _local1 = 0;
while (_local1 < gridSize) {
r = 0;
while (r < gridSize) {
temp = hitArray[_local1][r];
if (temp != 9) {
hitX = r;
hitY = _local1;
break;
}
r++;
}
_local1++;
}
}
}
if (temp != 9) {
name = "exp" + numHit;
_root.hitSpot.duplicateMovieClip(name, 600 + numHit);
this[name]._x = (map0._x + 0.2) + (19.1 * hitX);
this[name]._y = (map0._y + 0.2) + (19.1 * hitY);
if (typeof(temp) == "object") {
direction = "Hit";
snd.gotoAndStop("exp");
miss = 1;
this[name].gotoAndStop(2);
if (!gotShip) {
gotShip = temp;
}
temp.hit = temp.hit + 1;
temp.clip.bs_.gotoAndStop(temp.hit + 1);
if (temp.hit >= (temp.size + 1)) {
temp.sunk = true;
score = score - 500;
score = ((score < 0) ? 0 : (score));
temp.clip.bs_.gotoAndPlay("sink");
if (temp.name == "aircraft_carrier") {
armement[0] = "x";
_root.weaponReset();
}
this["pShipCount" + ctotalHit].gotoAndStop(2);
ctotalHit = ctotalHit + 1;
gotShip = false;
}
shakeScreen();
} else {
snd.gotoAndStop("miss");
direction = "Miss";
}
hitArray[hitX][hitY] = 9;
numHit = numHit + 1;
}
if (ctotalHit == whatShips.length) {
turn = "comp";
lost = true;
endGame();
}
}
function pickBonus() {
loop = true;
loopTest = 0;
while (loop) {
p = random(3);
if (loopTest >= 50) {
loop = false;
return(3);
}
loopTest++;
if (armement[p] != "x") {
if ((p == 0) && (shipArray.aircraft_carrier.hit != 0)) {
continue;
}
armement[p] = armement[p] + 1;
weaponReset();
loop = false;
return(p);
}
}
}
direction = "your turn";
directionBox(weapon);
stop();
Frame 140
play();
Frame 146
direction = "computer turn";
Frame 153
cmove();
Frame 158
turn = "me";
gotoAndStop ("hold");
Frame 161
stop();
Symbol 10 MovieClip [Defaults] Frame 1
#initclip 1
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 11 MovieClip [UIObjectExtensions] Frame 1
#initclip 2
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 12 MovieClip [UIObject] Frame 1
#initclip 3
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 15 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 16 MovieClip [FocusRect] Frame 1
#initclip 4
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 17 MovieClip [FocusManager] Frame 1
#initclip 5
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 18 MovieClip [UIComponentExtensions] Frame 1
#initclip 6
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 19 MovieClip [UIComponent] Frame 1
#initclip 7
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 22 MovieClip [ProgBarCapThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 30 MovieClip [ProgBarMiddleThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 35 MovieClip [ProgBarIndThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 36 MovieClip [ProgBarIndMiddleThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 46 MovieClip [ProgressBar] Frame 1
#initclip 8
Object.registerClass("ProgressBar", mx.controls.ProgressBar);
#endinitclip
stop();
Symbol 71 MovieClip Frame 1
_root.gameID = gameID;
_root.gr_mode = gr_mode;
Symbol 83 Button
on (press) {
getURL ("http://www.gamerival.com/utilities/redir.cfm?game=" add _root.gameID, "_blank");
}
Symbol 96 MovieClip Frame 1
play();
Symbol 96 MovieClip Frame 9
_root.shakeScreen();
Symbol 96 MovieClip Frame 13
gotoAndPlay(this._currentframe + random(45));
Symbol 104 Button
on (release) {
_root.startGame();
gotoAndStop ("makemap");
}
Symbol 111 Button
on (release) {
_root.gotoAndStop("makemap");
}
Symbol 121 MovieClip Frame 1
play();
Symbol 121 MovieClip Frame 69
stop();
_root.cinPlay();
Symbol 126 MovieClip Frame 1
play();
Symbol 126 MovieClip Frame 51
stop();
_root.cinPlay();
Symbol 131 MovieClip Frame 1
play();
Symbol 131 MovieClip Frame 51
stop();
_root.cinPlay();
Symbol 132 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 137 MovieClip Frame 8
stop();
_root.gotoAndStop("grt_gameOver");
Symbol 145 MovieClip Frame 15
stop();
Symbol 146 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
Symbol 148 MovieClip Frame 15
stop();
Symbol 149 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
Symbol 150 MovieClip Frame 34
stop();
Symbol 151 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
tellTarget ("isk" add i) {
gotoAndPlay(random(5));
};
i = Number(i) + 1;
}
Instance of Symbol 143 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 154 MovieClip Frame 145
stop();
Symbol 155 MovieClip Frame 1
play();
Symbol 155 MovieClip Frame 26
stop();
Instance of Symbol 157 MovieClip "smoke" in Symbol 158 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + movx;
this._y = this._y + movy;
if ((((this._x > 80) || (this._x < -80)) || (this._y > 80)) || (this._y < -80)) {
_x = 0;
_y = 0;
_rotation = random(360);
use++;
if ((use > 2) && (num > 15)) {
}
if (use > 8) {
}
}
}
onClipEvent (load) {
use = 0;
}
Symbol 163 MovieClip Frame 1
play();
Instance of Symbol 158 MovieClip "smoke_nachine" in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
var i = 0;
while (i < 50) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = -random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 158 MovieClip "smoke_nachine" in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
var i = 0;
while (i < 50) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = -random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 158 MovieClip "smoke_nachine" in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
var i = 0;
while (i < 50) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = -random(4);
this[name].num = i;
this[name]._x = random(40) - 20;
this[name]._y = random(40) - 20;
i++;
}
}
Instance of Symbol 158 MovieClip "smoke_nachine" in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
var i = 0;
while (i < 50) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = -random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 158 MovieClip "smoke_nachine" in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
var i = 0;
while (i < 50) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = -random(4);
this[name].num = i;
this[name]._x = random(40) - 20;
this[name]._y = random(40) - 20;
i++;
}
}
Instance of Symbol 158 MovieClip "smoke_nachine" in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
var i = 0;
while (i < 50) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = -random(4);
this[name].num = i;
this[name]._x = random(40) - 20;
this[name]._y = random(40) - 20;
i++;
}
}
Symbol 163 MovieClip Frame 17
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 3
gotoAndStop (1);
Symbol 170 MovieClip Frame 10
gotoAndStop (1);
Symbol 170 MovieClip Frame 13
gotoAndStop (1);
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
play();
Symbol 175 MovieClip Frame 8
stop();
Symbol 175 MovieClip Frame 9
hitMap();
play();
Symbol 175 MovieClip Frame 37
flyBack();
Symbol 175 MovieClip Frame 47
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
play();
Symbol 177 MovieClip Frame 44
stop();
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._yscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Instance of Symbol 181 MovieClip "bub" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._yscale = random(50) + 50;
this._xscale = random(50) + 50;
this.gotoAndPlay(random(this._totalframes + 1));
this.play();
}
Symbol 188 MovieClip Frame 20
_parent.removeMovieClip();
Symbol 190 MovieClip Frame 20
_parent.removeMovieClip();
Symbol 192 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 194 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 195 MovieClip Frame 1
stop();
Instance of Symbol 201 MovieClip in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(this._totalframes) + 1);
}
Instance of Symbol 201 MovieClip in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(this._totalframes) + 1);
}
Instance of Symbol 201 MovieClip in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(this._totalframes) + 1);
}
Instance of Symbol 204 MovieClip "island1" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
width = 6;
height = 7;
islandSpot = [[0, 0, 1, 1, 0, 0], [1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 1], [0, 0, 1, 1, 1, 0]];
}
Instance of Symbol 206 MovieClip "island2" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
width = 3;
height = 6;
islandSpot = [[1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 1]];
}
Instance of Symbol 208 MovieClip "island4" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
width = 5;
height = 6;
islandSpot = [[1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 0], [1, 1, 1, 0, 0], [1, 1, 1, 0, 0]];
}
Instance of Symbol 210 MovieClip "island6" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
width = 4;
height = 6;
islandSpot = [[0, 1, 1, 1], [0, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], [0, 0, 1, 1]];
}
Instance of Symbol 212 MovieClip "island0" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
width = 5;
height = 7;
islandSpot = [[0, 1, 1, 1, 0], [1, 1, 1, 1, 0], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [0, 1, 1, 1, 1], [0, 1, 1, 0, 0], [0, 1, 1, 0, 0]];
}
Instance of Symbol 214 MovieClip "island3" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
width = 3;
height = 4;
islandSpot = [[1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 1]];
}
Instance of Symbol 216 MovieClip "island5" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
width = 3;
height = 3;
islandSpot = [[1, 1, 1], [1, 1, 1], [1, 1, 1]];
}
Symbol 220 Button
on (press) {
this.swapDepths(950);
getClip = this._droptarget;
Xpos = _x;
Ypos = _y;
if (Number(fclick) < Number(getTimer())) {
fclick = Number(getTimer()) + 500;
first = true;
} else if (Number(fclick) > Number(getTimer())) {
first = false;
}
startDrag ("", true);
stopDrag();
startDrag ("");
pickUp = true;
}
on (release, releaseOutside) {
stopDrag();
(direction = "Press start when ready.");
if ((Number(fclick) > Number(getTimer())) and (Number(first) == Number(false))) {
rotateMe();
first = true;
} else {
tellTarget ("/snd") {
gotoAndStop ("smack");
};
}
place();
stamp();
}
Symbol 224 Button
on (press) {
this.swapDepths(950);
getClip = this._droptarget;
Xpos = _x;
Ypos = _y;
if (Number(fclick) < Number(getTimer())) {
fclick = Number(getTimer()) + 500;
first = true;
} else if (Number(fclick) > Number(getTimer())) {
first = false;
}
startDrag ("", true);
stopDrag();
startDrag ("");
pickUp = true;
}
on (release, releaseOutside) {
stopDrag();
(direction = "Press start when ready.");
if ((Number(fclick) > Number(getTimer())) and (Number(first) == Number(false))) {
rotateMe();
first = true;
} else {
tellTarget ("/snd") {
gotoAndStop ("smack");
};
}
place();
stamp();
}
Symbol 226 Button
on (release) {
direction = "";
playerMap();
}
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 14
stop();
Symbol 231 MovieClip Frame 30
stop();
Symbol 233 Button
on (press) {
this.swapDepths(950);
getClip = this._droptarget;
Xpos = _x;
Ypos = _y;
if (Number(fclick) < Number(getTimer())) {
fclick = Number(getTimer()) + 500;
first = true;
} else if (Number(fclick) > Number(getTimer())) {
first = false;
}
startDrag ("", true);
stopDrag();
startDrag ("");
pickUp = true;
}
on (release, releaseOutside) {
stopDrag();
(direction = "Press start when ready.");
if ((Number(fclick) > Number(getTimer())) and (Number(first) == Number(false))) {
rotateMe();
first = true;
} else {
tellTarget ("/snd") {
gotoAndStop ("smack");
};
}
place();
stamp();
}
Symbol 236 Button
on (press) {
this.swapDepths(950);
getClip = this._droptarget;
Xpos = _x;
Ypos = _y;
if (Number(fclick) < Number(getTimer())) {
fclick = Number(getTimer()) + 500;
first = true;
} else if (Number(fclick) > Number(getTimer())) {
first = false;
}
startDrag ("", true);
stopDrag();
startDrag ("");
pickUp = true;
}
on (release, releaseOutside) {
stopDrag();
(direction = "Press start when ready.");
if ((Number(fclick) > Number(getTimer())) and (Number(first) == Number(false))) {
rotateMe();
first = true;
} else {
tellTarget ("/snd") {
gotoAndStop ("smack");
};
}
place();
stamp();
}
Symbol 240 Button
on (release) {
if (_root.turn == "me") {
_root.pmove(num, xNum, yNum);
}
}
Symbol 241 MovieClip Frame 1
stop();
Symbol 242 Button
on (release) {
autoPlace();
}
Symbol 253 MovieClip Frame 18
stop();
Symbol 256 MovieClip Frame 17
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
stop();
Instance of Symbol 258 MovieClip "smoke" in Symbol 259 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + movx;
this._y = this._y + movy;
if ((((this._x > 30) || (this._x < -30)) || (this._y > 30)) || (this._y < -30)) {
_x = 0;
_y = 0;
use++;
if ((use > 2) && (num > 15)) {
this.removeMovieClip();
}
if (use > 8) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
use = 0;
}
Symbol 260 MovieClip Frame 1
stop();
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 260 MovieClip Frame 2
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 260 MovieClip Frame 3
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 260 MovieClip Frame 4
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 260 MovieClip Frame 5
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Symbol 260 MovieClip Frame 6
play();
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 260 MovieClip Frame 6
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 260 MovieClip Frame 6
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Symbol 260 MovieClip Frame 14
stop();
Symbol 262 MovieClip Frame 1
stop();
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 262 MovieClip Frame 2
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 262 MovieClip Frame 3
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Symbol 262 MovieClip Frame 4
play();
Symbol 262 MovieClip Frame 9
stop();
Symbol 273 MovieClip Frame 1
stop();
interval = (getTimer() + 10000) + random(15000);
Symbol 273 MovieClip Frame 20
stop();
interval = (getTimer() + 10000) + random(15000);
Symbol 274 MovieClip Frame 1
stop();
Instance of Symbol 273 MovieClip "ship" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
interval = (getTimer() + 10000) + random(15000);
}
onClipEvent (enterFrame) {
if (getTimer() > interval) {
this.play();
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 274 MovieClip Frame 2
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 274 MovieClip Frame 3
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 274 MovieClip Frame 4
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 274 MovieClip Frame 5
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Symbol 274 MovieClip Frame 7
play();
Symbol 274 MovieClip Frame 13
stop();
Symbol 277 MovieClip Frame 1
stop();
Instance of Symbol 276 MovieClip in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
interval = (getTimer() + 3000) + random(5000);
}
onClipEvent (enterFrame) {
if (getTimer() > interval) {
var i = 0;
while (i < 4) {
if (random(2) == 1) {
name = "t" + i;
this[name].play();
}
i++;
}
interval = (getTimer() + 3000) + random(5000);
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 277 MovieClip Frame 3
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 277 MovieClip Frame 4
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Symbol 277 MovieClip Frame 5
play();
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 277 MovieClip Frame 5
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Instance of Symbol 259 MovieClip "smoke_nachine" in Symbol 277 MovieClip Frame 5
onClipEvent (load) {
var i = 0;
while (i < 40) {
var name = ("smoke" + i);
this.smoke.duplicateMovieClip(name, i);
this[name]._alpha = random(30) + 20;
this[name].movx = random(4) - 4;
this[name].movy = random(4) - random(4);
this[name].num = i;
this[name]._x = random(20) - 10;
this[name]._y = random(20) - 10;
i++;
}
}
Symbol 277 MovieClip Frame 13
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 289 Button
on (release) {
_root.weaponReset();
gotoAndStop (3);
_root.weapon = 1;
_root.directionBox(_root.weapon);
}
Symbol 296 Button
on (release) {
_root.weaponReset();
}
Symbol 297 MovieClip Frame 1
stop();
Symbol 300 Button
on (release) {
_root.weaponReset();
gotoAndStop (3);
_root.weapon = 2;
_root.directionBox(_root.weapon);
}
Symbol 303 MovieClip Frame 1
stop();
Symbol 306 Button
on (release) {
_root.weaponReset();
gotoAndStop (3);
_root.weapon = 3;
_root.directionBox(_root.weapon);
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 318 Button
on (release) {
_root.clear();
lost = true;
gotoAndPlay ("newLevel");
}
Symbol 325 MovieClip Frame 1
stop();
gcode = _root.gcode;
gameID = _root.gameID;
Score = _root.Score;
if (Score < 5) {
Score = 5;
}
if (_root.gr_mode == "local test") {
getURL ("http://www.gamerival.com/utilities/debug/game.cfm", "_self", "POST");
}
if (_root.gr_mode == "live ready") {
getURL ("game.cfm", "_self", "POST");
}