Frame 1
function reset() {
laserwd = 150;
reloadtime = 25;
reload = 0;
maxhp = 80;
hp = maxhp;
combo = 0;
kills = 0;
tkills = 0;
nextlv = 20;
uplv = 0;
lv = 1;
money = 0;
speedup = false;
speedtime = 0;
}
function savegame(slot) {
s = SharedObject.getLocal("fire3" + slot);
s.data.lv = _root.lv;
s.data.money = _root.money;
s.data.nextlv = _root.nextlv;
s.data.laserwd = _root.laserwd;
s.data.reloadtime = _root.reloadtime;
s.data.maxhp = _root.maxhp;
}
function loadgame(slot) {
s = SharedObject.getLocal("fire3" + slot);
_root.lv = s.data.lv;
_root.money = s.data.money;
_root.nextlv = s.data.nextlv;
_root.laserwd = s.data.laserwd;
_root.reloadtime = s.data.reloadtime;
_root.maxhp = s.data.maxhp;
}
stop();
fscommand ("showmenu", false);
reset();
Frame 2
stop();
Frame 3
loadgame(1);
play();
Frame 4
if (money == undefined) {
reset();
}
Frame 5
stop();
sur = false;
kills = 0;
Instance of Symbol 70 MovieClip in Frame 5
onClipEvent (load) {
stopAllSounds();
gotoAndStop ("menu");
}
Instance of Symbol 71 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
if (Key.isDown(39)) {
_root.laserwd = 550;
_root.reloadtime = 2;
_root.maxhp = 1000;
_root.hp = _root.maxhp;
}
}
}
Frame 8
reset();
gotoAndStop ("load");
Instance of Symbol 70 MovieClip in Frame 8
onClipEvent (load) {
stopAllSounds();
gotoAndStop (1);
}
Frame 9
lv++;
uplv++;
nextlv = nextlv + 20;
if (uplv >= 5) {
gotoAndStop ("up");
} else {
gotoAndStop ("load");
}
Frame 10
uplv = 0;
Frame 11
hp = maxhp;
kills = 0;
Instance of Symbol 90 MovieClip in Frame 11
onClipEvent (enterFrame) {
_root.savegame(1);
}
Frame 12
hp = maxhp;
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
active = true;
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
active = true;
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
active = true;
}
Instance of Symbol 70 MovieClip in Frame 13
onClipEvent (load) {
stopAllSounds();
gotoAndStop ("game");
}
Instance of Symbol 213 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 7) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 3) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 4) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 5) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 2) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 3) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 6) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 8) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 7) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 6) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 7) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 8) {
active = true;
}
}
Instance of Symbol 213 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 9) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
active = true;
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 4) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 3) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 11) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 11) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 13) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
active = true;
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
active = true;
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
active = true;
}
Instance of Symbol 213 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 6) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 3) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 4) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 5) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 2) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 3) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 6) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 8) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 7) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 6) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 7) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 8) {
active = true;
}
}
Instance of Symbol 213 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 11) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
active = true;
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 4) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 3) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 11) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 11) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 13) {
active = true;
}
}
Instance of Symbol 268 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 8) {
active = true;
}
}
Instance of Symbol 268 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 13) {
active = true;
}
}
Instance of Symbol 268 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 9) {
active = true;
}
}
Instance of Symbol 268 MovieClip in Frame 13
onClipEvent (load) {
if (_root.lv >= 15) {
active = true;
}
}
Instance of Symbol 90 MovieClip in Frame 13
onClipEvent (enterFrame) {
_root.savegame(1);
}
Frame 14
sur = true;
kills = 0;
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 70 MovieClip in Frame 14
onClipEvent (load) {
stopAllSounds();
gotoAndStop ("survival");
}
Instance of Symbol 213 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 213 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 213 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 80) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 80) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 80) {
active = true;
}
}
Instance of Symbol 213 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 80) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 80) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 80) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 30) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 30) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 30) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 60) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 60) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 60) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 30) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 30) {
active = true;
}
}
Instance of Symbol 165 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 30) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 60) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 60) {
active = true;
}
}
Instance of Symbol 245 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 60) {
active = true;
}
}
Instance of Symbol 268 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Instance of Symbol 268 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 268 MovieClip in Frame 14
onClipEvent (load) {
active = true;
}
Instance of Symbol 268 MovieClip in Frame 14
onClipEvent (load) {
if (_root.kills >= 100) {
active = true;
}
}
Symbol 7 Button
on (press) {
getURL ("http://www.freewebs.com/carpo-ink/", "blank");
}
Symbol 22 Button
on (press) {
_root.nextFrame();
}
Symbol 23 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 23 MovieClip Frame 2
gotoAndPlay (1);
Symbol 23 MovieClip Frame 3
play();
Symbol 23 MovieClip Frame 56
stop();
Symbol 64 MovieClip Frame 107
_root.play();
Symbol 71 MovieClip Frame 20
stop();
Symbol 73 Button
on (press) {
gotoAndStop ("new");
}
Symbol 74 Button
on (press) {
gotoAndStop ("load");
}
Symbol 75 Button
on (press) {
gotoAndStop ("survival");
}
Symbol 80 Button
on (press) {
price = 1200;
if (_root.money >= price) {
_root.laserwd = _root.laserwd + 3;
_root.money = _root.money - price;
}
}
Symbol 81 Button
on (press) {
_root.gotoAndStop("load");
}
Symbol 82 Button
on (press) {
price = 800;
if (_root.money >= price) {
_root.maxhp = _root.maxhp + 3;
_root.money = _root.money - price;
}
}
Symbol 83 Button
on (press) {
price = 3000;
if (_root.money >= price) {
_root.reloadtime = _root.reloadtime - 1;
_root.money = _root.money - price;
}
}
Symbol 91 Button
on (press) {
gotoAndStop ("game");
}
Symbol 92 Button
on (press) {
gotoAndStop ("menu");
}
Symbol 95 Button
on (press) {
if (!_root.sur) {
gotoAndStop ("game");
} else {
gotoAndStop ("survival");
}
}
Symbol 101 MovieClip Frame 1
gotoAndStop(random(5) + 1);
Symbol 107 MovieClip Frame 1
gotoAndStop(random(4) + 1);
Symbol 127 MovieClip Frame 5
_root.hp = _root.hp - 3;
_root.pain.play();
Symbol 133 MovieClip Frame 1
_visible = false;
t = 0;
tt = random(30) + 30;
onEnterFrame = function () {
t++;
if (random(30) == 1) {
if (t >= tt) {
_parent._parent.gotoAndStop(1);
}
}
};
Symbol 134 MovieClip Frame 21
stop();
Symbol 140 MovieClip Frame 11
stop();
Symbol 146 MovieClip Frame 11
stop();
Symbol 152 MovieClip Frame 11
stop();
Symbol 158 MovieClip Frame 11
stop();
Symbol 159 MovieClip Frame 1
gotoAndStop(random(5) + 2);
Symbol 164 MovieClip Frame 10
stop();
Symbol 165 MovieClip Frame 1
stop();
if (!vars) {
ix = _x;
iy = _y;
ad = 5;
grav = 0;
vars = true;
}
if (random(10) >= 5) {
_x = 650;
_y = iy;
} else {
_x = -100;
_y = iy;
}
onEnterFrame = function () {
if (active) {
if (!_root.ground.hitTest(_x, _y + ad, true)) {
grav = grav + 2;
}
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y + ad, true)) {
grav = 0;
_y = (_y-1);
}
}
};
Instance of Symbol 117 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
speed = 3 + random(3);
t = 0;
tt = 40 + random(20);
}
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_parent.active) {
t++;
if (random(50) == 1) {
if (t >= tt) {
go = true;
}
}
if (go) {
if (_root.base._x <= (_parent._x - 10)) {
_parent._x = _parent._x - speed;
_parent._xscale = -100;
} else if (_root.base._x >= (_parent._x + 10)) {
_parent._x = _parent._x + speed;
_parent._xscale = 100;
}
if (hitTest(_root.base)) {
_parent.gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 118 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.active) {
if (_root.laser.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop(3);
} else if (_root.laser.hitTest(_parent._x, _parent._y - 6, true)) {
_parent.gotoAndStop(4);
}
}
}
Instance of Symbol 127 MovieClip in Symbol 165 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_root.pau) {
play();
} else {
stop();
}
}
Symbol 165 MovieClip Frame 3
_root.combo++;
_root.kills++;
_root.tkills++;
_root.tkilld.play();
_root.tkilld.play();
if (_root.combo > 1) {
_root.combod.gotoAndPlay(2);
}
if (!_root.sur) {
_root.money = _root.money + (5 + random(10));
_root.moneyd.play();
}
Symbol 165 MovieClip Frame 4
_root.combo++;
_root.kills++;
_root.tkills++;
_root.tkilld.play();
_root.tkilld.play();
if (_root.combo > 1) {
_root.combod.gotoAndPlay(2);
}
if (!_root.sur) {
_root.money = _root.money + (8 + random(10));
_root.moneyd.play();
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 10
stop();
Symbol 184 MovieClip Frame 1
stop();
if (!lo) {
gotoAndPlay (30);
lo = true;
}
_x = random(550);
_y = -200;
grav = 2;
onEnterFrame = function () {
if (!_root.pau) {
if (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y + grav);
} else {
play();
}
}
};
Instance of Symbol 176 MovieClip "as" in Symbol 184 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.laser.hitTest(_parent._x, _parent._y, true)) {
_parent.play();
}
}
Symbol 184 MovieClip Frame 2
if (hitTest(_root.laser)) {
_root.speedtime = 100;
_root.speedup = true;
}
Symbol 184 MovieClip Frame 30
t = 0;
Symbol 184 MovieClip Frame 31
if (!_root.pau) {
lo = true;
t++;
}
Symbol 184 MovieClip Frame 35
if (!_root.pau) {
if (random(100) == 1) {
if (t >= (50 + random(40))) {
gotoAndStop (1);
}
} else {
gotoAndPlay (31);
}
}
Symbol 184 MovieClip Frame 36
gotoAndPlay (31);
Symbol 189 MovieClip Frame 1
stop();
if (!lo) {
gotoAndPlay (30);
lo = true;
}
_x = random(550);
_y = -200;
grav = 2;
onEnterFrame = function () {
if (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y + grav);
} else {
play();
}
};
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.laser.hitTest(_parent._x, _parent._y, true)) {
_parent.play();
}
}
Symbol 189 MovieClip Frame 2
if (hitTest(_root.laser)) {
_root.hp = _root.hp + Math.round(_root.maxhp / 4);
}
Symbol 189 MovieClip Frame 30
t = 0;
Symbol 189 MovieClip Frame 31
lo = true;
t++;
Symbol 189 MovieClip Frame 35
if (random(50) == 1) {
if (t >= (10 + random(10))) {
gotoAndStop (1);
}
} else {
gotoAndPlay (31);
}
Symbol 192 MovieClip Frame 1
if (!v) {
gotoAndPlay(random(2) + 1);
v = true;
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 5
_root.hp = _root.hp - 8;
Symbol 210 MovieClip Frame 15
stop();
Symbol 212 MovieClip Frame 26
stop();
Symbol 213 MovieClip Frame 1
stop();
if (!vars) {
ix = _x;
iy = _y;
ad = 10;
grav = 0;
vars = true;
}
hp = 8 + random(5);
if (random(10) >= 5) {
_x = 650;
_y = iy;
} else {
_x = -100;
_y = iy;
}
onEnterFrame = function () {
if (active) {
if (!_root.ground.hitTest(_x, _y + ad, true)) {
grav = grav + 2;
}
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y + ad, true)) {
grav = 0;
_y = (_y-1);
}
}
};
Instance of Symbol 193 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
speed = 2 + random(3);
t = 0;
tt = 40 + random(20);
}
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_parent.active) {
t++;
if (random(50) == 1) {
if (t >= tt) {
go = true;
}
}
if (go) {
if (_root.base._x <= (_parent._x - 10)) {
_parent._x = _parent._x - speed;
_parent._xscale = -100;
} else if (_root.base._x >= (_parent._x + 10)) {
_parent._x = _parent._x + speed;
_parent._xscale = 100;
}
if (hitTest(_root.base)) {
_parent.gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 118 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.active) {
if ((_root.laser.hitTest(_parent._x, _parent._y, true) or _root.laser.hitTest(_parent._x, _parent._y + 15, true)) or _root.laser.hitTest(_parent._x, _parent._y - 15, true)) {
_parent.hp--;
_parent.piang.play();
if (_parent.hp <= 0) {
_parent.gotoAndStop(3);
}
}
}
}
Instance of Symbol 207 MovieClip in Symbol 213 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_root.pau) {
play();
} else {
stop();
}
}
Symbol 213 MovieClip Frame 3
_root.combo++;
_root.kills++;
_root.tkills++;
_root.tkilld.play();
_root.tkilld.play();
if (_root.combo > 1) {
_root.combod.gotoAndPlay(2);
}
if (!_root.sur) {
_root.money = _root.money + (15 + random(10));
_root.moneyd.play();
}
Symbol 233 MovieClip Frame 3
_root.hp = _root.hp - 2;
_root.pain.play();
Symbol 233 MovieClip Frame 11
_root.hp = _root.hp - 2;
_root.pain.play();
Symbol 239 MovieClip Frame 16
stop();
Symbol 244 MovieClip Frame 9
stop();
Symbol 245 MovieClip Frame 1
stop();
if (!vars) {
ix = _x;
iy = _y;
ad = 5;
grav = 0;
vars = true;
}
if (random(10) >= 5) {
_x = 650;
_y = iy;
} else {
_x = -100;
_y = iy;
}
onEnterFrame = function () {
if (active) {
if (!_root.ground.hitTest(_x, _y + ad, true)) {
grav = grav + 2;
}
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y + ad, true)) {
grav = 0;
_y = (_y-1);
}
}
};
Instance of Symbol 221 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
speed = 2 + random(3);
t = 0;
tt = 40 + random(20);
}
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_parent.active) {
t++;
if (random(50) == 1) {
if (t >= tt) {
go = true;
}
}
if (go) {
if (_root.base._x <= (_parent._x - 10)) {
_parent._x = _parent._x - speed;
_parent._xscale = -100;
} else if (_root.base._x >= (_parent._x + 10)) {
_parent._x = _parent._x + speed;
_parent._xscale = 100;
}
if (hitTest(_root.base)) {
_parent.gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 118 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.active) {
if (_root.laser.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop(3);
} else if (_root.laser.hitTest(_parent._x, _parent._y - 6, true)) {
_parent.gotoAndStop(4);
}
}
}
Instance of Symbol 233 MovieClip in Symbol 245 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_root.pau) {
play();
} else {
stop();
}
}
Symbol 245 MovieClip Frame 3
_root.combo++;
_root.kills++;
_root.tkills++;
_root.tkilld.play();
_root.tkilld.play();
if (_root.combo > 1) {
_root.combod.gotoAndPlay(2);
}
if (!_root.sur) {
_root.money = _root.money + (8 + random(10));
_root.moneyd.play();
}
Symbol 245 MovieClip Frame 4
_root.combo++;
_root.kills++;
_root.tkills++;
_root.tkilld.play();
_root.tkilld.play();
if (_root.combo > 1) {
_root.combod.gotoAndPlay(2);
}
if (!_root.sur) {
_root.money = _root.money + (10 + random(10));
_root.moneyd.play();
}
Symbol 260 MovieClip Frame 5
_root.hp = _root.hp - 12;
_root.pain.play();
Symbol 267 MovieClip Frame 20
stop();
Symbol 268 MovieClip Frame 1
stop();
hp = 10 + random(5);
if (!vars) {
iy = _y;
vars = true;
}
if (random(10) >= 5) {
_x = 750;
_y = iy;
} else {
_x = -200;
_y = iy;
}
Instance of Symbol 253 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
speed = 3 + random(3);
t = 0;
tt = 40 + random(20);
}
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_parent.active) {
t++;
if (random(50) == 1) {
if (t >= tt) {
go = true;
}
}
if (go) {
if (_root.base._x <= (_parent._x - 10)) {
_parent._x = _parent._x - speed;
_parent._xscale = -100;
} else if (_root.base._x >= (_parent._x + 10)) {
_parent._x = _parent._x + speed;
_parent._xscale = 100;
}
if (hitTest(_root.base)) {
_parent.gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 118 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.active) {
if ((((_root.laser.hitTest(_parent._x, _parent._y, true) or _root.laser.hitTest(_parent._x, _parent._y + 15, true)) or _root.laser.hitTest(_parent._x, _parent._y - 15, true)) or _root.laser.hitTest(_parent._x, _parent._y + 15, true)) or _root.laser.hitTest(_parent._x, _parent._y + 15, true)) {
_parent.hp--;
_parent.piang.play();
if (_parent.hp <= 0) {
_parent.gotoAndStop(3);
}
}
}
}
Symbol 268 MovieClip Frame 3
_root.combo++;
_root.kills++;
_root.tkills++;
_root.tkilld.play();
_root.tkilld.play();
if (_root.combo > 1) {
_root.combod.gotoAndPlay(2);
}
if (!_root.sur) {
_root.money = _root.money + (15 + random(10));
_root.moneyd.play();
}
Symbol 279 MovieClip Frame 21
stop();
Symbol 286 MovieClip Frame 13
stop();
Symbol 288 MovieClip Frame 1
onEnterFrame = function () {
if (_root.speedup) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Instance of Symbol 287 MovieClip in Symbol 288 MovieClip Frame 2
onClipEvent (enterFrame) {
_rotation = (_root.player._rotation * -1);
}
Symbol 290 MovieClip Frame 1
_width = _root.laserwd;
_root.laser = this;
Symbol 295 MovieClip Frame 1
stop();
_root.reload = 0;
onEnterFrame = function () {
if (!dead) {
if (!_root.pau) {
if (_root.hp <= _root.maxhp) {
_root.hp = _root.hp + 0.005;
}
if (!_root.sur) {
if (_root.kills >= _root.nextlv) {
_root.black.play();
}
}
_root.speedtime--;
if (_root.speedtime <= 0) {
_root.speedup = false;
}
if (_currentframe > 1) {
_root.reload--;
if (_root.speedup) {
_root.reload = 0;
}
}
if (_root.hp <= 0) {
_root.gotoAndStop("die");
}
if (_currentframe == 1) {
if (shooting) {
play();
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 180);
}
}
};
onMouseDown = function () {
if (!dead) {
shooting = true;
}
};
onMouseUp = function () {
if (!dead) {
shooting = false;
}
};
Symbol 295 MovieClip Frame 2
_root.reload = _root.reloadtime;
Symbol 295 MovieClip Frame 12
if (_root.reload <= 0) {
gotoAndStop (1);
} else {
gotoAndPlay (11);
}
Symbol 295 MovieClip Frame 13
dead = true;
Instance of Symbol 298 MovieClip in Symbol 301 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.reload / _root.reloadtime) * 100);
}
Instance of Symbol 298 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.hp / _root.maxhp) * 100);
}
Symbol 313 MovieClip Frame 1
gotoAndPlay (2);
Symbol 313 MovieClip Frame 6
stop();
Symbol 314 MovieClip Frame 1
stop();
_root.combo = 0;
Instance of Symbol 316 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.kills / _root.nextlv) * 100);
}
Symbol 323 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 1
gotoAndPlay (2);
Symbol 330 MovieClip Frame 21
stop();
Symbol 330 MovieClip Frame 40
_root.gotoAndStop("next");
Symbol 334 Button
on (press) {
prevFrame();
}
Symbol 335 Button
on (press) {
_root.gotoAndStop("menu");
}
Symbol 336 MovieClip Frame 1
stop();
_root.pau = false;
Instance of Symbol 90 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_parent.nextFrame();
}
}
Symbol 336 MovieClip Frame 2
_root.pau = true;
Symbol 340 MovieClip Frame 1
stop();