Frame 1
Mouse.show();
stop();
if (_framesloaded == _totalframes) {
gotoAndPlay (61);
}
Frame 64
Mouse.show();
Frame 182
stop();
Frame 183
function HeadShot() {
head._x = cross._x;
head._y = cross._y - 20;
if (target == true) {
head.gotoAndStop(1);
} else if (target == false) {
head.gotoAndStop(2);
}
}
function EnergyShow() {
energycounter++;
ThisEn = eshows[random(2)];
if (energycounter == 700) {
ThisEn.gotoAndPlay(1);
energycounter = 0;
}
}
function Shot() {
if (ammo == true) {
gun.gotoAndPlay(2);
ammunition.play();
} else {
nada();
}
}
function Targets() {
if ((target == true) && (ammo == true)) {
scoreMc.score = scoreMc.score + sum;
score = score + sum;
bodycount = bodycount + 1;
} else {
nada();
}
if ((target2 == true) && (ammo == true)) {
score = score + sum2;
scoreMc.score = scoreMc.score + sum2;
bodycount = bodycount + 1;
} else {
nada();
}
}
function Spark() {
if ((metal == true) && (ammo == true)) {
cross.metalClip.play(2);
}
}
function Leveli() {
counter++;
if (counter == 70) {
if (level == 1) {
levelDif1();
counter = 0;
}
if (level == 2) {
levelDif2();
counter = 0;
}
if (level == 3) {
levelDif3();
counter = 0;
}
if (level >= 4) {
levelDif4();
counter = 0;
}
}
}
function Action() {
if (dead == true) {
play();
}
if (bodycount == 20) {
level = level + 1;
bodycount = 0;
}
}
function levelDif1() {
ThisEnemy = rand[random(4)];
if (ThisEnemy._currentframe >= 15) {
nada();
} else {
ThisEnemy.gotoAndPlay(1);
}
}
function levelDif2() {
ThisEnemy = rand[random(4)];
ThisEnemy2 = rand[random(4)];
if (ThisEnemy._currentframe >= 15) {
nada();
} else {
ThisEnemy.gotoAndPlay(1);
}
if (ThisEnemy2._currentframe >= 15) {
nada();
} else {
ThisEnemy2.gotoAndPlay(1);
}
}
function levelDif3() {
ThisEnemy = rand[random(4)];
ThisEnemy2 = rand[random(4)];
ThisEnemy3 = rand[random(4)];
if (ThisEnemy._currentframe >= 15) {
nada();
} else {
ThisEnemy.gotoAndPlay(1);
}
if (ThisEnemy2._currentframe >= 15) {
nada();
} else {
ThisEnemy2.gotoAndPlay(1);
}
if (ThisEnemy3._currentframe >= 15) {
nada();
} else {
ThisEnemy3.gotoAndPlay(1);
}
}
function levelDif4() {
ThisEnemy = rand[random(4)];
ThisEnemy2 = rand[random(4)];
ThisEnemy3 = rand[random(4)];
ThisEnemy4 = rand[random(4)];
if (ThisEnemy._currentframe >= 15) {
nada();
} else {
ThisEnemy.gotoAndPlay(1);
}
if (ThisEnemy2._currentframe >= 15) {
nada();
} else {
ThisEnemy2.gotoAndPlay(1);
}
if (ThisEnemy3._currentframe >= 15) {
nada();
} else {
ThisEnemy3.gotoAndPlay(1);
}
if (ThisEnemy4._currentframe >= 15) {
nada();
} else {
ThisEnemy4.gotoAndPlay(1);
}
}
Mouse.hide();
startDrag ("cross", true);
target = false;
target2 = false;
metal = false;
dead = false;
ammo = true;
energyfill = false;
energymove = false;
energycounter = 0;
sum = 5;
sum2 = 1;
plain = 0;
counter = 0;
bodycount = 0;
scoreMc.score = 0;
score = 0;
rand = new Array(enemy1, enemy2, enemy3, enemy4);
eshows = new Array(energyfil, energyfil2);
level = 1;
stop();
Instance of Symbol 122 MovieClip "cross" in Frame 183
onClipEvent (enterFrame) {
_root.Action();
_root.Leveli();
_root.EnergyShow();
_root.HeadShot();
}
onClipEvent (mouseDown) {
_root.Spark();
_root.Targets();
_root.Shot();
}
Instance of Symbol 132 MovieClip "gun" in Frame 183
/* no clip actions */
Frame 258
function post() {
getURL ("http://www.reaktori6.com/mika/desoillespark/scores.php", "top", "POST");
_root.scoresave.gotoAndStop(2);
}
Mouse.show();
score = _root.score;
Frame 267
stop();
Symbol 4 MovieClip Frame 1
loadedbytes = _parent.getBytesLoaded();
totalbytes = _parent.getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes / 1000);
totalkbytes = Math.ceil(totalbytes / 1000);
if (loadedbytes == totalbytes) {
_root.play();
}
frame = int(loadedbytes / (totalbytes / 100));
loader.gotoAndPlay(frame);
Symbol 4 MovieClip Frame 2
gotoAndPlay (1);
Symbol 8 Button
on (release) {
getURL ("mailto:mika@newscienceband.com");
}
Symbol 20 Button
on (release) {
gotoAndPlay (183);
}
Symbol 27 Button
on (release) {
getURL ("http://www.reaktori6.com/mika/desoillespark/scores.php", "top");
}
Symbol 29 MovieClip Frame 40
stop();
Symbol 33 MovieClip Frame 300
removeMovieClip(this);
stop();
Symbol 35 Button
on (rollOver, dragOver) {
_root.metal = true;
}
on (rollOut, dragOut) {
_root.metal = false;
}
Symbol 37 Button
on (rollOver, dragOver) {
_root.metal = true;
}
on (rollOut, dragOut) {
_root.metal = false;
}
Symbol 39 Button
on (rollOver, dragOver) {
_root.target = true;
}
on (rollOut, dragOut) {
_root.target = false;
}
on (press) {
if (_root.ammo == true) {
play();
}
}
Symbol 41 Button
on (rollOver, dragOver) {
_root.target2 = true;
}
on (rollOut, dragOut) {
_root.target2 = false;
}
on (press) {
if (_root.ammo == true) {
play();
}
}
Symbol 44 MovieClip Frame 30
_root.energy.play();
Symbol 44 MovieClip Frame 150
_root.energy.play();
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 15
stop();
Symbol 46 MovieClip Frame 16
_root.target = false;
_root.target2 = false;
Symbol 46 MovieClip Frame 25
_root.target = false;
_root.target2 = false;
Symbol 49 Button
on (rollOver, dragOver) {
_root.target2 = true;
}
on (rollOut, dragOut) {
_root.target2 = false;
}
on (press) {
if (_root.ammo == true) {
play();
}
}
Symbol 50 MovieClip Frame 85
_root.energy.play();
Symbol 50 MovieClip Frame 154
_root.energy.play();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 15
stop();
Symbol 52 MovieClip Frame 16
_root.target = false;
_root.target2 = false;
Symbol 52 MovieClip Frame 25
_root.target = false;
_root.target2 = false;
gotoAndStop (1);
Symbol 55 Button
on (rollOver, dragOver) {
_root.target = true;
}
on (rollOut, dragOut) {
_root.target = false;
}
on (press) {
if (_root.ammo == true) {
play();
}
}
Symbol 58 Button
on (rollOver, dragOver) {
_root.target2 = true;
}
on (rollOut, dragOut) {
_root.target2 = false;
}
on (press) {
if (_root.ammo == true) {
play();
}
}
Symbol 60 MovieClip Frame 51
_root.energy.play();
Symbol 60 MovieClip Frame 150
_root.energy.play();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 15
stop();
Symbol 63 MovieClip Frame 16
_root.target = false;
_root.target2 = false;
Symbol 63 MovieClip Frame 25
_root.target = false;
_root.target2 = false;
gotoAndStop (1);
Symbol 64 MovieClip Frame 46
_root.energy.play();
Symbol 64 MovieClip Frame 137
_root.energy.play();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 15
stop();
Symbol 65 MovieClip Frame 16
_root.target = false;
_root.target2 = false;
Symbol 65 MovieClip Frame 25
_root.target = false;
_root.target2 = false;
gotoAndStop (1);
Symbol 67 MovieClip Frame 1
_root.energyfill = false;
_root.plain = 0;
stop();
Symbol 67 MovieClip Frame 19
_root.energyfill = true;
_root.plain = this;
Symbol 67 MovieClip Frame 33
_root.energyfill = false;
_root.plain = 0;
Symbol 67 MovieClip Frame 55
_root.energyfill = false;
_root.plain = 0;
gotoAndStop (1);
Symbol 93 MovieClip Frame 1
stop();
_root.heartbeat.gotoAndStop(1);
Symbol 93 MovieClip Frame 10
stop();
Symbol 93 MovieClip Frame 20
stop();
Symbol 93 MovieClip Frame 30
stop();
Symbol 93 MovieClip Frame 40
stop();
Symbol 93 MovieClip Frame 50
stop();
Symbol 93 MovieClip Frame 60
stop();
Symbol 93 MovieClip Frame 70
stop();
_root.heartbeat.gotoAndPlay(2);
Symbol 93 MovieClip Frame 80
stop();
Symbol 93 MovieClip Frame 90
stop();
Symbol 93 MovieClip Frame 100
stop();
Symbol 93 MovieClip Frame 101
_root.dead = true;
stop();
_root.heartbeat.gotoAndStop(1);
Symbol 93 MovieClip Frame 102
stop();
Symbol 93 MovieClip Frame 103
stop();
Symbol 93 MovieClip Frame 104
stop();
Symbol 93 MovieClip Frame 105
_root.heartbeat.gotoAndStop(1);
Symbol 93 MovieClip Frame 140
gotoAndStop (1);
Symbol 110 MovieClip Frame 1
stop();
_root.ammo = true;
Symbol 110 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 3
stop();
Symbol 110 MovieClip Frame 4
stop();
Symbol 110 MovieClip Frame 5
stop();
Symbol 110 MovieClip Frame 6
stop();
Symbol 110 MovieClip Frame 7
stop();
Symbol 110 MovieClip Frame 8
stop();
Symbol 110 MovieClip Frame 9
_root.ammo = false;
Symbol 110 MovieClip Frame 10
_root.ammo = false;
Symbol 110 MovieClip Frame 31
gotoAndPlay (10);
Symbol 110 MovieClip Frame 32
_root.ammo = false;
Symbol 110 MovieClip Frame 63
gotoAndStop (1);
_root.ammo = true;
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 20
gotoAndPlay (2);
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 10
stop();
Symbol 121 MovieClip Frame 19
gotoAndStop (1);
Symbol 123 Button
on (keyPress "<Space>") {
_root.ammunition.gotoAndPlay("load");
}
on (keyPress "m") {
_root.hand.gotoAndPlay(1);
if (_root.energyfill == true) {
_root.energy.gotoAndPlay("fill");
_root.plain.gotoAndStop(1);
}
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 9
gotoAndStop (1);
Symbol 130 MovieClip Frame 57
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 25
gotoAndStop (1);
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 75
stop();
Symbol 145 Button
on (release) {
gotoAndPlay (183);
}
Symbol 151 Button
on (release) {
_root.post();
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 40
stop();