Combined Code
movieClip 9 {
}
movieClip 10 {
instance of movieClip 9 {
onClipEvent (enterFrame) {
if (_y < (eval(_root.ship))._y) {
_y = (eval(this))._y - 20;
}
}
}
}
movieClip 12 {
}
movieClip 13 {
instance of movieClip 12 {
onClipEvent (enterFrame) {
if (_y < (eval(_root.ship))._y) {
_y = (eval(this))._y - 20;
}
}
}
}
movieClip 15 {
}
movieClip 16 {
instance of movieClip 15 {
onClipEvent (enterFrame) {
if (_y < (eval(_root.ship))._y) {
_y = (eval(this))._y - 20;
}
}
}
}
movieClip 17 {
instance of movieClip 15 {
onClipEvent (enterFrame) {
if (_y < (eval(_root.ship))._y) {
_y = (eval(this))._y - 20;
}
}
}
}
movieClip 18 enemyfire {
frame 1 {
stop();
if (_root.shoottype == 2) {
gotoAndStop(2);
}
if (_root.shoottype == 3) {
gotoAndStop(3);
}
if (_root.shoottype == 4) {
gotoAndStop(4);
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 19 enemyfire {
frame 1 {
stop();
if (_root.shoottype == 2) {
gotoAndStop(2);
}
if (_root.shoottype == 3) {
gotoAndStop(3);
}
if (_root.shoottype == 4) {
gotoAndStop(4);
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
frame 1 {
stop();
}
movieClip 43 {
}
movieClip 44 {
}
movieClip 53 {
frame 1 {
total = Math.round(getBytesTotal() / 1024);
}
frame 2 {
loadtext = 'Loading ' add total add ' Kb';
}
frame 9 {
var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
stop();
tellTarget ('../') {
gotoAndPlay(2);
}
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
gotoAndPlay(2);
}
}
frame 10 {
tellTarget ('../') {
gotoAndPlay(2);
}
}
}
button 65 {
on (release) {
getURL('http://www.matmi.com', '_blank');
}
}
movieClip 66 {
frame 10 {
stop();
}
}
button 71 {
on (release) {
_root.player = player;
tellTarget ('../../../') {
gotoAndPlay(2);
}
}
}
button 74 {
on (release) {
nextFrame();
}
}
button 77 {
on (release) {
tellTarget ('../../../') {
gotoAndPlay(2);
}
}
}
button 80 {
on (release) {
prevFrame();
}
}
movieClip 112 {
frame 20 {
stop();
}
}
movieClip 113 {
frame 29 {
stop();
}
frame 30 {
stop();
}
}
movieClip 114 {
frame 46 {
stop();
}
}
movieClip 115 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 181 {
stop();
}
}
frame 2 {
stop();
}
movieClip 117 {
}
instance stars of movieClip 117 {
onClipEvent (enterFrame) {
eval(_root.stars)._y = (eval(_root.stars))._y + 10;
if (30 < (eval(_root.stars))._y and (eval(_root.stars))._y < 44) {
eval(_root.stars2)._y = -300;
}
}
}
movieClip 118 {
}
instance stars2 of movieClip 118 {
onClipEvent (enterFrame) {
eval(_root.stars2)._y = (eval(_root.stars2))._y + 10;
if ((eval(_root.stars2))._y == 30) {
eval(_root.stars)._y = -760;
}
}
}
movieClip 129 {
frame 1 {
stop();
}
frame 10 {
gotoAndStop(1);
}
}
movieClip 133 {
frame 1 {
stop();
}
frame 5 {
gotoAndStop(1);
}
}
movieClip 136 {
}
movieClip 137 {
frame 1 {
stop();
if (_root.count < 29) {
gotoAndStop(random(2) + 1);
}
if (_root.count >= 30 and 75 >= _root.counter) {
if (2 >= random(3) + 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
if (_root.count >= 75 and 120 >= _root.counter) {
if (2 >= random(3) + 1) {
gotoAndStop(4);
} else {
gotoAndStop(3);
}
}
_root.shoottype = 1;
}
frame 2 {
stop();
_root.shoottype = 2;
}
frame 3 {
stop();
_root.shoottype = 3;
}
frame 4 {
stop();
_root.shoottype = 4;
}
instance of movieClip 136 {
onClipEvent (enterFrame) {
../._x = ../._x + evilshipdir1;
if (../._x >= 255) {
evilshipdir1 = -5;
} else {
if (30 >= ../._x) {
evilshipdir1 = 5;
}
}
}
onClipEvent (load) {
evilshipdir1 = 5;
}
}
}
instance enemyone of movieClip 137 {
onClipEvent (enterFrame) {
if (_y < 400) {
_y = _y + 3;
if (_y < (eval(_root.ship))._y and random(20) == 10) {
tellTarget ('firing1') {
gotoAndPlay(_root.shoottype);
}
_root.k = int(_root.k) + 1;
z = new Sound();
z.attachSound('fireenemy1');
if (_root.shoottype != 1) {
z.attachSound('fireenemy2');
}
z.start(0, 1);
duplicateMovieClip(_root.enemyfire, 'enemyfire' + _root.k, random(100) + random(10) + random(215) + random(200));
eval('_root.enemyfire' + _root.k)._y = _y + 10;
eval('_root.enemyfire' + _root.k)._x = _x;
}
} else {
removeMovieClip(this);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
if (_root.energy != 0) {
_root.energy = int(_root.energy) - 2;
}
}
if (this.hittest(_root.rock) and _root.dead == false) {
_root.rockspeed = -1;
if (_root.rock._x < this._x) {
_root.rockspeedx = -5;
} else {
if (this._x < _root.rock._x) {
_root.rockspeedx = 5;
}
}
tellTarget ('_root.relive') {
}
tellTarget ('text') {
gotoAndStop(7);
}
tellTarget ('_target') {
gotoAndPlay(2);
}
random_id = random(100) + '_' + random(30) + '_' + random(300);
duplicateMovieClip(_root.explosion, random_id, 50);
eval('_root.' + random_id)._x = this._x - 25;
eval('_root.' + random_id)._y = this._y - 40;
_root.score = int(_root.score) + 1;
removeMovieClip(this);
}
if (this.hittest(_root.shield)) {
tellTarget ('_parent.shield') {
gotoAndPlay(3);
}
_y = this._y - 10;
}
}
}
movieClip 143 {
}
instance of movieClip 143 {
onClipEvent (enterFrame) {
if (_root.dead == false) {
_root.counter = int(_root.counter) + 1;
if (_root.counter == 12) {
_root.count = int(_root.count) + 1;
_root.counter = 0;
}
_root.x = 0;
if (0 < _root.speed) {
_root.speed -= 0.1;
}
if (key.isdown(38)) {
_root.alreadyleft = 'no';
_root.alreadyright = 'no';
tellTarget ('_root.ship') {
gotoAndStop(1);
}
if (_root.speed < 4) {
_root.speed += 1;
}
}
if (key.isdown(40)) {
_root.alreadyleft = 'no';
_root.alreadyright = 'no';
if ((eval(_root.ship))._y < 330) {
tellTarget ('_root.ship') {
gotoAndStop(1);
}
_root.speed -= 0.7;
}
}
if (key.isdown(37)) {
eval(_root.ship)._x = (eval(_root.ship))._x - 6;
_root.alreadyright = 'no';
}
if (key.isdown(39)) {
eval(_root.ship)._x = (eval(_root.ship))._x + 6;
_root.alreadyleft = 'no';
}
eval(_root.ship)._y = (eval(_root.ship))._y - _root.speed;
if (random(150) < 4 and _root.free == true) {
_root.num_of_enemyones = int(_root.num_of_enemyones + 1);
if (_root.num_of_enemyones >= 20) {
_root.num_of_enemyones = 0;
}
_root.typeofenemy = 'enemyone';
_root.num_of_enemytypes = _root.num_of_enemyones;
create_enemy(_root.num_of_enemyones);
}
}
}
onClipEvent (load) {
function create_enemy(enemy) {
duplicateMovieClip('_root.' + _root.typeofenemy, _root.typeofenemy + _root.num_of_enemytypes, random(2000));
eval('_root.' + _root.typeofenemy + _root.num_of_enemytypes)._y = 30;
_root.random_place = 20 + random(240);
eval('_root.' + _root.typeofenemy + _root.num_of_enemytypes)._x = _root.random_place;
}
tellTarget ('_root.relive') {
}
tellTarget ('text') {
level = '1';
gotoAndStop(2);
}
tellTarget ('_target') {
gotoAndPlay(2);
}
_root.ok2fire = true;
_root.free = true;
_root.alreadyleft = 'no';
_root.shoottype = 1;
_root.num_of_enemyones = 1;
_root.num_of_enemytwos = 1;
_root.num_of_enemytypes = 0;
_root.alreadyright = 'no';
_root.speed = 0;
_root.shieldleft = 0;
_root.firetype = 1;
_root.allowchange = false;
_root.i = 0;
_root.x = 0;
_root.j = 0;
_root.k = 0;
_root.dead = false;
_root.powermove = true;
_root.shieldmove = true;
_root.rockmove = true;
_root.activatepowerat = 8;
_root.activateshieldat = 13;
_root.activaterockat = 13;
_root.shieldactive = false;
_root.front = false;
_root.frontdead = false;
_root.frontdamage = 0;
_root.weakpoint = false;
_root.weakpointdead = false;
_root.weakpointdamage = 0;
_root.final_left = false;
_root.leftarmdead = false;
_root.final_left_damage = 0;
_root.final_right = false;
_root.rightarmdead = false;
_root.final_right_damage = 0;
_root.final_left_middle_gun = false;
_root.leftmiddlegundead = false;
_root.final_left_middle_gun_damage = 0;
_root.final_right_middle_gun = false;
_root.rightmiddlegundead = false;
_root.final_right_middle_gun_damage = 0;
_root.takenguyback = false;
}
onClipEvent (enterFrame) {
if (0 >= _root.energy and _root.dead == false) {
_root.energy = 100;
_root.dead = true;
_root.lives = int(_root.lives) - 1;
_root.firetype = 1;
_root.dead._x = (eval(_root.ship))._x - 30;
_root.dead._y = (eval(_root.ship))._y - 35;
tellTarget ('_root.dead') {
gotoAndPlay(2);
}
eval(_root.ship)._visible = 0;
}
if (count == 60) {
tellTarget ('_root.relive') {
}
tellTarget ('text') {
level = '1';
gotoAndStop(3);
}
tellTarget ('_target') {
gotoAndPlay(2);
}
_root.dead = true;
}
if (_root.firetype != 1 and _root.temppower + 15 == _root.count) {
_root.firetype = 1;
}
if (_root.count == _root.activatepowerat) {
_root.activatepowerat = _root.activatepowerat + 15 + random(10);
eval(_root.power)._y = 20;
eval(_root.power)._x = 20 + random(200);
_root.powermove = true;
}
if (_root.count == _root.activateshieldat) {
_root.activateshieldat = _root.activateshieldat + 20 + random(10);
eval(_root.shielded)._y = 20;
eval(_root.shielded)._x = 20 + random(200);
_root.shieldmove = true;
}
if (_root.count == _root.activaterockat) {
_root.activaterockat = _root.activaterockat + 20 + random(10);
eval(_root.rock)._y = 20;
eval(_root.rock)._x = 20 + random(200);
_root.rockmove = true;
}
if (_count == 150) {
if (this.hittest(_root.ship)) {
tellTarget ('_root.relive') {
}
tellTarget ('text') {
gotoAndStop(8);
}
tellTarget ('_target') {
gotoAndPlay(2);
}
}
}
if (0 >= int(_root.lives)) {
tellTarget ('_parent') {
gotoAndStop(3);
}
}
if (_root.shieldactive == true) {
_root.shield._y = _root.ship._y;
_root.shield._x = _root.ship._x;
_root.shieldleft = int(_root.shieldleft) + 1;
if (100 < _root.shieldleft) {
_root.shieldactive = false;
_root.shieldleft = 0;
_root.shield._y = 1000;
}
}
}
}
movieClip 146 {
}
movieClip 150 {
frame 1 {
_root.dead = false;
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
_root.allowchange = false;
}
}
instance ship of movieClip 150 {
onClipEvent (enterFrame) {
_root.j = 0;
while (20 >= _root.j) {
eval('_root.fire' + _root.j)._y = (eval('_root.fire' + _root.j))._y - 30;
if ((eval('_root.fire' + j))._y < 0) {
removeMovieClip('_root.fire' + j);
}
++_root.j;
}
if (key.isdown(37) or key.isdown(39)) {
} else {
if (_root.allowchange == false) {
tellTarget ('_root.ship') {
gotoAndStop(1);
}
}
}
if (330 < (eval(_root.ship))._y) {
eval(_root.ship)._y = 330;
}
}
}
movieClip 153 {
}
movieClip 155 {
frame 1 {
stop();
gotoAndStop(_root.firetype);
}
frame 2 {
stop();
}
instance of movieClip 153 {
onClipEvent (enterFrame) {
eval(this)._y = this._y - 10;
}
}
frame 3 {
stop();
}
}
instance fire of movieClip 155 {
onClipEvent (enterFrame) {
do {
this;
if (hittest('_root.enemyone' + int(_root.xx)) and wait == false) {
wait = true;
_root.score = int(_root.score) + 1;
random_id = random(100) + '_' + random(30) + '_' + random(300);
if (_root.firetype != 3) {
duplicateMovieClip(_root.explosion, random_id, 50);
} else {
if (_root.firetype == 3) {
duplicateMovieClip(_root.explosionthree, random_id, 50);
}
}
if (_root.firetype == 3) {
eval('_root.' + random_id)._x = (eval('_root.enemyone' + _root.xx))._x - 60;
eval('_root.' + random_id)._y = (eval('_root.enemyone' + _root.xx))._y - 40;
} else {
if (_root.firetype != 3) {
eval('_root.' + random_id)._x = (eval('_root.enemyone' + _root.xx))._x - 25;
eval('_root.' + random_id)._y = (eval('_root.enemyone' + _root.xx))._y - 40;
}
}
if (_root.firetype == 1 or _root.firetype == 3) {
removeMovieClip(this);
}
removeMovieClip('_root.enemyone' + int(_root.xx));
_root.xx = 20;
}
_root.xx = int(_root.xx) + 1;
} while (20 >= _root.xx);
if (this._y < 20) {
removeMovieClip(this);
}
_root.xx = 0;
wait = false;
if (this.hittest(_root.killline) or this.hittest(_root.killline2) or this.hittest(_root.killline3) or this.hittest(_root.killline4)) {
removeMovieClip(this);
}
if (this.hittest(_root.rock)) {
_root.rockspeed = -5;
removeMovieClip(this);
}
this;
if (hittest('_root.guardian/guardiangroup')) {
if (_root.firetype == 3) {
power = 3;
}
if (_root.firetype == 2) {
power = 2;
}
if (_root.firetype == 1) {
power = 1;
}
_root.score = int(_root.score) + power;
if (this.hittest('_root.guardian/guardiangroup/left') or this.hittest('_root.guardian/guardiangroup/laser2')) {
_root.final_left = true;
_root.final_left_damage = int(_root.final_left_damage) + power;
removeMovieClip(this);
}
if (this.hittest('_root.guardian/guardiangroup/right') or this.hittest('_root.guardian/guardiangroup/laser')) {
_root.final_right = true;
_root.final_right_damage = int(_root.final_right_damage) + power;
removeMovieClip(this);
}
if (this.hittest('_root.guardian/guardiangroup/front')) {
_root.front = true;
_root.frontdamage = int(_root.frontdamage) + power;
removeMovieClip(this);
}
if (this.hittest('_root.guardian/guardiangroup/left_middle_gun') or this.hittest('_root.guardian/guardiangroup/lright')) {
_root.final_left_middle_gun = true;
_root.final_left_middle_gun_damage = int(_root.final_left_middle_gun_damage) + power;
removeMovieClip(this);
}
if (this.hittest('_root.guardian/guardiangroup/right_middle_gun') or this.hittest('_root.guardian/guardiangroup/fright')) {
_root.final_right_middle_gun = true;
_root.final_right_middle_gun_damage = int(_root.final_right_middle_gun_damage) + power;
removeMovieClip(this);
}
if (this.hittest('_root.guardian/guardiangroup/weakpoint') or _root.hitweakpointinstead == true) {
_root.weakpoint = true;
_root.weakpointdamage = int(_root.weakpointdamage) + power;
removeMovieClip(this);
}
}
}
onClipEvent (load) {
_root.xx = 0;
wait = false;
}
}
button 157 {
on (keyPress '<Left>') {
if (_root.dead == false) {
if (_root.alreadyleft == 'no') {
tellTarget ('_root.ship') {
gotoAndStop(3);
}
}
}
}
on (keyPress '<Right>') {
if (_root.dead == false) {
if (_root.alreadyright == 'no') {
tellTarget ('_root.ship') {
gotoAndStop(2);
}
}
}
}
on (release, keyPress '<Space>') {
if (_root.dead == false) {
if (_root.ok2fire == true) {
_root.ok2fire = false;
_root.i = int(_root.i) + 1;
if (20 < _root.i) {
_root.i = 0;
}
duplicateMovieClip(_root.fire, 'fire' + _root.i, _root.i);
eval('_root.fire' + _root.i)._x = (eval(_root.ship))._x;
eval('_root.fire' + _root.i)._y = (eval(_root.ship))._y - 20;
x = new Sound();
x.attachSound('fire');
if (_root.firetype == 3) {
x.attachSound('fireheavy');
}
x.start(0, 1);
}
}
_root.ok2fire = true;
}
}
movieClip 183 {
}
instance power of movieClip 183 {
onClipEvent (enterFrame) {
if (_root.powermove == true) {
_y = this._y + 5;
if (350 < this._y) {
_root.powermove = false;
}
}
if (this.hittest(_root.ship)) {
_root.temppower = _root.count;
_y = 400;
tellTarget ('_root.relive') {
}
tellTarget ('text') {
gotoAndStop(4);
}
tellTarget ('_target') {
gotoAndPlay(2);
}
_root.firetype = 1 + random(2) + 1;
}
}
}
movieClip 204 {
}
instance shielded of movieClip 204 {
onClipEvent (enterFrame) {
if (_root.shieldmove == true) {
_y = this._y + 5;
if (350 < this._y) {
_root.shieldmove = false;
}
}
if (this.hittest(_root.ship)) {
y = new Sound();
y.attachSound('shield');
y.start(0, 1);
_y = 400;
tellTarget ('_root.relive') {
}
tellTarget ('text') {
gotoAndStop(5);
}
tellTarget ('_target') {
gotoAndPlay(2);
}
eval(_root.shield)._y = _root.ship._y;
eval(_root.shield)._x = _root.ship._x;
tellTarget ('_root.shield') {
gotoAndStop(2);
}
_root.shieldactive = true;
}
}
}
movieClip 239 {
frame 17 {
stop();
removeMovieClip(this);
}
}
movieClip 240 {
frame 1 {
stop();
}
frame 18 {
removeMovieClip('');
eval(_root.ship)._y = 330;
_root.energy = 100;
_root.dead = false;
gotoAndStop(1);
eval(_root.ship)._visible = 100;
_root.energy = 100;
tellTarget ('_root.relive') {
gotoAndPlay(2);
}
}
}
movieClip 243 {
}
instance killline of movieClip 243 {
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
eval(_root.ship)._y = (eval(_root.ship))._y - 10;
}
if (this.hittest(_root.enemyfire)) {
eval(_root.enemyfire)._y = 1000;
removeMovieClip(this);
}
}
}
movieClip 244 {
}
instance killline3 of movieClip 244 {
onClipEvent (enterFrame) {
if (this.hittest('_root.ship')) {
eval(_root.ship)._y = _root.ship._y + 10;
}
}
}
movieClip 245 {
}
instance killline2 of movieClip 245 {
onClipEvent (enterFrame) {
if (this.hittest('_root.ship')) {
_root.ship._x = _root.ship._x + 10;
}
}
}
movieClip 246 {
}
instance killline4 of movieClip 246 {
onClipEvent (enterFrame) {
if (this.hittest('_root.ship')) {
_root.ship._x = _root.ship._x - 10;
}
}
}
movieClip 255 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 256 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 50 {
gotoAndStop(1);
}
}
instance enemyfire of movieClip 19 enemyfire {
onClipEvent (load) {
stop = false;
circx = this._x;
circy = this._y;
pointx = _root.ship._x;
pointy = _root.ship._y;
if (circx < pointx and circy < pointy) {
angle = Math.atan(Math.abs(circy - pointy) / Math.abs(circx - pointx));
degrees = angle * 180 / Math.pi;
eval(this)._rotation = degrees + 90;
} else {
if (circx < pointx and pointy < circy) {
angle = Math.atan(Math.abs(circy - pointy) / Math.abs(circx - pointx));
degrees = angle * 180 / Math.pi;
eval(this)._rotation = 90 - degrees;
} else {
if (pointx < circx and circy < pointy) {
angle = Math.atan(Math.abs(circx - pointx) / Math.abs(circy - pointy));
degrees = angle * 180 / Math.pi;
eval(this)._rotation = -(180 - degrees);
} else {
if (pointx < circx and pointy < circy) {
angle = Math.atan(Math.abs(circy - pointy) / Math.abs(circx - pointx));
degrees = angle * 180 / Math.pi;
eval(this)._rotation = -(90 - degrees);
}
}
}
}
tellTarget ('/enemyfire') {
gotoAndStop(_root.shoottype);
}
}
onClipEvent (enterFrame) {
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
removeMovieClip(this);
}
if (this.hittest(_root.killline) or this.hittest(_root.killline2) or this.hittest(_root.killline3) or this.hittest(_root.killline4) or 400 < this._y) {
removeMovieClip(this);
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_parent.shield') {
gotoAndPlay(3);
}
}
}
}
movieClip 295 {
}
instance rock of movieClip 295 {
onClipEvent (enterFrame) {
if (_root.rockmove == true) {
_y = this._y + _root.rockspeed;
_x = _root.rock._x + _root.rockspeedx;
if (350 < this._y) {
_root.rockmove = false;
}
}
if (this.hittest(_root.shield)) {
tellTarget ('_parent.shield') {
gotoAndPlay(3);
}
_root.rockspeed = -1;
}
if (this.hittest(_root.ship)) {
_root.rockspeed = -1;
if (_root.rock._x < _root.ship._x) {
_root.rockspeedx = -5;
} else {
if (_root.ship._x < _root.rock._x) {
_root.rockspeedx = 5;
}
}
_root.energy -= 5;
tellTarget ('_root.relive') {
}
tellTarget ('text') {
gotoAndStop(6);
}
tellTarget ('_target') {
gotoAndPlay(2);
}
}
if (this.hittest(_root.killline) or this.hittest(_root.killline2) or this.hittest(_root.killline3) or this.hittest(_root.killline4)) {
_root.rockspeed = 1;
_root.rockspeedx = 0;
_y = 400;
_x = 200;
_ROOT.ROCKMOVE = false;
}
}
onClipEvent (load) {
_root.rockspeed = 1;
_root.rockspeedx = 0;
}
}
movieClip 309 {
frame 6 {
stop();
}
}
movieClip 310 {
instance hitmark of movieClip 309 {
onClipEvent (enterFrame) {
_root.xp = 0;
do {
this;
if (hittest('_root.enemyone' + int(_root.xp))) {
_root.score = int(_root.score) + 1;
temp = random(10);
duplicateMovieClip(_root.explosion, 'explo' + temp, 50 + random(20));
eval('_root.explo' + temp)._x = (eval('_root.enemyone' + _root.xp))._x - 30;
eval('_root.explo' + temp)._y = (eval('_root.enemyone' + _root.xp))._y - 40;
removeMovieClip(this);
removeMovieClip('_root.enemyone' + int(_root.xp));
_root.xp = 20;
}
_root.xp = int(_root.xp) + 1;
} while (20 >= _root.xp);
}
}
frame 9 {
stop();
}
}
movieClip 313 {
frame 1 {
stop();
}
frame 4 {
_root.final_right_middle_gun = false;
_root.hitweakpointinstead = false;
if (_root.final_right_middle_gun_damage >= 20) {
gotoAndPlay(5);
} else {
gotoAndStop(1);
}
}
frame 9 {
stop();
_root.rightmiddlegundead = true;
right_middle_gun._y = -2000;
}
}
movieClip 316 {
frame 1 {
stop();
}
frame 4 {
_root.final_right = false;
if (_root.final_right_damage >= 20) {
gotoAndPlay(5);
} else {
gotoAndStop(1);
}
}
frame 9 {
stop();
_root.rightarmdead = true;
}
}
movieClip 320 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 4 {
_root.final_left = false;
if (_root.final_left_damage >= 20) {
gotoAndPlay(5);
} else {
gotoAndStop(1);
}
}
frame 9 {
stop();
_root.leftarmdead = true;
}
}
movieClip 323 {
frame 1 {
stop();
}
frame 4 {
_root.final_left_middle_gun = false;
_root.hitweakpointinstead = false;
if (_root.final_left_middle_gun_damage >= 20) {
gotoAndPlay(5);
} else {
gotoAndStop(1);
}
}
frame 9 {
stop();
_root.leftmiddlegundead = true;
left_middle_gun._y = -2000;
}
}
movieClip 326 {
frame 1 {
stop();
}
frame 4 {
_root.front = false;
if (_root.frontdamage >= 20) {
gotoAndPlay(5);
} else {
gotoAndStop(1);
}
}
frame 9 {
stop();
_root.frontdead = true;
}
}
movieClip 329 {
frame 1 {
stop();
}
frame 4 {
_root.weakpoint = false;
_root.hitweakpointinstead = false;
if (_root.weakpointdamage >= 40) {
gotoAndPlay(5);
} else {
gotoAndStop(1);
}
}
frame 9 {
stop();
_root.weakpointdead = true;
front._y = -2000;
}
}
movieClip 331 {
}
movieClip 333 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 331 {
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
_root.energy = int(_root.energy) - 5;
}
if (_root.rightarmdead == true) {
gotoAndStop(1);
}
}
}
}
movieClip 335 {
}
movieClip 336 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 335 {
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
_root.energy = int(_root.energy) - 5;
}
if (_root.leftarmdead == true) {
gotoAndStop(1);
}
}
}
}
movieClip 352 {
}
movieClip 353 {
frame 20 {
stop();
}
}
movieClip 354 {
}
movieClip 356 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 354 {
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
_root.energy = int(_root.energy) - 5;
}
if (_root.rightmiddlegundead == true) {
gotoAndStop(1);
}
}
}
}
movieClip 357 {
}
movieClip 358 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 357 {
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
_root.energy = int(_root.energy) - 5;
}
if (_root.leftmiddlegundead == true) {
gotoAndStop(1);
}
}
}
}
movieClip 359 {
frame 1 {
stop();
if (_root.leftarmdead == true) {
left._visible = 0;
}
if (_root.rightarmdead == true) {
right._visible = 0;
}
if (_root.frontdead == true) {
front._visible = 0;
front._y = -20000;
front._x = -20000;
}
if (_root.leftmiddlegundead == true) {
left_middle_gun._visible = 0;
left_middle_gun._y = -20000;
left_middle_gun._x = -20000;
}
if (_root.rightmiddlegundead == true) {
right_middle_gun._visible = 0;
right_middle_gun._y = -20000;
right_middle_gun._x = -20000;
}
if (_root.rightmiddlegundead == true and _root.leftmiddlegundead == true and _root.frontdead == true and _root.rightarmdead == true and _root.leftarmdead == true and _root.takenguyback == false) {
eval(_root.guardian)._y = _root.guardian._y - 35;
_root.takenguyback = true;
}
if (_root.rightmiddlegundead == true and _root.leftmiddlegundead == true and _root.frontdead == true and _root.rightarmdead == true and _root.leftarmdead == true) {
weakpoint._y = weakpoint._y + 35;
}
if (_root.weakpointdead == true) {
weakpoint._visible = 0;
stop();
tellTarget ('_root') {
gotoAndStop(3);
}
}
}
instance right_middle_gun of movieClip 313 {
onClipEvent (enterFrame) {
if (_root.final_right_middle_gun == true) {
_root.final_right_middle_gun = false;
tellTarget ('right_middle_gun') {
gotoAndPlay(2);
}
}
}
}
instance right of movieClip 316 {
onClipEvent (enterFrame) {
if (_root.final_right == true) {
_root.final_right = false;
tellTarget ('right') {
gotoAndPlay(2);
}
}
}
}
instance left of movieClip 320 {
onClipEvent (enterFrame) {
if (_root.final_left == true) {
_root.final_left = false;
tellTarget ('left') {
gotoAndPlay(2);
}
}
}
}
instance left_middle_gun of movieClip 323 {
onClipEvent (enterFrame) {
if (_root.final_left_middle_gun == true) {
_root.final_left_middle_gun = false;
tellTarget ('left_middle_gun') {
gotoAndPlay(2);
}
}
if (_root.leftmiddlegundead == true) {
_y = -2000;
}
}
}
instance front of movieClip 326 {
onClipEvent (enterFrame) {
if (_root.front == true) {
_root.front = false;
tellTarget ('front') {
gotoAndPlay(2);
}
}
if (_root.frontdead == true) {
_y = -2000;
}
}
}
instance weakpoint of movieClip 329 {
onClipEvent (enterFrame) {
if (_root.weakpoint == true) {
_root.weakpoint = false;
tellTarget ('weakpoint') {
gotoAndPlay(2);
}
}
}
}
instance laser of movieClip 333 {
onClipEvent (enterFrame) {
if (random(30) == 10 and _root.rightarmdead == false) {
gotoAndStop(2);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_root.shield') {
gotoAndPlay(2);
}
}
}
}
instance laser2 of movieClip 336 {
onClipEvent (enterFrame) {
if (random(30) == 10 and _root.leftarmdead == false) {
gotoAndStop(2);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_root.shield') {
gotoAndPlay(2);
}
}
}
}
instance fright of movieClip 356 {
onClipEvent (enterFrame) {
if (random(30) == 10 and _root.rightmiddlegundead == false) {
gotoAndStop(2);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_root.shield') {
gotoAndPlay(2);
}
}
}
}
instance lright of movieClip 358 {
onClipEvent (enterFrame) {
if (random(30) == 10 and _root.leftmiddlegundead == false) {
gotoAndStop(2);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_root.shield') {
gotoAndPlay(2);
}
}
}
}
}
movieClip 360 {
frame 1 {
stop();
if (_root.leftarmdead == true) {
left._visible = 0;
}
if (_root.rightarmdead == true) {
right._visible = 0;
}
if (_root.frontdead == true) {
front._visible = 0;
front._y = -20000;
front._x = -20000;
}
if (_root.leftmiddlegundead == true) {
left_middle_gun._visible = 0;
left_middle_gun._y = -20000;
left_middle_gun._x = -20000;
}
if (_root.rightmiddlegundead == true) {
right_middle_gun._visible = 0;
right_middle_gun._y = -20000;
right_middle_gun._x = -20000;
}
if (_root.rightmiddlegundead == true and _root.leftmiddlegundead == true and _root.frontdead == true and _root.rightarmdead == true and _root.leftarmdead == true and _root.takenguyback == false) {
eval(_root.guardian)._y = _root.guardian._y - 35;
_root.takenguyback = true;
}
if (_root.rightmiddlegundead == true and _root.leftmiddlegundead == true and _root.frontdead == true and _root.rightarmdead == true and _root.leftarmdead == true) {
weakpoint._y = weakpoint._y + 35;
}
if (_root.weakpointdead == true) {
weakpoint._visible = 0;
stop();
tellTarget ('_root') {
gotoAndStop(3);
}
}
}
instance right_middle_gun of movieClip 313 {
onClipEvent (enterFrame) {
if (_root.final_right_middle_gun == true) {
_root.final_right_middle_gun = false;
tellTarget ('right_middle_gun') {
gotoAndPlay(2);
}
}
}
}
instance right of movieClip 316 {
onClipEvent (enterFrame) {
if (_root.final_right == true) {
_root.final_right = false;
tellTarget ('right') {
gotoAndPlay(2);
}
}
}
}
instance left of movieClip 320 {
onClipEvent (enterFrame) {
if (_root.final_left == true) {
_root.final_left = false;
tellTarget ('left') {
gotoAndPlay(2);
}
}
}
}
instance left_middle_gun of movieClip 323 {
onClipEvent (enterFrame) {
if (_root.final_left_middle_gun == true) {
_root.final_left_middle_gun = false;
tellTarget ('left_middle_gun') {
gotoAndPlay(2);
}
}
if (_root.leftmiddlegundead == true) {
_y = -2000;
}
}
}
instance front of movieClip 326 {
onClipEvent (enterFrame) {
if (_root.front == true) {
_root.front = false;
tellTarget ('front') {
gotoAndPlay(2);
}
}
if (_root.frontdead == true) {
_y = -2000;
}
}
}
instance weakpoint of movieClip 329 {
onClipEvent (enterFrame) {
if (_root.weakpoint == true) {
_root.weakpoint = false;
tellTarget ('weakpoint') {
gotoAndPlay(2);
}
}
}
}
instance laser of movieClip 333 {
onClipEvent (enterFrame) {
if (random(30) == 10 and _root.rightarmdead == false) {
gotoAndStop(2);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_root.shield') {
gotoAndPlay(2);
}
}
}
}
instance laser2 of movieClip 336 {
onClipEvent (enterFrame) {
if (random(30) == 10 and _root.leftarmdead == false) {
gotoAndStop(2);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_root.shield') {
gotoAndPlay(2);
}
}
}
}
instance fright of movieClip 356 {
onClipEvent (enterFrame) {
if (random(30) == 10 and _root.rightmiddlegundead == false) {
gotoAndStop(2);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_root.shield') {
gotoAndPlay(2);
}
}
}
}
instance lright of movieClip 358 {
onClipEvent (enterFrame) {
if (random(30) == 10 and _root.leftmiddlegundead == false) {
gotoAndStop(2);
}
this;
if (hittest(_root.ship) and _root.dead == false) {
_root.allowchange = true;
tellTarget ('_root.ship') {
gotoAndPlay(4);
}
_root.energy = int(_root.energy) - 10;
}
if (this.hittest(_root.shield)) {
removeMovieClip(this);
tellTarget ('_root.shield') {
gotoAndPlay(2);
}
}
}
}
}
movieClip 361 {
frame 1 {
stop();
}
frame 2 {
if (_root.frontdead == true) {
/guardiangroup/front._y = -2000;
}
if (_root.leftmiddlegundead == true) {
/guardiangroup/left_middle_gun._y = -2000;
}
if (_root.rightmiddlegundead == true) {
/guardiangroup/right_middle_gun._y = -2000;
}
}
frame 63 {
gotoAndPlay(2);
}
}
instance guardian of movieClip 361 {
onClipEvent (enterFrame) {
if (active == true) {
_root.free = false;
tellTarget ('guardiangroup') {
gotoAndPlay(2);
}
}
if (400 < _x) {
_x = 500;
active = false;
removeMovieClip(this);
}
if (_root.count == 150 and active == false) {
_y = 100;
active = true;
}
}
onClipEvent (load) {
active = false;
}
}
movieClip 363 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 7 {
gotoAndStop(3);
}
}
movieClip 365 {
}
instance of movieClip 365 {
onClipEvent (load) {
stopAllSounds();
s = new Sound();
s.attachSound('loop');
s.start(0, 100);
}
}
frame 3 {
stop();
stopAllSounds();
}
movieClip 366 {
}
instance of movieClip 366 {
onClipEvent (load) {
s = new Sound();
s.attachSound('loop');
s.start(0, 100);
}
}
movieClip 396 {
frame 30 {
tellTarget ('../') {
gotoAndStop(4);
}
}
}
frame 4 {
score = _parent.score;
name = _parent.name;
game = titania;
loadVariablesNum('scores/highscores.asp?game=titania', 0, 'POST');
stop();
}
button 400 {
on (release) {
_root.lives = 3;
_root.energy = 100;
_root.count = 0;
_root.score = 0;
gotoAndStop(2);
}
}
button 403 {
on (release) {
getURL('http://www.matmi.com', '_blank');
}
}
button 408 {
on (release) {
gotoAndPlay(5);
}
}
frame 24 {
stop();
}
instance of movieClip 366 {
onClipEvent (load) {
s = new Sound();
s.attachSound('loop');
s.start(0, 100);
}
}