Frame 1
stop();
fscommand ("allowscale", false);
fscommand ("follscreen", false);
Frame 130
stop();
Symbol 12 MovieClip Frame 1
var dkRun = false;
stop();
Symbol 12 MovieClip Frame 22
if (dkRun) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 16 Button
on (rollOver) {
Light.dkRun = true;
Light.gotoAndPlay("Loop");
}
on (rollOut, releaseOutside) {
Light.dkRun = false;
}
on (release) {
_parent.play();
}
Symbol 17 MovieClip Frame 1
if ((0 < _parent._framesloaded) && (_parent._framesloaded == _parent._totalframes)) {
Logo._alpha = 100;
gotoAndStop (3);
} else {
percentVal = int(_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100;
Logo._alpha = percentVal;
}
Symbol 17 MovieClip Frame 2
gotoAndPlay (1);
Symbol 17 MovieClip Frame 3
stop();
Symbol 31 MovieClip Frame 11
if (dkPlay) {
gotoAndPlay (2);
}
Symbol 31 MovieClip Frame 12
dkPlay = false;
Symbol 31 MovieClip Frame 50
dkStatus = false;
Symbol 40 MovieClip Frame 11
if (dkPlay) {
if (!dkStatus) {
gotoAndPlay (2);
} else {
gotoAndPlay (12);
}
}
Symbol 40 MovieClip Frame 18
if (dkPlay) {
if (!dkStatus) {
gotoAndPlay (2);
} else {
gotoAndPlay (12);
}
}
Symbol 40 MovieClip Frame 19
if (_parent.dkPlay) {
_parent.Health--;
_parent.UpdateHealth();
}
gotoAndPlay (1);
Symbol 40 MovieClip Frame 36
stop();
Instance of Symbol 31 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
dkPlay = true;
}
Instance of Symbol 40 MovieClip "Hiepsi" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
dkPlay = true;
dkStatus = false;
}
Symbol 57 MovieClip Frame 1
dkPlay = false;
stop();
Symbol 57 MovieClip Frame 14
gotoAndStop (1);
Symbol 57 MovieClip Frame 30
gotoAndStop (1);
Symbol 63 Button
on (release) {
play();
}
Symbol 75 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 10
stop();
Symbol 103 MovieClip Frame 1
dkPlay = false;
stop();
Symbol 103 MovieClip Frame 31
if (Hit.hitTest(_parent._parent.Hiepsi.Hit)) {
_parent._parent.Health = 0;
_parent._parent.UpdateHealth();
} else if (Hit.hitTest(_parent._parent.Ground.Iraq.Hit)) {
_parent._parent.Ground.Iraq.dkPlay = false;
_parent._parent.Ground.Iraq.gotoAndPlay("Die");
}
Symbol 103 MovieClip Frame 81
dkPlay = false;
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
var dkFire = false;
var maxBullet = 5;
var thutuBullet = 1;
Bullet.dkPlay = false;
Instance of Symbol 77 MovieClip "Bullet" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
var step = 1;
}
onClipEvent (enterFrame) {
if (dkPlay) {
gocquay = _rotation;
step++;
stepX = Math.cos((gocquay * Math.PI) / 180) * step;
stepY = Math.sin((gocquay * Math.PI) / 180) * step;
_x = (_x + stepX);
_y = (_y + stepY);
if (hitTest(_parent._parent.Hiepsi.Hit) && (_parent._parent.Hiepsi.dkPlay)) {
_parent._parent.Hiepsi.gotoAndPlay("Die");
dkPlay = false;
removeMovieClip("");
} else if ((((_x < 0) || (_parent._parent.maxX < _x)) || (_y < 0)) || (_parent._parent.maxY < _y)) {
dkPlay = false;
removeMovieClip("");
dkPlay = false;
}
}
}
Instance of Symbol 31 MovieClip "Iraq" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
var stepY = 1;
var stepX = 1;
var dkPlay = false;
var dkStatus = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.dkPlay) {
if (!dkStatus) {
temp = true;
while (temp) {
_x = (Math.floor(Math.random() * (_parent._parent.maxX - 40)) + 20);
_y = (Math.floor(Math.random() * (_parent._parent.maxY - 40)) + 20);
if (((((-_parent._x) < _x) && (_x < (400 - _parent._x))) && ((-_parent._y) < _y)) && (_y < (300 - _parent._y))) {
temp = true;
} else {
temp = false;
}
}
dkPlay = true;
dkStatus = true;
}
if (dkPlay) {
vitriX = (-_parent._x) + _parent._parent.Hiepsi._x;
vitriY = (-_parent._y) + _parent._parent.Hiepsi._y;
if (_x < vitriX) {
_rotation = Math.round((Math.atan((vitriY - _y) / (vitriX - _x)) * 180) / Math.PI);
} else {
_rotation = (180 + Math.round((Math.atan((vitriY - _y) / (vitriX - _x)) * 180) / Math.PI));
}
if ((((((-_parent._x) - 20) < _x) && (_x < ((400 - _parent._x) + 20))) && (((-_parent._y) - 20) < _y)) && (_y < ((300 - _parent._y) + 20))) {
_parent.dkFire = true;
} else {
_parent.dkFire = false;
}
}
}
}
Instance of Symbol 103 MovieClip "Bomb" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
var dkPlay = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.dkPlay && (!dkPlay)) {
temp = Math.round(Math.random() * 20);
if (temp == 0) {
_x = (Math.floor(Math.random() * (_parent._parent.maxX - 40)) + 20);
_y = (Math.floor(Math.random() * (_parent._parent.maxY - 40)) + 20);
dkPlay = true;
gotoAndPlay (1);
}
}
}
Instance of Symbol 106 MovieClip "Help" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
var dkPlay = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.dkPlay) {
if (!dkPlay) {
temp = true;
while (temp) {
_x = (Math.floor(Math.random() * (_parent._parent.maxX - 40)) + 20);
_y = (Math.floor(Math.random() * (_parent._parent.maxY - 40)) + 20);
if (((((-_parent._x) < _x) && (_x < (400 - _parent._x))) && ((-_parent._y) < _y)) && (_y < (300 - _parent._y))) {
temp = true;
} else {
temp = false;
}
}
dkPlay = true;
} else if (hitTest(_parent._parent.Hiepsi.Hit)) {
if (_parent._parent.Health < 10) {
_parent._parent.Health++;
_parent._parent.UpdateHealth();
}
play();
dkPlay = false;
}
}
}
Instance of Symbol 62 MovieClip in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
var dkPlay = false;
var direction = true;
var stepX = 30;
}
onClipEvent (enterFrame) {
if (_parent._parent.dkPlay) {
if (!dkPlay) {
temp = Math.round(Math.random() * 100);
if (temp == 0) {
_y = Math.round(Math.random() * _parent._parent.maxY);
_x = -150;
direction = true;
dkPlay = true;
} else if (temp == 5) {
_y = Math.round(Math.random() * _parent._parent.maxY);
_x = (_parent._parent.maxX + 150);
direction = false;
dkPlay = true;
}
} else if (direction) {
_xscale = 100;
if (_x < ((_parent._parent.maxX + 150) - stepX)) {
_x = (_x + stepX);
} else {
dkPlay = false;
}
} else {
_xscale = -100;
if ((-150 + stepX) < _x) {
_x = (_x - stepX);
} else {
dkPlay = false;
}
}
}
}
Symbol 108 MovieClip Frame 2
if (_parent.dkPlay) {
if (dkFire && (Iraq.dkPlay)) {
if (thutuBullet < maxBullet) {
thutuBullet++;
} else {
thutuBullet = 1;
}
duplicateMovieClip ("Bullet", "Bullet" add thutuBullet, thutuBullet);
eval ("Bullet" add thutuBullet)._y = Iraq._y;
eval ("Bullet" add thutuBullet)._x = Iraq._x;
eval ("Bullet" add thutuBullet)._rotation = Iraq._rotation;
eval ("Bullet" add thutuBullet).dkPlay = true;
}
}
Symbol 108 MovieClip Frame 10
gotoAndPlay (2);
Instance of Symbol 31 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
dkPlay = true;
}
Instance of Symbol 40 MovieClip "Hiepsi" in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
dkPlay = true;
dkStatus = false;
}
Symbol 114 MovieClip Frame 1
var dkPlay = false;
var dkFire = false;
var dkGroundX = true;
var dkGroundY = true;
var maxX = 800;
var maxY = 600;
var vitriTop = 20;
var vitriLeft = 20;
var vitriRight = 380;
var vitriBottom = 280;
var stepY = 2;
var stepX = 2;
var maxBullet = 10;
var thutuBullet = 1;
var Health = 10;
var sodiem = 0;
Instance of Symbol 57 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
var dkPlay = false;
}
onClipEvent (enterFrame) {
if (!dkPlay) {
temp = Math.round(Math.random() * 50);
if (temp == 0) {
dkPlay = true;
gotoAndPlay (1);
} else if (temp == 5) {
dkPlay = true;
gotoAndPlay (1);
}
}
}
Symbol 114 MovieClip Frame 6
function KiemtraWall(x, y) {
if (Ground.Wall.hitTest(x, y, true)) {
return(false);
}
return(true);
}
function goUp() {
if (dkPlay) {
if (dkGroundY) {
vitriY = Ground._y;
if (vitriY < (-stepY)) {
vitriY = vitriY + stepY;
if (KiemtraWall(Hiepsi._x, Hiepsi._y - stepY)) {
Ground._y = vitriY;
}
} else {
dkGroundY = false;
}
} else {
vitriY = Hiepsi._y;
if (((vitriTop + stepY) + (Hiepsi._height / 2)) < vitriY) {
vitriY = vitriY - stepY;
if (vitriY == 150) {
vitriY = 150;
dkGroundY = true;
}
if (KiemtraWall(Hiepsi._x, vitriY)) {
Hiepsi._y = vitriY;
}
}
}
}
}
function goDown() {
if (dkPlay) {
if (dkGroundY) {
vitriY = Ground._y;
if ((stepY - (maxY - 300)) < vitriY) {
vitriY = vitriY - stepY;
if (KiemtraWall(Hiepsi._x, Hiepsi._y + stepY)) {
Ground._y = vitriY;
}
} else {
dkGroundY = false;
}
} else {
vitriY = Hiepsi._y;
if (vitriY < ((vitriBottom - stepY) - (Hiepsi._height / 2))) {
vitriY = vitriY + stepY;
if (vitriY == 150) {
vitriY = 150;
dkGroundY = true;
}
if (KiemtraWall(Hiepsi._x, vitriY)) {
Hiepsi._y = vitriY;
}
}
}
}
}
function goRight() {
if (dkPlay) {
if (dkGroundX) {
vitriX = Ground._x;
if ((stepX - (maxX - 400)) < vitriX) {
vitriX = vitriX - stepX;
if (KiemtraWall(Hiepsi._x + stepX, Hiepsi._y)) {
Ground._x = vitriX;
}
} else {
dkGroundX = false;
}
} else {
vitriX = Hiepsi._x;
if (vitriX < ((vitriRight - stepX) - (Hiepsi._width / 2))) {
vitriX = vitriX + stepX;
if (vitriX == 200) {
vitriX = 200;
dkGroundX = true;
}
if (KiemtraWall(vitriX, Hiepsi._y)) {
Hiepsi._x = vitriX;
}
}
}
}
}
function goLeft() {
if (dkPlay) {
if (dkGroundX) {
vitriX = Ground._x;
if (vitriX < (-stepX)) {
vitriX = vitriX + stepX;
if (KiemtraWall(Hiepsi._x - stepX, Hiepsi._y)) {
Ground._x = vitriX;
}
} else {
dkGroundX = false;
}
} else {
vitriX = Hiepsi._x;
if (((vitriLeft + stepX) + (Hiepsi._width / 2)) < vitriX) {
vitriX = vitriX - stepX;
if (vitriX == 200) {
vitriX = 200;
dkGroundX = true;
}
if (KiemtraWall(vitriX, Hiepsi._y)) {
Hiepsi._x = vitriX;
}
}
}
}
}
function UpdateHealth() {
if (0 < Health) {
BarHealth._width = Health * 10;
} else {
BarHealth._width * 10;
gotoAndPlay (41);
}
}
function UpdateScore() {
Score = sodiem;
}
Symbol 114 MovieClip Frame 21
stop();
Symbol 114 MovieClip Frame 29
sodiem = 0;
UpdateScore();
Hiepsi._x = 200;
Hiepsi._y = 150;
Ground._x = -200;
Ground._y = -150;
dkPlay = true;
dkGround = true;
Bullet.dkPlay = false;
Health = 10;
UpdateHealth();
mouse.hide();
startDrag ("Cross", true);
Instance of Symbol 40 MovieClip in Symbol 114 MovieClip Frame 29
onClipEvent (load) {
dkPlay = true;
dkStatus = false;
}
Instance of Symbol 31 MovieClip in Symbol 114 MovieClip Frame 29
onClipEvent (load) {
dkPlay = true;
}
Instance of Symbol 71 MovieClip "Cross" in Symbol 114 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_parent.dkPlay) {
_rotation = _parent.Ground.Iraq._rotation;
}
}
Instance of Symbol 75 MovieClip "Bullet" in Symbol 114 MovieClip Frame 29
onClipEvent (load) {
var step = 2;
}
onClipEvent (enterFrame) {
if (dkPlay) {
gocquay = _rotation;
step++;
stepX = Math.cos((gocquay * Math.PI) / 180) * step;
stepY = Math.sin((gocquay * Math.PI) / 180) * step;
_x = (_x + stepX);
_y = (_y + stepY);
if (hitTest(_parent.Ground.Iraq.Hit) && (_parent.Ground.Iraq.dkPlay)) {
_parent.sodiem++;
_parent.UpdateScore();
_parent.Ground.Iraq.gotoAndPlay("Die");
dkPlay = false;
removeMovieClip("");
} else if ((((_x < 0) || (400 < _x)) || (_y < 0)) || (300 < _y)) {
dkPlay = false;
removeMovieClip("");
}
}
}
Instance of Symbol 40 MovieClip "Hiepsi" in Symbol 114 MovieClip Frame 29
onClipEvent (load) {
var dkPlay = true;
var dkStatus = false;
}
onClipEvent (enterFrame) {
if (_parent.dkPlay && (dkPlay)) {
if (Key.isDown(37)) {
_parent.goLeft();
} else if (Key.isDown(39)) {
_parent.goRight();
}
if (Key.isDown(38)) {
_parent.goUp();
} else if (Key.isDown(40)) {
_parent.goDown();
}
}
if (dkPlay) {
vitriX = _parent._xmouse;
vitriY = _parent._ymouse;
if (_x < vitriX) {
_rotation = Math.round((Math.atan((vitriY - _y) / (vitriX - _x)) * 180) / Math.PI);
} else {
_rotation = (180 + Math.round((Math.atan((vitriY - _y) / (vitriX - _x)) * 180) / Math.PI));
}
}
}
onClipEvent (mouseDown) {
if (_parent.dkPlay && (dkPlay)) {
_parent.dkFire = true;
}
}
onClipEvent (mouseUp) {
_parent.dkFire = false;
}
onClipEvent (keyUp) {
if (dkPlay) {
dkStatus = false;
}
}
onClipEvent (keyDown) {
if (dkPlay) {
dkStatus = true;
}
}
Symbol 114 MovieClip Frame 36
if (dkPlay) {
if (dkFire) {
if (thutuBullet < maxBullet) {
thutuBullet++;
} else {
thutuBullet = 1;
}
duplicateMovieClip ("Bullet", "Bullet" add thutuBullet, thutuBullet);
eval ("Bullet" add thutuBullet)._y = Hiepsi._y;
eval ("Bullet" add thutuBullet)._x = Hiepsi._x;
eval ("Bullet" add thutuBullet)._rotation = Hiepsi._rotation;
eval ("Bullet" add thutuBullet).dkPlay = true;
}
}
Symbol 114 MovieClip Frame 40
gotoAndPlay (36);
Symbol 114 MovieClip Frame 41
dkPlay = false;
Hiepsi.dkPlay = false;
Hiepsi.gotoAndPlay("DieAll");
mouse.show();
stopDrag();
Symbol 114 MovieClip Frame 69
Score = ("YOU KILLED " + sodiem) + " SOLDIERS";
stop();
Symbol 114 MovieClip Frame 74
gotoAndPlay (16);