Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgPrel - 2;
if (tgPrel <= 9) {
procent = "0" + tg;
trace(procent);
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 175
if (false) {
}
Frame 176
function DispatchGameData(value) {
if (_root.dbconnect == "yes") {
_root.score = value + 969696;
this.loadVariables((_root.dir + "game_record.") + _root.scripttype, "POST");
}
}
System.useCodepage = true;
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
_global.canDo = false;
var score = 0;
_root.connectMc.onEnterFrame = function () {
if (this.connectOn == "OK") {
_root.STARTBUTTON._visible = true;
this.removeMovieClip();
}
};
function GameStart() {
_root.scorenum = 0;
_root.shotnum = 0;
_root.shotgood = 0;
_root.game_frame = 0;
_root.hp = _root.hpMax;
_root.gotoAndStop("SCENE_GAME");
}
function GameEnd() {
if (_root.game_pause == false) {
_root.DispatchGameData(_root.scorenum);
_root.game_pause = true;
_root.CANNON.GAMEOVER._visible = true;
}
}
function GameClear() {
_root.CANNON.swapDepths(-1);
_root.F11.swapDepths(-2);
_root.F12.swapDepths(-3);
_root._x = 0;
_root._y = 0;
_root.gotoAndStop("SCENE_OPEN");
}
function SoundPlay(name, vol) {
vol = vol / 100;
if (name == "boom") {
LS1 = new Sound(snd_boom);
LS1.attachSound("snd_boom");
LS1.start(0, 1);
LS1.setVolume(_root.snd_vol * vol);
} else if (name == "deepthud") {
LS2 = new Sound(snd_deepthud);
LS2.attachSound("snd_deepthud");
LS2.start(0, 1);
LS2.setVolume(_root.snd_vol * vol);
} else if (name == "water") {
LS4 = new Sound(snd_water);
LS4.attachSound("snd_water");
LS4.start(0, 1);
LS4.setVolume(_root.snd_vol * vol);
} else if (name == "sea") {
LS5 = new Sound(snd_sea);
LS5.attachSound("snd_sea");
LS5.start(0, 1);
LS5.setVolume(_root.snd_vol * vol);
}
}
function openAlert(msg) {
_root.alertMC.swapDepths(60000);
_root.alertMC.msg = msg;
_root.alertMC._visible = true;
}
function getDomain(fullurl) {
p1 = fullurl.indexOf("//", 0) + 2;
p2 = fullurl.indexOf("/", p1);
if (p2 < 1) {
p2 = fullurl.length;
}
domain = fullurl.substring(p1, p2);
return(domain);
}
function compDomain(domain, Dlist) {
returnCheck = false;
i = 0;
while (i < Dlist.length) {
if ((domain == Dlist[i]) || (domain == ("www." + Dlist[i]))) {
returnCheck = true;
break;
}
i++;
}
return(returnCheck);
}
_root.domainList = ["game24.co.kr", "gamefesta.com"];
_root.redFlyMax = 10;
_root.redMax = 12;
_root.hit_score = 50;
_root.hit_power = 100;
_root.hp = 0;
_root.hpMax = 2000;
_root.cosArr = new Array();
_root.sinArr = new Array();
i = 0;
while (i < 360) {
t = (Math.PI/180) * i;
_root.cosArr[i] = Math.cos(t);
_root.sinArr[i] = Math.sin(t);
i++;
}
_root.time = 0;
_root.scorenum = 0;
_root.shotnum = 0;
_root.shotgood = 0;
_root.snd_on = true;
_root.snd_vol = 50;
_root.swap_cannon = 600000 /* 0x0927C0 */;
_root.swap_shot = 3000;
_root.swap_move = 2000;
_root.swap_clouds = 1000;
_root.game_pause = false;
_root.game_effect = true;
_root.game_frame = 0;
Mouse.show();
this.stop();
Instance of Symbol 167 MovieClip in Frame 176
onClipEvent (enterFrame) {
this._rotation = this._rotation + 33;
}
Instance of Symbol 235 MovieClip in Frame 176
//component parameters
onClipEvent (construct) {
wynume = "NavalGun";
wyculoare = 14850;
wyasezare = "Vertical";
wyaliniere = "Dreapta";
wypozitie = "Jos";
wyinstructions = true;
}
Frame 177
_global.mainMenu = false;
Mouse.hide();
this.stop();
onEnterFrame = function () {
if (_root.CANNON) {
_root.bestScore = _root.CANNON.score;
_root.numar = _root.shotnum;
}
};
Instance of Symbol 255 MovieClip "SEA" in Frame 177
onClipEvent (load) {
count = 0;
rnd = 0;
n = 0;
}
onClipEvent (enterFrame) {
if (_global.canDo != true) {
count++;
if ((count > rnd) && (_root.snd_on == true)) {
count = 0;
_root.SoundPlay("sea", random(60) + 80);
rnd = random(30) + 30;
}
if (n >= 360) {
n = 0;
}
this._yscale = 120 + (20 * _root.cosArr[n++]);
}
}
Instance of Symbol 262 MovieClip "ball1" in Frame 177
onClipEvent (load) {
scale = 100;
speed = 18;
if (this._name == "ball1") {
speed = 0;
this._visible = false;
}
n = 0;
}
onClipEvent (enterFrame) {
if (_global.mainMenu == true) {
this._x = 1000;
}
if (speed > 0) {
this._x = this._x + (0.4 * speed);
this._y = this._y - (2 * (speed - _root.cosArr[n++]));
speed = speed * 0.8;
this._xscale = (this._yscale = scale);
this.swapDepths((_root.swap_move + (int(10 * scale) * 5)) + 4);
if (scale < 30) {
this._alpha = (2 * scale) + 40;
} else {
this._alpha = 100;
}
this.flyCheck();
scale = scale * 0.9;
if (scale < 5) {
this.waterShow();
this.removeMovieClip();
}
}
}
Instance of Symbol 268 MovieClip "FLY" in Frame 177
onClipEvent (load) {
type = 1;
scale = 3;
if (_root.time > 10) {
hpMax = 300;
} else if (_root.time > 30) {
hpMax = 500;
} else {
hpMax = 150;
}
hp = hpMax;
this._xscale = (this._yscale = scale);
if (this._name == "FLY") {
this._visible = false;
}
n = random(5) + 35;
this.gotoAndStop(2);
this._rotation = 180;
}
onClipEvent (enterFrame) {
if (_root.game_pause != true) {
if (this._visible == true) {
if (this._currentframe == 2) {
this._y = this._y + n;
n = n * 0.9;
if ((n < 1) || (this._y > (_root.SEA._y - 5))) {
this.gotoAndStop(1);
this._rotation = 0;
}
} else if (this._currentframe < 3) {
this._y = this._y + 0.2;
this._xscale = (this._yscale = scale);
this._rotation = this._rotation + (random(10) - 5);
this.swapDepths((_root.swap_move + (int(10 * scale) * 5)) + 2);
if (scale < 30) {
this._alpha = (2 * scale) + 40;
} else {
this._alpha = 100;
}
scale = scale * 1.04;
if (this._xscale > 100) {
_root.CANNON.hit = 2 + int(this.hp / 100);
_root.hp = _root.hp - (this.hp + 100);
this.gotoAndPlay("DIE");
}
}
}
}
}
Instance of Symbol 390 MovieClip "CANNON" in Frame 177
onClipEvent (load) {
num = 100;
shot = false;
count = 0;
full = true;
bb = 0;
hit = 0;
this.swapDepths(_root.swap_cannon);
gx = this.GUN._x;
gy = this.GUN._y;
}
onClipEvent (enterFrame) {
if (_root.game_pause != true) {
_root.game_frame++;
if (hit > 0) {
hit = hit - 1;
this.GUN._x = (gx + random(20)) - 10;
this.GUN._y = (gy + random(20)) - 10;
if (hti == 0) {
this.GUN._x = gx;
this.GUN._y = gy;
}
}
if (_root.game_pause == false) {
x = Math.abs(this._xmouse / 4);
if (x > 30) {
x = 30;
}
if (this._xmouse < 0) {
_root._x = _root._x + x;
if (_root._x > 250) {
_root._x = 250;
}
} else if (this._xmouse > 0) {
_root._x = _root._x - x;
if (_root._x < -250) {
_root._x = -250;
}
}
y = Math.abs(this._ymouse / 4);
if (y > 30) {
y = 30;
}
if (this._ymouse < 0) {
_root._y = _root._y + y;
if (_root._y > 250) {
_root._y = 250;
}
} else if (this._ymouse > 0) {
_root._y = _root._y - y;
if (_root._y < -100) {
_root._y = -100;
}
}
this._x = (_root._x * -1) + 250;
this._y = (_root._y * -1) + 200;
count++;
if (count >= 10) {
count = 0;
}
if ((count < 6) && (shot == true)) {
if (this.CANNONBALLS.NUM < 1) {
shot = false;
} else {
name = "b" + num;
if ((num % 2) == 0) {
tname = "ball1";
} else {
tname = "ball2";
}
duplicateMovieClip (_root[tname], name, num + _root.swap_shot);
this.GUN[tname].gotoAndPlay("SHOT");
a = this.GUN[tname]._x;
b = this.GUN[tname]._y;
if (this.GUN._rotation < 0) {
r = Math.round(360 + this.GUN._rotation);
} else {
r = Math.round(this.GUN._rotation);
}
_root[name]._x = (this._x + this.GUN._x) + ((a * _root.cosArr[r]) - (b * _root.sinArr[r]));
_root[name]._y = (this._y + this.GUN._y) + ((a * _root.sinArr[r]) + (b * _root.cosArr[r]));
num++;
if (num >= 200) {
num = 100;
}
this.CANNONBALLS.minus();
if (_root.snd_on == true) {
_root.SoundPlay("deepthud", 100);
}
_root.shotnum++;
}
}
this.score = _root.scorenum;
if (_root.shotnum > 0) {
persend = Math.round((_root.shotgood / _root.shotnum) * 1000) / 10;
} else {
persend = 0;
}
this.shotnum = ((((_root.shotgood + " / ") + _root.shotnum) + " (") + persend) + "%)";
bb++;
if (bb > 25) {
bb = 0;
this.CANNONBALLS.plus(5);
}
}
}
}
onClipEvent (keyDown) {
if (_root.game_pause == false) {
k = Key.getAscii();
if (full == true) {
if ((k == 82) || (k == 114)) {
this.CANNONBALLS.full();
full = false;
}
}
}
}
onClipEvent (keyUp) {
k = Key.getAscii();
if ((k == 82) || (k == 114)) {
full = true;
}
}
onClipEvent (mouseDown) {
shot = true;
count = 0;
}
onClipEvent (mouseUp) {
shot = false;
}
Instance of Symbol 262 MovieClip "ball2" in Frame 177
onClipEvent (load) {
scale = 100;
speed = 18;
if (this._name == "ball2") {
speed = 0;
this._visible = false;
}
n = 0;
}
onClipEvent (enterFrame) {
if (_global.mainMenu == true) {
this._x = 1000;
}
if (speed > 0) {
this._x = this._x - (0.4 * speed);
this._y = this._y - (2 * (speed - _root.cosArr[n++]));
speed = speed * 0.8;
this._xscale = (this._yscale = scale);
this.swapDepths((_root.swap_move + (int(10 * scale) * 5)) + 4);
if (scale < 30) {
this._alpha = (2 * scale) + 40;
} else {
this._alpha = 100;
}
this.flyCheck();
scale = scale * 0.9;
if (scale < 5) {
this.waterShow();
this.removeMovieClip();
}
}
}
Instance of Symbol 392 MovieClip in Frame 177
onClipEvent (load) {
num = 1;
count = 0;
_root.time = 0;
rnd = random(70) + 30;
i = 1;
while (i < 7) {
duplicateMovieClip (_root.CLOUDS, "C" + i, i + _root.swap_clouds);
i++;
}
}
onClipEvent (unload) {
i = 1;
while (i < 7) {
_root["C" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= 10) {
_root["F" + i].removeMovieClip();
i++;
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
_root.GameEnd();
}
count++;
if (rnd == count) {
count = 0;
_root.time++;
find = random(5);
name = "F" + num;
if ((find % 5) < 2) {
if (_root.time < 50) {
rnd = random(70 - _root.time) + 20;
} else {
rnd = random(20) + 20;
}
if (find == 0) {
tname = "F11";
} else {
tname = "F12";
}
if (_root[tname].hp > 0) {
duplicateMovieClip (_root.MISSILE, name, num);
_root[name]._x = _root[tname]._x;
_root[name]._y = _root[tname]._y - 10;
}
} else {
if (_root.time < 50) {
rnd = random(70 - _root.time) + 40;
} else {
rnd = random(20) + 40;
}
if (_global.canDo != true) {
duplicateMovieClip (_root.FLY, name, num);
}
_root[name]._x = random(400);
_root[name]._y = random(10) - 180;
}
num++;
if (num >= _root.redFlyMax) {
num = 1;
}
}
}
Instance of Symbol 396 MovieClip "CLOUDS" in Frame 177
onClipEvent (load) {
speed = 0;
this.reset = function () {
r = random(80) + 20;
this._xscale = (this._yscale = r);
this.speed = r / 100;
this.gotoAndStop(random(this._totalframes) + 1);
this._x = 500 + random(50);
this._y = 250 - (4 * r);
};
this.reset();
this._x = this._x - random(400);
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (this._x < -250) {
this.reset();
}
}
Instance of Symbol 403 MovieClip "FLY_DIE" in Frame 177
onClipEvent (load) {
speed = 1;
if (this._name == "FLY_DIE") {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((this._visible == true) && (this._currentframe == 1)) {
this._y = this._y + speed;
max = _root.SEA._y + ((_root.SEA._height * this._xscale) / 80);
if (this._y > max) {
this._y = max;
this.gotoAndPlay("BANG");
}
speed = speed * (1.1 + (this._xscale / 120));
}
}
Instance of Symbol 402 MovieClip "WATER" in Frame 177
onClipEvent (load) {
if (this._name == "WATER") {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_global.mainMenu == true) {
this._x = 1000;
}
}
Instance of Symbol 405 MovieClip in Frame 177
onClipEvent (enterFrame) {
this._y++;
}
Instance of Symbol 419 MovieClip "F12" in Frame 177
onClipEvent (load) {
scale = 6.1;
hp = (hpMax = 8000);
speed = 0.2;
this.swapDepths((_root.swap_move + (int(10 * scale) * 5)) + 1);
}
onClipEvent (enterFrame) {
if (this._visible == true) {
this._x = this._x + speed;
if (this._x < 0) {
this._x = 0;
speed = 0.2;
this._xscale = this._xscale * -1;
} else if (this._x > 500) {
this._x = 500;
speed = -0.2;
this._xscale = this._xscale * -1;
}
} else if ((random(50) % 50) == 1) {
this._x = 0;
speed = 0.2;
hp = hpMax;
this._visible = true;
this.gotoAndStop(1);
}
}
Instance of Symbol 419 MovieClip "F11" in Frame 177
onClipEvent (load) {
scale = 10;
hp = (hpMax = 8000);
speed = -0.3;
this.swapDepths((_root.swap_move + (int(10 * scale) * 5)) + 1);
}
onClipEvent (enterFrame) {
if (this._visible == true) {
this._x = this._x + speed;
if (this._x < 0) {
this._x = 0;
speed = 0.3;
this._xscale = this._xscale * -1;
} else if (this._x > 500) {
this._x = 500;
speed = -0.3;
this._xscale = this._xscale * -1;
}
} else if ((random(50) % 50) == 1) {
this._x = 500;
speed = -0.3;
hp = hpMax;
this._visible = true;
this.gotoAndStop(1);
}
}
Instance of Symbol 429 MovieClip "MISSILE" in Frame 177
onClipEvent (load) {
type = 2;
hpMax = 100;
scale = 3;
hp = hpMax;
this._xscale = (this._yscale = scale);
if (this._name == "MISSILE") {
this._visible = false;
}
n = 0;
top = random(15) + 30;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.game_pause != true) {
if (this._visible == true) {
if (this._currentframe == 2) {
this._y = this._y - 2;
n++;
if (n >= top) {
this.gotoAndStop(1);
}
} else {
this._rotation = this._rotation + 35;
if (this._currentframe < 3) {
this._y = this._y + 0.5;
this._xscale = (this._yscale = scale);
this.swapDepths((_root.swap_move + (int(10 * scale) * 5)) + 3);
if (scale < 30) {
this._alpha = (2 * scale) + 40;
} else {
this._alpha = 100;
}
scale = scale * 1.06;
if (this._xscale > 100) {
_root.CANNON.hit = 2 + int(this.hp / 100);
_root.hp = _root.hp - (this.hp + 100);
this.gotoAndPlay("DIE");
}
}
}
}
}
}
Instance of Symbol 419 MovieClip "SHIP" in Frame 177
onClipEvent (load) {
this._visible = false;
}
Frame 178
_root.FLY.removeMovieClip();
_root.FLY_DIE.removeMovieClip();
_root.MISSLE.removeMovieClip();
_root.CLOUDS.removeMovieClip();
i = 0;
while (i <= 300) {
_root[("b" + i) + "RR"].removeMovieClip();
i++;
}
i = 0;
while (i <= 100) {
_root["F" + i].removeMovieClip();
_root["C" + i].removeMovieClip();
i++;
}
_root.ball1.removeMovieClip();
_root.ball2.removeMovieClip();
_root.SEA.removeMovieClip();
_root.F11.removeMovieClip();
_root.F12.removeMovieClip();
_root.SHIP.removeMovieClip();
_root.WATER.removeMovieClip();
_root.alertMC.removeMovieClip();
_global.mainMenu = true;
_root.F11.removeMovieClip();
_root.F12.removeMovieClip();
_root.TTRAGET.removeMovieClip();
_root.CANNONBALLS.removeMovieClip();
_root.CANNON.removeMovieClip();
delete onEnterFrame;
_root.xdada = 0;
_root._x = 0;
_root._y = 0;
_root.gotoAndPlay("submitScore");
Frame 179
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
stopAllSounds();
Frame 180
_root.menu.removeMovieClip();
_root.gameid = "NavalGun";
_root.best = _root.bestScore;
_root.bestScore = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 182
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 183
if (false) {
}
Frame 190
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 194
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 195
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 5 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 18 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 27 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 36 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 37 MovieClip [UpArrow] Frame 1
stop();
Symbol 37 MovieClip [UpArrow] Frame 2
stop();
Symbol 37 MovieClip [UpArrow] Frame 3
stop();
Symbol 43 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 52 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 57 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 58 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 66 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 74 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 82 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 83 MovieClip [DownArrow] Frame 1
stop();
Symbol 83 MovieClip [DownArrow] Frame 2
stop();
Symbol 83 MovieClip [DownArrow] Frame 3
stop();
Symbol 95 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 96 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 98 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?NavalGun", "_blank");
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 50
stop();
_parent.play();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 152 Button
on (release) {
getURL ("http://www.game24.co.kr", "_blank", "GET");
}
Symbol 163 Button
on (release) {
_root.GameStart();
}
Symbol 173 MovieClip Frame 1
this.stop();
Symbol 173 MovieClip Frame 2
this.stop();
Symbol 179 Button
on (release) {
this._visible = false;
}
Symbol 183 MovieClip Frame 1
this._visible = false;
Symbol 191 Button
on (release) {
_root.GameStart();
}
Symbol 194 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 202 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 202 MovieClip Frame 2
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 202 MovieClip Frame 3
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 203 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 210 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 210 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 210 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 211 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 214 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 214 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 214 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 219 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 220 MovieClip Frame 1
stop();
Symbol 223 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 225 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 232 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 232 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 232 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 233 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
function instructionsFunction() {
_root.gigi._x = 8.5;
}
stop();
if ((wyasezare == "Orizontal") && (wyinstructions == false)) {
this.gotoAndStop(2);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(3);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(4);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(5);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(6);
}
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 235 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 235 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 235 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 235 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 235 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 246 Button
on (release) {
_root.gigi._x = -1000;
}
Symbol 253 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?NavalGun", "_blank");
}
Symbol 255 MovieClip Frame 1
this.stop();
Symbol 261 MovieClip Frame 9
this.removeMovieClip();
this.stop();
Symbol 262 MovieClip Frame 1
function flyCheck() {
if (scale >= 10) {
scale2 = scale;
if (scale2 > 80) {
scale2 = 80;
}
i = 1;
while (i <= _root.redFlyMax) {
fs = _root["F" + i]._xscale;
if (fs > 80) {
fs = 80;
}
if (int(fs / 15) == int(scale2 / 15)) {
if (_root["F" + i].box.hitTest(this._x, this._y, true)) {
_root.scorenum = _root.scorenum + _root.hit_score;
_root["F" + i].hp = _root["F" + i].hp - _root.hit_power;
if (_root["F" + i].hp <= 0) {
_root.scorenum = _root.scorenum + _root["F" + i].hpMax;
_root["F" + i].gotoAndPlay("DIE");
if (_root["F" + i].type == 1) {
name = this._name + "R";
duplicateMovieClip (_root.FLY_DIE, name, (_root.swap_move + int(10 * scale)) + 1);
_root[name]._x = this._x;
_root[name]._y = this._y;
_root[name]._xscale = (_root[name]._yscale = 0.8 * scale);
}
}
speed = 0;
_root.shotgood++;
this.gotoAndPlay("DIE");
}
}
i++;
}
}
}
function shipCheck() {
i = _root.redFlyMax;
while (i <= _root.redMax) {
if (_root["F" + i].box.hitTest(this._x, this._y + 2, true)) {
_root.scorenum = _root.scorenum + _root.hit_score;
_root["F" + i].hp = _root["F" + i].hp - _root.hit_power;
if (_root["F" + i].hp <= 0) {
_root.scorenum = _root.scorenum + _root["F" + i].hpMax;
_root["F" + i].gotoAndPlay("DIE");
speed = 0;
_root.shotgood++;
this.gotoAndPlay("DIE");
}
}
i++;
}
}
function waterShow() {
this.shipCheck();
if (_root.game_effect == true) {
if (this._y > _root.SEA._y) {
y = int((this._y - _root.SEA._y) - 100);
name = this._name + "RR";
duplicateMovieClip (_root.WATER, name, _root.swap_move + (((y * 10) + random(10)) * 5));
_root[name]._x = this._x;
_root[name]._y = this._y + 2;
_root[name]._xscale = (_root[name]._yscale = (y / 8) + 1);
_root[name]._yscale = 10;
}
}
}
this.stop();
Symbol 262 MovieClip Frame 12
this.removeMovieClip();
this.stop();
Symbol 264 MovieClip Frame 1
this._visible = false;
Symbol 267 MovieClip Frame 1
this._visible = false;
Symbol 268 MovieClip Frame 1
this.stop();
Instance of Symbol 167 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 33;
}
Symbol 268 MovieClip Frame 2
this.stop();
Symbol 268 MovieClip Frame 3
if (_root.snd_on == true) {
_root.SoundPlay("boom", this._xscale + 10);
}
Symbol 268 MovieClip Frame 14
this.removeMovieClip();
Symbol 270 MovieClip Frame 1
this._visible = false;
Symbol 278 MovieClip Frame 5
this.stop();
Symbol 280 Button
on (release) {
getURL ("http://www.game24.co.kr", "_blank");
}
Symbol 284 MovieClip Frame 1
this.stop();
Symbol 284 MovieClip Frame 2
this.stop();
Symbol 287 MovieClip Frame 1
function display() {
num = this._name.substr(5);
if (_root["F" + num].hp > 0) {
this._visible = true;
dt = distance(_parent._x, _parent._y, _root["F" + num]._x, _root["F" + num]._y);
if (dt > 100) {
this.AW._rotation = 0;
} else {
this.AW._rotation = 180;
}
diffX = _parent._x - _root["F" + num]._x;
diffY = _parent._y - _root["F" + num]._y;
this._rotation = ((Math.atan2(diffY, diffX) * 180) / Math.PI) + 180;
this.AW._xscale = (this.AW._yscale = 100 + _root["F" + num]._xscale);
} else {
this._visible = false;
}
}
this._visible = false;
this.stop();
Symbol 293 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?NavalGun", "_blank");
}
Symbol 294 MovieClip Frame 1
function display() {
i = 1;
while (i <= this.MAX) {
if (this.NUM < i) {
this["B" + i].gotoAndStop("NULL");
} else {
this["B" + i].gotoAndStop("FULL");
}
i++;
}
}
function minus() {
this.NUM--;
this.display();
}
function plus(num) {
this.NUM = this.NUM + num;
if (this.NUM > this.MAX) {
this.NUM = this.MAX;
}
this.display();
}
function full() {
this.NUM = this.MAX;
if (this.NUM > this.MAX) {
this.NUM = this.MAX;
}
this.display();
}
Symbol 297 MovieClip Frame 1
this.stop();
Symbol 297 MovieClip Frame 2
this.stop();
Symbol 311 MovieClip Frame 1
_root.game_effect = true;
this.stop();
Symbol 311 MovieClip Frame 2
_root.game_effect = false;
this.stop();
Symbol 316 Button
on (release) {
_global.mainMenu = true;
_root.TTRAGET._visible = false;
_root.CANNONBALLS._visible = false;
_root.ball1._visible = false;
_root.ball2._visible = false;
_root.GameClear();
}
Symbol 319 Button
on (release) {
trace("xxxxxxxxxxx");
_root.gotoAndPlay("dupa");
}
Instance of Symbol 235 MovieClip in Symbol 327 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
wynume = "NavalGun";
wyculoare = 4345647 /* 0x424F2F */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 333 MovieClip Frame 1
this.stop();
function getFrame(MC) {
f++;
te = getTimer();
t = te - ts;
if (t >= 1000) {
if (this._currentframe == 1) {
this.frametxt = "";
} else {
this.frametxt = f;
}
f = 0;
ts = te;
}
}
function checkKey() {
var ascii = Key.getAscii();
if (Key.isDown(16) && ((ascii == 86) || (ascii == 118))) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
f = 0;
ts = getTimer();
Symbol 336 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
on (rollOver) {
Mouse.show();
this.useHandCursor = true;
}
Symbol 337 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
on (rollOver) {
Mouse.show();
this.useHandCursor = true;
}
Symbol 338 Button
on (release) {
_parent.mainMenuFunction();
}
on (rollOver) {
Mouse.show();
this.useHandCursor = true;
}
Symbol 339 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
on (rollOver) {
Mouse.show();
this.useHandCursor = true;
}
Symbol 340 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
on (rollOver) {
Mouse.show();
this.useHandCursor = true;
}
Symbol 341 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
on (rollOver) {
Mouse.show();
this.useHandCursor = true;
}
Symbol 352 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 353 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 354 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 355 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 356 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 357 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 358 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 358 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 358 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 358 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 358 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 358 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 358 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 358 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 363 Button
on (press) {
_parent.play();
}
Symbol 366 Button
on (press) {
_parent.play();
}
on (rollOver) {
Mouse.show();
this.useHandCursor = true;
}
on (rollOut) {
Mouse.hide();
this.useHandCursor = false;
}
Symbol 367 Button
on (press) {
_parent.play();
}
on (rollOver) {
this.useHandCursor = true;
}
on (rollOut) {
this.useHandCursor = false;
}
Symbol 368 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 368 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 368 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 368 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 368 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 368 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 368 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 368 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 368 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 368 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 387 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_parent._parent._currentframe <= 10) {
_parent._parent.gotoAndPlay(11);
}
Mouse.hide();
this.useHandCursor = false;
};
this.onRollOut = function () {
Mouse.hide();
};
if (_parent._parent.wxbutno == 5) {
this.gotoAndStop(2);
}
if (_parent._parent.wxbutno == 4) {
this.gotoAndStop(3);
}
if (_parent._parent.wxbutno == 3) {
this.gotoAndStop(4);
}
Symbol 388 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 389 MovieClip Frame 1
function pauseFunction() {
if (_root.game_pause != true) {
_root.game_pause = true;
} else {
_root.game_pause = false;
}
}
function soundFunction() {
if (_root.snd_on != true) {
_root.snd_on = true;
} else {
_root.snd_on = false;
}
}
function mainMenuFunction() {
_global.mainMenu = true;
_root.TTRAGET._visible = false;
_root.CANNONBALLS._visible = false;
_root.ball1._visible = false;
_root.ball2._visible = false;
_root.GameClear();
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 389 MovieClip Frame 10
stop();
Symbol 389 MovieClip Frame 20
Mouse.hide();
Instance of Symbol 274 MovieClip "TTRAGET" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.game_pause != true) {
this._x = _root._xmouse - _parent._x;
this._y = _root._ymouse - _parent._y;
msg = "";
x = _root._xmouse;
y = _root._ymouse;
i = 1;
while (i <= _root.redMax) {
if (_root["F" + i].box.hitTest(this.box)) {
msg = "HP: " + _root["F" + i].hp;
msg = msg + ((" / " + (Math.round(19000 - (200 * _root["F" + i]._xscale)) / 10)) + " m");
break;
}
i++;
}
this.street = msg;
} else if (_root.game_pause == true) {
Mouse.show();
}
}
Instance of Symbol 281 MovieClip "GUN" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 284 MovieClip "LIGHTING" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 287 MovieClip "ARROW1" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW2" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW3" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW4" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW5" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW6" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW7" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW8" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW9" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 287 MovieClip "ARROW10" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.display();
}
Instance of Symbol 294 MovieClip "CANNONBALLS" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.NUM = 25;
this.MAX = 25;
}
Instance of Symbol 300 MovieClip "BAR" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.bar1._yscale = 100;
this.bar1.gotoAndStop(1);
this.bar2._yscale = 100;
this.bar2.gotoAndStop(2);
}
onClipEvent (enterFrame) {
scale = (_root.hp / _root.hpMax) * 200;
if (scale < 0) {
scale = 0;
}
if (scale > 100) {
this.bar1._yscale = scale - 100;
this.bar2._yscale = 100;
} else {
this.bar1._yscale = 0;
this.bar2._yscale = scale;
}
if (_root.hp > 0) {
this.hptxt = _root.hp;
} else {
this.hptxt = "";
}
}
Instance of Symbol 311 MovieClip "ECT" in Symbol 390 MovieClip Frame 1
onClipEvent (keyDown) {
k = Key.getAscii();
if ((k == 69) || (k == 101)) {
if (_root.game_effect == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 327 MovieClip "GAMEOVER" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
time = 0;
this._visible = false;
}
Instance of Symbol 333 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
this.getFrame();
}
onClipEvent (keyDown) {
this.checkKey();
}
Instance of Symbol 389 MovieClip in Symbol 390 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
!!!ERROR
Symbol 392 MovieClip Frame 1
#initclip 3
_global.distance = function (x1, y1, x2, y2) {
var diffX = (x1 - x2);
var diffY = (y1 - y2);
return(Math.sqrt((diffX * diffX) + (diffY * diffY)));
};
MovieClip.prototype.getRotate = function (targetX, targetY) {
var diffX = (targetX - this._x);
var diffY = (targetY - this._y);
return((Math.atan2(diffY, diffX) * 180) / Math.PI);
};
MovieClip.prototype.rotateTo = function (targetX, targetY) {
var diffX = (targetX - this._x);
var diffY = (targetY - this._y);
this._rotation = (Math.atan2(diffY, diffX) * 180) / Math.PI;
};
MovieClip.prototype.elasticMove = function (a, b, tx, ty) {
var tempx = this._x;
var tempy = this._y;
this._x = ((a * (this._x - tx)) + (b * (this.prevx - tx))) + tx;
this._y = ((a * (this._y - ty)) + (b * (this.prevy - ty))) + ty;
this.prevx = tempx;
this.prevy = tempy;
};
#endinitclip
!!!ERROR
Symbol 396 MovieClip Frame 1
!!!ERROR
Symbol 396 MovieClip Frame 2
!!!ERROR
Symbol 396 MovieClip Frame 3
!!!ERROR
Symbol 402 MovieClip Frame 50
this.removeMovieClip();
this.stop();
Symbol 403 MovieClip Frame 1
!!!ERROR
Symbol 403 MovieClip Frame 2
if (_root.snd_on == true) {
_root.SoundPlay("water", this._xscale + 15);
}
Symbol 403 MovieClip Frame 58
!!!ERROR
Symbol 407 MovieClip Frame 1
!!!ERROR
Symbol 418 MovieClip Frame 62
!!!ERROR
Symbol 419 MovieClip Frame 1
!!!ERROR
Symbol 419 MovieClip Frame 2
!!!ERROR
Symbol 419 MovieClip Frame 3
if (_root.snd_on == true) {
_root.SoundPlay("boom", this._xscale + 10);
}
Symbol 419 MovieClip Frame 71
this._visible = false;
this.stop();
Symbol 429 MovieClip Frame 1
!!!ERROR
Symbol 429 MovieClip Frame 2
!!!ERROR
Symbol 429 MovieClip Frame 3
if (_root.snd_on == true) {
_root.SoundPlay("boom", this._xscale + 10);
}
Symbol 429 MovieClip Frame 12
!!!ERROR
Symbol 434 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 441 Button
on (release) {
!!!ERROR
Symbol 746 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 96 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 746 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
!!!ERROR
Symbol 752 Button
on (release) {
!!!ERROR
Symbol 768 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 774 Button
on (release) {
!!!ERROR
Symbol 778 MovieClip Frame 1
!!!ERROR
Symbol 778 MovieClip Frame 9
!!!ERROR
Symbol 778 MovieClip Frame 22
!!!ERROR
Symbol 778 MovieClip Frame 34
var my_date:Date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 778 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}