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
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.tg: " + _root.tg);
if (_root.tg <= 9) {
_root.procent = "0" + _root.tg;
} else {
_root.procent = _root.tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.TG: " + tgPrel);
if (_root.tgPrel <= 9) {
_root.procent = "0" + tg;
trace(_root.procent);
} else {
_root.procent = tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
_root.procent = "--";
prel.gotoAndStop(100);
Frame 166
_root.locatie = _url;
if (_root.locatie.indexOf("www.freeonlinegames.com", 0) != -1) {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
Frame 174
_root.sunet = true;
_root.plici = new Sound();
_root.plici.attachSound("plici");
_root.locatie = _url;
if (_root.locatie.indexOf("www.freeonlinegames.com", 0) != -1) {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
Frame 175
Mouse.show();
stopAllSounds();
blastSound = new Sound();
blastSound.attachSound("blastSound");
mineSound = new Sound();
mineSound.attachSound("mineSound");
bulletSound = new Sound();
bulletSound.attachSound("bulletSound");
itemSound = new Sound();
itemSound.attachSound("itemSound");
loseSound = new Sound();
loseSound.attachSound("sound10.mp3");
dieSound0 = new Sound();
dieSound0.attachSound("sound14.mp3");
dieSound1 = new Sound();
dieSound1.attachSound("sound49.mp3");
mgunSound = new Sound();
mgunSound.attachSound("sound29.mp3");
w3Sound = new Sound();
w3Sound.attachSound("w3Sound");
w4Sound = new Sound();
w4Sound.attachSound("w4Sound");
backSound = new Sound();
backSound.attachSound("backSound");
_root.instructions._visible = false;
delete man.onEnterFrame;
Key.removeListener(_root);
Mouse.show();
removeMovieClip(_root.aim);
_root.al = _root.enemyArray.length;
w = 0;
while (w < al) {
removeMovieClip(enemyArray[w]);
w++;
}
_root.il = _root.itemArray.length;
g = 0;
while (g < il) {
removeMovieClip(_root.itemArray[g]);
g++;
}
z = 0;
while (z < 30) {
removeMovieClip(_root["bullet" + (ebdep - z)]);
removeMovieClip(_root["bullet" + (dep - z)]);
removeMovieClip(_root["bullet" + (edep - z)]);
z++;
}
h = 1000;
while (h < 10000) {
removeMovieClip(_root["bomberb" + h]);
h++;
}
q = 0;
while (q < 20) {
removeMovieClip(_root.showl);
q++;
}
e = 0;
while (e < 20000) {
removeMovieClip(_root["bullet" + e]);
e++;
}
delete onMouseDown;
delete onMouseUp;
clearInterval(_root.enemytimer);
clearInterval(_root.coptertimer);
clearInterval(_root.itemtimer);
_root.theMeniu.removeMovieClip();
_root.pau.removeMovieClip();
stop();
Instance of Symbol 390 MovieClip in Frame 175
//component parameters
onClipEvent (construct) {
wynume = "SwatAttack";
wyculoare = 2504510 /* 0x26373E */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Frame 190
function shoot(bullet) {
if (_root.pauza == false) {
ob = enemyArray.length;
while ((--ob) > -1) {
if (bullet.hitTest(enemyArray[ob])) {
enemyArray[ob].life = enemyArray[ob].life - bullet.damage;
if (bullet.weapon == 3) {
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = bullet._x;
eval ("missileblast" + dep)._y = bullet._y;
dep++;
removeMovieClip(bullet);
} else if (bullet.weapon == 4) {
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = bullet._x;
eval ("missileblast" + dep)._y = bullet._y;
dep++;
removeMovieClip(bullet);
} else if (bullet.weapon == 5) {
attachMovie("bombblast", "bombblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("bombblast" + dep)._xscale = (eval ("bombblast" + dep)._yscale = 20);
eval ("bombblast" + dep)._x = bullet._x;
eval ("bombblast" + dep)._y = bullet._y;
dep++;
removeMovieClip(bullet);
} else {
removeMovieClip(bullet);
}
if (enemyArray[ob].life <= 0) {
score = score + enemyArray[ob].score;
if (enemyArray[ob].k == 2) {
if (_root.sunet == true) {
_root["dieSound" + random(2)].start(0, 1);
}
enemyArray[ob].gotoAndStop(1);
enemyArray[ob]._rotation = enemyArray[ob]._rotation + 90;
enemyArray[ob].onEnterFrame = function () {
if (_root.pauza == false) {
this._y = this._y + 10;
if (this._y >= 364) {
this._rotation = this._rotation - 90;
this._y = 374;
this.gotoAndStop(5);
delete this.onEnterFrame;
}
}
};
} else if (enemyArray[ob].k == 3) {
attachMovie("pblast", "pblast" + dep, dep);
if (_root.sunet == true) {
blastSound.start(0, 1);
}
eval ("pblast" + dep)._xscale = (eval ("pblast" + dep)._yscale = 50);
eval ("pblast" + dep)._x = enemyArray[ob]._x;
eval ("pblast" + dep)._y = enemyArray[ob]._y;
dep++;
enemyArray[ob].gotoAndPlay(2);
} else {
if (_root.sunet == true) {
_root["dieSound" + random(2)].start(0, 1);
}
delete enemyArray[ob].onEnterFrame;
enemyArray[ob].gotoAndStop(random(2) + 3);
}
setLevel();
temp = enemyArray[ob].va;
enemyArray.splice(enemyArray[ob].va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
}
}
}
}
}
function set() {
if (_root.pauza == false) {
if ((level == 1) && (score >= 100)) {
level = 2;
ShowLevel();
}
if ((level == 2) && (score >= 200)) {
level = 3;
ShowLevel();
}
if ((level == 3) && (score >= 300)) {
level = 4;
ShowLevel();
clearInterval(carptimer);
delete carp.man;
carp.gotoAndStop(1);
carpout();
callfbi();
enemykind = 2;
}
if ((level == 4) && (score >= 500)) {
level = 5;
ShowLevel();
}
if ((level == 5) && (score >= 800)) {
level = 6;
ShowLevel();
}
if ((level == 6) && (score >= 1200)) {
level = 7;
ShowLevel();
clearInterval(carftimer);
delete carf.man;
carf.gotoAndStop(1);
carfout();
callfh();
enemykind = 3;
}
if ((level == 7) && (score >= 1800)) {
level = 8;
ShowLevel();
}
if ((level == 8) && (score >= 2500)) {
level = 9;
isWiner();
}
}
}
function tossBomb() {
if (_root.pauza == false) {
arg = ((90 - r) * Math.PI) / 180;
if (bombw && (bomb > 0)) {
bombw = false;
bombtimer = setInterval(bombfire, 500);
bomb--;
attachMovie("grenade", "grenade" + dep, dep);
eval ("grenade" + dep).damage = 20;
eval ("grenade" + dep).weapon = 5;
eval ("grenade" + dep)._x = man._x;
eval ("grenade" + dep)._y = man._y;
eval ("grenade" + dep)._rotation = r;
eval ("grenade" + dep).xinc = Math.sin(arg) * 8;
eval ("grenade" + dep).yinc = Math.cos(arg) * 8;
eval ("grenade" + dep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
this.yinc = this.yinc + 0.3;
shoot(this);
if (this._y > 380) {
attachMovie("bombblast", "bombblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("bombblast" + dep)._xscale = (eval ("bombblast" + dep)._yscale = 20);
eval ("bombblast" + dep)._x = this._x;
eval ("bombblast" + dep)._y = this._y - 10;
removeMovieClip(this);
}
if (((this._x > 700) || (this._x < 0)) || (this._y < 0)) {
removeMovieClip(this);
}
}
dep++;
};
}
}
}
function w1fire() {
if (_root.pauza == false) {
clearInterval(weapon1timer);
weapon1 = true;
}
}
function w3fire() {
if (_root.pauza == false) {
clearInterval(weapon3timer);
weapon3 = true;
}
}
function w4fire() {
clearInterval(weapon4timer);
weapon4 = true;
}
function bombfire() {
if (_root.pauza == false) {
clearInterval(bombtimer);
bombw = true;
}
}
function setEnemy() {
if (_root.pauza == false) {
clearInterval(enemytimer);
enemytimer = setInterval(setEnemy, 2000);
j = random(5);
if (j == 4) {
k = enemykind - 1;
if (k == 0) {
attachMovie("enemy" + k, "enemy" + edep, edep);
enemyArray.push(eval ("enemy" + edep));
eval ("enemy" + edep)._xscale = (eval ("enemy" + edep)._yscale = 50);
eval ("enemy" + edep).k = 0;
eval ("enemy" + edep).va = enemyArray.length - 1;
eval ("enemy" + edep).life = 4;
eval ("enemy" + edep).score = 10;
eval ("enemy" + edep)._x = (random(2) ? 720 : -20);
eval ("enemy" + edep)._y = 364;
eval ("enemy" + edep).Move = true;
if (eval ("enemy" + edep)._x == 720) {
eval ("enemy" + edep)._xscale = -50;
eval ("enemy" + edep).dir = "left";
eval ("enemy" + edep).x = -2;
} else {
eval ("enemy" + edep).dir = "right";
eval ("enemy" + edep).x = 2;
}
eval ("enemy" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
if (man._x > this._x) {
this._xscale = 50;
this.dir = "right";
this.x = 2;
} else {
this._xscale = -50;
this.dir = "left";
this.x = -2;
}
if (this.ft == undefined) {
this.f = random(60) + 60;
this.ft = 0;
}
this.ft++;
if ((this.ft == this.f) && (((man._x > this._x) && (this.dir == "right")) || ((man._x < this._x) && (this.dir == "left")))) {
this.Move = false;
this.gotoAndStop(2);
if (_root.pauza == false) {
this.ex = man._x - this._x;
this.ey = man._y - this._y;
}
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
this.arg = ((90 - this.er) * Math.PI) / 180;
attachMovie("bullet0", "bullet" + ebdep, ebdep);
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = this.er;
eval ("bullet" + ebdep).xinc = Math.sin(this.arg) * 4;
eval ("bullet" + ebdep).yinc = Math.cos(this.arg) * 4;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
ebdep++;
}
};
}
if (this.Move && (!_root.pauza)) {
this._x = this._x + this.x;
}
if ((this._x > 750) || (this._x < -50)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
}
};
}
if (k == 1) {
attachMovie("enemy" + k, "enemy" + edep, edep);
enemyArray.push(eval ("enemy" + edep));
trace(enemyArray);
eval ("enemy" + edep)._xscale = (eval ("enemy" + edep)._yscale = 50);
eval ("enemy" + edep).k = 1;
eval ("enemy" + edep).va = enemyArray.length - 1;
eval ("enemy" + edep).life = 6;
eval ("enemy" + edep).score = 15;
eval ("enemy" + edep)._x = (random(2) ? 720 : -20);
eval ("enemy" + edep)._y = 364;
eval ("enemy" + edep).Move = true;
if (eval ("enemy" + edep)._x == 720) {
eval ("enemy" + edep)._xscale = -50;
eval ("enemy" + edep).dir = "left";
eval ("enemy" + edep).x = -2;
} else {
eval ("enemy" + edep).dir = "right";
eval ("enemy" + edep).x = 2;
}
eval ("enemy" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
if (man._x > this._x) {
this._xscale = 50;
this.dir = "right";
this.x = 2;
} else {
this._xscale = -50;
this.dir = "left";
this.x = -2;
}
if (this.ft == undefined) {
this.f = random(60) + 60;
this.ft = 0;
}
this.ft++;
if ((this.ft == this.f) && (((man._x > this._x) && (this.dir == "right")) || ((man._x < this._x) && (this.dir == "left")))) {
this.Move = false;
this.gotoAndStop(2);
if (_root.pauza == false) {
this.ex = man._x - this._x;
this.ey = man._y - this._y;
}
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
s = this.er - 10;
while (s <= (this.er + 10)) {
attachMovie("bullet0", "bullet" + ebdep, ebdep);
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = s;
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep).arg = ((90 - s) / 180) * Math.PI;
eval ("bullet" + ebdep).xinc = Math.sin(eval ("bullet" + ebdep).arg) * 4;
eval ("bullet" + ebdep).yinc = Math.cos(eval ("bullet" + ebdep).arg) * 4;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
}
ebdep++;
};
s = s + 10;
}
}
if (this.Move && (!_root.pauza)) {
this._x = this._x + this.x;
}
if ((this._x > 750) || (this._x < -50)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
}
};
}
if (k == 2) {
attachMovie("enemy" + k, "enemy" + edep, edep);
enemyArray.push(eval ("enemy" + edep));
eval ("enemy" + edep)._xscale = (eval ("enemy" + edep)._yscale = 50);
eval ("enemy" + edep).k = 2;
eval ("enemy" + edep).va = enemyArray.length - 1;
eval ("enemy" + edep).life = 6;
eval ("enemy" + edep).score = 20;
eval ("enemy" + edep).gotoAndStop(6);
eval ("enemy" + edep)._x = random(550) + 75;
eval ("enemy" + edep)._y = -30;
eval ("enemy" + edep).drop = true;
eval ("enemy" + edep).y = 2;
eval ("enemy" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
if (this.ft == undefined) {
this.f = random(50) + 40;
this.ft = 0;
}
this.ft++;
if (this.drop) {
if (_root.pauza == false) {
this._y = this._y + this.y;
}
if (man._x > this._x) {
this._xscale = 50;
this.dir = "right";
this.x = 2;
} else {
this._xscale = -50;
this.dir = "left";
this.x = -2;
}
if (this.ft == this.f) {
if (_root.pauza == false) {
this.ex = man._x - this._x;
this.ey = man._y - this._y;
}
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
this.arg = ((90 - this.er) * Math.PI) / 180;
attachMovie("bullet0", "bullet" + ebdep, ebdep);
this.ft = undefined;
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = this.er;
eval ("bullet" + ebdep).xinc = Math.sin(this.arg) * 5;
eval ("bullet" + ebdep).yinc = Math.cos(this.arg) * 5;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
}
ebdep++;
};
}
if (this._y >= 364) {
this._y = 364;
this.Move = true;
this.gotoAndStop(1);
this.drop = false;
}
} else {
if (man._x > this._x) {
this._xscale = 50;
this.dir = "right";
this.x = 2;
} else {
this._xscale = -50;
this.dir = "left";
this.x = -2;
}
if (this.Move && (!_root.pauza)) {
this._x = this._x + this.x;
}
if ((this.ft == this.f) && (((man._x > this._x) && (this.dir == "right")) || ((man._x < this._x) && (this.dir == "left")))) {
this.Move = false;
this.gotoAndStop(2);
if (_root.pauza == false) {
this.ex = man._x - this._x;
this.ey = man._y - this._y;
}
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
this.arg = ((90 - this.er) * Math.PI) / 180;
attachMovie("bullet0", "bullet" + ebdep, ebdep);
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = this.er;
eval ("bullet" + ebdep).xinc = Math.sin(this.arg) * 4;
eval ("bullet" + ebdep).yinc = Math.cos(this.arg) * 4;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
}
ebdep++;
};
}
if ((this._x > 750) || (this._x < -50)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
}
}
};
}
edep++;
}
}
}
function setCopter() {
if (_root.pauza == false) {
clearInterval(coptertimer);
coptertimer = setInterval(setCopter, 8000);
j = random(2);
if (j == 1) {
k = enemykind - 1;
attachMovie("copter" + k, "copter" + edep, edep);
enemyArray.push(eval ("copter" + edep));
eval ("copter" + edep).k = 3;
eval ("copter" + edep).va = enemyArray.length - 1;
eval ("copter" + edep).life = 30;
eval ("copter" + edep).score = 50;
eval ("copter" + edep)._x = (random(2) ? 800 : -100);
eval ("copter" + edep)._y = random(40) + 40;
if (eval ("copter" + edep)._x == 800) {
eval ("copter" + edep).dir = "left";
eval ("copter" + edep).x = -2.5;
} else {
eval ("copter" + edep)._xscale = -100;
eval ("copter" + edep).dir = "right";
eval ("copter" + edep).x = 2;
}
if (k == 0) {
eval ("copter" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.x;
}
if (this.ft == undefined) {
this.f = random(70) + 70;
this.ft = 0;
}
this.ft++;
if (this.ft == this.f) {
this.ft = undefined;
attachMovie("bomberb", "bomberb" + ebdep, ebdep);
if (this.dir == "left") {
eval ("bomberb" + ebdep)._xscale = -100;
eval ("bomberb" + ebdep).x = -8;
} else {
eval ("bomberb" + ebdep).x = 8;
}
eval ("bomberb" + ebdep)._x = this._x;
eval ("bomberb" + ebdep)._y = this._y;
eval ("bomberb" + ebdep).px = man._x - eval ("bomberb" + ebdep)._x;
eval ("bomberb" + ebdep).py = man._y - eval ("bomberb" + ebdep)._y;
eval ("bomberb" + ebdep).p = man._y;
if (this.dir == "left") {
eval ("bomberb" + ebdep)._rotation = 180 + ((Math.atan2(eval ("bomberb" + ebdep).py, eval ("bomberb" + ebdep).px) * 180) / Math.PI);
eval ("bomberb" + ebdep).arg = ((270 + eval ("bomberb" + ebdep)._rotation) * Math.PI) / 180;
} else {
eval ("bomberb" + ebdep)._rotation = (Math.atan2(eval ("bomberb" + ebdep).py, eval ("bomberb" + ebdep).px) * 180) / Math.PI;
eval ("bomberb" + ebdep).arg = ((90 + eval ("bomberb" + ebdep)._rotation) * Math.PI) / 180;
}
eval ("bomberb" + ebdep).damage = 10;
eval ("bomberb" + ebdep).xinc = Math.sin(eval ("bomberb" + ebdep).arg) * 8;
eval ("bomberb" + ebdep).yinc = (-Math.cos(eval ("bomberb" + ebdep).arg)) * 8;
eval ("bomberb" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = this._x;
eval ("missileblast" + dep)._y = this._y + 10;
dep++;
removeMovieClip(this);
}
hitEnemy(this);
if (this._y > 364) {
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = this._x;
eval ("missileblast" + dep)._y = this._y + 10;
dep++;
removeMovieClip(this);
}
}
ebdep++;
};
}
if ((this._x > 850) || (this._x < -150)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
};
}
if (k == 1) {
eval ("copter" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.x;
if (this.ft == undefined) {
this.f = random(70) + 70;
this.ft = 0;
}
if (this.ft1 == undefined) {
this.f1 = 60;
this.ft1 = 0;
}
this.ft++;
this.ft1++;
if (this.ft1 == this.f1) {
this.ft1 = undefined;
this.ex = man._x - this._x;
this.ey = man._y - this._y;
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
this.arg = ((90 + this.er) * Math.PI) / 180;
attachMovie("bullet0", "bullet" + ebdep, ebdep);
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = this.er;
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep).xinc = Math.sin(this.arg) * 6;
eval ("bullet" + ebdep).yinc = (-Math.cos(this.arg)) * 6;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if (this._y > 364) {
removeMovieClip(this);
}
}
ebdep++;
};
}
}
if (this.ft == this.f) {
this.ft = undefined;
attachMovie("bomberb", "bomberb" + ebdep, ebdep);
if (this.dir == "left") {
eval ("bomberb" + ebdep)._xscale = -100;
eval ("bomberb" + ebdep).x = -8;
} else {
eval ("bomberb" + ebdep).x = 8;
}
eval ("bomberb" + ebdep)._x = this._x;
eval ("bomberb" + ebdep)._y = this._y;
eval ("bomberb" + ebdep).px = man._x - eval ("bomberb" + ebdep)._x;
eval ("bomberb" + ebdep).py = man._y - eval ("bomberb" + ebdep)._y;
eval ("bomberb" + ebdep).p = man._y;
if (this.dir == "left") {
eval ("bomberb" + ebdep)._rotation = 180 + ((Math.atan2(eval ("bomberb" + ebdep).py, eval ("bomberb" + ebdep).px) * 180) / Math.PI);
eval ("bomberb" + ebdep).arg = ((270 + eval ("bomberb" + ebdep)._rotation) * Math.PI) / 180;
} else {
eval ("bomberb" + ebdep)._rotation = (Math.atan2(eval ("bomberb" + ebdep).py, eval ("bomberb" + ebdep).px) * 180) / Math.PI;
eval ("bomberb" + ebdep).arg = ((90 + eval ("bomberb" + ebdep)._rotation) * Math.PI) / 180;
}
eval ("bomberb" + ebdep).damage = 10;
eval ("bomberb" + ebdep).xinc = Math.sin(eval ("bomberb" + ebdep).arg) * 8;
eval ("bomberb" + ebdep).yinc = (-Math.cos(eval ("bomberb" + ebdep).arg)) * 8;
eval ("bomberb" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = this._x;
eval ("missileblast" + dep)._y = this._y + 10;
dep++;
removeMovieClip(this);
}
hitEnemy(this);
if (this._y > 364) {
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = this._x;
eval ("missileblast" + dep)._y = this._y + 10;
dep++;
removeMovieClip(this);
}
}
ebdep++;
};
}
if ((this._x > 850) || (this._x < -150)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
};
}
if (k == 2) {
eval ("copter" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.x;
if (this.ft == undefined) {
this.f = random(70) + 70;
this.ft = 0;
}
if (this.ft1 == undefined) {
this.f1 = 50;
this.ft1 = 0;
}
this.ft++;
this.ft1++;
if (this.ft1 == this.f1) {
this.ft1 = undefined;
this.ex = man._x - this._x;
this.ey = man._y - this._y;
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
this.arg = ((90 + this.er) * Math.PI) / 180;
s = this.er - 10;
while (s <= (this.er + 10)) {
attachMovie("bullet0", "bullet" + ebdep, ebdep);
eval ("bullet" + ebdep).arg = ((90 + s) / 180) * Math.PI;
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = s;
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep).xinc = Math.sin(eval ("bullet" + ebdep).arg) * 6;
eval ("bullet" + ebdep).yinc = (-Math.cos(eval ("bullet" + ebdep).arg)) * 6;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if (this._y > 364) {
removeMovieClip(this);
}
}
ebdep++;
};
s = s + 10;
}
}
if (this.ft == this.f) {
this.ft = undefined;
attachMovie("bomberb", "bomberb" + ebdep, ebdep);
if (this.dir == "left") {
eval ("bomberb" + ebdep)._xscale = -100;
eval ("bomberb" + ebdep).x = -8;
} else {
eval ("bomberb" + ebdep).x = 8;
}
eval ("bomberb" + ebdep)._x = this._x;
eval ("bomberb" + ebdep)._y = this._y;
eval ("bomberb" + ebdep).px = man._x - eval ("bomberb" + ebdep)._x;
eval ("bomberb" + ebdep).py = man._y - eval ("bomberb" + ebdep)._y;
eval ("bomberb" + ebdep).p = man._y;
if (this.dir == "left") {
eval ("bomberb" + ebdep)._rotation = 180 + ((Math.atan2(eval ("bomberb" + ebdep).py, eval ("bomberb" + ebdep).px) * 180) / Math.PI);
eval ("bomberb" + ebdep).arg = ((270 + eval ("bomberb" + ebdep)._rotation) * Math.PI) / 180;
} else {
eval ("bomberb" + ebdep)._rotation = (Math.atan2(eval ("bomberb" + ebdep).py, eval ("bomberb" + ebdep).px) * 180) / Math.PI;
eval ("bomberb" + ebdep).arg = ((90 + eval ("bomberb" + ebdep)._rotation) * Math.PI) / 180;
}
eval ("bomberb" + ebdep).damage = 10;
eval ("bomberb" + ebdep).xinc = Math.sin(eval ("bomberb" + ebdep).arg) * 8;
eval ("bomberb" + ebdep).yinc = (-Math.cos(eval ("bomberb" + ebdep).arg)) * 8;
eval ("bomberb" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
if (_root.sunet == true) {
mineSound.start(0, 1);
}
attachMovie("missileblast", "missileblast" + dep, dep);
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = this._x;
eval ("missileblast" + dep)._y = this._y + 10;
dep++;
removeMovieClip(this);
}
hitEnemy(this);
if (this._y > 364) {
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = this._x;
eval ("missileblast" + dep)._y = this._y + 10;
removeMovieClip(this);
}
}
ebdep++;
};
}
}
if ((this._x > 850) || (this._x < -150)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
};
}
edep++;
}
}
}
function setItem() {
if (_root.pauza == false) {
clearInterval(itemtimer);
itemtimer = setInterval(setItem, 15000);
j = random(3);
if (j == 2) {
k = random(6);
attachMovie("item" + k, "item" + edep, edep);
itemArray.push(eval ("item" + edep));
eval ("item" + edep)._x = random(600) + 50;
eval ("item" + edep)._y = -20;
eval ("item" + edep).y = 2;
eval ("item" + edep).va = k;
eval ("item" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
this._y = this._y + this.y;
}
if (this._y > 364) {
this.y = 0;
this.gotoAndStop(2);
this._y = 354;
}
if (this.hitTest(topb0)) {
this.y = 0;
this.gotoAndStop(2);
}
if (this.hitTest(topb1)) {
this.y = 0;
this.gotoAndStop(2);
}
if (this.hitTest(topb2)) {
this.y = 0;
this.gotoAndStop(2);
}
if (this.hitTest(man)) {
if (_root.sunet == true) {
itemSound.start(0, 1);
}
if (this.va == 0) {
gun1 = gun1 + 50;
} else if (this.va == 1) {
gun2 = gun2 + 50;
} else if (this.va == 2) {
gun3 = gun3 + 10;
} else if (this.va == 3) {
gun4 = gun4 + 10;
} else if (this.va == 4) {
bomb = bomb + 10;
} else if (this.va == 5) {
life = life + 20;
if (life >= 100) {
life = 100;
}
}
removeMovieClip(this);
}
};
edep++;
}
}
}
function isLost() {
if (_root.pauza == false) {
if (life <= 0) {
life = 0;
man.gotoAndStop(4);
backSound.stop();
if (_root.sunet == true) {
loseSound.start(0, 1);
}
delete man.onEnterFrame;
Key.removeListener(_root);
Mouse.show();
removeMovieClip(aim);
al = enemyArray.length;
i = 0;
while (i < al) {
removeMovieClip(enemyArray[i]);
i++;
}
il = itemArray.length;
j = 0;
while (j < il) {
removeMovieClip(itemArray[j]);
j++;
}
k = 0;
while (k < 30) {
removeMovieClip(_root["bullet" + (ebdep - k)]);
removeMovieClip(_root["bullet" + (dep - k)]);
k++;
}
delete onMouseDown;
delete onMouseUp;
clearInterval(enemytimer);
clearInterval(coptertimer);
clearInterval(itemtimer);
gotoAndStop (191);
}
}
}
function isWiner() {
if (_root.pauza == false) {
life = 0;
man.gotoAndStop(4);
backSound.stop();
if (_root.sunet == true) {
loseSound.start(0, 1);
}
delete man.onEnterFrame;
Key.removeListener(_root);
Mouse.show();
removeMovieClip(aim);
al = enemyArray.length;
i = 0;
while (i < al) {
removeMovieClip(enemyArray[i]);
i++;
}
il = itemArray.length;
j = 0;
while (j < il) {
removeMovieClip(itemArray[j]);
j++;
}
k = 0;
while (k < 30) {
removeMovieClip(_root["bullet" + (ebdep - k)]);
removeMovieClip(_root["bullet" + (dep - k)]);
k++;
}
delete onMouseDown;
delete onMouseUp;
clearInterval(enemytimer);
clearInterval(coptertimer);
clearInterval(itemtimer);
gotoAndStop (192);
}
}
function callpolice() {
if (_root.pauza == false) {
carp.onEnterFrame = function () {
this._x = this._x + 8;
if (this._x >= 80) {
this._x = 80;
callcarp();
}
};
}
}
function callcarp() {
if (_root.pauza == false) {
clearInterval(carptimer);
carp.gotoAndPlay(2);
carp.onEnterFrame = function () {
if (this.man) {
carptimer = setInterval(callcarp, 8000);
i = 0;
while (i < 2) {
attachMovie("enemy0", "enemy" + edep, edep);
enemyArray.push(eval ("enemy" + edep));
eval ("enemy" + edep)._xscale = (eval ("enemy" + edep)._yscale = 50);
eval ("enemy" + edep).k = 0;
eval ("enemy" + edep).va = enemyArray.length - 1;
eval ("enemy" + edep).life = 4;
eval ("enemy" + edep).score = 10;
eval ("enemy" + edep)._x = 60 + (i * 30);
eval ("enemy" + edep)._y = 364;
eval ("enemy" + edep).Move = true;
eval ("enemy" + edep).dir = "right";
eval ("enemy" + edep).x = 2;
eval ("enemy" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
if (man._x > this._x) {
this._xscale = 50;
this.dir = "right";
this.x = 2;
} else {
this._xscale = -50;
this.dir = "left";
this.x = -2;
}
if (this.ft == undefined) {
this.f = random(60) + 60;
this.ft = 0;
}
this.ft++;
if ((this.ft == this.f) && (((man._x > this._x) && (this.dir == "right")) || ((man._x < this._x) && (this.dir == "left")))) {
this.Move = false;
this.gotoAndStop(2);
this.ex = man._x - this._x;
this.ey = man._y - this._y;
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
this.arg = ((90 - this.er) * Math.PI) / 180;
attachMovie("bullet0", "bullet" + ebdep, ebdep);
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = this.er;
eval ("bullet" + ebdep).xinc = Math.sin(this.arg) * 4;
eval ("bullet" + ebdep).yinc = Math.cos(this.arg) * 4;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
}
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
};
ebdep++;
}
if (this.Move && (!_root.pauza)) {
this._x = this._x + this.x;
}
if ((this._x > 750) || (this._x < -50)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
}
};
edep++;
i++;
}
delete this.onEnterFrame;
}
};
}
}
function carpout() {
if (_root.pauza == false) {
carp.onEnterFrame = function () {
this._x = this._x - 8;
if (this._x <= -80) {
this._x = -80;
this.swapDepths(33000);
removeMovieClip(this);
}
};
}
}
function callfbi() {
if (_root.pauza == false) {
carf.onEnterFrame = function () {
this._x = this._x + 8;
if (this._x >= 80) {
this._x = 80;
callcarf();
}
};
}
}
function callcarf() {
if (_root.pauza == false) {
clearInterval(carftimer);
carf.gotoAndPlay(2);
carf.onEnterFrame = function () {
if (this.man) {
carftimer = setInterval(callcarf, 8000);
attachMovie("enemy1", "enemy" + edep, edep);
enemyArray.push(eval ("enemy" + edep));
eval ("enemy" + edep)._xscale = (eval ("enemy" + edep)._yscale = 50);
eval ("enemy" + edep).k = 1;
eval ("enemy" + edep).va = enemyArray.length - 1;
eval ("enemy" + edep).life = 6;
eval ("enemy" + edep).score = 15;
eval ("enemy" + edep)._x = 65;
eval ("enemy" + edep)._y = 364;
eval ("enemy" + edep).Move = true;
eval ("enemy" + edep).dir = "right";
eval ("enemy" + edep).x = 2;
eval ("enemy" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
if (man._x > this._x) {
this._xscale = 50;
this.dir = "right";
this.x = 2;
} else {
this._xscale = -50;
this.dir = "left";
this.x = -2;
}
if (this.ft == undefined) {
this.f = random(60) + 60;
this.ft = 0;
}
this.ft++;
if ((this.ft == this.f) && (((man._x > this._x) && (this.dir == "right")) || ((man._x < this._x) && (this.dir == "left")))) {
this.Move = false;
this.gotoAndStop(2);
if (_root.pauza == false) {
this.ex = man._x - this._x;
this.ey = man._y - this._y;
}
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
s = this.er - 10;
while (s <= (this.er + 10)) {
attachMovie("bullet0", "bullet" + ebdep, ebdep);
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = s;
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep).arg = ((90 - s) / 180) * Math.PI;
eval ("bullet" + ebdep).xinc = Math.sin(eval ("bullet" + ebdep).arg) * 4;
eval ("bullet" + ebdep).yinc = Math.cos(eval ("bullet" + ebdep).arg) * 4;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
}
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
};
ebdep++;
s = s + 10;
}
}
}
if (this.Move && (!_root.pauza)) {
this._x = this._x + this.x;
}
if ((this._x > 750) || (this._x < -50)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
};
edep++;
delete this.onEnterFrame;
}
};
}
}
function carfout() {
if (_root.pauza == false) {
carf.onEnterFrame = function () {
this._x = this._x - 8;
if (this._x <= -80) {
this._x = -80;
this.swapDepths(33000);
removeMovieClip(this);
}
};
}
}
function callfh() {
if (_root.pauza == false) {
carfh.onEnterFrame = function () {
this._x = this._x + 8;
if (this._x >= 150) {
this._x = 150;
callcarfh();
}
};
}
}
function callcarfh() {
if (_root.pauza == false) {
clearInterval(carfhtimer);
carfh.gotoAndPlay(2);
carfh.onEnterFrame = function () {
if (this.man) {
carfhtimer = setInterval(callcarfh, 8000);
attachMovie("enemy2", "enemy" + edep, edep);
enemyArray.push(eval ("enemy" + edep));
eval ("enemy" + edep)._xscale = (eval ("enemy" + edep)._yscale = 50);
eval ("enemy" + edep).k = 2;
eval ("enemy" + edep).va = enemyArray.length - 1;
eval ("enemy" + edep).life = 6;
eval ("enemy" + edep).score = 20;
eval ("enemy" + edep)._x = 40;
eval ("enemy" + edep)._y = 364;
eval ("enemy" + edep).x = 2;
eval ("enemy" + edep).dir = "right";
eval ("enemy" + edep).Move = true;
eval ("enemy" + edep).onEnterFrame = function () {
if (_root.pauza == false) {
if (man._x > this._x) {
this._xscale = 50;
this.dir = "right";
this.x = 2;
} else {
this._xscale = -50;
this.dir = "left";
this.x = -2;
}
if (this.ft == undefined) {
this.f = random(50) + 50;
this.ft = 0;
}
this.ft++;
if (this.Move && (!_root.pauza)) {
this._x = this._x + this.x;
}
if ((this.ft == this.f) && (((man._x > this._x) && (this.dir == "right")) || ((man._x < this._x) && (this.dir == "left")))) {
this.Move = false;
this.gotoAndStop(2);
this.ex = man._x - this._x;
this.ey = man._y - this._y;
this.er = (Math.atan2(this.ey, this.ex) * 180) / Math.PI;
this.arg = ((90 - this.er) * Math.PI) / 180;
attachMovie("bullet0", "bullet" + ebdep, ebdep);
eval ("bullet" + ebdep).damage = 5;
eval ("bullet" + ebdep)._x = this._x;
eval ("bullet" + ebdep)._y = this._y;
eval ("bullet" + ebdep)._rotation = this.er;
eval ("bullet" + ebdep).xinc = Math.sin(this.arg) * 4;
eval ("bullet" + ebdep).yinc = Math.cos(this.arg) * 4;
eval ("bullet" + ebdep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
}
if (this.hitTest(man)) {
life = life - this.damage;
isLost();
removeMovieClip(this);
}
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
ebdep++;
};
}
}
if ((this._x > 750) || (this._x < -50)) {
temp = this.va;
enemyArray.splice(this.va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(this);
}
};
edep++;
delete this.onEnterFrame;
}
};
}
}
function carfhout() {
if (_root.pauza == false) {
carfh.onEnterFrame = function () {
this._x = this._x - 8;
if (this._x <= -180) {
this._x = -180;
this.swapDepths(33000);
removeMovieClip(this);
}
};
}
}
function ShowLevel() {
if (_root.pauza == false) {
attachMovie("showlevel", "showl", 40000);
showl._x = 350;
showl._y = 200;
showl.level = level;
removetimer = setInterval(removeSl, 2500);
}
}
function removeSl() {
if (_root.pauza == false) {
clearInterval(removetimer);
removeMovieClip(showl);
}
}
function hitEnemy(bullet) {
if (_root.pauza == false) {
eb = enemyArray.length;
while ((--eb) > -1) {
if (bullet.hitTest(enemyArray[eb]) && (enemyArray[eb].k != 3)) {
if (_root.sunet == true) {
mineSound.start(0, 1);
}
attachMovie("missileblast", "missileblast" + dep, dep);
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = bullet._x;
eval ("missileblast" + dep)._y = bullet._y + 10;
dep++;
if (enemyArray[eb].k == 2) {
if (_root.sunet == true) {
_root["dieSound" + random(2)].start(0, 1);
}
enemyArray[eb].gotoAndStop(1);
enemyArray[eb]._rotation = enemyArray[eb]._rotation + 90;
enemyArray[eb].onEnterFrame = function () {
if (_root.pauza == false) {
this._y = this._y + 10;
if (this._y >= 364) {
this._rotation = this._rotation - 90;
this._y = 374;
this.gotoAndStop(5);
delete this.onEnterFrame;
}
}
};
} else {
if (_root.sunet == true) {
_root["dieSound" + random(2)].start(0, 1);
}
delete enemyArray[eb].onEnterFrame;
enemyArray[eb].gotoAndStop(random(2) + 3);
}
temp = enemyArray[eb].va;
enemyArray.splice(enemyArray[eb].va, 1);
el = enemyArray.length;
i = 0;
while (i < el) {
if (i >= temp) {
enemyArray[i].va = enemyArray[i].va - 1;
}
i++;
}
removeMovieClip(bullet);
}
}
}
}
stop();
_root.pauza = false;
_root.sunet = true;
_root.pau._visible = false;
dep = 0;
level = 1;
score = 0;
jumptimes = 0;
manControl = true;
weapon = 1;
weapon1 = true;
bombw = true;
life = 100;
gun1 = 100;
gun2 = 200;
gun3 = 30;
gun4 = 20;
bomb = 20;
Mouse.hide();
attachMovie("aim", "aim", 10000);
aim._xscale = (aim._yscale = 50);
man.onEnterFrame = function () {
if (_root.pauza == false) {
aim._x = _xmouse;
aim._y = _ymouse;
if (manControl) {
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
x = _xmouse - this._x;
y = _ymouse - this._y;
r = (Math.atan2(y, x) * 180) / Math.PI;
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
if (_xmouse > this._x) {
this._xscale = 50;
this.gun._rotation = r;
} else {
this._xscale = -50;
this.gun._rotation = 180 - r;
}
if (Key.isDown(65) && (!KeyCtrl)) {
if (!jump) {
if (((this.xmax < (topb0Bounds.xMin + (this._width / 2))) && (this.ymax < (topb0Bounds.yMin + 5))) && (this.hitTest(topb0))) {
jump = true;
jumptimes = 2;
drop = true;
yspeed = -10;
}
if (((this.xmax < (topb1Bounds.xMin + (this._width / 2))) && (this.ymax < (topb1Bounds.yMin + 5))) && (this.hitTest(topb1))) {
jump = true;
jumptimes = 2;
drop = true;
yspeed = -10;
}
if (this.hitTest(topb2)) {
if ((this.xmax < (topb2Bounds.xMin + (this._width / 2))) && (this.ymax < (topb2Bounds.yMin + 5))) {
jump = true;
jumptimes = 2;
drop = true;
yspeed = -10;
}
}
this.gotoAndStop(3);
}
this._x = this._x - 4;
KeyA = true;
} else {
KeyA = false;
}
if (Key.isDown(68) && (!KeyCtrl)) {
if (!jump) {
if (((this.xmin > (topb0Bounds.xMax - (this._width / 2))) && (this.ymax < (topb0Bounds.yMin + 5))) && (this.hitTest(topb0))) {
jump = true;
jumptimes = 2;
drop = true;
yspeed = -10;
}
if (((this.xmin > (topb1Bounds.xMax - (this._width / 2))) && (this.ymax < (topb1Bounds.yMin + 5))) && (this.hitTest(topb1))) {
jump = true;
jumptimes = 2;
drop = true;
yspeed = -10;
}
if (((this.xmin > (topb2Bounds.xMax - (this._width / 2))) && (this.ymax < (topb2Bounds.yMin + 5))) && (this.hitTest(topb2))) {
jump = true;
jumptimes = 2;
drop = true;
yspeed = -10;
}
this.gotoAndStop(3);
}
this._x = this._x + 4;
KeyD = true;
} else {
KeyD = false;
}
if (Key.isDown(17) && (!jump)) {
this.gotoAndStop(2);
KeyCtrl = true;
} else {
KeyCtrl = false;
}
if (Key.isDown(87)) {
if ((jumptimes < 2) && (jt == undefined)) {
this.gotoAndStop(5);
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
jt = 1;
jumptimes++;
jump = true;
yspeed = 10;
maxfall = -10;
}
}
if (Key.isDown(69) || (Key.isDown(83))) {
if ((((this._x > (stair0._x - 5)) && (this._x < (stair0._x + 5))) && (this.ymax > stair0Bounds.yMin)) && (this.ymin < stair0Bounds.yMax)) {
jump = false;
this.gotoAndStop(1);
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
climb = true;
}
if ((((this._x > (stair1._x - 5)) && (this._x < (stair1._x + 5))) && (this.ymax > stair1Bounds.yMin)) && (this.ymin < stair1Bounds.yMax)) {
jump = false;
this.gotoAndStop(1);
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
climb = true;
}
if ((((this._x > (stair2._x - 5)) && (this._x < (stair2._x + 5))) && (this.ymax > stair2Bounds.yMin)) && (this.ymin < stair2Bounds.yMax)) {
jump = false;
this.gotoAndStop(1);
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
climb = true;
}
}
if (climb) {
if (this.hitTest(stair0)) {
if ((((this._x > (stair0._x - 5)) && (this._x < (stair0._x + 5))) && (this.ymax > (stair0Bounds.yMin + 2))) && (this.ymin < stair0Bounds.yMax)) {
if (Key.isDown(69)) {
this._y = this._y - 2;
} else if (Key.isDown(83)) {
this._y = this._y + 2;
} else {
yspeed = -10;
jump = true;
jumptimes = 2;
drop = true;
climb = false;
}
} else {
yspeed = -10;
jump = true;
jumptimes = 2;
drop = true;
climb = false;
}
}
if (this.hitTest(stair1)) {
if ((((this._x > (stair1._x - 5)) && (this._x < (stair1._x + 5))) && (this.ymax > (stair1Bounds.yMin + 2))) && (this.ymin < stair1Bounds.yMax)) {
if (Key.isDown(69)) {
this._y = this._y - 2;
} else if (Key.isDown(83)) {
this._y = this._y + 2;
} else {
yspeed = -10;
jump = true;
jumptimes = 2;
drop = true;
climb = false;
}
} else {
yspeed = -10;
jump = true;
jumptimes = 2;
drop = true;
climb = false;
}
}
if (this.hitTest(stair2)) {
if ((((this._x > (stair2._x - 5)) && (this._x < (stair2._x + 5))) && (this.ymax > (stair2Bounds.yMin + 2))) && (this.ymin < stair2Bounds.yMax)) {
if (Key.isDown(69)) {
this._y = this._y - 2;
} else if (Key.isDown(83)) {
this._y = this._y + 2;
} else {
yspeed = -10;
jump = true;
jumptimes = 2;
drop = true;
climb = false;
}
} else {
yspeed = -10;
jump = true;
jumptimes = 2;
drop = true;
climb = false;
}
}
}
if ((((!KeyA) && (!KeyD)) && (!KeyCtrl)) && (!jump)) {
this.gotoAndStop(1);
}
if (jump) {
if (maxfall < yspeed) {
yspeed--;
}
this._y = this._y - yspeed;
if (((((this.ymax > topb0Bounds.yMin) && (this._y < topb0._y)) && (this.xmax > (topb0Bounds.xMin + (this._width / 2)))) && (this.xmin < (topb0Bounds.xMax - (this._width / 2)))) && (yspeed < -5)) {
this.gotoAndStop(1);
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
jumptimes = 0;
jump = false;
yspeed = 10;
this._y = (topb0Bounds.yMin - (this._height / 2)) + 3;
}
if (((((this.ymax > topb1Bounds.yMin) && (this._y < topb1._y)) && (this.xmax > (topb1Bounds.xMin + (this._width / 2)))) && (this.xmin < (topb1Bounds.xMax - (this._width / 2)))) && (yspeed < -5)) {
this.gotoAndStop(1);
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
jumptimes = 0;
jump = false;
yspeed = 10;
this._y = (topb1Bounds.yMin - (this._height / 2)) + 3;
}
if (((((this.ymax > topb2Bounds.yMin) && (this._y < topb2._y)) && (this.xmax > (topb2Bounds.xMin + (this._width / 2)))) && (this.xmin < (topb2Bounds.xMax - (this._width / 2)))) && (yspeed < -5)) {
this.gotoAndStop(1);
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
jumptimes = 0;
jump = false;
yspeed = 10;
this._y = (topb2Bounds.yMin - (this._height / 2)) + 3;
}
if (!drop) {
manBounds = this.manjump.getBounds(this);
this.gun._y = manBounds.yMin + 35;
}
if (this._y > 365) {
this._y = 365;
jumptimes = 0;
drop = false;
jump = false;
this.gotoAndStop(1);
if (weapon == 1) {
this.gun.gotoAndStop(1);
} else if (weapon == 2) {
this.gun.gotoAndStop(2);
} else if (weapon == 3) {
this.gun.gotoAndStop(3);
} else if (weapon == 4) {
this.gun.gotoAndStop(4);
}
}
}
if ((fire && (weapon == 2)) && (gun2 > 0)) {
if ((dep % 3) == 0) {
if (_root.sunet == true) {
mgunSound.start(0, 1);
}
}
if ((dep % 6) == 0) {
gun2--;
arg = ((90 - r) * Math.PI) / 180;
attachMovie("bullet0", "bullet" + dep, dep);
eval ("bullet" + dep).damage = 2;
eval ("bullet" + dep)._x = man._x;
eval ("bullet" + dep)._y = man._y;
eval ("bullet" + dep)._rotation = r;
eval ("bullet" + dep).xinc = Math.sin(arg) * 10;
eval ("bullet" + dep).yinc = Math.cos(arg) * 10;
eval ("bullet" + dep).onEnterFrame = function () {
if (_root.pauza == false) {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
}
}
shoot(this);
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
};
}
dep++;
}
if (dep >= 100) {
dep = 0;
}
}
}
};
stair0Bounds = stair0.getBounds(_root);
stair1Bounds = stair1.getBounds(_root);
stair2Bounds = stair2.getBounds(_root);
topb0Bounds = topb0.getBounds(_root);
topb1Bounds = topb1.getBounds(_root);
topb2Bounds = topb2.getBounds(_root);
Key.addListener(this);
onKeyUp = function () {
if (_root.pauza == false) {
if (Key.getCode() == 87) {
jt = undefined;
}
}
};
onKeyDown = function () {
if (_root.pauza == false) {
trace(Key.getCode());
switch (Key.getCode()) {
case 49 :
weapon = 1;
if (weapon1 == undefined) {
weapon1 = true;
}
man.gun.gotoAndStop(1);
break;
case 50 :
weapon = 2;
if (weapon2 == undefined) {
weapon2 = true;
}
man.gun.gotoAndStop(2);
break;
case 51 :
weapon = 3;
if (weapon3 == undefined) {
weapon3 = true;
}
man.gun.gotoAndStop(3);
break;
case 52 :
weapon = 4;
if (weapon4 == undefined) {
weapon4 = true;
}
man.gun.gotoAndStop(4);
break;
case 81 :
tossBomb();
}
}
};
onMouseDown = function () {
if (_root.pauza == false) {
arg = ((90 - r) * Math.PI) / 180;
if (((weapon == 1) && (weapon1)) && (gun1 > 0)) {
if (_root.sunet == true) {
mgunSound.start(0, 1);
}
gun1--;
weapon1 = false;
weapon1timer = setInterval(w1fire, 200);
attachMovie("bullet0", "bullet" + dep, dep);
eval ("bullet" + dep).damage = 2;
eval ("bullet" + dep)._x = man._x;
eval ("bullet" + dep)._y = man._y;
eval ("bullet" + dep)._rotation = r;
eval ("bullet" + dep).xinc = Math.sin(arg) * 10;
eval ("bullet" + dep).yinc = Math.cos(arg) * 10;
eval ("bullet" + dep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
shoot(this);
if ((((this._x > 700) || (this._x < 0)) || (this._y < 0)) || (this._y > 380)) {
removeMovieClip(this);
}
}
dep++;
};
}
if (weapon == 2) {
man.gun.machinegun.gotoAndPlay(2);
fire = true;
}
if (((weapon == 3) && (weapon3)) && (gun3 > 0)) {
if (_root.sunet == true) {
w3Sound.start(0, 1);
}
gun3--;
weapon3 = false;
weapon3timer = setInterval(w3fire, 1000);
attachMovie("bullet1", "bullet" + dep, dep);
eval ("bullet" + dep).damage = 20;
eval ("bullet" + dep).weapon = 3;
eval ("bullet" + dep)._x = man._x;
eval ("bullet" + dep)._y = man._y;
eval ("bullet" + dep)._rotation = r;
eval ("bullet" + dep).xinc = Math.sin(arg) * 10;
eval ("bullet" + dep).yinc = Math.cos(arg) * 10;
eval ("bullet" + dep).onEnterFrame = function () {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
}
shoot(this);
if (this._y > 380) {
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = this._x;
eval ("missileblast" + dep)._y = this._y - 10;
removeMovieClip(this);
}
if (((this._x > 700) || (this._x < 0)) || (this._y < 0)) {
removeMovieClip(this);
}
};
dep++;
}
if (((weapon == 4) && (weapon4)) && (gun4 > 0)) {
if (_root.sunet == true) {
w4Sound.start(0, 1);
}
gun4--;
weapon4 = false;
weapon4timer = setInterval(w4fire, 1500);
attachMovie("bullet2", "bullet" + dep, dep);
eval ("bullet" + dep).damage = 30;
eval ("bullet" + dep).weapon = 4;
eval ("bullet" + dep)._x = man._x;
eval ("bullet" + dep)._y = man._y;
eval ("bullet" + dep)._rotation = r;
eval ("bullet" + dep).xinc = Math.sin(arg) * 10;
eval ("bullet" + dep).yinc = Math.cos(arg) * 10;
eval ("bullet" + dep).onEnterFrame = function () {
if (_root.pauza == false) {
if (_root.pauza == false) {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
}
shoot(this);
if (this._y > 380) {
attachMovie("missileblast", "missileblast" + dep, dep);
if (_root.sunet == true) {
mineSound.start(0, 1);
}
eval ("missileblast" + dep)._xscale = (eval ("missileblast" + dep)._yscale = 20);
eval ("missileblast" + dep)._x = this._x;
eval ("missileblast" + dep)._y = this._y - 10;
removeMovieClip(this);
}
if (((this._x > 700) || (this._x < 0)) || (this._y < 0)) {
removeMovieClip(this);
}
}
dep++;
};
}
}
};
onMouseUp = function () {
if (_root.pauza == false) {
if (weapon == 2) {
man.gun.machinegun.gotoAndStop(1);
fire = false;
}
}
};
enemykind = 1;
edep = 200;
ebdep = 1000;
enemyArray = new Array();
enemytimer = setInterval(setEnemy, 2000);
coptertimer = setInterval(setCopter, 8000);
itemtimer = setInterval(setItem, 15000);
itemArray = new Array();
callpolice();
ShowLevel();
Instance of Symbol 526 MovieClip "theMeniu" in Frame 190
//component parameters
onClipEvent (construct) {
wxnume = "SwatAttack";
wxaliniere = "Dreapta-Sus";
wxculoare = 5669450 /* 0x56824A */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
onClipEvent (load) {
this.swapDepths(100000);
}
Instance of Symbol 531 MovieClip "pau" in Frame 190
onClipEvent (load) {
this.swapDepths(100001);
}
Frame 191
_root.theMeniu.removeMovieClip();
stop();
lastscore = score;
lastlevel = level;
Instance of Symbol 390 MovieClip in Frame 191
//component parameters
onClipEvent (construct) {
wynume = "SwatAttack";
wyculoare = 2705232 /* 0x294750 */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Jos";
wyinstructions = false;
}
Frame 192
_root.theMeniu.removeMovieClip();
stop();
lastscore = score;
lastlevel = level;
Frame 194
_root.theMeniu.removeMovieClip();
_root.pau.removeMovieClip();
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
Frame 195
_root.menu.removeMovieClip();
_root.gameid = "SwatAttack";
_root.best = _root.score;
_root.score = 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 197
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 198
if (false) {
}
Frame 205
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 209
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 210
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 13 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((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 || (!_local16)) {
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 _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 26 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 35 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 44 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 45 MovieClip [UpArrow] Frame 1
stop();
Symbol 45 MovieClip [UpArrow] Frame 2
stop();
Symbol 45 MovieClip [UpArrow] Frame 3
stop();
Symbol 51 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 60 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 65 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 66 MovieClip [ScrollThumb] Frame 1
stop();
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, "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 90 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 91 MovieClip [DownArrow] Frame 1
stop();
Symbol 91 MovieClip [DownArrow] Frame 2
stop();
Symbol 91 MovieClip [DownArrow] Frame 3
stop();
Symbol 99 MovieClip [pblast] Frame 8
removeMovieClip(this);
Symbol 108 MovieClip [missileblast] Frame 10
removeMovieClip(this);
Symbol 114 MovieClip [bombblast] Frame 7
removeMovieClip(this);
Symbol 123 MovieClip Frame 11
_parent.Move = true;
_parent.ft = undefined;
_parent.gotoAndStop(1);
Symbol 136 MovieClip Frame 9
stop();
Symbol 138 MovieClip Frame 27
removeMovieClip(_parent);
Symbol 144 MovieClip Frame 21
removeMovieClip(_parent);
Symbol 146 MovieClip Frame 13
removeMovieClip(_parent);
Symbol 150 MovieClip Frame 1
Symbol 151 MovieClip [enemy2] Frame 1
stop();
Symbol 151 MovieClip [enemy2] Frame 2
stop();
Symbol 151 MovieClip [enemy2] Frame 3
stop();
Symbol 151 MovieClip [enemy2] Frame 4
stop();
Symbol 151 MovieClip [enemy2] Frame 5
stop();
Symbol 151 MovieClip [enemy2] Frame 6
stop();
Symbol 160 MovieClip Frame 15
_parent.Move = true;
_parent.ft = undefined;
_parent.gotoAndStop(1);
Symbol 166 MovieClip Frame 21
removeMovieClip(_parent);
Symbol 173 MovieClip Frame 27
removeMovieClip(_parent);
Symbol 174 MovieClip [enemy1] Frame 1
trace("cale: " + this);
stop();
Symbol 174 MovieClip [enemy1] Frame 2
stop();
Symbol 174 MovieClip [enemy1] Frame 3
stop();
Symbol 174 MovieClip [enemy1] Frame 4
stop();
Symbol 183 MovieClip Frame 14
_parent.Move = true;
_parent.ft = undefined;
_parent.gotoAndStop(1);
Symbol 189 MovieClip Frame 31
removeMovieClip(_parent);
Symbol 195 MovieClip Frame 23
removeMovieClip(_parent);
Symbol 196 MovieClip [enemy0] Frame 1
stop();
Symbol 196 MovieClip [enemy0] Frame 2
stop();
Symbol 196 MovieClip [enemy0] Frame 3
stop();
Symbol 196 MovieClip [enemy0] Frame 4
stop();
Symbol 202 MovieClip [copter1] Frame 1
stop();
Symbol 202 MovieClip [copter1] Frame 6
removeMovieClip(this);
Symbol 204 MovieClip [copter2] Frame 1
stop();
Symbol 204 MovieClip [copter2] Frame 6
removeMovieClip(this);
Symbol 206 MovieClip [copter0] Frame 1
stop();
Symbol 206 MovieClip [copter0] Frame 6
removeMovieClip(this);
Symbol 233 MovieClip [bomber] Frame 1
stop();
Symbol 233 MovieClip [bomber] Frame 2
stop();
Symbol 233 MovieClip [bomber] Frame 44
removeMovieClip(this);
Symbol 238 MovieClip [item3] Frame 1
stop();
Symbol 238 MovieClip [item3] Frame 2
stop();
Symbol 241 MovieClip [item2] Frame 1
stop();
Symbol 241 MovieClip [item2] Frame 2
stop();
Symbol 244 MovieClip [item1] Frame 1
stop();
Symbol 244 MovieClip [item1] Frame 2
stop();
Symbol 247 MovieClip [item4] Frame 1
stop();
Symbol 247 MovieClip [item4] Frame 2
stop();
Symbol 250 MovieClip [item0] Frame 1
stop();
Symbol 250 MovieClip [item0] Frame 2
stop();
Symbol 253 MovieClip [item5] Frame 1
stop();
Symbol 253 MovieClip [item5] Frame 2
stop();
Symbol 266 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 267 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 271 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?SwatAttack", "_blank");
}
Symbol 275 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 50
stop();
_parent.play();
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 327 Button
on (release) {
_root.backSound.start(0, 999);
gotoAndStop (190);
}
Symbol 349 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 357 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 357 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 357 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 358 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 365 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 365 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 365 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 366 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 369 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 369 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 369 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 374 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 375 MovieClip Frame 1
stop();
Symbol 378 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 379 MovieClip Frame 1
stop();
Symbol 380 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 387 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 387 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 387 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 388 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 389 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 1
function instructionsFunction() {
_root.instructions._visible = true;
_root.freeBtn._visible = false;
}
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 390 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 390 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 390 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 390 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 390 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 395 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?SwatAttack", "_blank");
}
Symbol 401 Button
on (release) {
_root.instructions._visible = false;
_root.freeBtn._visible = true;
}
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
play();
Symbol 416 MovieClip Frame 4
gotoAndPlay (2);
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
stop();
Symbol 421 MovieClip Frame 3
stop();
Symbol 421 MovieClip Frame 4
stop();
Symbol 434 MovieClip Frame 21
stop();
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 2
stop();
Symbol 444 MovieClip Frame 3
stop();
Symbol 444 MovieClip Frame 4
stop();
Symbol 444 MovieClip Frame 5
stop();
Symbol 444 MovieClip Frame 6
stop();
Symbol 477 MovieClip Frame 1
stop();
man = false;
Symbol 477 MovieClip Frame 14
if (_root.pauza == false) {
man = true;
}
Symbol 481 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 482 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 483 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 484 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 485 Button
on (release, keyPress "p") {
!!!ERROR
Symbol 486 Button
on (release, keyPress "z") {
!!!ERROR
Symbol 497 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 497 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 497 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 497 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 497 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 497 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 497 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 497 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 502 Button
on (press) {
!!!ERROR
Symbol 505 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 505 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 505 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 505 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 505 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 505 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 505 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 505 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 505 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 505 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 524 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_parent._parent._currentframe <= 10) {
_parent._parent.gotoAndPlay(11);
}
};
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 525 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 526 MovieClip Frame 1
function pauseFunction() {
if (_root.pauza == false) {
_root.theMeniu.gotoAndStop("deskis");
Mouse.show();
_root.pauza = true;
_root.pau._visible = 1;
_root.Move = false;
} else {
_root.theMeniu.gotoAndStop("inkis");
Mouse.hide();
_root.pauza = false;
_root.pau._visible = 0;
_root.Move = true;
}
}
function soundFunction() {
if (_root.sunet == true) {
_root.backSound.stop();
_root.sunet = false;
} else {
_root.sunet = true;
_root.backSound.start(0, 999);
}
trace("sunet: " + _root.sunet);
}
function mainMenuFunction() {
_root.gotoAndPlay("coperta");
}
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 526 MovieClip Frame 10
!!!ERROR
Symbol 526 MovieClip Frame 20
!!!ERROR
Symbol 539 MovieClip Frame 1
!!!ERROR
Symbol 539 MovieClip Frame 13
!!!ERROR
Symbol 553 MovieClip Frame 1
!!!ERROR
Symbol 553 MovieClip Frame 18
!!!ERROR
Symbol 558 Button
on (release) {
!!!ERROR
Symbol 561 Button
on (release) {
_root.xdada = 0;
_root.gotoAndPlay("submitScore");
}
Symbol 578 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 585 Button
on (release) {
!!!ERROR
Symbol 890 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 267 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 890 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
!!!ERROR
Symbol 896 Button
on (release) {
!!!ERROR
Symbol 912 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 918 Button
on (release) {
!!!ERROR
Symbol 921 Button
on (release) {
!!!ERROR
Symbol 923 MovieClip Frame 1
!!!ERROR
Symbol 923 MovieClip Frame 9
!!!ERROR
Symbol 923 MovieClip Frame 22
!!!ERROR
Symbol 923 MovieClip Frame 34
var my_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 923 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}