STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229593
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/71892241?noj=FRM71892241-21DC" width="1" height="1"></div>

Eco Battler 2.swf

This is the info page for
Flash #22479

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 17 a { frame 1 { function onEnterFrame() { _rotation = _rotation + x; _x = (_x + x) % 480; if (_x < 0) { _x = _x + 480; } _y = (_y + y) % 480; if (_y < 0) { _y = _y + 480; } } function onPress() { --_root.apple.c; _root.apple.s += (i + 2) * 75 * (_root.apple.m + 1); if (i) { n = random(5 - i) + i; while (n--) { _root.apple.attachMovie('a', 'a' + _root.apple.getNextHighestDepth(), _root.apple.getNextHighestDepth(), {'i': i - 1, '_x': _x, '_y': _y}); } } removeMovieClip(this); } d = 0; x = (random(100) - 50) / 10; y = (random(100) - 50) / 10; c = i * 13 + 13; lineStyle(0, 16777215, 100); beginFill(0, 50); moveTo(0, c); ++_root.apple.c; while (d < 5.783185) { d += 0.25 + random(100) / 500; z = c + random(c / 2); lineTo(Math.sin(d) * z, Math.cos(d) * z); } lineTo(0, c); } } movieClip 18 StarField { } movieClip 21 Star { } movieClip 22 spark1 { frame 15 { this.removeMovieClip(); } } movieClip 23 spark2 { frame 15 { this.removeMovieClip(); } } movieClip 24 stars { frame 7 { _x = _x - 10; if (_x < 0) { _x = 700; } gotoAndPlay(1); } frame 15 { _x = _x - 5; if (_x < 0) { _x = 700; } gotoAndPlay(9); } frame 23 { _x = _x - 3; if (_x < 0) { _x = 700; } gotoAndPlay(17); } } frame 1 { _root.loop1 = new Sound(loop1); _root.loop1.attachSound('loop3'); _root.loop2 = new Sound(loop2); _root.loop2.attachSound('loop3'); _root.loop3 = new Sound(loop3); _root.loop3.attachSound('loop3'); _root.loop4 = new Sound(loop4); _root.loop4.attachSound('loop4'); _root.boss1loop = new Sound(boss1loop); _root.boss1loop.attachSound('boss3loop'); _root.boss2loop = new Sound(boss2loop); _root.boss2loop.attachSound('boss3loop'); _root.boss3loop = new Sound(boss3loop); _root.boss3loop.attachSound('boss3loop'); _root.survivalloop = new Sound(loop3); _root.survivalloop.attachSound('loop3'); _root.creditsloop = new Sound(creditsloop); _root.creditsloop.attachSound('creditsloop'); _root.healthpowersound = new Sound(healthpower); _root.healthpowersound.attachSound('healthpower'); _root.weaponpowersound = new Sound(weaponpower); _root.weaponpowersound.attachSound('weaponpower'); _root.missilepowersound = new Sound(missilepower); _root.missilepowersound.attachSound('missilepower'); _root.bombpowersound = new Sound(bombpower); _root.bombpowersound.attachSound('bombpower'); _root.protectorpowersound = new Sound(protectorpower); _root.protectorpowersound.attachSound('protectorpower'); _root.redsound = new Sound(red); _root.redsound.attachSound('red'); _root.bluesound = new Sound(blue); _root.bluesound.attachSound('blue'); _root.greensound = new Sound(green); _root.greensound.attachSound('green'); _root.mhexplosion = new Sound(mhexplode); _root.mhexplosion.attachSound('mhexplode'); _root.lasersound = new Sound(laser); _root.lasersound.attachSound('laser'); _root.bombexplodesound = new Sound(bombexplode); _root.bombexplodesound.attachSound('bombexplode'); _root.bombexplodesound.onSoundComplete = function () { _root.bombexplode = false; _root.bombfire = false; _root.bombsound = false; }; _root.enemyexplodesound = new Sound(enemyexplodesound); _root.enemyexplodesound.attachSound('enemyexplode'); _root.airblast = new Sound(airblast); _root.airblast.attachSound('airblast'); _root.boss1canonsound = new Sound(boss1canon); _root.boss1canonsound.attachSound('boss1canon'); _root.boss1electricsound = new Sound(boss1electric); _root.boss1electricsound.attachSound('boss1electric'); _root.boss2lasersound = new Sound(boss2laser); _root.boss2lasersound.attachSound('boss2laser'); _root.boss2lasersound2 = new Sound(boss2laser2); _root.boss2lasersound2.attachSound('boss2laser2'); _root.boss2big = new Sound(boss2big); _root.boss2big.attachSound('boss2big'); stop(); _quality = 'high'; Stage.showMenu = false; s; Stage.scaleMode = 'noScale'; _root.customcontrols = false; _root.reset = true; _root.levelnumber = 1; _root.playbtn._visible = false; } movieClip 26 { } instance overyou of movieClip 26 { onClipEvent (load) { _root.display.swapDepths(1000034); } } movieClip 27 { } movieClip 28 { } movieClip 30 { } movieClip 32 { frame 8 { stop(); } } movieClip 33 { frame 1 { stop(); } frame 3 { stop(); } frame 5 { stop(); } frame 7 { stop(); } frame 9 { stop(); } frame 11 { stop(); } } button 37 { on (release) { gotoAndPlay(2); } } movieClip 46 { } movieClip 49 { } movieClip 50 { } movieClip 52 { } movieClip 56 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } frame 5 { tellTarget ('_parent') { gotoAndStop(5); } } } movieClip 57 { } movieClip 64 { } movieClip 67 { } movieClip 68 { frame 25 { stop(); } } movieClip 69 { frame 33 { stop(); } } movieClip 70 { } movieClip 72 { } movieClip 73 { } button 75 { on (release) { gotoAndStop(1); } } movieClip 77 { } movieClip 86 { } movieClip 87 { frame 1 { Mouse.show(); stop(); } frame 2 { _root.numx = 12; _root.numy = 6; _root.score = 0; _root.hit = 5; } instance ball of movieClip 50 { onClipEvent (enterFrame) { eval(this)._x = (eval(this))._x + _root.numx; eval(this)._y = (eval(this))._y + _root.numy; } } instance bat of movieClip 52 { onClipEvent (load) { startDrag('', true, -46, 120, 46, 120); Mouse.hide(); } onClipEvent (enterFrame) { if (this.hitTest(_parent.ball) && _root.go == 1) { _root.numy = -12; ++_root.score; } } } instance of movieClip 56 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball)) { --_root.hit; _root.go = 2; _parent.life.play(); _root.numy = -12; gotoAndPlay(2); } if (_root.hit == 0) { gotoAndStop(5); } } } instance of movieClip 57 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball)) { _root.numx = random(10); _root.go = 1; } } } instance of movieClip 57 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball)) { _root.numx = -random(10); _root.go = 1; } } } instance of movieClip 57 { onClipEvent (enterFrame) { if (this.hitTest(_parent.ball)) { _root.numy = 12; _root.go = 1; } } } frame 4 { gotoAndPlay(3); } frame 5 { Mouse.show(); _root.prevscore = _root.score; if (_root.prevscore > _root.highscore) { _root.highscore = _root.prevscore; } stop(); } } movieClip 89 { } button 93 { on (release) { getURL('http://www.maxgames.com/', '_blank'); } } movieClip 104 { } movieClip 105 { } movieClip 106 { } movieClip 107 { } movieClip 111 { } movieClip 120 { } movieClip 121 { frame 1 { stop(); this._visible = false; } frame 10 { this._visible = true; } frame 42 { stop(); } frame 60 { stop(); this._visible = false; } } movieClip 123 { } movieClip 126 { } movieClip 130 { } movieClip 133 { } movieClip 134 { frame 21 { stop(); } } movieClip 136 { } movieClip 137 { frame 49 { stop(); } } movieClip 140 { } button 141 { on (release) { _root.gotoAndStop('intro'); } } movieClip 142 { frame 7 { stop(); } } movieClip 146 { frame 1 { } frame 2 { stopAllSounds(); } frame 5 { if (_global.cur_audio == 'on') { myLoop = new Sound(myLoopMc); myLoop.attachSound('myLoop01'); myLoopVolume = 0; myLoop.setVolume(myLoopVolume); this.onEnterFrame = function () { if (fadeIn01 == 1) { _root.myLoop.setVolume(myLoopVolume); myLoopVolume += 1; if (myLoopVolume > 40) { fadeIn01 = 0; } } if (fadeOut01 == 1) { _root.myLoop.setVolume(myLoopVolume); myLoopVolume -= 1; if (myLoopVolume < 1) { delete this.onEnterFrame; _root.myLoop.stop('myLoop01'); fadeOut01 = 0; } } }; } } frame 6 { fadeIn01 = 1; myLoop.start(0, 999); } frame 37 { _global.css = new TextField.StyleSheet(); _global.css.load('http://pandalove.2Advanced.com/dev/includes/flashstyle.css'); } frame 40 { function checkstatus() { var v3 = this.getBytesLoaded(); var v2 = this.getBytesTotal(); mainpreload.ptext.text = Math.round((v3 / v2) * 100) + '%'; if (v3 / v2 != 1) { return undefined; } clearInterval(loadInt); mainpreload.gotoAndPlay('hide'); play(); } mainpreload.gotoAndPlay('show'); loadInt = setInterval(this, 'checkstatus', 50); } frame 76 { stop(); } } movieClip 147 { frame 1 { stop(); } } instance playbtn00 of movieClip 147 { onClipEvent (enterFrame) { loading = _parent.getBytesLoaded(); total = _parent.getBytesTotal(); percent -= (percent - (loading / total) * 100) * 0.25; per = int(percent); percentage = per + '%'; loadBar._width = per; if (percent > 99) { _root.playbtn00.gotoAndStop('loaded'); } } } movieClip 148 { } instance of movieClip 148 { onClipEvent (enterFrame) { apple(); } } frame 2 { function createStarField() { _root.bg.gotoAndStop('surv'); var v7 = 15; var v3 = v7; var v2 = 0; var v4 = 1; var v5 = 9; var v6 = 17; while (--v3) { playField.attachMovie('stars', 'starsLayer3' + v3, _root.depth); ++_root.depth; tellTarget ('playField['starsLayer3' + v3]') { _x = Math.floor(Math.random() * 1024); _y = v2; gotoAndPlay(v6); } if (++v6 == 23) { v6 = 17; } v2 += 11; playField.attachMovie('stars', 'starsLayer2' + v3, _root.depth); ++_root.depth; tellTarget ('playField['starsLayer2' + v3]') { _x = Math.floor(Math.random() * 1024); _y = v2; gotoAndPlay(v5); } if (++v5 == 16) { v5 = 9; } v2 += 11; playField.attachMovie('stars', 'starsLayer1' + v3, _root.depth); ++_root.depth; tellTarget ('playField['starsLayer1' + v3]') { _x = Math.floor(Math.random() * 1024); _y = v2; gotoAndPlay(v4); } if (++v4 == 8) { v4 = 0; } v2 += 11; } _root.ship.swapDepths(31); } function init() { var v3 = this.createEmptyMovieClip('playField', _root.depth); ++_root.depth; v3._x = 0; v3._y = 16; createStarField(); } function clean() { _root.status._visible = false; _root.ship._x = -200; _root.ship._y = -200; _root.target._x = 1200; _root.target._y = 100; _root.hitshipcounter = 0; _root.boss2gun = 0; _root.boss2laser = 0; _root.boss1canon = 0; _root.boss1electric = 0; _root.bosscoming = 0; _root.time = 0; _root.boss = false; _root.enemyticker = -25; _root.boss2firelaser = false; _root.fbosswave == 0; _root.fbossrest = false; _root.fbossrestcounter = 0; _root.boss3health = 299 * _root.health; _root.boss3totalhealth = _root.boss3health; _root.boss3counter = 0; _root.e7w1pos = 0; _root.e6w1pos = 0; _root.e5w1pos = 0; _root.e4w2pos = 0; _root.e4w1pos = 0; _root.e3w1pos = 0; _root.e2w1pos = 0; _root.e1w1pos = 0; _root.enemy1wavetimer5 = 100; _root.enemy2wavetimer5 = 500; _root.enemy3wavetimer5 = 800; _root.enemy4wavetimer5 = 900; _root.enemy4wave2timer5 = 1200; _root.enemy5wave1timer5 = 1500; _root.enemy6wave1timer5 = 1800; _root.enemy7wave1timer5 = 2100; _root.playField.removeMovieClip(); _root.bg.gotoAndStop('blank'); i = _root.enemyarray.length - 1; while (i >= 0) { _root.enemyarray[i].removeMovieClip(); _root.enemyarray.pop(); --i; } j = _root.bulletarray.length - 1; while (j >= 0) { _root.bulletarray[j].removeMovieClip(); _root.bulletarray.pop; --j; } k = _root.poweruparray.length - 1; while (k >= 0) { _root.poweruparray[k].removeMovieClip(); _root.poweruparray.pop; --k; } } _root.depth = 2; _root.gamestart = false; _root.gametimer = false; _root.youaredead = false; _root.time = 0; _root.totalscore = 0; _root.totalscore2 = 0; _root.shipshield = 50; _root.shipshieldtotal = 50; _root.sheight = (eval(_root.ship.shiptype))._height; _root.swidth = (eval(_root.ship.shiptype))._width; _root.bombfire = false; _root.numberofbombs = 3; _root.bombsound = false; _root.havelaser = false; _root.mhshotting = false; _root.targetenemy = 0; _root.targeted = true; _root.mhlevel = 0; _root.autorotate = false; _root.protectorlevel = 0; _root.protector2health = 15; _root.protector1health = 15; _root.weapontype = 'red'; _root.weaponnumber = 1; _root.hitshipcounter = 0; _root.powerupspeed = -2; _root.explosionxsize = 53; _root.bulletspeed = 39; _root.interval = 5; _root.x20 = _root.bulletspeed * 0.9396926; _root.y20 = _root.bulletspeed * 0.3420201; _root.enemyfiretime = 20; _root.bluedepth = 10010; _root.sgreenfunction = false; _root.sgreentimer = 0; _root.health = 2; _root.e = 0; _root.enemyticker = -25; _root.enemy1speed = 12; _root.enemy1bulletspeed = 17; _root.boss1speed = 5; _root.boss3counter = 0; _root.e7w1pos = 0; _root.e6w1pos = 0; _root.e5w1pos = 0; _root.e4w2pos = 0; _root.e4w1pos = 0; _root.e3w1pos = 0; _root.e2w1pos = 0; _root.e1w1pos = 0; _root.boss3x = 600; _root.boss3y = 100; _root.boss3s = 5; _root.boss3turndelay = 5; _root.boss3health = 299 * _root.health; _root.boss3totalhealth = _root.boss3health; _root.bossdeadspeed = -2.5; _root.loopvolume = 100; _root.fade = 'in'; _root.paused = false; _root.globalmusiccontrol = 'play'; _root.difficulty = 'normal'; _root.gcompletetimer = 0; _root.mode = 'mission'; _root.previewcredits = false; _root.enemyarray = new Array(); _root.enemy1wave1 = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy1'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 5); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 825; _root['enemy' + _root.e]._y = random(500); _root['enemy' + _root.e].enemyfiretime = random(20) + 15; ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy1'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 5); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 900; _root['enemy' + _root.e]._y = random(500); _root['enemy' + _root.e].enemyfiretime = random(20) + 15; ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy1'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 5); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 975; _root['enemy' + _root.e]._y = random(500); _root['enemy' + _root.e].enemyfiretime = random(20) + 15; }; _root.enemy2wave1 = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy2'); if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 5; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy2'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 850; _root['enemy' + _root.e]._y = random(500); _root['enemy' + _root.e].enemyfiretime = random(20) + 15; }; _root.enemy3wave1 = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy3'); if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 4; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy3'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 850; _root['enemy' + _root.e]._y = random(400) + 50; _root['enemy' + _root.e].enemyfiretime = random(20) + 30; }; _root.enemy4wave1 = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy4'); _root['enemy' + _root.e].desty = random(400) + 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 6; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy4'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 850; _root['enemy' + _root.e].enemyfiretime = random(20) + 30; torb = random(2) + 1; if (torb == 1) { _root['enemy' + _root.e]._y = -50; } else { if (torb == 2) { _root['enemy' + _root.e]._y = 500; } } ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy4'); _root['enemy' + _root.e].desty = random(400) + 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 6; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy4'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 875; _root['enemy' + _root.e].enemyfiretime = random(20) + 30; torb = random(2) + 1; if (torb == 1) { _root['enemy' + _root.e]._y = -50; } else { if (torb == 2) { _root['enemy' + _root.e]._y = 500; } } ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy4'); _root['enemy' + _root.e].desty = random(400) + 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 6; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy4'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 900; _root['enemy' + _root.e].enemyfiretime = random(20) + 30; torb = random(2) + 1; if (torb == 1) { _root['enemy' + _root.e]._y = -50; } else { if (torb == 2) { _root['enemy' + _root.e]._y = 500; } } }; _root.enemy4wave2 = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy4'); _root['enemy' + _root.e].e4arrive = true; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 6; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy4wave2'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e].e4arrive = true; _root['enemy' + _root.e]._x = 850; _root['enemy' + _root.e].enemyfiretime = random(20) + 30; }; _root.enemy5wave1 = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy5'); if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 5; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy5'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 850; _root['enemy' + _root.e]._y = random(400) + 50; _root['enemy' + _root.e].enemyfiretime = random(20) + 30; }; _root.enemy6wave1 = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy6'); if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 6; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy6'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 850; _root['enemy' + _root.e]._y = random(400) + 50; _root['enemy' + _root.e].enemyfiretime = random(20) + 30; }; _root.enemy7wave1 = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('enemy7'); if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = _root.health * 9; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'enemy7'; _root['enemy' + _root.e].healthbar._y = _root['enemy' + _root.e].enemytype._height / 2 + 5; _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e]._x = 850; _root['enemy' + _root.e]._y = random(400) + 50; _root['enemy' + _root.e].enemyfiretime = random(20) + 30; }; _root.enemy1wavetimer = new Array(50, 150, 250, 380, 450, 520, 600, 730, 840, 900, 940, 980, 1050, 1130, 1210, 1260, 1300, 1350, 1440, 1500, 1600, 1770, 1980, 2050, 2160, 2290, 2460, 2640, 2670, 2800, 2830, 2880, 3090, 3160, 3290, 3460, 3500, 3580); _root.enemy2wavetimer = new Array(300, 320, 420, 460, 580, 650, 790, 870, 940, 1040, 1060, 1100, 1160, 1200, 1250, 1350, 1410, 1480, 1580, 1620, 1730, 1850, 1940, 1990, 2050, 2150, 2200, 2279, 2350, 2370, 2590, 2620, 2790, 2890, 2910, 3060, 3120, 3290, 3480, 3550); _root.enemy3wavetimer = new Array(1000, 1280, 1450, 1560, 1600, 1650, 1720, 1830, 1920, 2050, 2110, 2480, 2600, 2840, 2960, 3060, 3270, 3480); _root.enemy4wavetimer = new Array(2340, 2400, 2540, 2600, 2700, 2790, 2840, 2930, 3000, 3150, 3220, 3350, 3400, 3450); _root.enemy4wave2timer = new Array(2760, 2840, 2030, 3000, 3150, 3220, 3570); _root.enemy1wavetimer2 = new Array(100, 200, 300, 350, 450, 540, 600, 700, 800, 920, 1200, 1350, 1530, 1700, 1800, 1840, 1900, 2010, 2200, 2400, 2500, 2580, 2800, 2980, 3010, 3100, 3200, 3360, 3500, 3620); _root.enemy2wavetimer2 = new Array(50, 80, 170, 250, 350, 400, 570, 620, 660, 730, 780, 890, 950, 1300, 1380, 1430, 1600, 1690, 1760, 1900, 2050, 2100, 2231, 2340, 2500, 2600, 2730, 2850, 2930, 3100, 3150, 3200, 3260, 3400, 3480, 3530, 3560); _root.enemy3wavetimer2 = new Array(100, 500, 750, 850, 1000, 1200, 1600, 2120, 2450, 2520, 2600, 2860, 2920, 3250, 3350, 3320, 3450); _root.enemy4wavetimer2 = new Array(450, 1450, 1800, 2500, 2800); _root.enemy4wave2timer2 = new Array(900, 1100, 1350, 1650, 1900, 2000, 2300, 2900, 3120, 3200, 3350, 3500); _root.enemy5wave1timer2 = new Array(850, 1020, 1500, 1800, 2220, 2620, 3250, 3400, 3560); _root.enemy6wave1timer2 = new Array(1700, 1950, 2200, 2300, 2450, 2630, 2860, 3050, 3200, 3400, 3480, 3550); _root.enemy1wavetimer3 = new Array(100, 250, 500, 600, 750, 900, 1050, 1120, 1220, 1300, 1350, 1420, 1650, 1730, 1800, 1900, 2020, 2120, 2250, 2320, 2400, 2650, 2750, 2820, 2950, 3050, 3200, 3300, 3400, 3460, 3500, 3550); _root.enemy2wavetimer3 = new Array(20, 80, 200, 400, 550, 620, 810, 950, 1100, 1230, 1280, 1400, 1480, 1610, 1850, 2000, 2150, 2280, 2400, 2560, 2660, 2800, 2920, 3010, 3200, 3250, 3400, 3500); _root.enemy3wavetimer3 = new Array(60, 160, 360, 690, 830, 1300, 1650, 1820, 2000, 2150, 2350, 2590, 2700, 2820, 3000, 3180, 3250, 3300, 3450); _root.enemy4wavetimer3 = new Array(150, 350, 1200, 1620, 1820, 2300, 2830, 3460); _root.enemy4wave2timer3 = new Array(860, 1030, 1450, 2030, 2550, 3120, 3250, 3360, 3480); _root.enemy5wave1timer3 = new Array(510, 1120, 1380, 1680, 1950, 2200, 2460, 2600, 2750, 2990, 3150, 3300.342); _root.enemy6wave1timer3 = new Array(300, 790, 980, 1480, 1600, 1920, 2060, 2230, 2620, 2790, 2900, 3150, 3250, 3390, 3450); _root.enemy7wave1timer3 = new Array(1330, 1560, 1750, 2200, 2360, 2520, 2750, 2870, 3000, 3250, 3320, 3500); _root.enemy1wavetimer4 = new Array(20, 80, 160, 200, 260, 320, 420, 500, 560, 650, 730); _root.enemy2wavetimer4 = new Array(50, 100, 150, 200, 250, 300, 380, 440, 520, 580, 620, 700); _root.enemy3wavetimer4 = new Array(70, 180, 290, 400, 540, 670, 750); _root.enemy4wavetimer4 = new Array(30, 120, 160, 250, 380, 460, 600, 660); _root.enemy4wave2timer4 = new Array(80, 130, 290, 520); _root.enemy5wave1timer4 = new Array(10, 160, 290, 410, 590, 690); _root.enemy6wave1timer4 = new Array(40, 150, 260, 340, 490, 620, 710); _root.enemy7wave1timer4 = new Array(90, 210, 350, 430, 550, 600); _root.enemy1wavetimer5 = 25; _root.enemy2wavetimer5 = 200; _root.enemy3wavetimer5 = 400; _root.enemy4wavetimer5 = 600; _root.enemy4wave2timer5 = 800; _root.enemy5wave1timer5 = 1000; _root.enemy6wave1timer5 = 1200; _root.enemy7wave1timer5 = 1400; _root.enemy1delay = 25; _root.enemy2delay = 25; _root.enemy3delay = 50; _root.enemy4delay = 75; _root.enemy4delay2 = 75; _root.enemy5delay = 100; _root.enemy6delay = 125; _root.enemy7delay = 125; _root.boss1function = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, 35); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('boss1'); _root['enemy' + _root.e]._x = 1400; _root['enemy' + _root.e].health = 250 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'boss1'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 5); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root.boss1canon = -70; _root.boss1electric = -70; _root.boss1arrive = true; }; _root.boss2function = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, 35); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('boss2'); _root['enemy' + _root.e]._x = 1200; _root['enemy' + _root.e].health = 300 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'boss2'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 5); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root.boss2arrive = true; }; _root.boss3function = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, 35); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('boss3head'); _root['enemy' + _root.e]._x = 600; _root['enemy' + _root.e]._y = 600; _root.boss3health = 450 * _root.health; _root.boss3totalhealth = _root.boss3health; _root['enemy' + _root.e].health = 550 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'boss3head'; _root['enemy' + _root.e].healthbar.gotoAndStop('blank'); _root['enemy' + _root.e].border.gotoAndStop('blank'); }; _root.fbossfunction = function () { ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, 39); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('fboss'); _root['enemy' + _root.e]._x = 1500; _root['enemy' + _root.e].health = 575 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'fboss'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 10); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e].border._x = _root['enemy' + _root.e].healthbar._x + 30; _root['enemy' + _root.e].healthbar._x = _root['enemy' + _root.e].border._x; _root.fbossarrive = true; _root['enemy' + _root.e].fire = random(75) + 75; _root['enemy' + _root.e].fire2 = random(100) + 100; _root['enemy' + _root.e].guncounter = 0; _root['enemy' + _root.e].lasercounter = 0; _root.fbossrest = false; _root.fbossrestcounter = 0; _root.fbosswave = 0; _root.fbossrestcounter = 0; _root.fbossresttime = 300; ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, 35); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('launcher'); _root['enemy' + _root.e]._x = _root['enemy' + (_root.e - 1)]._x + _root['enemy' + (_root.e - 1)].enemytype._x + _root['enemy' + (_root.e - 1)].enemytype.missile._x; _root['enemy' + _root.e]._y = _root['enemy' + (_root.e - 1)]._y + _root['enemy' + (_root.e - 1)].enemytype._y + _root['enemy' + (_root.e - 1)].enemytype.missile._y; _root['enemy' + _root.e].health = 200 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'launcher1'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 5); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e].border._x = _root['enemy' + _root.e].healthbar._x - 30; _root['enemy' + _root.e].healthbar._x = _root['enemy' + _root.e].border._x; _root['enemy' + _root.e].enemytype._rotation = 70; _root['enemy' + _root.e].fire = random(200) + 150; _root['enemy' + _root.e].counter = 0; ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, 36); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('launcher'); _root['enemy' + _root.e]._x = _root['enemy' + (_root.e - 2)]._x + _root['enemy' + (_root.e - 2)].enemytype._x + _root['enemy' + (_root.e - 2)].enemytype.missile2._x; _root['enemy' + _root.e]._y = _root['enemy' + (_root.e - 2)]._y + _root['enemy' + (_root.e - 2)].enemytype._y + _root['enemy' + (_root.e - 2)].enemytype.missile2._y; _root['enemy' + _root.e].health = 200 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'launcher2'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 30); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e].border._x = _root['enemy' + _root.e].healthbar._x - 10; _root['enemy' + _root.e].healthbar._x = _root['enemy' + _root.e].border._x; _root['enemy' + _root.e]._yscale = -100; _root['enemy' + _root.e].fire = random(200) + 150; _root['enemy' + _root.e].counter = 0; ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, 37); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('launcher'); _root['enemy' + _root.e]._x = _root['enemy' + (_root.e - 3)]._x + _root['enemy' + (_root.e - 3)].enemytype._x + _root['enemy' + (_root.e - 3)].enemytype.missile3._x; _root['enemy' + _root.e]._y = _root['enemy' + (_root.e - 3)]._y + _root['enemy' + (_root.e - 3)].enemytype._y + _root['enemy' + (_root.e - 3)].enemytype.missile3._y; _root['enemy' + _root.e].health = 200 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'launcher3'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 30); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e].border._x = _root['enemy' + _root.e].healthbar._x - 10; _root['enemy' + _root.e].healthbar._x = _root['enemy' + _root.e].border._x; _root['enemy' + _root.e].fire = random(200) + 150; _root['enemy' + _root.e].counter = 0; ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, 38); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('launcher'); _root['enemy' + _root.e]._x = _root['enemy' + (_root.e - 4)]._x + _root['enemy' + (_root.e - 4)].enemytype._x + _root['enemy' + (_root.e - 4)].enemytype.missile4._x; _root['enemy' + _root.e]._y = _root['enemy' + (_root.e - 4)]._y + _root['enemy' + (_root.e - 4)].enemytype._y + _root['enemy' + (_root.e - 4)].enemytype.missile4._y; _root['enemy' + _root.e].health = 200 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'launcher4'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 5); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root['enemy' + _root.e].border._x = _root['enemy' + _root.e].healthbar._x - 30; _root['enemy' + _root.e].healthbar._x = _root['enemy' + _root.e].border._x; _root['enemy' + _root.e]._yscale = -100; _root['enemy' + _root.e].enemytype._rotation = 70; _root['enemy' + _root.e].fire = random(200) + 150; _root['enemy' + _root.e].counter = 0; }; _root.enemymove = function () { var v2 = _root.enemyarray.length - 1; while (v2 >= 0) { if (_root.paused == false) { _root.enemyarray[v2].enemywidth = (eval(_root.enemyarray[v2].enemytype))._width; if (_root.enemyarray[v2].hitTest(_root.ship.shipmc)) { _root.hitship = true; _root.checkhealth = true; _root.shieldfadein = true; _root.enemyarray[v2].gotoAndPlay('hit'); if (_root.enemyarray[v2].enemytypevar == 'boss3head' || _root.enemyarray[v2].enemytypevar == 'boss3body' || _root.enemyarray[v2].enemytypevar == 'boss3tail') { _root.boss3health -= 3; _root.shipshield -= 2; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); } else { _root.shipshield -= 6; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.enemyarray[v2].health -= 6; } } if (_root.enemyarray[v2].hitTest(_root.ship.protector.sphere)) { _root.enemyarray[v2].gotoAndPlay('hit'); _root.enemyarray[v2].health -= 1; _root.protector1health -= 1; if (_root.protector1health < 7 && _root.protector1health > 2) { _root.ship.protector.sphere.gotoAndStop('half'); } else { if (_root.protector1health <= 2 && _root.protector1health >= 0) { _root.ship.protector.sphere.gotoAndStop('critical'); } else { if (_root.protector1health < 0) { trace('Protector1 Gone'); if (_root.protectorlevel > 2) { _root.protectorframe = _root.ship.protector2._currentframe - 19; if (_root.protectorframe < 3) { _root.protectorframe = 41 + _root.protectorframe; } _root.protectorlevel = 2; if (_root.autorotate == true) { _root.ship.protector.gotoAndPlay(_root.protectorframe); } else { _root.ship.protector.gotoAndStop(_root.protectorframe); } _root.protector1health = _root.protector2health; if (_root.protector1health < 7 && _root.protector1health > 2) { _root.ship.protector.sphere.gotoAndStop('half'); } else { if (_root.protector1health <= 2 && _root.protector1health >= 0) { _root.ship.protector.sphere.gotoAndStop('critical'); } } } else { _root.protectorlevel = 0; } _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); duplicateMovieClip(_root.shipexplosion, 'shipexplosion' + _root.depth, _root.depth); _root['shipexplosion' + _root.depth]._x = _root.ship._x + _root.ship.protector._x + _root.ship.protector.sphere._x; _root['shipexplosion' + _root.depth]._y = _root.ship._y + _root.ship.protector._y + _root.ship.protector.sphere._y; _root['shipexplosion' + _root.depth]._yscale = 50; _root['shipexplosion' + _root.depth]._xscale = 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } } } if (_root.enemyarray[v2].hitTest(_root.ship.protector2.sphere)) { _root.protector2health -= 1; _root.enemyarray[v2].gotoAndPlay('hit'); _root.enemyarray[v2].health -= 1; if (_root.protector2health < 7 && _root.protector2health > 2) { _root.ship.protector2.sphere.gotoAndStop('half'); } else { if (_root.protector2health <= 2 && _root.protector2health >= 0) { _root.ship.protector2.sphere.gotoAndStop('critical'); } else { if (_root.protector2health < 0) { trace('Protector2 Gone'); _root.protectorlevel = 2; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); duplicateMovieClip(_root.shipexplosion, 'shipexplosion' + _root.depth, _root.depth); _root['shipexplosion' + _root.depth]._x = _root.ship._x + _root.ship.protector2._x + _root.ship.protector2.sphere._x; _root['shipexplosion' + _root.depth]._y = _root.ship._y + _root.ship.protector2._y + _root.ship.protector2.sphere._y; _root['shipexplosion' + _root.depth]._yscale = 50; _root['shipexplosion' + _root.depth]._xscale = 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } } } _root.enemyarray[v2].healthbar._xscale = (_root.enemyarray[v2].health / _root.enemyarray[v2].totalhealth) * 100; if (_root.enemyarray[v2].enemytypevar == 'boss3head' || _root.enemyarray[v2].enemytypevar == 'boss3body' || _root.enemyarray[v2].enemytypevar == 'boss3tail') { _root.enemyarray[_root.enemyarray.length - 1].healthbar._xscale = (_root.boss3health / _root.boss3totalhealth) * 100; } if (_root.enemyarray[v2].health <= 0 || _root.boss3health <= 0) { if (_root.mode == 'mission') { if (_root.difficulty == 'easy' || _root.difficulty == 'normal') { _root.totalscore += int(Number((_root.enemyarray[v2].totalhealth / _root.health) * 3)); } else { if (_root.difficulty == 'expert') { _root.totalscore += int(Number((_root.enemyarray[v2].totalhealth / _root.health) * 5)); } } _root.status.score = int(_root.totalscore); } else { if (_root.mode == 'survival') { if (_root.difficulty == 'easy' || _root.difficulty == 'normal') { _root.totalscore2 += int(Number((_root.enemyarray[v2].totalhealth / _root.health) * 3)); } else { if (_root.difficulty == 'expert') { _root.totalscore2 += int(Number((_root.enemyarray[v2].totalhealth / _root.health) * 5)); } } _root.status.score = int(_root.totalscore2); } } if (_root.enemiesdestroyed < _root.enemiesrequired) { ++_root.enemiesdestroyed; } else { _root.enemiesdestroyed = 0; if (_root.mode == 'mission') { if (_root.levelnumber < 3) { tocreateornot = random(4) + 1; } else { tocreateornot = random(5) + 1; } if (tocreateornot == 1) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.weaponpowerupfunction(); } if (tocreateornot == 2) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.missilepowerupfunction(); } if (tocreateornot == 3) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.bombpowerupfunction(); } if (tocreateornot == 4) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.minihealthpowerupfunction(); } if (tocreateornot == 5) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.protectorpowerupfunction(); } } else { tocreateornot = random(4) + 1; if (tocreateornot == 1) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.weaponpowerupfunction(); } if (tocreateornot == 2) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.missilepowerupfunction(); } if (tocreateornot == 3) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.bombpowerupfunction(); } if (tocreateornot == 4) { _root.assignx = _root.enemyarray[v2]._x; _root.assigny = _root.enemyarray[v2]._y; _root.protectorpowerupfunction(); } } } _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); duplicateMovieClip(_root.shipexplosion, 'shipexplosion' + _root.depth, _root.depth); _root['shipexplosion' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x; _root['shipexplosion' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y; _root['shipexplosion' + _root.depth]._xscale = 100 * (_root.enemyarray[v2].enemywidth / _root.explosionxsize); _root['shipexplosion' + _root.depth]._yscale = _root['shipexplosion' + _root.depth]._xscale; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } if (_root.enemyarray[v2].enemytypevar == 'boss1' || _root.enemyarray[v2].enemytypevar == 'boss2' || _root.enemyarray[v2].enemytypevar == 'boss3head') { _root.display.gotoAndPlay('cut11'); _root.gametimer = false; _root.bosskilled = true; } else { if (_root.enemyarray[v2].enemytypevar == 'fboss') { i = _root.enemyarray.length; while (i >= 0) { _root.enemyarray[i].health = 0; --i; } _root.enemyarray[v2].enemytype.explode.gotoAndPlay('explode'); _root.fbossrest = false; _root.fbossrestcounter = 0; _root.fbosswave = 0; _root.gametimer = false; _root.bosskilled = true; _root.enemyarray.splice(v2, 1); _root.fade = 'out'; } } if (_root.enemyarray[v2].enemytypevar == 'boss2') { _root.display.gotoAndPlay('cut22'); _root.gametimer = false; _root.bosskilled = true; } else { if (_root.enemyarray[v2].enemytypevar == 'fboss') { i = _root.enemyarray.length; while (i >= 0) { _root.enemyarray[i].health = 0; --i; } _root.enemyarray[v2].enemytype.explode.gotoAndPlay('explode'); _root.fbossrest = false; _root.fbossrestcounter = 0; _root.fbosswave = 0; _root.gametimer = false; _root.bosskilled = true; _root.enemyarray.splice(v2, 1); _root.fade = 'out'; } } if (_root.enemyarray[v2].enemytypevar == 'boss3head') { _root.display.gotoAndPlay('cut33'); _root.gametimer = false; _root.bosskilled = true; } else { if (_root.enemyarray[v2].enemytypevar == 'fboss') { i = _root.enemyarray.length; while (i >= 0) { _root.enemyarray[i].health = 0; --i; } _root.enemyarray[v2].enemytype.explode.gotoAndPlay('explode'); _root.fbossrest = false; _root.fbossrestcounter = 0; _root.fbosswave = 0; _root.gametimer = false; _root.bosskilled = true; _root.enemyarray.splice(v2, 1); _root.fade = 'out'; } } if (_root.enemyarray[v2].enemytypevar != 'fboss') { _root.enemyarray[v2].removeMovieClip(); _root.enemyarray.splice(v2, 1); } } if (_root.enemyarray[v2]._x < -5 - _root.enemyarray[v2]._width && _root.enemyarray[v2].enemytypevar != 'boss3head' && _root.enemyarray[v2].enemytypevar != 'boss3body' && _root.enemyarray[v2].enemytypevar != 'boss3tail') { _root.enemyarray[v2].removeMovieClip(); _root.enemyarray.splice(v2, 1); } if (_root.enemyarray[v2].enemytypevar == 'boss1') { if (_root.boss1electric < 95) { ++_root.boss1electric; } ++_root.boss1canon; if (_root.boss1electric == 75) { _root.boss1electricsound.stop; _root.boss1electricsound.start(0, 0); _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun._y; _root['enemybullet' + _root.depth].gotoAndStop('boss1electric'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'boss1electric'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y); _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].xvalue = -15 * Math.cos(_root['enemybullet' + _root.depth].angle); _root['enemybullet' + _root.depth].yvalue = -20 * Math.sin(_root['enemybullet' + _root.depth].angle); _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } if (_root.boss1electric == 85) { _root.boss1electricsound.stop; _root.boss1electricsound.start(0, 0); _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun2._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun2._y; _root['enemybullet' + _root.depth].gotoAndStop('boss1electric'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'boss1electric'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y); _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].xvalue = -20 * Math.cos(_root['enemybullet' + _root.depth].angle); _root['enemybullet' + _root.depth].yvalue = -20 * Math.sin(_root['enemybullet' + _root.depth].angle); _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } if (_root.boss1electric == 95) { _root.boss1electric = 0; _root.boss1electricsound.stop; _root.boss1electricsound.start(0, 0); _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun3._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun3._y; _root['enemybullet' + _root.depth].gotoAndStop('boss1electric'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'boss1electric'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y); _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].xvalue = -20 * Math.cos(_root['enemybullet' + _root.depth].angle); _root['enemybullet' + _root.depth].yvalue = -20 * Math.sin(_root['enemybullet' + _root.depth].angle); _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } if (Math.abs(_root.ship._y + _root.ship.shipmc._y - _root.enemyarray[v2]._y) < 100 && _root.boss1canon > 60) { _root.boss1canon = 0; _root.boss1canonsound.start(0, 0); _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.canon._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.canon._y; _root['enemybullet' + _root.depth].gotoAndStop('boss1canon'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'boss1canon'; _root['enemybullet' + _root.depth].xvalue = -17; _root['enemybullet' + _root.depth].yvalue = 0; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } else { if (_root.enemyarray[v2].enemytypevar == 'boss2' && _root.bossready == true) { ++_root.boss2laser; ++_root.boss2gun; if (_root.boss2laser == 210) { _root.boss2big.start(0, 0); _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.biggun1._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.biggun1._y; _root['enemybullet' + _root.depth].gotoAndStop('ashotty'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemymissilet'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y) - 15; _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].angle2 = _root['enemybullet' + _root.depth].angle * 57.29578; _root['enemybullet' + _root.depth].deployrate = 10; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.biggun2._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.biggun2._y; _root['enemybullet' + _root.depth].gotoAndStop('boss1electric'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemymissilet'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y) - 15; _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].angle2 = _root['enemybullet' + _root.depth].angle * 57.29578; _root['enemybullet' + _root.depth].deployrate = 10; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.boss2laser = 0; } if (_root.boss2gun == 75) { _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun1._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun1._y; _root['enemybullet' + _root.depth].gotoAndStop('3shots'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root['enemybullet' + _root.depth].xvalue = 0; _root['enemybullet' + _root.depth].yvalue = 0.8 * -_root.enemy1bulletspeed; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun2._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun2._y; _root['enemybullet' + _root.depth].gotoAndStop('3shots'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root['enemybullet' + _root.depth].xvalue = 0.8 * _root.enemy1bulletspeed * 0.8660254; _root['enemybullet' + _root.depth].yvalue = 0.8 * -_root.enemy1bulletspeed * 0.5; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun3._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun3._y; _root['enemybullet' + _root.depth].gotoAndStop('enemymissile'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemymissilet'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y) - 15; _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].angle2 = _root['enemybullet' + _root.depth].angle * 57.29578; _root['enemybullet' + _root.depth].deployrate = 10; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun4._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun4._y; _root['enemybullet' + _root.depth].gotoAndStop('enemymissile'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemymissilet'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y) - 15; _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].angle2 = _root['enemybullet' + _root.depth].angle * 57.29578; _root['enemybullet' + _root.depth].deployrate = 10; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun5._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun5._y; _root['enemybullet' + _root.depth].gotoAndStop('enemymissile'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemymissilet'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y) - 15; _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].angle2 = _root['enemybullet' + _root.depth].angle * 57.29578; _root['enemybullet' + _root.depth].deployrate = 10; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun6._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun6._y; _root['enemybullet' + _root.depth].gotoAndStop('enemymissile'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemymissilet'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y) - 15; _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].angle2 = _root['enemybullet' + _root.depth].angle * 57.29578; _root['enemybullet' + _root.depth].deployrate = 10; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.boss2gun = 0; } if (_root.boss2laser == 200) { _root.boss2stoplaser = true; } else { if (_root.boss2laser == 60) { _root.boss2lasersound.start(0, 0); _root.enemyarray[v2].enemytype.lasercharge.gotoAndPlay(2); } else { if (_root.boss2laser == 100) { _root.boss2lasersound.stop(); _root.boss2lasersound2.start(0, 0); _root.enemyarray[v2].enemytype.lasercharge.gotoAndStop(1); _root.boss2stoplaser = false; _root.boss2firelaser = true; _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.lasergun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.lasergun._y; _root['enemybullet' + _root.depth].gotoAndStop('boss2laser'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'boss2laser1'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.lasergun2._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.lasergun2._y; _root['enemybullet' + _root.depth].gotoAndStop('boss2laser'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'boss2laser2'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } } } else { if (_root.enemyarray[v2].enemytypevar == 'boss3body') { ++_root.enemyarray[v2].boss3counter; if (_root.enemyarray[v2].boss3counter == _root.enemyarray[v2].fire) { _root.enemyarray[v2].fire = random(100) + 100; _root.enemyarray[v2].enemytype.hatch.gotoAndPlay('open'); _root.enemyarray[v2].boss3counter = 0; } } else { if (_root.enemyarray[v2].enemytypevar == 'fboss') { if (_root.fbossrest == false) { ++_root.enemyarray[v2].guncounter; ++_root.enemyarray[v2].lasercounter; if (_root.enemyarray[v2].guncounter == _root.enemyarray[v2].fire) { _root.enemyarray[v2].fire = random(75) + 50; _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun._y; _root['enemybullet' + _root.depth].starty = _root['enemybullet' + _root.depth]._y; _root['enemybullet' + _root.depth].desty = _root['enemybullet' + _root.depth].starty + 50; _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed; _root['enemybullet' + _root.depth].gotoAndStop('fbossgun'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'fbossgun'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemyarray[v2].guncounter = 0; } if (_root.enemyarray[v2].lasercounter == _root.enemyarray[v2].fire2) { _root.boss2lasersound.stop(); _root.boss2lasersound.start(0, 0); _root.enemyarray[v2].enemytype.charge.gotoAndPlay('charge'); _root.enemyarray[v2].fire2 = random(100) + 100; _root.enemyarray[v2].lasercounter = 0; } } } else { if (_root.enemyarray[v2].enemytypevar == 'launcher1' || _root.enemyarray[v2].enemytypevar == 'launcher2' || _root.enemyarray[v2].enemytypevar == 'launcher3' || _root.enemyarray[v2].enemytypevar == 'launcher4') { ++_root.enemyarray[v2].counter; if (_root.enemyarray[v2].counter == _root.enemyarray[v2].fire) { _root.enemyarray[v2].fire = random(200) + 150; ++_root.e; _root.enemy.duplicateMovieClip('enemy' + _root.e, _root.depth); _root.enemyarray[_root.enemyarray.length] = _root['enemy' + _root.e]; _root['enemy' + _root.e].enemytype.gotoAndStop('rocket'); _root['enemy' + _root.e]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x; _root['enemy' + _root.e]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y; _root['enemy' + _root.e].megahomingturndelay = 3; _root['enemy' + _root.e].deploy = true; _root['enemy' + _root.e].deploycounter = 0; _root['enemy' + _root.e].speedx = 8; _root['enemy' + _root.e].speedy = 8; if (_root.enemyarray[v2].enemytypevar == 'launcher1') { _root['enemy' + _root.e].angle = -2.792527; } else { if (_root.enemyarray[v2].enemytypevar == 'launcher2') { _root['enemy' + _root.e].angle = -2.443461; _root['enemy' + _root.e]._x += 10; } else { if (_root.enemyarray[v2].enemytypevar == 'launcher3') { _root['enemy' + _root.e].angle = 2.094395; _root['enemy' + _root.e]._x += 5; } else { if (_root.enemyarray[v2].enemytypevar == 'launcher4') { _root['enemy' + _root.e].angle = 2.792527; } } } } if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root['enemy' + _root.e].health = 3 * _root.health; _root['enemy' + _root.e].totalhealth = _root['enemy' + _root.e].health; _root['enemy' + _root.e].enemytypevar = 'rocket'; _root['enemy' + _root.e].healthbar._y = int(_root['enemy' + _root.e].enemytype._height / 2 + 5); _root['enemy' + _root.e].border._y = _root['enemy' + _root.e].healthbar._y; _root.enemyarray[v2].counter = 0; } } } } } } ++_root.enemyarray[v2].enemyfiretimer; if (_root.enemyarray[v2].enemyfiretimer == _root.enemyarray[v2].enemyfiretime) { _root.enemyarray[v2].enemyfiretime = random(25) + 30; _root.enemyarray[v2].enemyfiretimer = 0; if (_root.enemyarray[v2].enemytypevar == 'enemy1' || _root.enemyarray[v2].enemytypevar == 'enemy4') { _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun._y; _root['enemybullet' + _root.depth].gotoAndStop('ebullet1'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed; _root['enemybullet' + _root.depth].yvalue = 0; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } else { if (_root.enemyarray[v2].enemytypevar == 'enemy2') { _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun._y; _root['enemybullet' + _root.depth].gotoAndStop('roboball'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed * 0.9659258; _root['enemybullet' + _root.depth].yvalue = -_root.enemy1bulletspeed * 0.258819; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun2._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun2._y; _root['enemybullet' + _root.depth].gotoAndStop('roboball'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed; _root['enemybullet' + _root.depth].yvalue = 0; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun3._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun3._y; _root['enemybullet' + _root.depth].gotoAndStop('roboball'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed * 0.9659258; _root['enemybullet' + _root.depth].yvalue = _root.enemy1bulletspeed * 0.258819; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } else { if (_root.enemyarray[v2].enemytypevar == 'enemy3') { _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun._y; _root['enemybullet' + _root.depth].gotoAndStop('3shots'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed * 0.9659258; _root['enemybullet' + _root.depth].yvalue = -_root.enemy1bulletspeed * 0.258819; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun2._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun2._y; _root['enemybullet' + _root.depth].gotoAndStop('3shots'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed; _root['enemybullet' + _root.depth].yvalue = 0; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun3._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun3._y; _root['enemybullet' + _root.depth].gotoAndStop('3shots'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed * 0.9659258; _root['enemybullet' + _root.depth].yvalue = _root.enemy1bulletspeed * 0.258819; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } else { if (_root.enemyarray[v2].enemytypevar == 'enemy6') { _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun._y; _root['enemybullet' + _root.depth].gotoAndStop('enemymissile'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemymissilet'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y) - 15; _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].angle2 = _root['enemybullet' + _root.depth].angle * 57.29578; _root['enemybullet' + _root.depth].deployrate = 10; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun2._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun2._y; _root['enemybullet' + _root.depth].gotoAndStop('enemymissile'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemymissileb'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y) + 15; _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].angle2 = _root['enemybullet' + _root.depth].angle * 57.29578; _root['enemybullet' + _root.depth].deployrate = 10; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } else { if (_root.enemyarray[v2].enemytypevar == 'enemy7') { _root.boss1electricsound.stop; _root.boss1electricsound.start(0, 0); _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun._y; _root['enemybullet' + _root.depth].gotoAndStop('enemy7'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'enemy7'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y); _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].xvalue = -20 * Math.cos(_root['enemybullet' + _root.depth].angle); _root['enemybullet' + _root.depth].yvalue = -20 * Math.sin(_root['enemybullet' + _root.depth].angle); _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } } } } } if (_root.enemyarray[v2].enemytypevar == 'enemy5') { _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[v2]._x + _root.enemyarray[v2].enemytype._x + _root.enemyarray[v2].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[v2]._y + _root.enemyarray[v2].enemytype._y + _root.enemyarray[v2].enemytype.gun._y; _root['enemybullet' + _root.depth].gotoAndStop('robshot'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed; _root['enemybullet' + _root.depth].yvalue = 0; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'shot1'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } --v2; } }; _root.enemymove2 = function () { var v2 = _root.enemyarray.length - 1; while (v2 >= 0) { if (_root.enemyarray[v2].enemytypevar == 'boss1') { if (_root.enemyarray[v2]._x == _root.enemyarray[v2].destx && _root.enemyarray[v2]._y == _root.enemyarray[v2].desty) { _root.boss1arrive = true; } if (_root.boss1arrive == true) { _root.enemyarray[v2].destx = random(300) + 300; _root.enemyarray[v2].desty = random(300) + 100; _root.boss1arrive = false; } if (Math.abs(_root.enemyarray[v2].destx - _root.enemyarray[v2]._x) > _root.boss1speed) { if (_root.enemyarray[v2]._x < _root.enemyarray[v2].destx) { _root.enemyarray[v2]._x += _root.boss1speed; } else { _root.enemyarray[v2]._x -= _root.boss1speed; } } else { _root.enemyarray[v2]._x = _root.enemyarray[v2].destx; } if (Math.abs(_root.enemyarray[v2].desty - _root.enemyarray[v2]._y) > _root.boss1speed) { if (_root.enemyarray[v2]._y < _root.enemyarray[v2].desty) { _root.enemyarray[v2]._y += _root.boss1speed; } else { _root.enemyarray[v2]._y -= _root.boss1speed; } } else { _root.enemyarray[v2]._y = _root.enemyarray[v2].desty; } } else { if (_root.enemyarray[v2].enemytypevar == 'boss2') { if (_root.enemyarray[v2]._x < 1024) { _root.bossready = true; } if (_root.enemyarray[v2]._x == _root.enemyarray[v2].destx && _root.enemyarray[v2]._y == _root.enemyarray[v2].desty) { _root.boss2arrive = true; } if (_root.boss2arrive == true) { _root.enemyarray[v2].destx = random(300) + 300; _root.enemyarray[v2].desty = random(300) + 100; _root.boss2arrive = false; } if (Math.abs(_root.enemyarray[v2].destx - _root.enemyarray[v2]._x) > 0.6 * _root.boss1speed) { if (_root.enemyarray[v2]._x < _root.enemyarray[v2].destx) { _root.enemyarray[v2]._x += 0.6 * _root.boss1speed; } else { _root.enemyarray[v2]._x -= 0.6 * _root.boss1speed; } } else { _root.enemyarray[v2]._x = _root.enemyarray[v2].destx; } if (Math.abs(_root.enemyarray[v2].desty - _root.enemyarray[v2]._y) > 0.6 * _root.boss1speed) { if (_root.enemyarray[v2]._y < _root.enemyarray[v2].desty) { _root.enemyarray[v2]._y += 0.6 * _root.boss1speed; } else { _root.enemyarray[v2]._y -= 0.6 * _root.boss1speed; } } else { _root.enemyarray[v2]._y = _root.enemyarray[v2].desty; } } else { if (_root.enemyarray[v2].enemytypevar == 'boss3head') { _root.enemyarray[v2].diffx = int(_root.boss3x - _root.enemyarray[v2]._x); _root.enemyarray[v2].diffy = int(_root.boss3y - _root.enemyarray[v2]._y); if (_root.enemyarray[v2].diffx > 0 && _root.enemyarray[v2].diffy > 0) { _root.enemyarray[v2].quad = Number(4); } if (_root.enemyarray[v2].diffx < 0 && _root.enemyarray[v2].diffy > 0) { _root.enemyarray[v2].quad = Number(1); } if (_root.enemyarray[v2].diffx < 0 && _root.enemyarray[v2].diffy < 0) { _root.enemyarray[v2].quad = Number(2); } if (_root.enemyarray[v2].diffx > 0 && _root.enemyarray[v2].diffy < 0) { _root.enemyarray[v2].quad = Number(3); } _root.enemyarray[v2].abs_x = Math.abs(_root.enemyarray[v2].diffx); _root.enemyarray[v2].abs_y = Math.abs(_root.enemyarray[v2].diffy); _root.enemyarray[v2].tg = _root.enemyarray[v2].abs_y / _root.enemyarray[v2].abs_x; _root.enemyarray[v2].maths = Math.atan(_root.enemyarray[v2].tg) * Number(180) / 3.141593; _root.enemyarray[v2].distance = Math.sqrt(_root.enemyarray[v2]._x - _root.boss3x ^ 2 + (_root.enemyarray[v2]._y - _root.boss3y) ^ 2); if (_root.enemyarray[v2].quad == 1) { _root.enemyarray[v2].angle = Number(180) - Number(_root.enemyarray[v2].maths); } if (_root.enemyarray[v2].quad == 2) { _root.enemyarray[v2].angle = Number(180) + Number(_root.enemyarray[v2].maths); } if (_root.enemyarray[v2].quad == 3) { _root.enemyarray[v2].angle = Number(360) - Number(_root.enemyarray[v2].maths); } if (_root.enemyarray[v2].quad == 4) { _root.enemyarray[v2].angle = Number(_root.enemyarray[v2].maths); } if (_root.enemyarray[v2].angle <= 180) { if (_root.enemyarray[v2]._rotation + 180 >= _root.enemyarray[v2].angle) { _root.enemyarray[v2]._rotation += (_root.enemyarray[v2].angle - _root.enemyarray[v2]._rotation) / _root.boss3turndelay; } else { if (_root.enemyarray[v2].angle >= _root.enemyarray[v2]._rotation) { _root.enemyarray[v2]._rotation += (_root.enemyarray[v2].angle - _root.enemyarray[v2]._rotation) / _root.boss3turndelay; } else { _root.enemyarray[v2]._rotation -= (_root.enemyarray[v2]._rotation - _root.enemyarray[v2].angle) / _root.boss3turndelay; } } } else { if (_root.enemyarray[v2].angle > 180) { if (_root.enemyarray[v2].angle - 180 < _root.enemyarray[v2]._rotation) { if (_root.enemyarray[v2]._rotation < _root.enemyarray[v2].angle) { _root.enemyarray[v2]._rotation += (_root.enemyarray[v2].angle - _root.enemyarray[v2]._rotation) / _root.boss3turndelay; } else { _root.enemyarray[v2]._rotation -= (_root.enemyarray[v2]._rotation - _root.enemyarray[v2].angle) / _root.boss3turndelay; } } else { _root.enemyarray[v2]._rotation -= (360 - (_root.enemyarray[v2].angle - _root.enemyarray[v2]._rotation)) / _root.boss3turndelay; } } } _root.enemyarray[v2].xmove = _root.boss3s * Math.cos(0.01745329 * _root.enemyarray[v2]._rotation); _root.enemyarray[v2].ymove = _root.boss3s * Math.sin(0.01745329 * _root.enemyarray[v2]._rotation); _root.enemyarray[v2]._x += _root.enemyarray[v2].xmove; _root.enemyarray[v2]._y += _root.enemyarray[v2].ymove; if (_root.enemyarray[v2].distance < 5) { if (_root.difficulty == 'easy' || _root.difficulty == 'normal') { if (_root.boss3counter < _root.boss3xarray.length - 1) { ++_root.boss3counter; } else { _root.boss3counter = 0; } _root.boss3x = _root.boss3xarray[_root.boss3counter]; _root.boss3y = _root.boss3yarray[_root.boss3counter]; _root.boss3s = _root.boss3sarray[_root.boss3counter]; _root.boss3turndelay = _root.boss3turndelayarray[_root.boss3counter]; } else { if (_root.difficulty == 'expert') { _root.boss3x = random(699) + 1; _root.boss3y = random(499) + 1; _root.boss3s = random(11) + 5; _root.boss3turndelay = random(7) + 4; } } } } else { if (_root.enemyarray[v2].enemytypevar == 'boss3body' || _root.enemyarray[v2].enemytypevar == 'boss3tail') { _root.enemyarray[v2].offx = _root.enemyarray[v2 - 1].enemytype.attachpoint._x * Math.cos(_root.enemyarray[v2 - 1]._rotation * 3.141593 / 180); _root.enemyarray[v2].offy = _root.enemyarray[v2 - 1].enemytype.attachpoint._x * Math.sin(-_root.enemyarray[v2 - 1]._rotation * 3.141593 / 180); _root.enemyarray[v2]._x = _root.enemyarray[v2 - 1]._x + _root.enemyarray[v2 - 1].enemytype._x + _root.enemyarray[v2].offx; _root.enemyarray[v2]._y = _root.enemyarray[v2 - 1]._y + _root.enemyarray[v2 - 1].enemytype._y - _root.enemyarray[v2].offy; _root.enemyarray[v2]._rotation += (_root.enemyarray[v2 - 1]._rotation - _root.enemyarray[v2]._rotation) / 7; } else { if (_root.enemyarray[v2].enemytypevar == 'fboss') { if (_root.fbossrest == false) { if (_root.enemyarray[v2]._x == _root.enemyarray[v2].destx && _root.enemyarray[v2]._y == _root.enemyarray[v2].desty) { _root.fbossarrive = true; } if (_root.fbossarrive == true) { _root.enemyarray[v2].destx = random(300) + 300; _root.enemyarray[v2].desty = random(300) + 100; _root.fbossarrive = false; } if (Math.abs(_root.enemyarray[v2].destx - _root.enemyarray[v2]._x) > 0.6 * _root.boss1speed) { if (_root.enemyarray[v2]._x < _root.enemyarray[v2].destx) { _root.enemyarray[v2]._x += 0.6 * _root.boss1speed; } else { _root.enemyarray[v2]._x -= 0.6 * _root.boss1speed; } } else { _root.enemyarray[v2]._x = _root.enemyarray[v2].destx; } if (Math.abs(_root.enemyarray[v2].desty - _root.enemyarray[v2]._y) > 0.6 * _root.boss1speed) { if (_root.enemyarray[v2]._y < _root.enemyarray[v2].desty) { _root.enemyarray[v2]._y += 0.6 * _root.boss1speed; } else { _root.enemyarray[v2]._y -= 0.6 * _root.boss1speed; } } else { _root.enemyarray[v2]._y = _root.enemyarray[v2].desty; } ++_root.fbossrestcounter; if (_root.fbossrestcounter == _root.fbossresttime) { _root.fbossrestcounter = 0; _root.fbossticker = 0; _root.e7w1pos = 0; _root.e6w1pos = 0; _root.e5w1pos = 0; _root.e4w2pos = 0; _root.e4w1pos = 0; _root.e3w1pos = 0; _root.e2w1pos = 0; _root.e1w1pos = 0; if (_root.enemyarray[v2].health > 450 * _root.health) { _root.fbosswave = 1; } else { if (_root.enemyarray[v2].health > 350 * _root.health) { _root.fbosswave = 2; _root.assignx = 800; _root.assigny = random(300) + 100; _root.healthpowerupfunction(); } else { if (_root.enemyarray[v2].health > 0) { _root.fbosswave = 3; } } } _root.changeframes = true; _root.assignx = 900; _root.assigny = 250; _root.minihealthpowerupfunction(); _root.fbossrest = true; } } else { if (_root.enemyarray[v2]._x < 1500) { _root.enemyarray[v2]._x += 0.6 * _root.boss1speed; } if (_root.changeframes == true) { if (_root.enemyarray[v2]._x > 750 + _root.enemyarray[v2]._width) { _root.enemyarray[v2].enemytype.gotoAndStop('blank'); _root.changeframes = false; } } ++_root.fbossrestcounter; if (_root.fbossrestcounter == 500) { _root.enemyarray[v2].enemytype.gotoAndStop('fboss'); _root.fbossrest = false; _root.fbossresttime = 625; _root.changeframes = true; _root.fbossrestcounter = 0; _root.fbossarrive = true; _root.fbosswave = 0; } } _root.fbossnumber = v2; } else { if (_root.enemyarray[v2].enemytypevar == 'launcher1') { _root.enemyarray[v2]._x = _root.enemyarray[_root.fbossnumber]._x + _root.enemyarray[_root.fbossnumber].enemytype._x + _root.enemyarray[_root.fbossnumber].enemytype.missile._x; _root.enemyarray[v2]._y = _root.enemyarray[_root.fbossnumber]._y + _root.enemyarray[_root.fbossnumber].enemytype._y + _root.enemyarray[_root.fbossnumber].enemytype.missile._y; if (_root.changeframes == true) { if (_root.fbossrest == true) { if (_root.enemyarray[v2]._x > 1024 + _root.enemyarray[v2]._width) { _root.enemyarray[v2].enemytype.gotoAndStop('blank'); } } else { _root.enemyarray[v2].enemytype.gotoAndStop('launcher'); if (v2 == 1) { _root.changeframes = false; } } } } else { if (_root.enemyarray[v2].enemytypevar == 'launcher2') { _root.enemyarray[v2]._x = _root.enemyarray[_root.fbossnumber]._x + _root.enemyarray[_root.fbossnumber].enemytype._x + _root.enemyarray[_root.fbossnumber].enemytype.missile2._x; _root.enemyarray[v2]._y = _root.enemyarray[_root.fbossnumber]._y + _root.enemyarray[_root.fbossnumber].enemytype._y + _root.enemyarray[_root.fbossnumber].enemytype.missile2._y; if (_root.changeframes == true) { if (_root.fbossrest == true) { if (_root.enemyarray[v2]._x > 1024 + _root.enemyarray[v2]._width) { _root.enemyarray[v2].enemytype.gotoAndStop('blank'); } } else { _root.enemyarray[v2].enemytype.gotoAndStop('launcher'); if (v2 == 1) { _root.changeframes = false; } } } } else { if (_root.enemyarray[v2].enemytypevar == 'launcher3') { _root.enemyarray[v2]._x = _root.enemyarray[_root.fbossnumber]._x + _root.enemyarray[_root.fbossnumber].enemytype._x + _root.enemyarray[_root.fbossnumber].enemytype.missile3._x; _root.enemyarray[v2]._y = _root.enemyarray[_root.fbossnumber]._y + _root.enemyarray[_root.fbossnumber].enemytype._y + _root.enemyarray[_root.fbossnumber].enemytype.missile3._y; if (_root.changeframes == true) { if (_root.fbossrest == true) { if (_root.enemyarray[v2]._x > 1024 + _root.enemyarray[v2]._width) { _root.enemyarray[v2].enemytype.gotoAndStop('blank'); } } else { _root.enemyarray[v2].enemytype.gotoAndStop('launcher'); if (v2 == 1) { _root.changeframes = false; } } } } else { if (_root.enemyarray[v2].enemytypevar == 'launcher4') { _root.enemyarray[v2]._x = _root.enemyarray[_root.fbossnumber]._x + _root.enemyarray[_root.fbossnumber].enemytype._x + _root.enemyarray[_root.fbossnumber].enemytype.missile4._x; _root.enemyarray[v2]._y = _root.enemyarray[_root.fbossnumber]._y + _root.enemyarray[_root.fbossnumber].enemytype._y + _root.enemyarray[_root.fbossnumber].enemytype.missile4._y; if (_root.changeframes == true) { if (_root.fbossrest == true) { if (_root.enemyarray[v2]._x > 1024 + _root.enemyarray[v2]._width) { _root.enemyarray[v2].enemytype.gotoAndStop('blank'); } } else { _root.enemyarray[v2].enemytype.gotoAndStop('launcher'); if (v2 == 1) { _root.changeframes = false; } } } } else { if (_root.enemyarray[v2].enemytypevar == 'rocket') { if (_root.enemyarray[v2]._x > 730 || _root.enemyarray[v2]._x < -30) { _root.enemyarray[v2].removeMovieClip(); _root.enemyarray.splice(v2, 1); } if (_root.enemyarray[v2].deploy == true) { _root.enemyarray[v2]._rotation = _root.enemyarray[v2].angle * 180 / 3.141593; _root.enemyarray[v2]._x += _root.enemyarray[v2].speedx * Math.cos(_root.enemyarray[v2].angle); _root.enemyarray[v2]._y += _root.enemyarray[v2].speedy * Math.sin(_root.enemyarray[v2].angle); ++_root.enemyarray[v2].deploytimer; if (_root.enemyarray[v2].deploytimer == 15) { _root.enemyarray[v2].deploy = false; } } else { if (_root.enemyarray[v2].deploy == false) { _root.enemyarray[v2].diffx = int(_root.ship._x + _root.ship.shipmc._x - _root.enemyarray[v2]._x); _root.enemyarray[v2].diffy = int(_root.ship._y + _root.ship.shipmc._y - _root.enemyarray[v2]._y); if (_root.enemyarray[v2].diffx > 0 && _root.enemyarray[v2].diffy > 0) { _root.enemyarray[v2].quad = Number(4); } if (_root.enemyarray[v2].diffx < 0 && _root.enemyarray[v2].diffy > 0) { _root.enemyarray[v2].quad = Number(1); } if (_root.enemyarray[v2].diffx < 0 && _root.enemyarray[v2].diffy < 0) { _root.enemyarray[v2].quad = Number(2); } if (_root.enemyarray[v2].diffx > 0 && _root.enemyarray[v2].diffy < 0) { _root.enemyarray[v2].quad = Number(3); } _root.enemyarray[v2].abs_x = Math.abs(_root.enemyarray[v2].diffx); _root.enemyarray[v2].abs_y = Math.abs(_root.enemyarray[v2].diffy); _root.enemyarray[v2].tg = _root.enemyarray[v2].abs_y / _root.enemyarray[v2].abs_x; _root.enemyarray[v2].maths = Math.atan(_root.enemyarray[v2].tg) * Number(180) / 3.141593; _root.enemyarray[v2].distance = Math.sqrt(_root.enemyarray[v2]._x - (_root.ship._x + _root.ship.shipmc._x) ^ 2 + (_root.enemyarray[v2]._y - (_root.ship._y + _root.ship.shipmc._y)) ^ 2); if (_root.enemyarray[v2].quad == 1) { _root.enemyarray[v2].angle = Number(180) - Number(_root.enemyarray[v2].maths); } else { if (_root.enemyarray[v2].quad == 2) { _root.enemyarray[v2].angle = Number(180) + Number(_root.enemyarray[v2].maths); } else { if (_root.enemyarray[v2].quad == 3) { _root.enemyarray[v2].angle = Number(360) - Number(_root.enemyarray[v2].maths); } else { if (_root.enemyarray[v2].quad == 4) { _root.enemyarray[v2].angle = Number(_root.enemyarray[v2].maths); } } } } _root.enemyarray[v2].xmove = _root.enemyarray[v2].speedx * Math.cos(0.01745329 * _root.enemyarray[v2].angle); _root.enemyarray[v2].ymove = _root.enemyarray[v2].speedy * Math.sin(0.01745329 * _root.enemyarray[v2].angle); if (_root.enemyarray[v2].angle <= 180) { if (_root.enemyarray[v2]._rotation + 180 >= _root.enemyarray[v2].angle) { _root.enemyarray[v2]._rotation += (_root.enemyarray[v2].angle - _root.enemyarray[v2]._rotation) / _root.enemyarray[v2].megahomingturndelay; } else { if (_root.enemyarray[v2].angle >= _root.enemyarray[v2]._rotation) { _root.enemyarray[v2]._rotation += (_root.enemyarray[v2].angle - _root.enemyarray[v2]._rotation) / _root.enemyarray[v2].megahomingturndelay; } else { _root.enemyarray[v2]._rotation -= (_root.enemyarray[v2]._rotation - _root.enemyarray[v2].angle) / _root.enemyarray[v2].megahomingturndelay; } } } else { if (_root.enemyarray[v2].angle > 180) { if (_root.enemyarray[v2].angle - 180 < _root.enemyarray[v2]._rotation) { if (_root.enemyarray[v2]._rotation < _root.enemyarray[v2].angle) { _root.enemyarray[v2]._rotation += (_root.enemyarray[v2].angle - _root.enemyarray[v2]._rotation) / _root.enemyarray[v2].megahomingturndelay; } else { _root.enemyarray[v2]._rotation -= (_root.enemyarray[v2]._rotation - _root.enemyarray[v2].angle) / _root.enemyarray[v2].megahomingturndelay; } } else { _root.enemyarray[v2]._rotation -= (360 - (_root.enemyarray[v2].angle - _root.enemyarray[v2]._rotation)) / _root.enemyarray[v2].megahomingturndelay; } } } _root.enemyarray[v2]._x += _root.enemyarray[v2].xmove; _root.enemyarray[v2]._y += _root.enemyarray[v2].ymove; } } } else { if (_root.enemyarray[v2].enemytypevar == 'enemy1') { _root.enemyarray[v2]._x -= _root.enemy1speed; _root.enemyarray[v2]._y += (_root.ship._y - (_root.enemyarray[v2]._y - _root.enemyarray[v2].enemytype._height)) / 25; } else { if (_root.enemyarray[v2].enemytypevar == 'enemy2') { _root.enemyarray[v2]._x -= _root.enemy1speed * 0.6666666; _root.enemyarray[v2]._y += (_root.ship._y - (_root.enemyarray[v2]._y - _root.enemyarray[v2].enemytype._height)) / 25; } else { if (_root.enemyarray[v2].enemytypevar == 'enemy3') { _root.enemyarray[v2]._x -= _root.enemy1speed * 0.4; } else { if (_root.enemyarray[v2].enemytypevar == 'enemy4') { _root.enemyarray[v2]._y += (_root.enemyarray[v2].desty - _root.enemyarray[v2]._y) / 10; _root.enemyarray[v2]._x -= _root.enemy1speed / 2; } else { if (_root.enemyarray[v2].enemytypevar == 'enemy4wave2') { if (_root.enemyarray[v2]._x == _root.enemyarray[v2].destx && _root.enemyarray[v2]._y == _root.enemyarray[v2].desty) { _root.enemyarray[v2].e4arrive = true; } if (_root.enemyarray[v2].e4arrive == true) { _root.enemyarray[v2].destx = random(300) + 300; _root.enemyarray[v2].desty = random(300) + 100; _root.enemyarray[v2].e4arrive = false; } if (Math.abs(_root.enemyarray[v2].destx - _root.enemyarray[v2]._x) > _root.boss1speed) { if (_root.enemyarray[v2]._x < _root.enemyarray[v2].destx) { _root.enemyarray[v2]._x += _root.boss1speed; } else { _root.enemyarray[v2]._x -= _root.boss1speed; } } else { _root.enemyarray[v2]._x = _root.enemyarray[v2].destx; } if (Math.abs(_root.enemyarray[v2].desty - _root.enemyarray[v2]._y) > _root.boss1speed) { if (_root.enemyarray[v2]._y < _root.enemyarray[v2].desty) { _root.enemyarray[v2]._y += _root.boss1speed; } else { _root.enemyarray[v2]._y -= _root.boss1speed; } } else { _root.enemyarray[v2]._y = _root.enemyarray[v2].desty; } } else { if (_root.enemyarray[v2].enemytypevar == 'enemy5') { _root.enemyarray[v2]._x -= _root.enemy1speed / 4; } else { if (_root.enemyarray[v2].enemytypevar == 'enemy6') { _root.enemyarray[v2]._x -= _root.enemy1speed / 3; } else { if (_root.enemyarray[v2].enemytypevar == 'enemy7') { _root.enemyarray[v2]._x -= _root.enemy1speed / 3.5; } } } } } } } } } } } } } } } } } } --v2; } }; _root.bulletarray = new Array(); _root.red1 = function () { _root.ship.shiptype.gotoAndStop('r1laser'); _root.interval = 3.75; _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.gun._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.gun._y; _root['bullet' + _root.depth].xvalue = _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].shottype = 'red1'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.red2 = function () { _root.ship.shiptype.gotoAndStop('r2laser'); _root.interval = 3.5; _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.gun._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.gun._y; _root['bullet' + _root.depth].xvalue = _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('red2'); _root['bullet' + _root.depth].shottype = 'red2'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.red3 = function () { _root.ship.shiptype.gotoAndStop('r3laser'); _root.interval = 3.25; _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.gun._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.gun._y; _root['bullet' + _root.depth].xvalue = _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('red3'); _root['bullet' + _root.depth].shottype = 'red3'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.red4 = function () { _root.ship.shiptype.gotoAndStop('r4laser'); _root.interval = 3; _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.gun._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.gun._y; _root['bullet' + _root.depth].xvalue = _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('red4'); _root['bullet' + _root.depth].shottype = 'red4'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.sred = function () { _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.sredx; _root['bullet' + _root.depth]._y = _root.sredy; _root['bullet' + _root.depth].destx = 100; _root['bullet' + _root.depth].desty = 100; _root['bullet' + _root.depth].diffx = _root['bullet' + _root.depth]._x - _root['bullet' + _root.depth].destx; _root['bullet' + _root.depth].diffy = _root['bullet' + _root.depth]._y - _root['bullet' + _root.depth].desty; _root['bullet' + _root.depth].angle = Math.atan2(_root['bullet' + _root.depth].diffy, _root['bullet' + _root.depth].diffx); _root['bullet' + _root.depth].xvalue = -15 * Math.cos(_root['bullet' + _root.depth].angle); _root['bullet' + _root.depth].yvalue = -15 * Math.sin(_root['bullet' + _root.depth].angle); _root['bullet' + _root.depth].gotoAndStop('bomb'); _root['bullet' + _root.depth].shottype = 'sred'; _root['bullet' + _root.depth].exploding = false; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.sredx; _root['bullet' + _root.depth]._y = _root.sredy; _root['bullet' + _root.depth].destx = 600; _root['bullet' + _root.depth].desty = 100; _root['bullet' + _root.depth].diffx = _root['bullet' + _root.depth]._x - _root['bullet' + _root.depth].destx; _root['bullet' + _root.depth].diffy = _root['bullet' + _root.depth]._y - _root['bullet' + _root.depth].desty; _root['bullet' + _root.depth].angle = Math.atan2(_root['bullet' + _root.depth].diffy, _root['bullet' + _root.depth].diffx); _root['bullet' + _root.depth].xvalue = -15 * Math.cos(_root['bullet' + _root.depth].angle); _root['bullet' + _root.depth].yvalue = -15 * Math.sin(_root['bullet' + _root.depth].angle); _root['bullet' + _root.depth].gotoAndStop('bomb'); _root['bullet' + _root.depth].shottype = 'sred'; _root['bullet' + _root.depth].exploding = false; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.sredx; _root['bullet' + _root.depth]._y = _root.sredy; _root['bullet' + _root.depth].destx = 100; _root['bullet' + _root.depth].desty = 400; _root['bullet' + _root.depth].diffx = _root['bullet' + _root.depth]._x - _root['bullet' + _root.depth].destx; _root['bullet' + _root.depth].diffy = _root['bullet' + _root.depth]._y - _root['bullet' + _root.depth].desty; _root['bullet' + _root.depth].angle = Math.atan2(_root['bullet' + _root.depth].diffy, _root['bullet' + _root.depth].diffx); _root['bullet' + _root.depth].xvalue = -15 * Math.cos(_root['bullet' + _root.depth].angle); _root['bullet' + _root.depth].yvalue = -15 * Math.sin(_root['bullet' + _root.depth].angle); _root['bullet' + _root.depth].gotoAndStop('bomb'); _root['bullet' + _root.depth].shottype = 'sred'; _root['bullet' + _root.depth].exploding = false; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.sredx; _root['bullet' + _root.depth]._y = _root.sredy; _root['bullet' + _root.depth].destx = 600; _root['bullet' + _root.depth].desty = 400; _root['bullet' + _root.depth].diffx = _root['bullet' + _root.depth]._x - _root['bullet' + _root.depth].destx; _root['bullet' + _root.depth].diffy = _root['bullet' + _root.depth]._y - _root['bullet' + _root.depth].desty; _root['bullet' + _root.depth].angle = Math.atan2(_root['bullet' + _root.depth].diffy, _root['bullet' + _root.depth].diffx); _root['bullet' + _root.depth].xvalue = -15 * Math.cos(_root['bullet' + _root.depth].angle); _root['bullet' + _root.depth].yvalue = -15 * Math.sin(_root['bullet' + _root.depth].angle); _root['bullet' + _root.depth].gotoAndStop('bomb'); _root['bullet' + _root.depth].shottype = 'sred'; _root['bullet' + _root.depth].exploding = false; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.blue1 = function () { _root.ship.shiptype.gotoAndStop('b1laser'); _root.interval = 5.75; _root.shot.duplicateMovieClip('bullet' + _root.bluedepth, _root.bluedepth); _root['bullet' + _root.bluedepth]._x = _root.ship._x; _root['bullet' + _root.bluedepth]._y = _root.ship._y; _root['bullet' + _root.bluedepth].xvalue = _root.bulletspeed; _root['bullet' + _root.bluedepth].yvalue = 0; _root['bullet' + _root.bluedepth].gotoAndStop('blue1'); _root['bullet' + _root.bluedepth].shottype = 'blue1'; _root['bullet' + _root.bluedepth].randomframe = random(5) + 1; _root['bullet' + _root.bluedepth].blue.gotoAndPlay(randomframe); _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.bluedepth]; if (_root.bluedepth < 100040) { ++_root.bluedepth; } else { _root.bluedepth = 100010; } _root.blueready = false; _root['bullet' + _root.bluedepth].explodedelay = 0; }; _root.blue2 = function () { _root.ship.shiptype.gotoAndStop('b1laser'); _root.interval = 5.5; _root.shot.duplicateMovieClip('bullet' + _root.bluedepth, _root.bluedepth); _root['bullet' + _root.bluedepth]._x = _root.ship._x; _root['bullet' + _root.bluedepth]._y = _root.ship._y; _root['bullet' + _root.bluedepth].xvalue = _root.bulletspeed; _root['bullet' + _root.bluedepth].yvalue = 0; _root['bullet' + _root.bluedepth].gotoAndStop('blue2'); _root['bullet' + _root.bluedepth].shottype = 'blue2'; _root['bullet' + _root.bluedepth].randomframe = random(5) + 1; _root['bullet' + _root.bluedepth].blue.gotoAndPlay(randomframe); _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.bluedepth]; if (_root.bluedepth < 100040) { ++_root.bluedepth; } else { _root.bluedepth = 100010; } _root['bullet' + _root.bluedepth].explodedelay = 0; }; _root.blue3 = function () { _root.ship.shiptype.gotoAndStop('b1laser'); _root.interval = 5.25; _root.shot.duplicateMovieClip('bullet' + _root.bluedepth, _root.bluedepth); _root['bullet' + _root.bluedepth]._x = _root.ship._x; _root['bullet' + _root.bluedepth]._y = _root.ship._y; _root['bullet' + _root.bluedepth].xvalue = _root.bulletspeed; _root['bullet' + _root.bluedepth].yvalue = 0; _root['bullet' + _root.bluedepth].gotoAndStop('blue3'); _root['bullet' + _root.bluedepth].shottype = 'blue3'; _root['bullet' + _root.bluedepth].randomframe = random(5) + 1; _root['bullet' + _root.bluedepth].blue.gotoAndPlay(randomframe); _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.bluedepth]; if (_root.bluedepth < 100040) { ++_root.bluedepth; } else { _root.bluedepth = 100010; } _root['bullet' + _root.bluedepth].explodedelay = 0; }; _root.blue4 = function () { _root.ship.shiptype.gotoAndStop('b4laser'); _root.interval = 5; _root.shot.duplicateMovieClip('bullet' + _root.bluedepth, _root.bluedepth); _root['bullet' + _root.bluedepth]._x = _root.ship._x; _root['bullet' + _root.bluedepth]._y = _root.ship._y; _root['bullet' + _root.bluedepth].xvalue = _root.bulletspeed; _root['bullet' + _root.bluedepth].yvalue = 0; _root['bullet' + _root.bluedepth].gotoAndStop('blue4'); _root['bullet' + _root.bluedepth].shottype = 'blue4'; _root['bullet' + _root.bluedepth].randomframe = random(5) + 1; _root['bullet' + _root.bluedepth].blue.gotoAndPlay(randomframe); _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.bluedepth]; if (_root.bluedepth < 100040) { ++_root.bluedepth; } else { _root.bluedepth = 100010; } _root['bullet' + _root.bluedepth].explodedelay = 0; }; _root.sblue = function () { _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.sbluex; _root['bullet' + _root.depth]._y = _root.sbluey; _root['bullet' + _root.depth].xvalue = _root.powerupspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('sblue'); _root['bullet' + _root.depth].shottype = 'sblue'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.green1 = function () { _root.ship.shiptype.gotoAndStop('g1laser'); _root.interval = 6.5; _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.green._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.green._y; _root['bullet' + _root.depth].xvalue = 5 + _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('green1'); _root['bullet' + _root.depth].shottype = 'green1'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.green2 = function () { _root.ship.shiptype.gotoAndStop('g1laser'); _root.interval = 6; _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.green._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.green._y; _root['bullet' + _root.depth].xvalue = 5 + _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('green2'); _root['bullet' + _root.depth].shottype = 'green2'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.green3 = function () { _root.ship.shiptype.gotoAndStop('g1laser'); _root.interval = 5.5; _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.green._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.green._y; _root['bullet' + _root.depth].xvalue = 5 + _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('green3'); _root['bullet' + _root.depth].shottype = 'green3'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.green4 = function () { _root.ship.shiptype.gotoAndStop('g4laser'); _root.interval = 5; _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.green._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.green._y; _root['bullet' + _root.depth].xvalue = 5 + _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('green4'); _root['bullet' + _root.depth].shottype = 'green4'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.firelaser = function () { if (_root.status.mask.laser._xscale == 100) { _root.lasersound.start(0, 0); _root.shot.duplicateMovieClip('bullet' + _root.bluedepth, _root.bluedepth); _root['bullet' + _root.bluedepth].gotoAndStop('laser'); _root['bullet' + _root.bluedepth]._x = _root.ship._x + _root.ship.laser._x; _root['bullet' + _root.bluedepth]._y = _root.ship._y + _root.ship.laser._y; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.bluedepth]; _root['bullet' + _root.bluedepth].xvalue = 40; _root['bullet' + _root.bluedepth].yvalue = 0; _root.status.mask.laser._xscale = 0; _root['bullet' + _root.bluedepth].shottype = 'laser'; if (_root.bluedepth < 100040) { ++_root.bluedepth; } else { _root.bluedepth = 100010; } } }; _root.firehmfunction = function () { _root.megahoming.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.missile._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.missile._y; if (_root.enemyarray.length >= 1) { _root['bullet' + _root.depth].enemynumber = Number(_root.targetenemy); _root['bullet' + _root.depth].targetname = _root.enemyarray[_root.targetenemy]._name; _root['bullet' + _root.depth].targetname._visible = true; } else { _root['bullet' + _root.depth].targetname._visible = false; } _root['bullet' + _root.depth].megahomingacceleratex = 2; _root['bullet' + _root.depth].megahomingacceleratey = 2; _root['bullet' + _root.depth].megahomingturndelay = 3; _root['bullet' + _root.depth].deploy = true; _root['bullet' + _root.depth].deployrate = 5; _root['bullet' + _root.depth].speedx = 0; _root['bullet' + _root.depth].speedy = 0; _root['bullet' + _root.depth].shottype = 'homingmissile'; _root.bulletarray.push(_root['bullet' + _root.depth]); if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.firebomb = function () { if (_root.numberofbombs >= 0) { if (_root.bombfire == true) { if (_root.bombsound == false) { _root.bombexplodesound.start(0, 0); _root.bombsound = true; } _root.bomb1.bomb.gotoAndStop(2); _root.bombexplode = true; } if (_root.numberofbombs > 0) { if (_root.bombfire == false) { _root.shot.duplicateMovieClip('bomb1', _root.bluedepth); _root.bomb1.gotoAndStop('bomb'); _root.bomb1._x = _root.ship._x + _root.ship.bomb._x; _root.bomb1._y = _root.ship._y + _root.ship.bomb._y; _root.bomb1.xvalue = 20; _root.bomb1.shottype = 'bomb'; _root.bombfire = true; --_root.numberofbombs; _root.status.bomb.gotoAndStop(_root.numberofbombs + 1); _root.bulletarray[_root.bulletarray.length] = _root.bomb1; if (_root.bluedepth < 100040) { ++_root.bluedepth; } else { _root.bluedepth = 100010; } } } } }; _root.bulletmovement = function () { if (_root.bulletarray.length > 0) { var v2 = _root.bulletarray.length - 1; while (v2 >= 0) { if (_root.bulletarray[v2]._name eq '') { _root.bulletarray.splice(v2, 1); } if (_root.bulletarray[v2].enemyshottype == 'fbossgun') { if (Math.abs(_root.bulletarray[v2]._y - _root.bulletarray[v2].desty) > 5) { if (_root.bulletarray[v2]._y > _root.bulletarray[v2].desty) { _root.bulletarray[v2]._y -= 10; } else { _root.bulletarray[v2]._y += 10; } } else { _root.bulletarray[v2].desty = _root.bulletarray[v2].starty + (_root.bulletarray[v2].starty - _root.bulletarray[v2].desty); } } if (_root.bulletarray[v2].enemyshottype != 'boss2laser1' && _root.bulletarray[v2].enemyshottype != 'boss2laser2' && _root.bulletarray[v2].enemyshottype != 'enemymissilet' && _root.bulletarray[v2].enemyshottype != 'enemymissileb' && _root.bulletarray[v2].shottype != 'homingmissile' && _root.bulletarray[v2].shottype != 'bomb') { _root.bulletarray[v2]._x += _root.bulletarray[v2].xvalue; _root.bulletarray[v2]._y += _root.bulletarray[v2].yvalue; if (_root.bulletarray[v2].shottype == 'sred') { if (Math.abs(_root.bulletarray[v2]._x - _root.bulletarray[v2].destx) < 15 && Math.abs(_root.bulletarray[v2]._y - _root.bulletarray[v2].desty) < 15) { if (_root.bulletarray[v2].exploding == false) { _root.bulletarray[v2].bomb.gotoAndStop(2); _root.bombexplodesound.stop(); _root.bombexplodesound.start(0, 0); _root.bulletarray[v2].xvalue = 0; _root.bulletarray[v2].yvalue = 0; _root.bulletarray[v2].exploding = true; } } } } else { if (_root.bulletarray[v2].enemyshottype == 'boss2laser1') { _root.bulletarray[v2]._x = _root.enemyarray[_root.enemyarray.length - 1]._x + _root.enemyarray[_root.enemyarray.length - 1].enemytype._x + _root.enemyarray[_root.enemyarray.length - 1].enemytype.lasergun._x; _root.bulletarray[v2]._y = _root.enemyarray[_root.enemyarray.length - 1]._y + _root.enemyarray[_root.enemyarray.length - 1].enemytype._y + _root.enemyarray[_root.enemyarray.length - 1].enemytype.lasergun._y; } else { if (_root.bulletarray[v2].enemyshottype == 'boss2laser2') { _root.bulletarray[v2]._x = _root.enemyarray[_root.enemyarray.length - 1]._x + _root.enemyarray[_root.enemyarray.length - 1].enemytype._x + _root.enemyarray[_root.enemyarray.length - 1].enemytype.lasergun2._x; _root.bulletarray[v2]._y = _root.enemyarray[_root.enemyarray.length - 1]._y + _root.enemyarray[_root.enemyarray.length - 1].enemytype._y + _root.enemyarray[_root.enemyarray.length - 1].enemytype.lasergun2._y; } else { if (_root.bulletarray[v2].shottype == 'homingmissile') { if (_root.bulletarray[v2]._x > 730 || _root.bulletarray[v2]._x < -30) { _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } if (_root.bulletarray[v2].deploy == true) { _root.bulletarray[v2]._y += _root.bulletarray[v2].deployrate; _root.bulletarray[v2].deployrate -= 0.5; if (_root.bulletarray[v2].deployrate <= 0) { _root.bulletarray[v2].deployrate = false; } } if (_root.bulletarray[v2].deployrate <= 3) { _root.bulletarray[v2].gotoAndStop('boost'); if (_root[_root.bulletarray[v2].targetname]._visible == true) { diffx = int(_root[_root.bulletarray[v2].targetname]._x + _root[_root.bulletarray[v2].targetname].enemytype._x - _root.bulletarray[v2]._x); diffy = int(_root[_root.bulletarray[v2].targetname]._y + _root[_root.bulletarray[v2].targetname].enemytype._y - _root.bulletarray[v2]._y); if (diffx > 0 && diffy > 0) { quad = Number(4); } if (diffx < 0 && diffy > 0) { quad = Number(1); } if (diffx < 0 && diffy < 0) { quad = Number(2); } if (diffx > 0 && diffy < 0) { quad = Number(3); } abs_x = Math.abs(diffx); abs_y = Math.abs(diffy); tg = abs_y / abs_x; _root.maths = Math.atan(tg) * Number(180) / 3.141593; distance = Math.sqrt(_root.bulletarray[v2]._x - _root.bulletarray[v2].targetx ^ 2 + (_root.bulletarray[v2]._y - _root.bulletarray[v2].targety) ^ 2); if (quad == 1) { angle = Number(180) - Number(_root.maths); } if (quad == 2) { angle = Number(180) + Number(_root.maths); } if (quad == 3) { angle = Number(360) - Number(_root.maths); } if (quad == 4) { angle = Number(_root.maths); } xmove = _root.bulletarray[v2].speedx * Math.cos(0.01745329 * angle); ymove = _root.bulletarray[v2].speedy * Math.sin(0.01745329 * angle); _root.bulletarray[v2].speedx += 2; _root.bulletarray[v2].speedy += 2; if (angle <= 180) { if (_root.bulletarray[v2]._rotation + 180 >= angle) { _root.bulletarray[v2]._rotation += (angle - _root.bulletarray[v2]._rotation) / _root.bulletarray[v2].megahomingturndelay; } else { if (angle >= _root.bulletarray[v2]._rotation) { _root.bulletarray[v2]._rotation += (angle - _root.bulletarray[v2]._rotation) / _root.bulletarray[v2].megahomingturndelay; } else { _root.bulletarray[v2]._rotation -= (_root.bulletarray[v2]._rotation - angle) / _root.bulletarray[v2].megahomingturndelay; } } } else { if (angle > 180) { if (angle - 180 < _root.bulletarray[v2]._rotation) { if (_root.bulletarray[v2]._rotation < angle) { _root.bulletarray[v2]._rotation += (angle - _root.bulletarray[v2]._rotation) / _root.bulletarray[v2].megahomingturndelay; } else { _root.bulletarray[v2]._rotation -= (_root.bulletarray[v2]._rotation - angle) / _root.bulletarray[v2].megahomingturndelay; } } else { _root.bulletarray[v2]._rotation -= (360 - (angle - _root.bulletarray[v2]._rotation)) / _root.bulletarray[v2].megahomingturndelay; } } } _root.bulletarray[v2]._x += xmove; _root.bulletarray[v2]._y += ymove; } else { if (_root.bulletarray[v2]._rotation != 0) { _root.bulletarray[v2]._rotation -= _root.bulletarray[v2]._rotation / megahomingturndelay; } _root.bulletarray[v2]._x += _root.bulletarray[v2].megahomingacceleratex; _root.bulletarray[v2].megahomingacceleratex += 2; } } } else { if (_root.bulletarray[v2].shottype == 'bomb') { if (_root.bombexplode != true) { _root.bulletarray[v2]._x += _root.bulletarray[v2].xvalue; } } else { if (_root.bulletarray[v2].enemyshottype == 'enemymissilet') { if (_root.bulletarray[v2].deploy != false) { _root.bulletarray[v2]._y -= _root.bulletarray[v2].deployrate; --_root.bulletarray[v2].deployrate; if (_root.bulletarray[v2].angle2 > _root.bulletarray[v2]._rotation) { if (_root.bulletarray[v2].angle2 - _root.bulletarray[v2]._rotation > 20) { _root.bulletarray[v2]._rotation += 20; } else { _root.bulletarray[v2]._rotation = _root.bulletarray[v2].angle2; } } else { if (_root.bulletarray[v2]._rotation - _root.bulletarray[v2].angle2 > 50) { _root.bulletarray[v2]._rotation -= 50; } else { _root.bulletarray[v2]._rotation = _root.bulletarray[v2].angle2; } } if (_root.bulletarray[v2].deployrate <= 0) { _root.bulletarray[v2].speed = 5; _root.bulletarray[v2].xvalue = Math.cos(_root.bulletarray[v2].angle); _root.bulletarray[v2].yvalue = Math.sin(_root.bulletarray[v2].angle); _root.bulletarray[v2].deploy = false; } } else { _root.bulletarray[v2]._x -= _root.bulletarray[v2].speed * _root.bulletarray[v2].xvalue; _root.bulletarray[v2]._y -= _root.bulletarray[v2].speed * _root.bulletarray[v2].yvalue; _root.bulletarray[v2].speed += 2; } } else { if (_root.bulletarray[v2].enemyshottype == 'enemymissileb') { if (_root.bulletarray[v2].deploy != false) { _root.bulletarray[v2]._y += _root.bulletarray[v2].deployrate; --_root.bulletarray[v2].deployrate; if (_root.bulletarray[v2].angle2 > _root.bulletarray[v2]._rotation) { if (_root.bulletarray[v2].angle2 - _root.bulletarray[v2]._rotation > 50) { _root.bulletarray[v2]._rotation += 50; } else { _root.bulletarray[v2]._rotation = _root.bulletarray[v2].angle2; } } else { if (_root.bulletarray[v2]._rotation - _root.bulletarray[v2].angle2 > 50) { _root.bulletarray[v2]._rotation -= 50; } else { _root.bulletarray[v2]._rotation = _root.bulletarray[v2].angle2; } } if (_root.bulletarray[v2].deployrate <= 0) { _root.bulletarray[v2].speed = 5; _root.bulletarray[v2].xvalue = Math.cos(_root.bulletarray[v2].angle); _root.bulletarray[v2].yvalue = Math.sin(_root.bulletarray[v2].angle); _root.bulletarray[v2].deploy = false; } } else { _root.bulletarray[v2]._x -= _root.bulletarray[v2].speed * _root.bulletarray[v2].xvalue; _root.bulletarray[v2]._y -= _root.bulletarray[v2].speed * _root.bulletarray[v2].yvalue; _root.bulletarray[v2].speed += 2; } } } } } } } } if (_root.bulletarray[v2].enemyshottype == 'boss3') { if (_root.bulletarray[v2].follow < 25) { ++_root.bulletarray[v2].follow; _root.bulletarray[v2].diffx = _root.bulletarray[v2]._x - (_root.ship._x + _root.ship.shipmc._x); _root.bulletarray[v2].diffy = _root.bulletarray[v2]._y - (_root.ship._y + _root.ship.shipmc._y); _root.bulletarray[v2].angle = Math.atan2(_root.bulletarray[v2].diffy, _root.bulletarray[v2].diffx); _root.bulletarray[v2].xvalue = -7 * Math.cos(_root.bulletarray[v2].angle); _root.bulletarray[v2].yvalue = -7 * Math.sin(_root.bulletarray[v2].angle); } } if (_root.bulletarray[v2].shottype == 'enemy') { if (_root.bulletarray[v2].hitTest(_root.ship.protector.sphere) || _root.bulletarray[v2].hitTest(_root.ship.protector2.sphere) || _root.bulletarray[v2].hitTest(_root.bomb1)) { if (_root.bulletarray[v2].enemyshottype != 'boss2laser1' && _root.bulletarray[v2].enemyshottype != 'boss2laser2' && _root.bulletarray[v2].enemyshottype != 'fbosslaser') { if (_root.bulletarray[v2].hitTest(_root.ship.protector.sphere)) { _root.protector1health -= 1; if (_root.protector1health < 7 && _root.protector1health > 2) { _root.ship.protector.sphere.gotoAndStop('half'); } else { if (_root.protector1health <= 2 && _root.protector1health >= 0) { _root.ship.protector.sphere.gotoAndStop('critical'); } else { if (_root.protector1health < 0) { trace('Protector1 Gone'); if (_root.protectorlevel > 2) { _root.protectorframe = _root.ship.protector2._currentframe - 19; if (_root.protectorframe < 3) { _root.protectorframe = 41 + _root.protectorframe; } _root.protectorlevel = 2; if (_root.autorotate == true) { _root.ship.protector.gotoAndPlay(_root.protectorframe); } else { _root.ship.protector.gotoAndStop(_root.protectorframe); } _root.protector1health = _root.protector2health; if (_root.protector1health < 7 && _root.protector1health > 2) { _root.ship.protector.sphere.gotoAndStop('half'); } else { if (_root.protector1health <= 2 && _root.protector1health >= 0) { _root.ship.protector.sphere.gotoAndStop('critical'); } } } else { _root.protectorlevel = 0; } _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); duplicateMovieClip(_root.shipexplosion, 'shipexplosion' + _root.depth, _root.depth); _root['shipexplosion' + _root.depth]._x = _root.ship._x + _root.ship.protector._x + _root.ship.protector.sphere._x; _root['shipexplosion' + _root.depth]._y = _root.ship._y + _root.ship.protector._y + _root.ship.protector.sphere._y; _root['shipexplosion' + _root.depth]._yscale = 50; _root['shipexplosion' + _root.depth]._xscale = 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } } } if (_root.bulletarray[v2].hitTest(_root.ship.protector2.sphere)) { _root.protector2health -= 1; if (_root.protector2health < 7 && _root.protector2health > 2) { _root.ship.protector2.sphere.gotoAndStop('half'); } else { if (_root.protector2health <= 2 && _root.protector2health >= 0) { _root.ship.protector2.sphere.gotoAndStop('critical'); } else { if (_root.protector2health < 0) { trace('Protector2 Gone'); _root.protectorlevel = 2; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); duplicateMovieClip(_root.shipexplosion, 'shipexplosion' + _root.depth, _root.depth); _root['shipexplosion' + _root.depth]._x = _root.ship._x + _root.ship.protector2._x + _root.ship.protector2.sphere._x; _root['shipexplosion' + _root.depth]._y = _root.ship._y + _root.ship.protector2._y + _root.ship.protector2.sphere._y; _root['shipexplosion' + _root.depth]._yscale = 50; _root['shipexplosion' + _root.depth]._xscale = 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } } } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } } if (_root.boss2stoplaser == true) { if (_root.bulletarray[v2].enemyshottype == 'boss2laser1' || _root.bulletarray[v2].enemyshottype == 'boss2laser2') { _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } } if (_root.bulletarray[v2].hitTest(_root.ship.shipmc)) { _root.hitship = true; _root.shieldfadein = true; _root.checkhealth = true; if (_root.difficulty == 'expert') { ++_root.hitshipcounter; if (_root.hitshipcounter == 6) { if (_root.weaponnumber > 1) { --_root.weaponnumber; } _root.hitshipcounter = 0; } } if (_root.bulletarray[v2].enemyshottype == 'shot1') { _root.shipshield -= 5; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'enemymissilet' || _root.bulletarray[v2].enemyshottype == 'enemymissileb') { _root.shipshield -= 7; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'enemy7') { _root.shipshield -= 8; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'boss1electric') { _root.shipshield -= 8; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'boss1canon') { _root.mhexplosion.stop(); _root.mhexplosion.start(0, 0); _root.mhexplosionmc.duplicateMovieClip('mhexplode' + _root.depth, _root.depth); _root['mhexplode' + _root.depth]._x = _root.bulletarray[v2]._x; _root['mhexplode' + _root.depth]._y = _root.bulletarray[v2]._y; _root['mhexplode' + _root.depth]._yscale = 300; _root['mhexplode' + _root.depth]._xscale = 300; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.shipshield -= 15; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'boss2laser1' || _root.bulletarray[v2].enemyshottype == 'boss2laser2') { _root.shipshield -= 2; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); } else { if (_root.bulletarray[v2].enemyshottype == 'boss2gun') { _root.shipshield -= 6; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'boss2big') { _root.shipshield -= 10; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'boss3') { _root.shipshield -= 4; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'fbossgun') { _root.shipshield -= 6; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].enemyshottype == 'fbosslaser' || _root.bulletarray[v2].enemyshottype == 'boss2laser2') { _root.shipshield -= 1; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); } } } } } } } } } } } } } else { if (_root.bulletarray[v2].shottype != 'enemy') { if (_root.bulletarray[v2].shottype == 'airmine' && _root.bulletarray[v2].hitTest(_root.ship.shipmc)) { _root.shipshield -= 0.1; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); } i = 0; while (i < _root.enemyarray.length) { if (_root.bulletarray[v2].hitTest(_root.enemyarray[i].enemytype)) { _root.hitenemy = _root.enemyarray[i]._name; if (_root.bulletarray[v2].shottype != 'blue1' && _root.bulletarray[v2].shottype != 'blue4' && _root.bulletarray[v2].shottype != 'blue3' && _root.bulletarray[v2].shottype != 'blue2' && _root.bulletarray[v2].shottype != 'sblue' && _root.bulletarray[v2].shottype != 'bomb' && _root.bulletarray[v2].shottype != 'sred' && _root.bulletarray[v2].shottype != 'sgreen') { if (_root.bulletarray[v2].xvalue >= 0) { _root.mhexplosionmc.duplicateMovieClip('mhexplode' + _root.depth, _root.depth); _root['mhexplode' + _root.depth]._x = _root.bulletarray[v2]._x + 20; _root['mhexplode' + _root.depth]._y = _root.bulletarray[v2]._y; _root['mhexplode' + _root.depth]._yscale = 50; _root['mhexplode' + _root.depth]._xscale = 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } else { _root.mhexplosionmc.duplicateMovieClip('mhexplode' + _root.depth, _root.depth); _root['mhexplode' + _root.depth]._x = _root.bulletarray[v2]._x - 20; _root['mhexplode' + _root.depth]._y = _root.bulletarray[v2]._y; _root['mhexplode' + _root.depth]._yscale = 50; _root['mhexplode' + _root.depth]._xscale = 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } } else { if (_root.bulletarray[v2].shottype != 'sblue' && _root.bulletarray[v2].shottype != 'bomb' && _root.bulletarray[v2].shottype != 'sred' && _root.bulletarray[v2].shottype != 'sgreen') { ++_root.bulletarray[v2].explodedelay; if (_root.bulletarray[v2].explodedelay == 3) { _root.mhexplosionmc.duplicateMovieClip('mhexplode' + _root.depth, _root.depth); _root['mhexplode' + _root.depth]._x = _root.bulletarray[v2]._x + 30; _root['mhexplode' + _root.depth]._y = _root.enemyarray[i]._y + _root.enemyarray[i].enemytype._y + (random(30) - 15); _root['mhexplode' + _root.depth]._yscale = 50; _root['mhexplode' + _root.depth]._xscale = 50; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.bulletarray[v2].explodedelay = 0; } } } if (_root.bulletarray[v2].shottype == 'homingmissile') { _root.mhexplosion.stop(); _root.mhexplosion.start(0, 0); _root.enemyarray[i].health -= 2; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 2; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'red1') { _root.enemyarray[i].health -= 1.5; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 1.5; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'red2') { _root.enemyarray[i].health -= 1.9; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 1.9; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'red3') { _root.enemyarray[i].health -= 2.3; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 2.3; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'red4') { _root.enemyarray[i].health -= 2.7; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 2.7; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'sred') { if (_root.bulletarray[v2].exploding == true) { _root.enemyarray[i].health -= 1; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 0.2; } } } else { if (_root.bulletarray[v2].shottype == 'blue1') { _root.enemyarray[i].health -= 0.3; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 0.3; } } else { if (_root.bulletarray[v2].shottype == 'blue2') { _root.enemyarray[i].health -= 0.34; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 0.36; } } else { if (_root.bulletarray[v2].shottype == 'blue3') { _root.enemyarray[i].health -= 0.48; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 0.42; } } else { if (_root.bulletarray[v2].shottype == 'blue4') { _root.enemyarray[i].health -= 0.42; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 0.47; } } else { if (_root.bulletarray[v2].shottype == 'sblue') { _root.enemyarray[i].health -= 2; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 0.4; } } else { if (_root.bulletarray[v2].shottype == 'green1') { _root.enemyarray[i].health -= 1.8; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 1.8; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'green2') { _root.enemyarray[i].health -= 2; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 2; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'green3') { _root.enemyarray[i].health -= 2.2; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 2.4; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'green4') { _root.enemyarray[i].health -= 2.5; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 2.5; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } else { if (_root.bulletarray[v2].shottype == 'sgreen') { _root.enemyarray[i].health -= 2; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 0.4; } } else { if (_root.bulletarray[v2].shottype == 'laser') { _root.enemyarray[i].health -= 3.5; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 1.17; } } else { if (_root.bulletarray[v2].shottype == 'bomb') { if (_root.bombexplode == true) { _root.enemyarray[i].health -= 2; if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.boss3health -= 0.4; } } } } } } } } } } } } } } } } } } } } _root.enemyarray[i].gotoAndPlay('hit'); if (_root.enemyarray[i].enemytypevar == 'boss3head' || _root.enemyarray[i].enemytypevar == 'boss3body' || _root.enemyarray[i].enemytypevar == 'boss3tail') { _root.enemyarray[_root.enemyarray.length - 1].gotoAndPlay('hit'); _root.enemyarray[_root.enemyarray.length - 2].gotoAndPlay('hit'); _root.enemyarray[_root.enemyarray.length - 3].gotoAndPlay('hit'); _root.enemyarray[_root.enemyarray.length - 4].gotoAndPlay('hit'); _root.enemyarray[_root.enemyarray.length - 5].gotoAndPlay('hit'); } } ++i; } } } if (_root.bulletarray[v2].xvalue > 0) { if (_root.bulletarray[v2]._x > 730 || _root.bulletarray[v2]._y < -50 || _root.bulletarray[v2]._y > 550) { if (_root.bulletarray[v2].shottype == 'bomb') { _root.bombfire = false; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } } else { if (_root.bulletarray[v2].xvalue < 0) { if (_root.bulletarray[v2]._x < -30 || _root.bulletarray[v2]._y < -50 || _root.bulletarray[v2]._y > 550) { if (_root.bulletarray[v2].shottype == 'bomb') { _root.bombfire = false; } _root.bulletarray[v2].removeMovieClip(); _root.bulletarray.splice(v2, 1); } } } --v2; } } }; _root.powerupmove = function () { var v2 = _root.poweruparray.length - 1; while (v2 >= 0) { _root.poweruparray[v2]._x += _root.powerupspeed; if (_root.poweruparray[v2]._x < -50) { _root.poweruparray[v2].removeMovieClip(); } if (_root.poweruparray[v2].poweruptype == 'weapon') { if (_root.poweruparray[v2].needchange == true) { if (_root.poweruparray[v2].ticks2 < 20) { ++_root.poweruparray[v2].ticks2; } else { _root.poweruparray[v2].ticks2 = 0; _root.poweruparray[v2].needchange = false; _root.poweruparray[v2].play(); } } } if (_root.poweruparray[v2].hitTest(_root.ship.shipmc)) { if (_root.poweruparray[v2].poweruptype == 'weapon') { _root.weaponpowersound.stop(); _root.weaponpowersound.start(0, 0); if (_root.weapontype == _root.poweruparray[v2].weaponpowercolor) { if (_root.levelnumber == 1) { if (_root.weaponnumber < 2) { ++_root.weaponnumber; } else { if (_root.poweruparray[v2].weaponpowercolor == 'red') { _root.sredx = _root.poweruparray[v2]._x; _root.sredy = _root.poweruparray[v2]._y; _root.sred(); } else { if (_root.poweruparray[v2].weaponpowercolor == 'blue') { _root.sbluex = _root.poweruparray[v2]._x; _root.sbluey = _root.poweruparray[v2]._y; _root.sblue(); } else { if (_root.poweruparray[v2].weaponpowercolor == 'green') { _root.sgreenfunction = true; _root.sgreentimer = 0; } } } } } else { if (_root.levelnumber == 2) { if (_root.weaponnumber < 3) { ++_root.weaponnumber; } else { if (_root.poweruparray[v2].weaponpowercolor == 'red') { _root.sredx = _root.poweruparray[v2]._x; _root.sredy = _root.poweruparray[v2]._y; _root.sred(); } else { if (_root.poweruparray[v2].weaponpowercolor == 'blue') { _root.sbluex = _root.poweruparray[v2]._x; _root.sbluey = _root.poweruparray[v2]._y; _root.sblue(); } else { if (_root.poweruparray[v2].weaponpowercolor == 'green') { _root.sgreenfunction = true; _root.sgreentimer = 0; } } } } } else { if (_root.levelnumber >= 3) { if (_root.weaponnumber < 4) { ++_root.weaponnumber; } else { if (_root.poweruparray[v2].weaponpowercolor == 'red') { _root.sredx = _root.poweruparray[v2]._x; _root.sredy = _root.poweruparray[v2]._y; _root.sred(); } else { if (_root.poweruparray[v2].weaponpowercolor == 'blue') { _root.sbluex = _root.poweruparray[v2]._x; _root.sbluey = _root.poweruparray[v2]._y; _root.sblue(); } else { if (_root.poweruparray[v2].weaponpowercolor == 'green') { _root.sgreenfunction = true; _root.sgreentimer = 0; } } } } } } } } else { _root.transform = true; } _root.weapontype = _root.poweruparray[v2].weaponpowercolor; _root.poweruparray[v2].removeMovieClip(); } else { if (_root.poweruparray[v2].poweruptype == 'missile') { _root.missilepowersound.stop(); _root.missilepowersound.start(0, 0); if (_root.mhlevel < 5) { ++_root.mhlevel; _root.whichmissileframe = 'level' + _root.mhlevel; _root.status.mask.missile.gotoAndStop(_root.whichmissileframe); } else { if (_root.mode == 'mission') { _root.totalscore += 10; _root.status.score = int(_root.totalscore); } else { if (_root.mode == 'survival') { _root.totalscore2 += 10; _root.status.score = int(_root.totalscore2); } } } } else { if (_root.poweruparray[v2].poweruptype == 'bomb') { _root.bombpowersound.stop(); _root.bombpowersound.start(0, 0); if (_root.numberofbombs < 15) { ++_root.numberofbombs; _root.status.bomb.gotoAndStop(_root.numberofbombs + 1); } else { if (_root.mode == 'stage') { _root.totalscore += 10; _root.status.score = int(_root.totalscore); } else { if (_root.mode == 'survival') { _root.totalscore2 += 10; _root.status.score = int(_root.totalscore2); } } } } else { if (_root.poweruparray[v2].poweruptype == 'health') { _root.healthpowersound.stop(); _root.healthpowersound.start(0, 0); if (_root.shipshield > 35) { _root.shipshield = 50; } else { _root.shipshield += 15; } _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); } else { if (_root.poweruparray[v2].poweruptype == 'minihealth') { _root.healthpowersound.stop(); _root.healthpowersound.start(0, 0); if (_root.shipshield > 45) { _root.shipshield = 50; } else { _root.shipshield += 5; } _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); } else { if (_root.poweruparray[v2].poweruptype == 'protector') { _root.protectorpowersound.stop(); _root.protectorpowersound.start(0, 0); _root.protector2health = 15; _root.protector1health = 15; _root.ship.protector.sphere.gotoAndStop('full'); _root.ship.protector2.sphere.gotoAndStop('full'); if (_root.protectorlevel < 4) { ++_root.protectorlevel; if (_root.protectorlevel > 2) { _root.ship.protector2.gotoAndStop('protector'); } else { if (_root.protectorlevel == 1) { _root.ship.protector.gotoAndStop('protector'); } } } else { if (_root.mode == 'stage') { _root.totalscore += 10; _root.status.score = int(_root.totalscore); } else { if (_root.mode == 'survival') { _root.totalscore2 += 10; _root.status.score = int(_root.totalscore2); } } } } } } } } } _root.poweruparray[v2].removeMovieClip(); _root.poweruparray.splice(v2, 1); } --v2; } }; _root.getkey = function () { var v2 = Key.isDown; kleft = v2(_root.leftkey); kright = v2(_root.rightkey); kup = v2(_root.upkey); kdown = v2(_root.downkey); kspace = v2(_root.firekey); if (kup) { _root.ship._y -= _root.speed; if (_root.ship._y < _root.top_border) { _root.ship._y = _root.top_border; } } if (kdown) { _root.ship._y += _root.speed; if (_root.ship._y > _root.bottom_border) { _root.ship._y = _root.bottom_border; } } if (kright) { _root.ship._x += _root.speed; if (_root.ship._x > _root.right_border) { _root.ship._x = _root.right_border; } } if (kleft) { _root.ship._x -= _root.speed; if (_root.ship._x < _root.left_border) { _root.ship._x = _root.left_border; } } ++_root.firetimer; if (kspace && _root.firetimer >= _root.interval) { if (_root.weapontype == 'red') { _root.redsound.stop(); _root.redsound.start(0, 0); } else { if (_root.weapontype == 'blue') { _root.bluesound.stop(); _root.bluesound.start(0, 0); } else { if (_root.weapontype == 'green') { _root.greensound.stop(); _root.greensound.start(0, 0); } } } _root[_root.weapontype + _root.weaponnumber](); _root.firetimer = 0; } }; _root.newlevel = function () { _root.boss3counter = 0; _root.e7w1pos = 0; _root.e6w1pos = 0; _root.e5w1pos = 0; _root.e4w2pos = 0; _root.e4w1pos = 0; _root.e3w1pos = 0; _root.e2w1pos = 0; _root.e1w1pos = 0; }; _root.boss2lasersound.onSoundComplete = function () { if (_root.levelnumber == 4 && _root.gamestart == true) { _root.boss2lasersound2.stop(); _root.boss2lasersound2.start(0, 0); _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); ec = 0; while (ec < _root.enemyarray.length) { if (_root.enemyarray[ec].enemytypevar == 'fboss') { _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth]._x = _root.enemyarray[ec]._x + _root.enemyarray[ec].enemytype._x + _root.enemyarray[ec].enemytype.gun._x; _root['enemybullet' + _root.depth]._y = _root.enemyarray[ec]._y + _root.enemyarray[ec].enemytype._y + _root.enemyarray[ec].enemytype.gun._y; _root['enemybullet' + _root.depth].gotoAndStop('ebullet1'); _root['enemybullet' + _root.depth].xvalue = -_root.enemy1bulletspeed; _root['enemybullet' + _root.depth].yvalue = 0; _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'fbosslaser'; _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } ++ec; } } }; _root.poweruparray = new Array(); _root.weaponpowerupfunction = function () { _root.weaponPower.duplicateMovieClip('weaponpower' + _root.depth, _root.depth); _root.poweruparray[_root.poweruparray.length] = _root['weaponpower' + _root.depth]; _root['weaponpower' + _root.depth].poweruptype = 'weapon'; whichcolor = random(3) + 1; if (whichcolor == 1) { _root['weaponpower' + _root.depth].gotoAndStop('red'); } if (whichcolor == 2) { _root['weaponpower' + _root.depth].gotoAndStop('blue'); } if (whichcolor == 3) { _root['weaponpower' + _root.depth].gotoAndStop('green'); } _root['weaponpower' + _root.depth]._x = _root.assignx; _root['weaponpower' + _root.depth]._y = _root.assigny; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.healthpowerupfunction = function () { _root.healthpower.duplicateMovieClip('healthpower' + _root.depth, _root.depth); _root.poweruparray[_root.poweruparray.length] = _root['healthpower' + _root.depth]; _root['healthpower' + _root.depth].poweruptype = 'health'; _root['healthpower' + _root.depth]._y = random(300) + 100; _root['healthpower' + _root.depth]._x = 720; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.minihealthpowerupfunction = function () { _root.healthpower.duplicateMovieClip('healthpower' + _root.depth, _root.depth); _root.poweruparray[_root.poweruparray.length] = _root['healthpower' + _root.depth]; _root['healthpower' + _root.depth].poweruptype = 'minihealth'; _root['healthpower' + _root.depth]._x = _root.assignx; _root['healthpower' + _root.depth]._y = _root.assigny; _root['healthpower' + _root.depth]._yscale = 60; _root['healthpower' + _root.depth]._xscale = 60; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.missilepowerupfunction = function () { trace(_root.depth); _root.missilepower.duplicateMovieClip('missilepower' + _root.depth, _root.depth); _root.poweruparray[_root.poweruparray.length] = _root['missilepower' + _root.depth]; _root['missilepower' + _root.depth].poweruptype = 'missile'; _root['missilepower' + _root.depth]._x = _root.assignx; _root['missilepower' + _root.depth]._y = _root.assigny; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.bombpowerupfunction = function () { _root.bombpower.duplicateMovieClip('bombpower' + _root.depth, _root.depth); _root.poweruparray[_root.poweruparray.length] = _root['bombpower' + _root.depth]; _root['bombpower' + _root.depth].poweruptype = 'bomb'; _root['bombpower' + _root.depth]._x = _root.assignx; _root['bombpower' + _root.depth]._y = _root.assigny; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.protectorpowerupfunction = function () { _root.protectorpower.duplicateMovieClip('protectorpower' + _root.depth, _root.depth); _root.poweruparray[_root.poweruparray.length] = _root['protectorpower' + _root.depth]; _root['protectorpower' + _root.depth].poweruptype = 'protector'; _root['protectorpower' + _root.depth]._x = _root.assignx; _root['protectorpower' + _root.depth]._y = _root.assigny; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } }; _root.targetenemyfunction = function () { if (_root.enemyarray.length >= 1) { _root.targeted = true; if (_root.targetdir == 'forward') { if (_root.targetenemy >= _root.enemyarray.length - 1) { _root.targetenemy = 0; } else { ++_root.targetenemy; } trace(_root.targetenemy); trace(_root.enemyarray.length); } else { if (_root.targetdir == 'backward') { if (_root.targetenemy == 0) { _root.targetenemy = _root.enemyarray.length - 1; } else { --_root.targetenemy; } } } _root.target._x = _root.enemyarray[_root.targetenemy]._x + _root.enemyarray[_root.targetenemy].enemytype._x; _root.target._y = _root.enemyarray[_root.targetenemy]._y + _root.enemyarray[_root.targetenemy].enemytype._y; } }; _root.autorotatefunction = function () { if (_root.autorotate == false) { _root.autorotate = true; _root.ship.protector.play(); _root.ship.protector2.play(); } else { _root.autorotate = false; _root.ship.protector.stop(); _root.ship.protector2.stop(); } }; if (_root.customcontrols == false) { _root.upkey = 38; _root.downkey = 40; _root.leftkey = 37; _root.rightkey = 39; _root.firekey = 90; _root.bombkey = 32; _root.missilekey = 90; _root.laserkey = 67; _root.targetkey = 68; _root.targetkey2 = 83; _root.autokey = 0; _root.pausekey = 80; } if (_root.reset == true) { _root.maindisplay.gotoAndStop('title'); } _root.countdowntimer = 240; _root.status._visible = false; _root.transition._visible = false; _root.enemy.gotoAndStop('blank'); _root.shipexplosion.gotoAndStop('blank'); _root.mhexplosionmc.gotoAndStop('blank'); _root.healthpower.gotoAndStop('blank'); _root.protectorpower.gotoAndStop('blank'); _root.weaponpower.gotoAndStop('blank'); _root.missilepower.gotoAndStop('blank'); _root.bombpower.gotoAndStop('blank'); _root.megahoming.gotoAndStop('blank'); _root.shot.gotoAndStop('blank'); _root.enemybullet.gotoAndStop('blank'); } frame 2 { fscommand('fullscreen', 'false'); fscommand('allowscale', 'false'); fscommand('showmenu', 'false'); _highquality = '2'; _focusrect = '0'; } button 155 { on (release) { _root.maindisplay.gotoAndStop('title'); _root.creditsloop.stop(); _root.credits.gotoAndStop('blank'); _root.credits.swapDepths(1); } } movieClip 156 { } movieClip 157 { } movieClip 158 { } movieClip 161 { } movieClip 169 { } movieClip 173 { } movieClip 176 { frame 15 { stop(); } } movieClip 178 { } movieClip 190 { frame 7 { gotoAndPlay(5); } } movieClip 192 { frame 17 { stop(); } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } frame 29 { stop(); } } movieClip 198 { } movieClip 200 { frame 15 { stop(); } } movieClip 223 { } movieClip 225 { } movieClip 234 { } movieClip 235 { } movieClip 238 { } movieClip 239 { frame 11 { stop(); } } movieClip 240 { frame 11 { stop(); } } movieClip 244 { } movieClip 245 { frame 11 { stop(); } } movieClip 246 { frame 11 { stop(); } } movieClip 247 { } movieClip 253 { } movieClip 254 { frame 485 { stop(); } } movieClip 255 { frame 40 { ttalk.gotoAndPlay('close'); } frame 194 { ttalk.gotoAndPlay('close'); } } button 256 { on (release) { _root.MENU.M_BG_Larc.lac.narc.cut1.visible = false; _root.MENU.M_BG_Larc.lac.narc.cut1.gotoAndStop(1); _root.display.gotoAndStop('blank'); _root.maindisplay.gotoAndStop('title'); _root.creditsloop.stop(); _root.credits.gotoAndStop('blank'); } } movieClip 260 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 262 { } movieClip 264 { } movieClip 265 { frame 1 { stop(); } frame 2 { _root.gamestart = false; _root.clean(); _root[_root.currentloop].stop(); } frame 10 { _quality = 'high'; _root.currentloop.stop(); _root.fade = 'in'; _root.creditsloop.start(0, 100); _root.loopvolume2 = 100; _root.creditsloop.setVolume(_root.loopvolume2); i = 0; while (i < 15) { _root.credits.attachMovie('spark1', 'spark' + _root.depth, _root.depth); _root.credits['spark' + _root.depth]._x = 0; _root.credits['spark' + _root.depth]._y = 0; _root.credits['spark' + _root.depth]._rotation = random(360); _root.credits['spark' + _root.depth]._yscale = random(50) + 50; _root.credits['spark' + _root.depth]._xscale = _root.credits['spark' + _root.depth]._yscale; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } ++i; } i = 0; while (i < 15) { _root.credits.attachMovie('spark2', 'spark' + _root.depth, _root.depth); _root.credits['spark' + _root.depth]._x = 0; _root.credits['spark' + _root.depth]._y = 0; _root.credits['spark' + _root.depth]._rotation = random(360); _root.credits['spark' + _root.depth]._yscale = random(50) + 50; _root.credits['spark' + _root.depth]._xscale = _root.credits['spark' + _root.depth]._yscale; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } ++i; } } frame 771 { i = 0; while (i < 15) { _root.credits.attachMovie('spark1', 'spark' + _root.depth, _root.depth); _root.credits['spark' + _root.depth]._x = 0; _root.credits['spark' + _root.depth]._y = 0; _root.credits['spark' + _root.depth]._rotation = random(360); _root.credits['spark' + _root.depth]._yscale = random(50) + 50; _root.credits['spark' + _root.depth]._xscale = _root.credits['spark' + _root.depth]._yscale; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } ++i; } i = 0; while (i < 15) { _root.credits.attachMovie('spark2', 'spark' + _root.depth, _root.depth); _root.credits['spark' + _root.depth]._x = 0; _root.credits['spark' + _root.depth]._y = 0; _root.credits['spark' + _root.depth]._rotation = random(360); _root.credits['spark' + _root.depth]._yscale = random(50) + 50; _root.credits['spark' + _root.depth]._xscale = _root.credits['spark' + _root.depth]._yscale; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } ++i; } } frame 836 { if (_root.previewcredits == false) { _root.credits.staytuned.gotoAndStop('graphic'); } else { _root.credits.staytuned.gotoAndStop('blank'); _root.creditsloop.start(0, 100); _root.loopvolume2 = 100; _root.creditsloop.setVolume(_root.loopvolume2); } } frame 1173 { _root.display.gotoAndPlay('sumscore2'); } frame 1334 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1335 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1336 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1337 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1338 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1339 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1340 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1341 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1342 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1343 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1344 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1345 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1346 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1347 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1348 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1349 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1350 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1351 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1352 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1353 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1354 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1355 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1356 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1357 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1358 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1359 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1360 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1361 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1362 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1363 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1364 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1365 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1366 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1367 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1368 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1369 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1370 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1371 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1372 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1373 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1374 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1375 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1376 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1377 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1378 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1379 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1380 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1381 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1382 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1383 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); } frame 1384 { _root.loopvolume2 -= 2; _root.creditsloop.setVolume(_root.loopvolume2); _root.creditsloop.stop(); } frame 1385 { _root.maindisplay.gotoAndStop('title'); } frame 1396 { stop(); } instance of movieClip 264 { onClipEvent (load) { _root.MENU.M_BG_Larc.lac.narc.cut1.visible = false; _root.MENU.M_BG_Larc.lac.narc.cut1.gotoAndStop(1); _root.display.gotoAndStop('blank'); _root.maindisplay.gotoAndStop('title'); _root.creditsloop.stop(); _root.credits.gotoAndStop('blank'); } } } movieClip 285 { frame 63 { gotoAndPlay(36); } } movieClip 289 { frame 375 { stop(); } } movieClip 290 { frame 17 { stop(); } } movieClip 291 { } movieClip 292 { } movieClip 293 { } movieClip 296 { } movieClip 297 { } movieClip 298 { } movieClip 299 { } movieClip 305 { } movieClip 306 { frame 392 { ttalk.gotoAndPlay('close'); } frame 402 { stop(); } instance of movieClip 305 { onClipEvent (load) { _root.MENU._visible = true; _root.transition._visible = true; _root.transition.gotoAndPlay('close'); _root.mode = 'mission'; _root.totalscore = 0; _root.startgame = true; _root.maindisplay.playbtn.enabled = false; _root.maindisplay.instructionsbtn.enabled = false; _root.maindisplay.optionsbtn.enabled = false; _root.levelnumber = 1; _root.numberofbombs = 3; _root.mhlevel = 0; _root.weaponnumber = '1'; _root.weapontype = 'red'; } } } movieClip 307 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 310 { } movieClip 311 { } movieClip 312 { frame 3422 { stop(); } } movieClip 313 { } movieClip 314 { frame 1 { stop(); } } movieClip 315 { frame 1 { stop(); } } movieClip 318 { frame 1716 { stop(); } } movieClip 319 { frame 1 { stop(); } } movieClip 404 { frame 126 { gotoAndPlay(37); } } movieClip 406 { } movieClip 409 { frame 153 { stop(); } } movieClip 410 { frame 17 { stop(); } } movieClip 411 { instance of movieClip 406 { onClipEvent (load) { _quality = 'high'; } } frame 167 { ttalk.gotoAndPlay('close'); } frame 176 { stop(); } instance of movieClip 406 { onClipEvent (load) { _quality = 'low'; } } } movieClip 412 { } movieClip 413 { frame 1 { stop(); } } movieClip 414 { frame 1 { stop(); } frame 2 { stop(); _root.bg.swapDepths(17); _root.fd.swapDepths(999999); } frame 3 { stop(); _root.bg.swapDepths(17); } frame 4 { stop(); _root.bg.swapDepths(1); } frame 5 { stop(); _root.bg.swapDepths(17); } frame 6 { stop(); } } button 415 { on (release) { _root.maindisplay.gotoAndStop('options'); if (_root.difficulty == 'easy') { _root.maindisplay.beginner._visible = true; _root.maindisplay.expert._visible = false; } if (_root.difficulty == 'expert') { _root.maindisplay.beginner._visible = false; _root.maindisplay.expert._visible = true; } } } button 419 { on (release) { _root.maindisplay.gotoAndStop('title'); _root.passwordmc.gotoAndStop('blank'); _root.maindisplay.playbtn.enabled = true; _root.maindisplay.controlsbtn.enabled = true; _root.maindisplay.passwordbtn.enabled = true; } } button 420 { on (release) { _root.difficulty = 'expert'; _root.maindisplay.beginner._visible = false; _root.maindisplay.expert._visible = true; } } button 421 { on (release) { _root.difficulty = 'easy'; _root.maindisplay.beginner._visible = true; _root.maindisplay.expert._visible = false; } } button 422 { on (release) { _root.passwordmc.gotoAndPlay('open'); _root.maindisplay.controlsbtn.enabled = false; _root.maindisplay.passwordbtn.enabled = false; _root.maindisplay.beginnerbtn.enabled = false; _root.maindisplay.expertbtn.enabled = false; } } button 423 { on (release) { _root.controls._visible = true; _root.maindisplay._visible = false; } } button 424 { on (release) { _root.maindisplay.gotoAndStop('title'); } } button 427 { on (release) { getURL('http://www.maxgames.com/', '_blank'); } } button 429 { on (release) { getURL('http://maxgames.com/', '_blank'); } } button 431 { on (release) { _root.maindisplay.yesbtn.enabled = false; _root.maindisplay.nobtn.enabled = false; _root.maindisplay.givepass.menu.enabled = false; _root.abortmission = true; _root.transition._visible = true; _root.transition.gotoAndPlay('close'); } } movieClip 433 { } movieClip 437 { } movieClip 439 { } movieClip 443 { } movieClip 445 { } movieClip 447 { } movieClip 448 { } movieClip 450 { } movieClip 451 { frame 1 { l2.gotoAndPlay(5); l3.gotoAndPlay(10); l4.gotoAndPlay(15); } } movieClip 452 { } movieClip 453 { } movieClip 454 { } movieClip 456 { } movieClip 458 { } movieClip 460 { } movieClip 461 { } movieClip 463 { } movieClip 464 { frame 1 { l2.gotoAndPlay(5); l3.gotoAndPlay(10); l4.gotoAndPlay(15); } } movieClip 465 { } movieClip 466 { } movieClip 467 { frame 16 { if (Number(check) == 1) { gotoAndPlay(55); } } frame 26 { if (Number(check) == 1) { gotoAndPlay(50); } else { gotoAndPlay(6); } } frame 41 { stop(); } frame 55 { if (Number(check) == 0) { gotoAndPlay(16); } } frame 60 { if (Number(check) == 0) { gotoAndPlay(6); } else { gotoAndPlay(50); } } } movieClip 470 { frame 1 { stop(); } frame 2 { stop(); _root.maindisplay.givepass.passwordtext1 = _root.passtext1; _root.maindisplay.givepass.passwordtext2 = _root.passtext2; _root.maindisplay.givepass.passwordtext3 = _root.passtext3; _root.maindisplay.givepass.passwordtext4 = _root.passtext4; _root.maindisplay.givepass.passwordtext5 = _root.passtext5; _root.maindisplay.givepass.menu.enabled = true; } instance of movieClip 433 { onClipEvent (enterFrame) { _root.MENU.removeMovieClip; } onClipEvent (load) { _root.MENU.removeMovieClip; } } } button 478 { on (release) { _root.maindisplay.givepass.gotoAndStop('pass'); } } button 480 { on (release) { _root.totalscore = _root.currentscore - 100; if (_root.totalscore < 0) { _root.totalscore = 0; } _root.status.score = int(_root.totalscore); score = _root.totalscore; _root.transition._visible = true; _root.transition.gotoAndPlay('close'); _root.startgame = true; _root.pausedisplay._visible = false; _root.yesbtn.enabled = false; _root.nobtn.enabled = false; } } movieClip 484 { } movieClip 486 { } movieClip 487 { frame 1 { stop(); } frame 2 { stop(); _root.maindisplay.playbtn.enabled = true; _root.maindisplay.instructionsbtn.enabled = true; _root.maindisplay.optionsbtn.enabled = true; } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); _root.countdowntimer = 240; score = _root.totalscore; _root.maindisplay.yesbtn.enabled = true; _root.maindisplay.nobtn.enabled = true; } instance of movieClip 28 { onClipEvent (enterFrame) { if (_root.countdowntimer > 0) { --_root.countdowntimer; _root.maindisplay.countdown = int(_root.countdowntimer / 24); } else { _root.maindisplay.givepass.gotoAndStop('pass'); } } } } movieClip 490 { frame 26 { stop(); } } movieClip 492 { frame 7 { gotoAndPlay(5); } } movieClip 521 { frame 1 { if (this._name == 'iamdead') { this.stop(); } } frame 13 { this.removeMovieClip(); } frame 14 { stop(); } } instance of movieClip 28 { onClipEvent (load) { _root.speed = 15; _root.top_border = 40; t = 1; _root.left_border = 1; _root.bottom_border = 500 - _root.sheight; _root.right_border = 800 - _root.swidth; var maxenemy = 4; var MegaHomingFiredTimer = 0; var MegaHomingFiredTimer2 = 0; done = false; done2 = false; } onClipEvent (keyDown) { if (_root.gamestart == true && _root.bosskilled == false) { if (Key.isDown(_root.pausekey)) { if (_root.paused == false) { _root.bomb1.bomb.explode.stop(); bc = _root.bulletarray.length - 1; while (bc >= 0) { if (_root.bulletarray[bc].shottype == 'sred') { _root.bulletarray[bc].bomb.explode.stop(); } --bc; } _root.musicplaying = false; _root.pausedisplay._visible = true; if (_root.globalmusiccontrol == 'play') { _root.fade = 'out'; _root.status.mask.box._x = 245; } _root.gametimer = false; _root.paused = true; _root.display.lasertxt.stop(); _quality = 'high'; } else { _root.bomb1.bomb.explode.play(); bc = _root.bulletarray.length - 1; while (bc >= 0) { if (_root.bulletarray[bc].shottype == 'sred') { _root.bulletarray[bc].bomb.explode.play(); } --bc; } _root.musicplaying = true; if (_root.globalmusiccontrol == 'play') { _root.fade = 'in'; _root.status.mask.box._x = 212.3; } _root.paused = false; _root.pausedisplay._visible = false; _root.gametimer = true; _quality = 'low'; if (_root.displaytextplaying) { _root.display.lasertxt.play(); } } } } } onClipEvent (enterFrame) { if (_root.changemusic == true) { if (_root.loopvolume > 0) { _root.loopvolume -= 5; _root[_root.currentloop].setVolume(_root.loopvolume); } else { if (_root.loopvolume <= 0) { _root[_root.currentloop].stop(); _root.currentloop = _root.newloop; _root[_root.currentloop].start(0, 99999); _root.loopvolume = 100; _root[_root.currentloop].setVolume(_root.loopvolume); if (_root.globalmusiccontrol == 'play') { _root.fade = 'in'; } _root.changemusic = false; } } } if (_root.fade == 'in') { if (_root.mode == 'mission') { if (_root.loopvolume < 100) { _root.loopvolume += 8; _root[_root.currentloop].setVolume(_root.loopvolume); } else { if (_root.loopvolume > 100) { _root.loopvolume = 100; _root[_root.currentloop].setVolume(_root.loopvolume); } } } else { if (_root.mode == 'survival') { if (_root.loopvolume < 300) { _root.loopvolume += 8; _root[_root.currentloop].setVolume(_root.loopvolume); } else { if (_root.loopvolume > 300) { _root.loopvolume = 300; _root[_root.currentloop].setVolume(_root.loopvolume); } } } } } else { if (_root.fade == 'out') { if (_root.loopvolume > 0) { _root.loopvolume -= 20; _root[_root.currentloop].setVolume(_root.loopvolume); } else { if (_root.loopvolume < 0) { _root.loopvolume = 0; _root[_root.currentloop].setVolume(_root.loopvolume); } } } } if (_root.gamestart == true) { _root.test = _root.enemyticker; if (_root.youaredead == true) { if (_root.bosskilled == true) { _root.youaredead = false; _root.ship._visible = true; } ++_root.deathdelay; if (_root.deathdelay == 25) { _root.deathdelay = 0; _root.transition._visible = true; _root.transition.gotoAndPlay('Close'); } } if (_root.paused == false) { if (_root.gametimer == true) { _root.time += 0.05; _root.status.timer = int(_root.time); } if (_root.transform == true) { if (_root.weapontype == 'blue') { if (_root.ship.greenpower._currentframe > 1) { _root.ship.greenpower.prevFrame(); } if (_root.ship.blue._currentframe < _root.ship.blue._totalframes) { _root.ship.blue.nextFrame(); } if (_root.ship.greenpower._currentframe == 1 && _root.ship.blue._currentframe == _root.ship.blue._totalframes) { _root.transform = false; } } else { if (_root.weapontype == 'green') { if (_root.ship.blue._currentframe > 1) { _root.ship.blue.prevFrame(); } if (_root.ship.greenpower._currentframe < _root.ship.greenpower._totalframes) { _root.ship.greenpower.nextFrame(); } if (_root.ship.blue._currentframe == 1 && _root.ship.greenpower._currentframe == _root.ship.greenpower._totalframes) { _root.transform = false; } } else { if (_root.weapontype == 'red') { if (_root.ship.greenpower._currentframe > 1) { _root.ship.greenpower.prevFrame(); } if (_root.ship.blue._currentframe > 1) { _root.ship.blue.prevFrame(); } if (_root.ship.greenpower._currentframe == 1 && _root.ship.blue._currentframe == 1) { _root.transform = false; } } } } } if (_root.boss != true) { ++_root.bosscoming; if (_root.levelnumber != 4 && _root.levelnumber != 'survival') { if (_root.bosscoming == 3600) { _root.bosscoming = 0; _root.boss = true; _root.createboss = true; if (_root.globalmusiccontrol == 'play') { _root.changemusic = true; _root.newloop = 'boss' + _root.levelnumber + 'loop'; } } } else { if (_root.levelnumber == 4) { if (_root.bosscoming == 100) { _root.boss = true; _root.createboss = true; _root.bosscoming = 0; } } else { if (_root.levelnumber == 'survival') { _root.boss = true; } } } ++_root.enemyticker; if (_root.levelnumber == 1) { if (_root.enemyticker == 1000 || _root.enemyticker == 2000 || _root.enemyticker == 3500) { _root.healthpowerupfunction(); } if (_root.enemyticker == _root.enemy1wavetimer[_root.e1w1pos]) { _root.enemy1wave1(); ++_root.e1w1pos; } if (_root.enemyticker == _root.enemy2wavetimer[_root.e2w1pos]) { _root.enemy2wave1(); ++_root.e2w1pos; } if (_root.enemyticker == _root.enemy3wavetimer[_root.e3w1pos]) { _root.enemy3wave1(); ++_root.e3w1pos; } if (_root.enemyticker == _root.enemy4wavetimer[_root.e4w1pos]) { _root.enemy4wave1(); ++_root.e4w1pos; } if (_root.enemyticker == _root.enemy4wave2timer[_root.e4w2pos]) { _root.enemy4wave2(); ++_root.e4w2pos; } } else { if (_root.levelnumber == 2) { if (_root.enemyticker == 1000 || _root.enemyticker == 2000 || _root.enemyticker == 3500) { _root.healthpowerupfunction(); } if (_root.enemyticker == _root.enemy1wavetimer2[_root.e1w1pos]) { _root.enemy1wave1(); ++_root.e1w1pos; } if (_root.enemyticker == _root.enemy2wavetimer2[_root.e2w1pos]) { _root.enemy2wave1(); ++_root.e2w1pos; } if (_root.enemyticker == _root.enemy3wavetimer2[_root.e3w1pos]) { _root.enemy3wave1(); ++_root.e3w1pos; } if (_root.enemyticker == _root.enemy4wavetimer2[_root.e4w1pos]) { _root.enemy4wave1(); ++_root.e4w1pos; } if (_root.enemyticker == _root.enemy4wave2timer2[_root.e4w2pos]) { _root.enemy4wave2(); ++_root.e4w2pos; } if (_root.enemyticker == _root.enemy5wave1timer2[_root.e5w1pos]) { _root.enemy5wave1(); ++_root.e5w1pos; } if (_root.enemyticker == _root.enemy6wave1timer2[_root.e6w1pos]) { _root.enemy6wave1(); ++_root.e6w1pos; } } else { if (_root.levelnumber == 3) { if (_root.enemyticker == 1000 || _root.enemyticker == 2000 || _root.enemyticker == 3500) { _root.healthpowerupfunction(); } if (_root.enemyticker == _root.enemy1wavetimer3[_root.e1w1pos]) { _root.enemy1wave1(); ++_root.e1w1pos; } if (_root.enemyticker == _root.enemy2wavetimer3[_root.e2w1pos]) { _root.enemy2wave1(); ++_root.e2w1pos; } if (_root.enemyticker == _root.enemy3wavetimer3[_root.e3w1pos]) { _root.enemy3wave1(); ++_root.e3w1pos; } if (_root.enemyticker == _root.enemy4wavetimer3[_root.e4w1pos]) { _root.enemy4wave1(); ++_root.e4w1pos; } if (_root.enemyticker == _root.enemy4wave2timer3[_root.e4w2pos]) { _root.enemy4wave2(); ++_root.e4w2pos; } if (_root.enemyticker == _root.enemy5wave1timer3[_root.e5w1pos]) { _root.enemy5wave1(); ++_root.e5w1pos; } if (_root.enemyticker == _root.enemy6wave1timer3[_root.e6w1pos]) { _root.enemy6wave1(); ++_root.e6w1pos; } if (_root.enemyticker == _root.enemy7wave1timer3[_root.e7w1pos]) { _root.enemy7wave1(); ++_root.e7w1pos; } } } } } else { if (_root.createboss == true) { if (_root.levelnumber != 4) { _root.whichboss = _root.levelnumber; _root['boss' + _root.whichboss + 'function'](); _root.fade = 'hold'; } else { _root.fbossfunction(); } _root.createboss = false; } if (_root.levelnumber == 4) { ++_root.enemyticker; if (_root.fbosswave == 1) { ++_root.fbossticker; if (_root.fbossticker == _root.enemy1wavetimer4[_root.e1w1pos]) { _root.enemy1wave1(); ++_root.e1w1pos; } if (_root.fbossticker == _root.enemy2wavetimer4[_root.e2w1pos]) { _root.enemy2wave1(); ++_root.e2w1pos; } if (_root.fbossticker == _root.enemy3wavetimer4[_root.e3w1pos]) { _root.enemy3wave1(); ++_root.e3w1pos; } } else { if (_root.fbosswave == 2) { ++_root.fbossticker; if (_root.fbossticker == _root.enemy1wavetimer4[_root.e1w1pos]) { _root.enemy1wave1(); ++_root.e1w1pos; } if (_root.fbossticker == _root.enemy2wavetimer4[_root.e2w1pos]) { _root.enemy2wave1(); ++_root.e2w1pos; } if (_root.fbossticker == _root.enemy3wavetimer4[_root.e3w1pos]) { _root.enemy3wave1(); ++_root.e3w1pos; } if (_root.fbossticker == _root.enemy4wavetimer4[_root.e4w1pos]) { _root.enemy4wave1(); ++_root.e4w1pos; } if (_root.fbossticker == _root.enemy4wave2timer4[_root.e4w2pos]) { _root.enemy4wave2(); ++_root.e4w2pos; } if (_root.fbossticker == _root.enemy5wave1timer4[_root.e5w1pos]) { _root.enemy5wave1(); ++_root.e5w1pos; } } else { if (_root.fbosswave == 3) { ++_root.fbossticker; if (_root.fbossticker == _root.enemy1wavetimer4[_root.e1w1pos]) { _root.enemy1wave1(); ++_root.e1w1pos; } if (_root.fbossticker == _root.enemy2wavetimer4[_root.e2w1pos]) { _root.enemy2wave1(); ++_root.e2w1pos; } if (_root.fbossticker == _root.enemy3wavetimer4[_root.e3w1pos]) { _root.enemy3wave1(); ++_root.e3w1pos; } if (_root.fbossticker == _root.enemy4wavetimer4[_root.e4w1pos]) { _root.enemy4wave1(); ++_root.e4w1pos; } if (_root.fbossticker == _root.enemy4wave2timer4[_root.e4w2pos]) { _root.enemy4wave2(); ++_root.e4w2pos; } if (_root.fbossticker == _root.enemy5wave1timer4[_root.e5w1pos]) { _root.enemy5wave1(); ++_root.e5w1pos; } if (_root.fbossticker == _root.enemy6wave1timer4[_root.e6w1pos]) { _root.enemy6wave1(); ++_root.e6w1pos; } if (_root.fbossticker == _root.enemy7wave1timer4[_root.e7w1pos]) { _root.enemy7wave1(); ++_root.e7w1pos; } } } } } else { if (_root.levelnumber == 'survival') { ++_root.enemyticker; if (_root.enemyticker == 900) { _root.havelaser = true; _root.ship.shiptype.gotoAndStop('yeslaser'); _root.ship.powerup.gotoAndPlay('laser'); } if (_root.enemyticker >= 2500) { if (_root.enemyticker == 2500 || _root.enemyticker == 3100 || _root.enemyticker == 3700 || _root.enemyticker == 4300 || _root.enemyticker == 4900 || _root.enemyticker == 5500 || _root.enemyticker == 6100) { _root.enemy1delay -= 12; _root.enemy2delay -= 12; _root.enemy3delay -= 12; _root.enemy4delay -= 12; _root.enemy4delay2 -= 12; _root.enemy5delay -= 12; _root.enemy6delay -= 12; _root.enemy7delay -= 12; if (_root.enemy1delay < 0) { _root.enemy1delay = 0; } if (_root.enemy2delay < 0) { _root.enemy2delay = 0; } if (_root.enemy3delay < 0) { _root.enemy3delay = 0; } if (_root.enemy4delay < 0) { _root.enemy4delay = 0; } if (_root.enemy4delay2 < 0) { _root.enemy4delay2 = 0; } if (_root.enemy5delay < 0) { _root.enemy5delay = 0; } if (_root.enemy6delay < 0) { _root.enemy6delay = 0; } if (_root.enemy7delay < 0) { _root.enemy7delay = 0; } } } if (_root.enemyticker == _root.enemy1wavetimer5) { _root.enemy1wave1(); _root.enemy1wavetimer5 += random(125) + _root.enemy1delay; } if (_root.enemyticker == _root.enemy2wavetimer5) { _root.enemy2wave1(); _root.enemy2wavetimer5 += random(125) + _root.enemy2delay; } if (_root.enemyticker == _root.enemy3wavetimer5) { _root.enemy3wave1(); _root.enemy3wavetimer5 += random(125) + _root.enemy3delay; } if (_root.enemyticker == _root.enemy4wavetimer5) { _root.enemy4wave1(); _root.enemy4wavetimer5 += random(125) + _root.enemy4delay; } if (_root.enemyticker == _root.enemy4wave2timer5) { _root.enemy4wave2(); _root.enemy4wave2timer5 += random(125) + _root.enemy4delay2; } if (_root.enemyticker == _root.enemy5wave1timer5) { _root.enemy5wave1(); _root.enemy5wave1timer5 += random(150) + _root.enemy5delay; _root.enemy3wavetimer5 = 0; } if (_root.enemyticker == _root.enemy6wave1timer5) { _root.enemy6wave1(); _root.enemy6wave1timer5 += random(175) + _root.enemy6delay; _root.enemy4wave2timer5 = 0; } if (_root.enemyticker == _root.enemy7wave1timer5) { _root.enemy7wave1(); _root.enemy7wave1timer5 += random(175) + _root.enemy7delay; } } } } if (_root.enemyarray.length > 0) { _root.enemymove(); _root.enemymove2(); } if (_root.youaredead == false) { _root.getkey(); if (Key.isDown(65) && getTimer() > rotatetimer + 300) { _root.autorotatefunction(); rotatetimer = getTimer(); } if (_root.protectorlevel <= 2) { _root.ship.protector2.gotoAndStop('blank'); if (_root.protectorlevel == 0) { _root.ship.protector.gotoAndStop('blank'); } } if (_root.protectorlevel >= 1) { if (Key.isDown(_root.firekey) && getTimer() > ProtectorFiredTimer + 300) { _root.redsound.stop(); _root.redsound.start(0, 0); _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.protector._x + _root.ship.protector.sphere._x + _root.ship.protector.sphere.gun._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.protector._y + _root.ship.protector.sphere._y + _root.ship.protector.sphere.gun._y; _root['bullet' + _root.depth].xvalue = _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].shottype = 'red1'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } if (_root.protectorlevel >= 2) { _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.protector._x + _root.ship.protector.sphere._x + _root.ship.protector.sphere.gun2._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.protector._y + _root.ship.protector.sphere._y + _root.ship.protector.sphere.gun2._y; _root['bullet' + _root.depth].xvalue = -_root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].shottype = 'red1'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } if (_root.protectorlevel >= 3) { _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.protector2._x + _root.ship.protector2.sphere._x + _root.ship.protector2.sphere.gun._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.protector2._y + _root.ship.protector2.sphere._y + _root.ship.protector2.sphere.gun._y; _root['bullet' + _root.depth].xvalue = _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].shottype = 'red1'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } if (_root.protectorlevel == 4) { _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = _root.ship._x + _root.ship.protector2._x + _root.ship.protector2.sphere._x + _root.ship.protector2.sphere.gun2._x; _root['bullet' + _root.depth]._y = _root.ship._y + _root.ship.protector2._y + _root.ship.protector2.sphere._y + _root.ship.protector2.sphere.gun2._y; _root['bullet' + _root.depth].xvalue = -_root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].shottype = 'red1'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } ProtectorFiredTimer = getTimer(); } if (_root.autorotate == false) { if (Key.isDown(_root.upkey)) { if (Key.isDown(_root.rightkey)) { if (_root.ship.protector._currentframe <= 27 && _root.ship.protector._currentframe > 7) { _root.ship.protector.prevFrame(); } else { if (_root.ship.protector._currentframe > 27 || _root.ship.protector._currentframe < 7) { _root.ship.protector.nextFrame(); } } } else { if (Key.isDown(_root.leftkey)) { if (_root.ship.protector._currentframe >= 37 || _root.ship.protector._currentframe < 17) { _root.ship.protector.nextFrame(); } else { if (_root.ship.protector._currentframe < 37 && _root.ship.protector._currentframe > 17) { _root.ship.protector.prevFrame(); } } } else { if (_root.ship.protector._currentframe > 32 || _root.ship.protector._currentframe < 12) { _root.ship.protector.nextFrame(); } else { if (_root.ship.protector._currentframe <= 32 && _root.ship.protector._currentframe > 12) { _root.ship.protector.prevFrame(); } } } } } if (Key.isDown(_root.downkey)) { if (Key.isDown(_root.rightkey)) { if (_root.ship.protector._currentframe <= 17 || _root.ship.protector._currentframe > 37) { _root.ship.protector.prevFrame(); } else { if (_root.ship.protector._currentframe > 17 && _root.ship.protector._currentframe < 37) { _root.ship.protector.nextFrame(); } } } else { if (Key.isDown(_root.leftkey)) { if (_root.ship.protector._currentframe <= 7 || _root.ship.protector._currentframe > 27) { _root.ship.protector.prevFrame(); } else { if (_root.ship.protector._currentframe > 7 && _root.ship.protector._currentframe < 27) { _root.ship.protector.nextFrame(); } } } else { if (_root.ship.protector._currentframe <= 12 || _root.ship.protector._currentframe > 32) { _root.ship.protector.prevFrame(); } else { if (_root.ship.protector._currentframe < 32 && _root.ship.protector._currentframe > 12) { _root.ship.protector.nextFrame(); } } } } } if (Key.isDown(_root.rightkey)) { if (Key.isDown(_root.upkey)) { } else { if (Key.isDown(_root.downkey)) { } else { if (_root.ship.protector._currentframe <= 22 && _root.ship.protector._currentframe > 3) { _root.ship.protector.prevFrame(); } else { if (_root.ship.protector._currentframe > 22) { _root.ship.protector.nextFrame(); } } } } } if (Key.isDown(_root.leftkey)) { if (Key.isDown(_root.upkey)) { } else { if (Key.isDown(_root.downkey)) { } else { if (_root.ship.protector._currentframe > 3 && _root.ship.protector._currentframe < 22) { _root.ship.protector.nextFrame(); } else { if (_root.ship.protector._currentframe > 22 || _root.ship.protector._currentframe == 3) { _root.ship.protector.prevFrame(); } } } } } } } if (_root.protectorlevel >= 3) { if (_root.autorotate == false) { if (Key.isDown(_root.upkey)) { if (Key.isDown(_root.rightkey)) { if (_root.ship.protector2._currentframe <= 27 && _root.ship.protector2._currentframe > 7) { _root.ship.protector2.prevFrame(); } else { if (_root.ship.protector2._currentframe > 27 || _root.ship.protector2._currentframe < 7) { _root.ship.protector2.nextFrame(); } } } else { if (Key.isDown(_root.leftkey)) { if (_root.ship.protector2._currentframe >= 37 || _root.ship.protector2._currentframe < 17) { _root.ship.protector2.nextFrame(); } else { if (_root.ship.protector2._currentframe < 37 && _root.ship.protector2._currentframe > 17) { _root.ship.protector2.prevFrame(); } } } else { if (_root.ship.protector2._currentframe > 32 || _root.ship.protector2._currentframe < 12) { _root.ship.protector2.nextFrame(); } else { if (_root.ship.protector2._currentframe <= 32 && _root.ship.protector2._currentframe > 12) { _root.ship.protector2.prevFrame(); } } } } } if (Key.isDown(_root.downkey)) { if (Key.isDown(_root.rightkey)) { if (_root.ship.protector2._currentframe <= 17 || _root.ship.protector2._currentframe > 37) { _root.ship.protector2.prevFrame(); } else { if (_root.ship.protector2._currentframe > 17 && _root.ship.protector2._currentframe < 37) { _root.ship.protector2.nextFrame(); } } } else { if (Key.isDown(_root.leftkey)) { if (_root.ship.protector2._currentframe <= 7 || _root.ship.protector2._currentframe > 27) { _root.ship.protector2.prevFrame(); } else { if (_root.ship.protector2._currentframe > 7 && _root.ship.protector2._currentframe < 27) { _root.ship.protector2.nextFrame(); } } } else { if (_root.ship.protector2._currentframe <= 12 || _root.ship.protector2._currentframe > 32) { _root.ship.protector2.prevFrame(); } else { if (_root.ship.protector2._currentframe < 32 && _root.ship.protector2._currentframe > 12) { _root.ship.protector2.nextFrame(); } } } } } if (Key.isDown(_root.rightkey)) { if (Key.isDown(_root.upkey)) { } else { if (Key.isDown(_root.downkey)) { } else { if (_root.ship.protector2._currentframe <= 22 && _root.ship.protector2._currentframe > 3) { _root.ship.protector2.prevFrame(); } else { if (_root.ship.protector2._currentframe > 22) { _root.ship.protector2.nextFrame(); } } } } } if (Key.isDown(_root.leftkey)) { if (Key.isDown(_root.upkey)) { } else { if (Key.isDown(_root.downkey)) { } else { if (_root.ship.protector2._currentframe > 3 && _root.ship.protector2._currentframe < 22) { _root.ship.protector2.nextFrame(); } else { if (_root.ship.protector2._currentframe > 22 || _root.ship.protector2._currentframe == 3) { _root.ship.protector2.prevFrame(); } } } } } } } if (Key.isDown(_root.bombkey) && getTimer() > BombFiredTimer + 150) { _root.firebomb(); BombFiredTimer = getTimer(); } if (_root.havelaser == true) { if (Key.isDown(_root.laserkey)) { _root.firelaser(); } } if (_root.havelaser == true) { if (_root.status.mask.laser._xscale < 100) { _root.status.mask.laser._xscale += 0.7; } else { _root.status.mask.laser._xscale = 100; } } if (_root.mhlevel == 1 || _root.mhlevel == 2) { mhtimer = 36; } else { if (_root.mhlevel == 3) { mhtimer = 53; } else { if (_root.mhlevel == 4) { mhtimer = 60; } else { if (_root.mhlevel == 5) { mhtimer = 67; } } } } if (MegaHomingFiredTimer < 68) { ++MegaHomingFiredTimer; } if (MegaHomingFiredTimer2 < 6) { ++MegaHomingFiredTimer2; } if (Key.isDown(_root.missilekey) && MegaHomingFiredTimer >= mhtimer) { if (_root.mhlevel != 0) { _root.firemh = true; MegaHomingFiredTimer = 0; mhticks = 1; } } if (_root.firemh == true && MegaHomingFiredTimer2 >= 5 && mhticks <= _root.mhlevel) { if (mhticks == _root.mhlevel) { _root.firemh = false; } ++mhticks; _root.firehmfunction(); MegaHomingFiredTimer2 = 0; } if (Key.isDown(_root.targetkey) && getTimer() > TargetTimer + 150) { _root.targetdir = 'forward'; _root.targetenemyfunction(); TargetTimer = getTimer(); } else { if (Key.isDown(_root.targetkey2) && getTimer() > TargetTimer + 150) { _root.targetdir = 'backward'; _root.targetenemyfunction(); TargetTimer = getTimer(); } } } if (_root.targetenemy >= _root.enemyarray.length) { _root.targetenemy = 0; } if (_root.enemyarray.length < 1) { _root.target._x = 900; _root.target._y = 175; } else { if (_root.targeted == true) { if (_root.fbossrest == true) { if (_root.targetdir == 'forward') { if (_root.enemyarray[_root.targetenemy].enemytypevar == 'launcher1' || _root.enemyarray[_root.targetenemy].enemytypevar == 'launcher2' || _root.enemyarray[_root.targetenemy].enemytypevar == 'launcher3' || _root.enemyarray[_root.targetenemy].enemytypevar == 'launcher4' || _root.enemyarray[_root.targetenemy].enemytypevar == 'launcher5' || _root.enemyarray[_root.targetenemy].enemytypevar == 'fboss') { ++_root.targetenemy; } } else { if (_root.targetdir == 'backward') { if (_root.enemyarray[_root.targetenemy].enemytypevar == 'launcher1' || _root.enemyarray[_root.targetenemy].enemytypevar == 'launcher2' || _root.enemyarray[_root.targetenemy].enemytypevar == 'launcher3' || _root.enemyarray[_root.targetenemy].enemytypevar == 'launcher4' || _root.enemyarray[_root.targetenemy].enemytypevar == 'launcher5' || _root.enemyarray[_root.targetenemy].enemytypevar == 'fboss') { _root.targetenemy = _root.enemyarray.length - 1; } } } } _root.target._x = _root.enemyarray[_root.targetenemy]._x + _root.enemyarray[_root.targetenemy].enemytype._x; _root.target._y = _root.enemyarray[_root.targetenemy]._y + _root.enemyarray[_root.targetenemy].enemytype._y; _root.target.tl._x = -_root.enemyarray[_root.targetenemy]._width / 2; _root.target.tl._y = -_root.enemyarray[_root.targetenemy]._height / 2; _root.target.tr._x = _root.enemyarray[_root.targetenemy]._width / 2; _root.target.tr._y = -_root.enemyarray[_root.targetenemy]._height / 2; _root.target.bl._x = -_root.enemyarray[_root.targetenemy]._width / 2; _root.target.bl._y = _root.enemyarray[_root.targetenemy]._height / 2; _root.target.br._x = _root.enemyarray[_root.targetenemy]._width / 2; _root.target.br._y = _root.enemyarray[_root.targetenemy]._height / 2; } } if (_root.poweruparray.length > 0) { _root.powerupmove(); } _root.bulletmovement(); if (_root.changelevels == true) { ++_root.levelchangedelay; if (_root.levelchangedelay == 100) { _root.levelchangedelay = 0; ++_root.levelnumber; _root.transition._visible = true; _root.transition.gotoAndPlay('close'); _root.display.gotoAndStop(1); _root.startgame = true; _root.changelevels = false; _root[_root.currentloop].stop(); } } if (_root.sgreenfunction == true) { ++_root.sgreentimer; if (_root.sgreentimer == 3) { _root.greensound.stop(); _root.greensound.start(0, 0); _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = -100; _root['bullet' + _root.depth]._y = 150; _root['bullet' + _root.depth].xvalue = 2 * _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('green4'); _root['bullet' + _root.depth].shottype = 'sgreen'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; _root['bullet' + _root.depth]._yscale = 500; _root['bullet' + _root.depth]._xscale = 500; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } else { if (_root.sgreentimer == 7) { _root.greensound.stop(); _root.greensound.start(0, 0); _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = -100; _root['bullet' + _root.depth]._y = 400; _root['bullet' + _root.depth].xvalue = 2 * _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('green4'); _root['bullet' + _root.depth].shottype = 'sgreen'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; _root['bullet' + _root.depth]._yscale = 500; _root['bullet' + _root.depth]._xscale = 500; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } } else { if (_root.sgreentimer == 12) { _root.greensound.stop(); _root.greensound.start(0, 0); _root.shot.duplicateMovieClip('bullet' + _root.depth, _root.depth); _root['bullet' + _root.depth]._x = -100; _root['bullet' + _root.depth]._y = 250; _root['bullet' + _root.depth].xvalue = 2 * _root.bulletspeed; _root['bullet' + _root.depth].yvalue = 0; _root['bullet' + _root.depth].gotoAndStop('green4'); _root['bullet' + _root.depth].shottype = 'sgreen'; _root.bulletarray[_root.bulletarray.length] = _root['bullet' + _root.depth]; _root['bullet' + _root.depth]._yscale = 500; _root['bullet' + _root.depth]._xscale = 500; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.sgreenfunction = false; _root.sgreentimer = 0; } } } } if (_root.hitship == true) { if (_root.checkhealth == true) { if (_root.shipshield < 0) { if (_root.bosskilled == false) { _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); duplicateMovieClip(_root.iamdead, 'iamdead' + _root.depth, _root.depth); _root['iamdead' + _root.depth]._x = _root.ship._x + _root.ship.shipmc._x; _root['iamdead' + _root.depth]._y = _root.ship._y + _root.ship.shipmc._y; _root['iamdead' + _root.depth]._xscale = 200; _root['iamdead' + _root.depth]._yscale = _root['iamdead' + _root.depth]._xscale; if (_root.depth < 100000) { ++_root.depth; } else { _root.depth = 100; } _root.ship._visible = false; _root.ship._x = -1500; _root.ship._y = 250; _root.shipshield = 1; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.youaredead = true; _root.checkhealth = false; } else { _root.ship._y = 250; _root.shipshield = 1; } } } if (_root.shieldfadein == true) { if (_root.ship.shield._alpha < _root.status.mask.shield._xscale + 40) { _root.ship.shield._visible = true; _root.ship.shield._alpha += (_root.status.mask.shield._xscale + 40) / 2; } if (_root.ship.shield._alpha >= _root.status.mask.shield._xscale + 40) { _root.ship.shield._alpha = _root.status.mask.shield._xscale + 40; _root.shieldfadein = false; } } else { if (_root.shieldfadein == false) { if (_root.ship.shield._alpha > 0) { _root.ship.shield._alpha -= (_root.status.mask.shield._xscale + 40) / 6.67; } if (_root.ship.shield._alpha <= 0) { _root.ship.shield._alpha = 0; _root.ship.shield._visible = false; _root.hitship = false; } } } } if (_root.levelnumber == 1) { if (_root.bg.nebula1._x < -800 || _root.bg.nebula1._x > 600) { _root.bg.nebula1.gotoAndStop('blank'); } else { _root.bg.nebula1.gotoAndStop('graphic'); } if (_root.bg.nebula2._x < -800 || _root.bg.nebula2._x > 600) { _root.bg.nebula2.gotoAndStop('blank'); } else { _root.bg.nebula2.gotoAndStop('graphic'); } if (_root.bg.nebula3._x < -800 || _root.bg.nebula3._x > 600) { _root.bg.nebula3.gotoAndStop('blank'); } else { _root.bg.nebula3.gotoAndStop('graphic'); } if (_root.enemyticker > 1000 && _root.enemyticker < 3200) { _root.bg.nebula1._x -= 0.8; _root.bg.nebula2._x = _root.bg.nebula1._x + _root.bg.nebula1._width; _root.bg.nebula3._x = _root.bg.nebula2._x + _root.bg.nebula2._width; } } else { if (_root.levelnumber == 2) { if (_root.bg.planet1._x < -600 || _root.bg.planet1._x > 600) { _root.bg.planet1.gotoAndStop('blank'); } else { _root.bg.planet1.gotoAndStop('graphic'); } if (_root.bg.planet2._x < -550 || _root.bg.planet2._x > 600) { _root.bg.planet2.gotoAndStop('blank'); } else { _root.bg.planet2.gotoAndStop('graphic'); } if (_root.enemyticker > 1500 && _root.enemyticker < 2100) { _root.bg.planet1._x -= 3; } if (_root.enemyticker > 2000 && _root.enemyticker < 2550) { _root.bg.planet2._x -= 2.5; } } else { if (_root.levelnumber == 3) { if (_root.bg.galaxy._x < -800 || _root.bg.galaxy._x > 600) { _root.bg.galaxy.gotoAndStop('blank'); } else { _root.bg.galaxy.gotoAndStop('graphic'); } if (_root.enemyticker > 1000 && _root.enemyticker < 2400) { _root.bg.galaxy._x -= 1; } } else { if (_root.levelnumber == 4) { if (_root.bg.asteroids._x < -800 || _root.bg.asteroids._x > 800) { _root.bg.asteroids.gotoAndStop('blank'); } else { _root.bg.asteroids.gotoAndStop('graphic'); } if (_root.enemyticker > 1000 && _root.enemyticker < 2400) { _root.bg.asteroids._x -= 1.5; } } } } } } } } } movieClip 533 { frame 7 { gotoAndPlay(5); } } movieClip 534 { } movieClip 535 { } movieClip 536 transition { frame 1 { stop(); } frame 2 { _root.fade = 'out'; _root.airblast.start(); } frame 23 { if (_root.youaredead == true) { _root.paused = false; _quality = 'high'; _root.reset = false; _root.controls._visible = false; _root.gamestart = false; _root.gametimer = false; _root.shipshield = 50; _root.shipshieldtotal = 50; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.numberofbombs = 3; _root.targetenemy = 0; _root.mhlevel = 0; _root.status.bomb.gotoAndStop(_root.numberofbombs + 1); _root.status.mask.missile.gotoAndStop(_root.whichmissileframe); _root.protectorlevel = 0; _root.weapontype = 'red'; _root.weaponnumber = 1; _root.sgreenfunction = false; _root.sgreentimer = 0; _root.ship._visible = true; _root.youaredead = false; if (_root.mode == 'mission') { _root.maindisplay.gotoAndStop('continue'); } else { if (_root.mode == 'survival') { _root.maindisplay.gotoAndStop('title'); } } _root.fade = 'out'; _root.clean(); _root.ship.protector.gotoAndStop('blank'); _root.ship.protector.gotoAndStop('blank'); if (_root.mode == 'survival') { _root.abortmission = true; } } } frame 24 { if (_root.fade == 'out') { _root[_root.currentloop].stop(); } if (_root.startgame == true) { _root.maindisplay.gotoAndStop('blank'); _root.clean(); _root.depth = 2; _root.init(); _root.status._visible = true; if (_root.levelnumber == 1) { _root.ship.shiptype.gotoAndStop('nolaser'); _root.havelaser = false; _root.status.mask.laser._xscale = 0; _root.protectorlevel = 0; _root.weaponnumber = 1; _root.passtext1 = 'neeL'; _root.display.gotoAndPlay('mission'); } else { if (_root.levelnumber == 2) { _root.protectorlevel = 0; _root.havelaser = true; _root.ship.shiptype.gotoAndStop('yeslaser'); if (_root.weaponnumber > 2) { _root.weaponnumber = 1; } _root.passtext1 = 'eGdl'; _root.display.gotoAndPlay('mission'); } else { if (_root.levelnumber == 3) { if (_root.difficulty == 'easy' || _root.difficulty == 'normal') { _root.protectorlevel = 4; _root.ship.protector.gotoAndStop('protector'); } else { if (_root.difficulty == 'expert') { _root.protectorlevel = 4; _root.ship.protector.gotoAndStop('protector'); _root.weaponnumber = '4'; _root.assignx = 900; _root.assigny = 230; _root.enemy6function(); } } _root.havelaser = true; _root.ship.shiptype.gotoAndStop('yeslaser'); if (_root.weaponnumber > 3) { _root.weaponnumber = 1; } _root.passtext1 = 'top8'; _root.display.gotoAndPlay('mission'); } else { if (_root.levelnumber == 4) { _root.display.gotoAndPlay('fmission'); _root.havelaser = true; _root.ship.shiptype.gotoAndStop('yeslaser'); _root.passtext1 = 'lylS'; } } } } if (_root.mode == 'survival') { _root.shipshield = 1; _root.havelaser = false; _root.ship.shiptype.gotoAndStop('nolaser'); _root.status.mask.laser._xscale = 0; _root.status.score = int(_root.totalscore2); } else { if (_root.mode == 'mission') { if (_root.difficulty == 'easy') { _root.shipshield = 50; } else { if (_root.difficulty == 'expert') { if (_root.shipshield > 45) { _root.shipshield = 50; } else { _root.shipshield += 5; } } } _root.status.score = int(_root.totalscore); } } _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); if (_root.difficulty == 'easy') { _root.enemiesrequired = 1; } else { if (_root.difficulty == 'normal') { _root.enemiesrequired = 5; } else { if (_root.difficulty == 'expert') { _root.enemiesrequired = 10; } } } _quality = 'low'; _root.bluedepth = 10010; _root.ship._x = 100; _root.ship._y = 200; _root.whichmissileframe = 'level' + _root.mhlevel; _root.status.mask.missile.gotoAndStop(_root.whichmissileframe); _root.status.bomb.gotoAndStop(_root.numberofbombs + 1); _root.enemyticker = -25; _root.firetimer = 0; _root.sgreenfunction = false; _root.sgreentimer = 0; _root.bosskilled = false; _root.gamestart = true; _root.gametimer = true; _root.timing = true; _root.time = 0; _root.boss = false; _root.bosscoming = 0; _root.bossready = false; _root.targetenemy = 0; _root.maindisplay.gotoAndStop('blank'); _root.pausedisplay._visible = false; _root.bg.gotoAndStop('level' + _root.levelnumber); _root.currentscore = _root.totalscore; if (_root.globalmusiccontrol == 'play') { _root.musicplaying = true; _root.fade = 'in'; _root.loopvolume = 100; if (_root.mode == 'mission') { _root.currentloop = 'loop' + _root.levelnumber; _root[_root.currentloop].start(0, 20); _root[_root.currentloop].setVolume(100); _root.status.mask.box._x = 212.3; } else { if (_root.mode == 'survival') { _root.currentloop = 'survivalloop'; _root[_root.currentloop].start(0, 9999999); _root[_root.currentloop].setVolume(300); } } _root.status.mask.box._x = 212.3; } else { _root.status.mask.box._x = 245; } _root.status._visible = true; _root.transform = true; _root.startgame = false; if (_root.numberofbombs == 0) { _root.passtext2 = '16Eg'; } else { if (_root.numberofbombs == 1) { _root.passtext2 = 'Gecl'; } else { if (_root.numberofbombs == 2) { _root.passtext2 = 'bvWi'; } else { if (_root.numberofbombs == 3) { _root.passtext2 = 'Sidk'; } else { if (_root.numberofbombs == 4) { _root.passtext2 = '57Fd'; } else { if (_root.numberofbombs == 5) { _root.passtext2 = 'Wwpa'; } else { if (_root.numberofbombs == 6) { _root.passtext2 = '3dEp'; } else { if (_root.numberofbombs == 7) { _root.passtext2 = 'rtms'; } else { if (_root.numberofbombs == 8) { _root.passtext2 = 'RFdY'; } else { if (_root.numberofbombs == 9) { _root.passtext2 = 'DFSc'; } else { if (_root.numberofbombs == 10) { _root.passtext2 = 'qwt7'; } else { if (_root.numberofbombs == 11) { _root.passtext2 = 'mzx6'; } else { if (_root.numberofbombs == 12) { _root.passtext2 = 'ukdf'; } else { if (_root.numberofbombs == 13) { _root.passtext2 = 'Elmb'; } else { if (_root.numberofbombs == 14) { _root.passtext2 = '1l1l'; } else { if (_root.numberofbombs == 15) { _root.passtext2 = 'ghtc'; } } } } } } } } } } } } } } } } if (_root.mhlevel == 0) { _root.passtext3 = 'addd'; } else { if (_root.mhlevel == 1) { _root.passtext3 = 'ALfj'; } else { if (_root.mhlevel == 2) { _root.passtext3 = 'ruGk'; } else { if (_root.mhlevel == 3) { _root.passtext3 = 'ryNh'; } else { if (_root.mhlevel == 4) { _root.passtext3 = '6kjs'; } else { if (_root.mhlevel == 5) { _root.passtext3 = '142H'; } } } } } } if (_root.weaponnumber == 1) { _root.passtext4 = 'h8vb'; } else { if (_root.weaponnumber == 2) { _root.passtext4 = 'eaaP'; } else { if (_root.weaponnumber == 3) { _root.passtext4 = 'rty4'; } else { if (_root.weaponnumber == 4) { _root.passtext4 = '7gf7'; } } } } if (_root.weapontype == 'red') { _root.passtext5 = 'alsk'; } else { if (_root.weapontype == 'blue') { _root.passtext5 = 'KAKA'; } else { if (_root.weapontype == 'green') { _root.passtext5 = '99Kl'; } } } } if (_root.abortmission == true) { _root[_root.currentloop].stop(); _root.pausedisplay.gotoAndStop('pause'); _root.pausedisplay._visible = false; _root.paused = false; _quality = 'high'; _root.levelnumber = 1; _root.reset = true; _root.controls._visible = false; _root.gamestart = false; _root.abortmission = false; _root.maindisplay.gotoAndStop('title'); _root.clean(); _root.gamestart = false; _root.youaredead = false; _root.time = 0; _root.bombsound = false; _root.havelaser = false; _root.mhshotting = false; _root.sgreenfunction = false; _root.sgreentimer = 0; _root.autorotate = false; _root.protectorlevel = 0; _root.hitshipcounter = 0; _root.shipshield = 50; _root.shipshieldtotal = 50; _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal); _root.gametimer = false; _root.numberofbombs = 3; _root.targetenemy = 0; _root.mhlevel = 0; _root.whichmissileframe = 'level' + _root.mhlevel; _root.status.mask.missile.gotoAndStop(_root.whichmissileframe); _root.protectorlevel = 0; _root.weapontype = 'red'; _root.weaponnumber = 1; _root.boss3x = 600; _root.boss3y = 100; _root.boss3s = 5; _root.boss3turndelay = 5; _root.boss3health = 299 * _root.health; _root.boss3totalhealth = _root.boss3health; _root.maindisplay.givepass.gotoAndStop('blank'); } } frame 40 { _root.transition._visible = false; } } instance transition of movieClip 536 transition { onClipEvent (load) { _root.transition.swapDepths(100062); } } button 539 { on (release) { _root.pausedisplay._visible = false; _root.musicplaying = true; _root.status.mask.box._x = 212.3; _root.fade = 'in'; _root.paused = false; _root.gametimer = true; _quality = 'low'; } } button 540 { on (release) { if (_root.mode == 'mission') { _root.pausedisplay.gotoAndPlay('pass'); } else { _root.abortmission = true; _root.display.gotoAndStop(1); _root.pausedisplay.am.enabled = false; _root.pausedisplay.backbtn.enabled = false; _root.transition._visible = true; _root.transition.gotoAndPlay('close'); } } } button 542 { on (release) { _root.pausedisplay.gotoAndStop('pause'); } } button 543 { on (release) { _root.abortmission = true; _root.display.gotoAndStop(1); _root.pausedisplay.am.enabled = false; _root.pausedisplay.backbtn.enabled = false; _root.transition._visible = true; _root.transition.gotoAndPlay('close'); } } movieClip 544 { frame 1 { stop(); } frame 2 { stop(); _root.pausedisplay.passwordtext1 = _root.passtext1; _root.pausedisplay.passwordtext2 = _root.passtext2; _root.pausedisplay.passwordtext3 = _root.passtext3; _root.pausedisplay.passwordtext4 = _root.passtext4; _root.pausedisplay.passwordtext5 = _root.passtext5; _root.pausedisplay.am.enabled = true; _root.pausedisplay.backbtn.enabled = true; } } instance pausedisplay of movieClip 544 { onClipEvent (load) { _root.pausedisplay.swapDepths(100055); _root.pausedisplay._visible = false; } } movieClip 547 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 550 { } movieClip 551 { frame 10 { stop(); } } movieClip 553 { frame 1 { stopAllSounds(); } frame 2 { stop(); } } movieClip 555 { frame 1 { stop(); } frame 50 { _root.display.play(); _root.display.lasertext.gotoAndStop('blank'); _root.displaytextplaying = false; } frame 99 { _root.display.play(); _root.display.laseretxt.gotoAndStop('blank'); _root.displaytextplaying = false; } } movieClip 564 { frame 150 { stop(); } } movieClip 565 { frame 17 { stop(); } } movieClip 566 { frame 149 { ttalk.gotoAndPlay('close'); } frame 158 { stop(); } } movieClip 568 { frame 150 { stop(); } } movieClip 569 { frame 17 { stop(); } } movieClip 570 { } movieClip 578 { } movieClip 579 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 580 { } movieClip 581 { frame 149 { ttalk.gotoAndPlay('close'); } frame 158 { stop(); } } movieClip 582 { frame 371 { _root.display.gotoAndPlay('missioncomplete'); } } movieClip 632 { } movieClip 633 { frame 17 { stop(); } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } frame 29 { stop(); } } movieClip 637 { frame 579 { ttalk.gotoAndPlay('close'); } frame 725 { stop(); } } movieClip 638 { frame 17 { stop(); } } movieClip 639 { frame 723 { ttalk.gotoAndPlay('close'); } frame 732 { stop(); } } movieClip 640 { frame 787 { _root.display.gotoAndPlay('missioncomplete'); } } movieClip 666 { } movieClip 667 { } movieClip 670 { } movieClip 671 { frame 153 { stop(); } } movieClip 672 { frame 17 { stop(); } } movieClip 673 { frame 167 { ttalk.gotoAndPlay('close'); } frame 176 { stop(); } } movieClip 675 { frame 150 { stop(); } } movieClip 676 { frame 17 { stop(); } } movieClip 677 { frame 149 { ttalk.gotoAndPlay('close'); } frame 158 { stop(); } } movieClip 678 { frame 375 { _root.display.gotoAndPlay('missioncomplete'); } } movieClip 684 { frame 1 { stop(); } frame 2 { _root.display.mission.gotoAndStop(_root.levelnumber); } frame 31 { _root.display.gotoAndStop('blank'); } frame 32 { _root.fade = 'out'; } frame 74 { _root.display.gotoAndPlay('sumscore'); } frame 115 { _root.display.gotoAndStop('blank'); } frame 117 { if (_root.levelnumber == 1) { stop(); _root.havelaser = true; _root.ship.powerup.gotoAndPlay('laser'); _root.display.lasertext.gotoAndPlay('laser'); _root.havelaser = true; _root.displaytextplaying = true; } else { if (_root.levelnumber == 2) { stop(); if (_root.difficulty == 'easy' || _root.difficulty == 'normal') { _root.protectorlevel = 4; _root.ship.protector.gotoAndStop('protector'); } else { if (_root.difficulty == 'expert') { _root.protectorlevel = 4; _root.ship.protector.gotoAndStop('protector'); } } _root.havelaser = true; _root.ship.shiptype.gotoAndStop('yeslaser'); _root.display.lasertext.gotoAndPlay('protector'); _root.ship.powerup.gotoAndPlay('laser'); _root.displaytextplaying = true; } } } frame 140 { stop(); _quality = 'high'; if (_root.difficulty == 'easy') { _root.display.bombs = _root.numberofbombs * 5; _root.display.time = int(1000 / _root.time) * 1000; _root.display.health = _root.shipshield * 100; _root.totalscore += int(_root.numberofbombs * 3 + int(1000 / _root.time) * 1000 + _root.shipshield * 100); } if (_root.difficulty == 'expert') { _root.display.bombs = _root.numberofbombs * 5; _root.display.time = int(1000 / _root.time) * 5; _root.display.health = '+' + _root.shipshield * 5 + ' Shield Bonus'; _root.totalscore += int(_root.numberofbombs * 5 + int(1000 / _root.time) * 5 + _root.shipshield * 5); } _root.display.totalscore = int(_root.totalscore); _root.status.score = int(_root.totalscore); _root.changelevels = true; } frame 141 { stop(); _quality = 'high'; } frame 142 { stop(); _quality = 'high'; } frame 143 { stop(); _quality = 'high'; } frame 144 { _root.display.gotoAndStop('blank'); } frame 169 { stop(); _quality = 'high'; if (_root.difficulty == 'easy') { _root.display.bombs = _root.numberofbombs * 5; _root.display.time = int(1000 / _root.time) * 1000; _root.display.health = _root.shipshield * 100; _root.totalscore += int(_root.numberofbombs * 3 + int(1000 / _root.time) * 1000 + _root.shipshield * 100); } if (_root.difficulty == 'expert') { _root.display.bombs = _root.numberofbombs * 5; _root.display.time = int(1000 / _root.time) * 5; _root.display.health = '+' + _root.shipshield * 5 + ' Shield Bonus'; _root.totalscore += int(_root.numberofbombs * 5 + int(1000 / _root.time) * 5 + _root.shipshield * 5); } _root.display.totalscore = int(_root.totalscore); _root.status.score = int(_root.totalscore); _root.changelevels = false; } } instance display of movieClip 684 { onClipEvent (load) { _root.display.swapDepths(100053); } } button 687 { on (release) { if (_quality == 'LOW') { _quality = 'HIGH'; } else { _quality = 'LOW'; } } } movieClip 713 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } } button 715 { on (release) { if (_root.paused == false) { if (_root.musicplaying == true) { _root.musicplaying = false; _root.status.mask.box._x = 245; _root.fade = 'out'; _root.globalmusiccontrol = 'stop'; } } } } button 716 { on (release) { if (_root.paused == false) { if (_root.musicplaying == false) { _root.musicplaying = true; _root.status.mask.box._x = 212.3; _root.fade = 'in'; _root.globalmusiccontrol = 'play'; } } } } movieClip 724 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 727 { } movieClip 728 { } movieClip 730 { frame 1 { stop(); _root.status.score = _root.totalscore; } } instance status of movieClip 730 { onClipEvent (load) { this.swapDepths(100050); } } movieClip 734 { } movieClip 735 { } movieClip 736 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 739 { } movieClip 740 { } movieClip 741 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 751 { } movieClip 752 { } movieClip 753 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 778 { frame 1 { this.weaponpowercolor = 'red'; this.needchange = true; stop(); } frame 16 { this.weaponpowercolor = 'blue'; this.needchange = true; stop(); } frame 31 { this.weaponpowercolor = 'green'; this.needchange = true; stop(); } frame 45 { gotoAndStop(1); } frame 46 { stop(); } } movieClip 782 { } movieClip 783 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } instance megahoming of movieClip 783 { onClipEvent (load) { numCopies = 10; this.swapDepths(1100); if (_name == 'megahoming') { i = 1; while (i < numCopies + 1) { duplicateMovieClip('_root.megahoming', 'dmc' + i, i + 1000); _root['dmc' + i].nm = i; _root['dmc' + i].af = 100 / numCopies; _root['dmc' + i].fr = 1 - i * 2; _root['dmc' + i].onEnterFrame = function () { with (this) { ++fr; if (fr > _totalframes) { fr = 1; } gotoAndStop(fr); _alpha = 100 - af * nm; } }; ++i; } } } } movieClip 794 { } movieClip 795 { } movieClip 796 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 803 { } movieClip 815 { } movieClip 841 { } movieClip 871 { } movieClip 901 { } movieClip 923 { } movieClip 925 { } movieClip 928 { } movieClip 931 { frame 42 { _parent.removeMovieClip(); } } movieClip 936 { } movieClip 941 { } movieClip 946 { } movieClip 951 { } movieClip 959 { } movieClip 978 { frame 27 { stop(); _parent._parent.removeMovieClip(); } } movieClip 979 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 980 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); this.shottype = 'laser'; } frame 15 { stop(); } frame 16 { stop(); } } movieClip 989 { frame 1 { if (this._name == 'mhexplosionmc') { stop(); } } frame 6 { this.removeMovieClip(); } frame 7 { stop(); } } movieClip 991 { frame 1 { stop(); } frame 20 { _parent.powerup.gotoAndStop('blank'); } } movieClip 993 { } movieClip 994 { frame 1 { stop(); } frame 2 { gotoAndStop(41); } frame 42 { if (_root.autorotate == false) { gotoAndStop(3); } else { gotoAndPlay(3); } } } movieClip 995 { frame 1 { stop(); } frame 2 { gotoAndStop(41); } frame 42 { if (_root.autorotate == false) { gotoAndStop(3); } else { gotoAndPlay(3); } } } movieClip 1008 { } movieClip 1009 { frame 1 { stop(); } frame 9 { stop(); } } movieClip 1019 { } movieClip 1020 { frame 1 { stop(); } frame 9 { stop(); } } movieClip 1021 { } movieClip 1032 { } movieClip 1034 { } movieClip 1035 { } movieClip 1040 { } movieClip 1075 { } movieClip 1077 { } movieClip 1095 { } movieClip 1100 { } movieClip 1102 { } movieClip 1103 { } movieClip 1105 { } movieClip 1106 { } movieClip 1107 { } movieClip 1109 { } movieClip 1110 { } movieClip 1111 { } movieClip 1112 { } movieClip 1113 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } } movieClip 1114 { } movieClip 1118 { frame 3 { gotoAndPlay(1); } } movieClip 1119 { frame 1 { stop(); _root.ship.shipmc._visible = false; } } movieClip 1120 { frame 1 { if (this._name == 'shipexplosion') { this.stop(); } } frame 39 { this.removeMovieClip(); } frame 40 { stop(); } } movieClip 1121 { frame 1 { if (this._name == 'shipexplosion') { this.stop(); } } frame 26 { this.removeMovieClip(); } frame 27 { stop(); } } movieClip 1126 { } movieClip 1131 { } movieClip 1134 { } movieClip 1135 { } movieClip 1136 { } movieClip 1137 { } movieClip 1138 { } movieClip 1143 { } movieClip 1144 { } movieClip 1147 { } movieClip 1175 { } movieClip 1176 { } movieClip 1183 { } movieClip 1191 { } movieClip 1192 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } } movieClip 1209 { } movieClip 1293 { } movieClip 1307 { } movieClip 1382 { } movieClip 1383 { } movieClip 1394 { frame 36 { gotoAndPlay(10); } } movieClip 1423 { } movieClip 1435 { } movieClip 1450 { } movieClip 1509 { } movieClip 1641 { } movieClip 1650 { } movieClip 1654 { } movieClip 1656 { } movieClip 1657 { frame 1 { stop(); } frame 10 { _root.enemybullet.duplicateMovieClip('enemybullet' + _root.depth, _root.depth); _root['enemybullet' + _root.depth].offx = _parent.gun._x * Math.cos(_parent._parent._rotation * 3.141593 / 180); _root['enemybullet' + _root.depth].offy = _parent.gun._x * Math.sin(-_parent._parent._rotation * 3.141593 / 180); _root['enemybullet' + _root.depth]._x = _parent._parent._x + _parent._x + _root['enemybullet' + _root.depth].offx; _root['enemybullet' + _root.depth]._y = _parent._parent._y + _parent._y - _root['enemybullet' + _root.depth].offy; _root['enemybullet' + _root.depth].gotoAndStop('boss3'); _root['enemybullet' + _root.depth].shottype = 'enemy'; _root['enemybullet' + _root.depth].enemyshottype = 'boss3'; _root['enemybullet' + _root.depth].diffx = _root['enemybullet' + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x); _root['enemybullet' + _root.depth].diffy = _root['enemybullet' + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y); _root['enemybullet' + _root.depth].angle = Math.atan2(_root['enemybullet' + _root.depth].diffy, _root['enemybullet' + _root.depth].diffx); _root['enemybullet' + _root.depth].xvalue = -8 * Math.cos(_root['enemybullet' + _root.depth].angle); _root['enemybullet' + _root.depth].yvalue = -8 * Math.sin(_root['enemybullet' + _root.depth].angle); _root.bulletarray[_root.bulletarray.length] = _root['enemybullet' + _root.depth]; _root['enemybullet' + _root.depth].follow = 0; if (_root.depth < 10000) { ++_root.depth; } else { _root.depth = 33; } } } movieClip 1658 { frame 1 { _parent._parent._x += _root.bossdeadspeed; stop(); } frame 2 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 3 { _parent._parent._x += _root.bossdeadspeed; } frame 4 { _parent._parent._x += _root.bossdeadspeed; } frame 5 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 6 { _parent._parent._x += _root.bossdeadspeed; } frame 7 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 8 { _parent._parent._x += _root.bossdeadspeed; } frame 9 { _parent._parent._x += _root.bossdeadspeed; } frame 10 { _parent._parent._x += _root.bossdeadspeed; } frame 11 { _parent._parent._x += _root.bossdeadspeed; } frame 12 { _parent._parent._x += _root.bossdeadspeed; } frame 13 { _parent._parent._x += _root.bossdeadspeed; } frame 14 { _parent._parent._x += _root.bossdeadspeed; } frame 15 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 16 { _parent._parent._x += _root.bossdeadspeed; } frame 17 { _parent._parent._x += _root.bossdeadspeed; } frame 18 { _parent._parent._x += _root.bossdeadspeed; } frame 19 { _parent._parent._x += _root.bossdeadspeed; } frame 20 { _parent._parent._x += _root.bossdeadspeed; } frame 21 { _parent._parent._x += _root.bossdeadspeed; } frame 22 { _parent._parent._x += _root.bossdeadspeed; } frame 23 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 24 { _parent._parent._x += _root.bossdeadspeed; } frame 25 { _parent._parent._x += _root.bossdeadspeed; } frame 26 { _parent._parent._x += _root.bossdeadspeed; } frame 27 { _parent._parent._x += _root.bossdeadspeed; } frame 28 { _parent._parent._x += _root.bossdeadspeed; } frame 29 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 30 { _parent._parent._x += _root.bossdeadspeed; } frame 31 { _parent._parent._x += _root.bossdeadspeed; } frame 32 { _parent._parent._x += _root.bossdeadspeed; } frame 33 { _parent._parent._x += _root.bossdeadspeed; } frame 34 { _parent._parent._x += _root.bossdeadspeed; } frame 35 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 36 { _parent._parent._x += _root.bossdeadspeed; } frame 37 { _parent._parent._x += _root.bossdeadspeed; } frame 38 { _parent._parent._x += _root.bossdeadspeed; } frame 39 { _parent._parent._x += _root.bossdeadspeed; } frame 40 { _parent._parent._x += _root.bossdeadspeed; } frame 41 { _parent._parent._x += _root.bossdeadspeed; } frame 42 { _parent._parent._x += _root.bossdeadspeed; } frame 43 { _parent._parent._x += _root.bossdeadspeed; } frame 44 { _parent._parent._x += _root.bossdeadspeed; } frame 45 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 46 { _parent._parent._x += _root.bossdeadspeed; } frame 47 { _parent._parent._x += _root.bossdeadspeed; } frame 48 { _parent._parent._x += _root.bossdeadspeed; } frame 49 { _parent._parent._x += _root.bossdeadspeed; } frame 50 { _parent._parent._x += _root.bossdeadspeed; } frame 51 { _parent._parent._x += _root.bossdeadspeed; } frame 52 { _parent._parent._x += _root.bossdeadspeed; } frame 53 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 54 { _parent._parent._x += _root.bossdeadspeed; } frame 55 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 56 { _parent._parent._x += _root.bossdeadspeed; } frame 57 { _parent._parent._x += _root.bossdeadspeed; } frame 58 { _parent._parent._x += _root.bossdeadspeed; } frame 59 { _parent._parent._x += _root.bossdeadspeed; } frame 60 { _parent._parent._x += _root.bossdeadspeed; } frame 61 { _parent._parent._x += _root.bossdeadspeed; } frame 62 { _parent._parent._x += _root.bossdeadspeed; } frame 63 { _parent._parent._x += _root.bossdeadspeed; } frame 64 { _parent._parent._x += _root.bossdeadspeed; } frame 65 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 66 { _parent._parent._x += _root.bossdeadspeed; } frame 67 { _parent._parent._x += _root.bossdeadspeed; } frame 68 { _parent._parent._x += _root.bossdeadspeed; } frame 69 { _parent._parent._x += _root.bossdeadspeed; } frame 70 { _parent._parent._x += _root.bossdeadspeed; } frame 71 { _parent._parent._x += _root.bossdeadspeed; } frame 72 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 73 { _parent._parent._x += _root.bossdeadspeed; } frame 74 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 75 { _parent._parent._x += _root.bossdeadspeed; } frame 76 { _parent._parent._x += _root.bossdeadspeed; } frame 77 { _parent._parent._x += _root.bossdeadspeed; } frame 78 { _parent._parent._x += _root.bossdeadspeed; } frame 79 { _parent._parent._x += _root.bossdeadspeed; } frame 80 { _parent._parent._x += _root.bossdeadspeed; } frame 81 { _parent._parent._x += _root.bossdeadspeed; } frame 82 { _parent._parent._x += _root.bossdeadspeed; } frame 83 { _parent._parent._x += _root.bossdeadspeed; } frame 84 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 85 { _parent._parent._x += _root.bossdeadspeed; } frame 86 { _parent._parent._x += _root.bossdeadspeed; } frame 87 { _parent._parent._x += _root.bossdeadspeed; } frame 88 { _parent._parent._x += _root.bossdeadspeed; } frame 89 { _parent._parent._x += _root.bossdeadspeed; } frame 90 { _parent._parent._x += _root.bossdeadspeed; } frame 91 { _parent._parent._x += _root.bossdeadspeed; } frame 92 { _parent._parent._x += _root.bossdeadspeed; } frame 93 { _parent._parent._x += _root.bossdeadspeed; } frame 94 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 95 { _parent._parent._x += _root.bossdeadspeed; } frame 96 { _parent._parent._x += _root.bossdeadspeed; } frame 97 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 98 { _parent._parent._x += _root.bossdeadspeed; } frame 99 { _parent._parent._x += _root.bossdeadspeed; } frame 100 { _parent._parent._x += _root.bossdeadspeed; } frame 101 { _parent._parent._x += _root.bossdeadspeed; } frame 102 { _parent._parent._x += _root.bossdeadspeed; } frame 103 { _parent._parent._x += _root.bossdeadspeed; } frame 104 { _parent._parent._x += _root.bossdeadspeed; } frame 105 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 106 { _parent._parent._x += _root.bossdeadspeed; } frame 107 { _parent._parent._x += _root.bossdeadspeed; } frame 108 { _parent._parent._x += _root.bossdeadspeed; } frame 109 { _parent._parent._x += _root.bossdeadspeed; } frame 110 { _parent._parent._x += _root.bossdeadspeed; } frame 111 { _parent._parent._x += _root.bossdeadspeed; } frame 112 { _parent._parent._x += _root.bossdeadspeed; } frame 113 { _parent._parent._x += _root.bossdeadspeed; } frame 114 { _parent._parent._x += _root.bossdeadspeed; } frame 115 { _parent._parent._x += _root.bossdeadspeed; } frame 116 { _parent._parent._x += _root.bossdeadspeed; } frame 117 { _parent._parent._x += _root.bossdeadspeed; } frame 118 { _parent._parent._x += _root.bossdeadspeed; } frame 119 { _parent._parent._x += _root.bossdeadspeed; } frame 120 { _parent._parent._x += _root.bossdeadspeed; _root.enemyexplodesound.stop(); _root.enemyexplodesound.start(0, 0); } frame 121 { _parent._parent._x += _root.bossdeadspeed; } frame 122 { _parent._parent._x += _root.bossdeadspeed; } frame 123 { _parent._parent._x += _root.bossdeadspeed; } frame 124 { _parent._parent._x += _root.bossdeadspeed; } frame 125 { _parent._parent._x += _root.bossdeadspeed; _root.gamecomplete = true; _root.credits.gotoAndPlay('start'); _root.credits.swapDepths(1000031); _root.display.swapDepths(1000032); _parent._parent.removeMovieClip(); } } movieClip 1676 { } movieClip 1677 { frame 345 { gotoAndPlay(182); } } movieClip 1678 { frame 1 { stop(); } frame 5 { gotoAndPlay(2); } } movieClip 1683 { } movieClip 1811 { frame 7 { stop(); } } movieClip 1814 { } movieClip 1816 { frame 40 { stop(); } } movieClip 1817 { } movieClip 1825 { } movieClip 1826 { frame 40 { stop(); } } movieClip 1829 { frame 40 { stop(); } } movieClip 1832 { frame 40 { stop(); } } movieClip 1835 { frame 40 { stop(); } } movieClip 1836 { frame 345 { gotoAndPlay(182); } } movieClip 1839 { } movieClip 1840 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } } movieClip 1841 { frame 1 { stop(); this.healthbar._visible = false; this.border._visible = false; } frame 2 { this.healthbar._visible = false; this.border._visible = false; } frame 13 { this.gotoAndStop('enemy'); } frame 14 { stop(); } } frame 4 { if (Number(_framesloaded) < 48) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(49); } } frame 50 { } movieClip 1842 { } frame 53 { BLOCK = 1; SKIN_SEL/BLOCK:check = 0; MENU = '.tabIndex=1'; stop(); } movieClip 1845 { } movieClip 1848 { frame 1 { stop(); } } movieClip 1851 StarField { } movieClip 1852 { frame 1 { function Star() { this.x = 0; this.y = 0; this.z = 0; this.mc = null; this.reset(); this.reset = function () { this.x = (Math.random() * APP_WIDTH - APP_WIDTH * 0.5) * STAR_DIST_MAX; this.y = (Math.random() * APP_HEIGHT - APP_HEIGHT * 0.5) * STAR_DIST_MAX; this.z = STAR_DIST_MAX; }; this.paint = function () { if (this.mc != null) { this.mc._x = this.x / this.z; this.mc._y = this.y / this.z; this.mc._xscale = 100 / this.z; this.mc._yscale = 100 / this.z; } }; } function update(dt) { var v3 = dt * 0.001; var v4 = g_stars.length; var v1; var v2 = 0; while (v2 < v4) { v1 = g_stars[v2]; v1.z -= v3 * g_camVel; if (v1.z < 0.1) { v1.reset(); } ++v2; } return 0; } function paint() { var v3 = g_stars.length; var v1; var v2 = 0; while (v2 < v3) { v1 = g_stars[v2]; v1.paint(); if (v1.mc._x < -370 || v1.mc._x > 370 || v1.mc._y < -150 || v1.mc._y > 150) { v1.reset(); v1.paint(); } ++v2; } return 0; } function doFrame() { var v2 = getTimer(); var v1 = v2 - g_prevT; if (v1 > 0) { update(v1); paint(); } g_prevT = v2; return 0; } function initialize(mcDst) { var v1; var v2; v1 = 0; while (v1 < g_stars.length()) { if (v2.mc != null) { v2.mc.removeMovieClip(); } --v1; } g_stars = new Array(); v1 = 0; while (v1 < NUM_STARS) { v2 = new Star(); var v3 = 'star' + String(v1); mcDst.attachMovie('Star', v3, 100 + v1); v2.mc = mcDst[v3]; v2.paint(); g_stars.push(v2); ++v1; } g_prevT = getTimer(); return 0; } var STAR_DIST_MAX = 10; var STAR_DIST_MIN = 0.1; var NUM_STARS = 100; var CAM_VEL_DEFAULT = 4; var APP_WIDTH = 600; var APP_HEIGHT = 300; var g_stars = new Array(); var g_prevT = 0; var g_camVel = CAM_VEL_DEFAULT; } frame 5 { initialize(theStarField); } frame 10 { doFrame(); } frame 11 { gotoAndPlay(10); } } movieClip 1869 { frame 7 { gotoAndPlay(5); } } button 1870 { on (release) { getURL('http://www.maxgames.com', '_blank'); } } movieClip 1873 { } movieClip 1875 { } movieClip 1878 { frame 60 { stop(); } } movieClip 1891 { frame 14 { stop(); } } movieClip 1893 { frame 193 { stop(); } } button 1895 { on (release) { getURL('http://www.maxgames.com', '_blank'); } } button 1899 { on (release) { getURL('http://www.maxgames.com', '_blank'); } } movieClip 1900 { frame 335 { stop(); } } movieClip 1902 { frame 1 { stop(); } frame 2 { check = 1; tellTarget ('/ELECTRONS') { gotoAndStop(1); } } frame 14 { bytestotal = MOD:getBytesTotal(); bytesloaded = MOD:getBytesLoaded(); a = int((bytesloaded / bytestotal) * 100); aa = '00' add a; len = length(aa); P:N1 = substring(aa, len - 0, 1); P:N2 = substring(aa, len - 1, 1); P:N3 = substring(aa, len - 2, 1); } frame 15 { if (Number(check) == 1) { if (Number(a) < 100) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('MOD') { ID = 1; gotoAndPlay(5); } ../M_ROT:TXT1 = MOD:TXT1; ../M_ROT:TXT2 = MOD:TXT2; ../M_ROT:TXT3 = MOD:TXT3; ../M_ROT:TXT4 = MOD:TXT4; tellTarget ('../M_ROT') { ID = /:MOD_ID; gotoAndPlay(3); } tellTarget ('/AUDIO') { gotoAndPlay(50); } } } } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } } button 1903 { on (release) { _root.cut1.gotoAndPlay(2); ../SCROLLER:check = 0; if (Number(_root.MENU.M_ROT:ID) == 0) { gotoAndPlay(Number(_currentframe) + 1); } else { _root.MENU.M_BUT:check = 0; _root.MENU.M_ROT:ID = 0; _root.MENU.M_BG_L:check = 0; _root.MENU.M_BG_Lstory:check = 0; _root.MENU.M_BG_Lmax:check = 0; _root.MENU.M_BG_Lcred:check = 0; _root.MENU.M_BG_Lsur:check = 0; _root.MENU.M_BG_Larc:check = 0; _root.MENU.M_BG_Lopt:check = 0; 1:check = 0; 2:check = 0; 3:check = 0; 4:check = 0; 5:check = 0; 6:check = 0; 7:check = 0; tellTarget ('/ELECTRONS') { gotoAndPlay(2); } } } } movieClip 1906 { } movieClip 1943 { } movieClip 1944 { } movieClip 1945 { frame 1 { stopAllSounds(); } frame 1 { play(); } frame 1553 { stop(); } } movieClip 1946 { frame 1 { stop(); } frame 2 { check = 1; tellTarget ('/ELECTRONS') { gotoAndStop(1); } } frame 14 { bytestotal = MOD:getBytesTotal(); bytesloaded = MOD:getBytesLoaded(); a = int((bytesloaded / bytestotal) * 100); aa = '00' add a; len = length(aa); P:N1 = substring(aa, len - 0, 1); P:N2 = substring(aa, len - 1, 1); P:N3 = substring(aa, len - 2, 1); } frame 15 { if (Number(check) == 1) { if (Number(a) < 100) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('MOD') { ID = 1; gotoAndPlay(5); } ../M_ROT:TXT1 = MOD:TXT1; ../M_ROT:TXT2 = MOD:TXT2; ../M_ROT:TXT3 = MOD:TXT3; ../M_ROT:TXT4 = MOD:TXT4; tellTarget ('../M_ROT') { ID = /:MOD_ID; gotoAndPlay(3); } tellTarget ('/AUDIO') { gotoAndPlay(50); } } } } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } } movieClip 1948 { } movieClip 1973 { } movieClip 1974 { } movieClip 1977 { } movieClip 1992 { frame 27 { stop(); _parent._parent.removeMovieClip(); } } movieClip 1993 { } movieClip 1995 { frame 1 { stop(); } frame 395 { stop(); } } movieClip 1996 { frame 1 { this.weaponpowercolor = 'red'; this.needchange = true; stop(); } frame 16 { this.weaponpowercolor = 'blue'; this.needchange = true; stop(); } frame 31 { this.weaponpowercolor = 'green'; this.needchange = true; stop(); } frame 45 { gotoAndStop(1); } frame 46 { stop(); } } movieClip 1998 { } movieClip 2000 { } movieClip 2002 { } movieClip 2003 { frame 1 { } frame 121 { stop(); } } movieClip 2004 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2006 { } movieClip 2008 { } movieClip 2009 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2011 { } movieClip 2013 { } movieClip 2014 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2016 { } movieClip 2017 { frame 1 { stop(); } } movieClip 2019 { } movieClip 2022 { } button 2024 { on (release) { gotoAndPlay(_currentframe + 1); } } movieClip 2027 { } movieClip 2028 { } button 2030 { on (release) { gotoAndPlay(_currentframe - 1); } } movieClip 2038 { } movieClip 2039 { } movieClip 2040 { } movieClip 2041 { } movieClip 2044 { } movieClip 2045 { } movieClip 2046 { } movieClip 2047 { } movieClip 2049 { } movieClip 2050 { } movieClip 2051 { } movieClip 2053 { } movieClip 2055 { } movieClip 2056 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2057 { } movieClip 2059 { } movieClip 2060 { } movieClip 2061 { } movieClip 2062 { frame 1 { stop(); } frame 9 { stop(); } } movieClip 2063 { } movieClip 2064 { } movieClip 2065 { } movieClip 2067 { } movieClip 2102 { } movieClip 2110 { } movieClip 2112 { } movieClip 2113 { } movieClip 2114 { } movieClip 2124 { } movieClip 2125 { } movieClip 2126 { } movieClip 2128 { } movieClip 2129 { } movieClip 2131 { } movieClip 2132 { } movieClip 2133 { frame 1 { stop(); } frame 744 { stop(); } } movieClip 2134 { } movieClip 2135 { frame 1 { stop(); } frame 65 { stop(); } } button 2137 { on (release) { stagesmc.gotoAndPlay(1); itemsmc.gotoAndStop(1); weaponsmc.gotoAndStop(1); arrowkeys.gotoAndStop(1); } } button 2139 { on (release) { weaponsmc.gotoAndPlay(1); itemsmc.gotoAndStop(1); stagesmc.gotoAndStop(1); arrowkeys.gotoAndStop(1); } } movieClip 2141 { } button 2142 { on (release) { itemsmc.gotoAndPlay(1); stagesmc.gotoAndStop(1); weaponsmc.gotoAndStop(1); arrowkeys.gotoAndStop(1); } } button 2144 { on (press) { arrowkeys.gotoAndPlay(2); itemsmc.gotoAndStop(1); stagesmc.gotoAndStop(1); weaponsmc.gotoAndStop(1); } } button 2145 { on (release) { _root.maindisplay.gotoAndStop('title'); _root.passwordmc.gotoAndStop('blank'); _root.maindisplay.playbtn.enabled = true; _root.maindisplay.controlsbtn.enabled = true; _root.maindisplay.passwordbtn.enabled = true; } } movieClip 2147 { instance stagesmc of movieClip 2056 { } } movieClip 2148 { frame 1 { stop(); } frame 2 { check = 1; tellTarget ('/ELECTRONS') { gotoAndStop(1); } } frame 14 { bytestotal = MOD:getBytesTotal(); bytesloaded = MOD:getBytesLoaded(); a = int((bytesloaded / bytestotal) * 100); aa = '00' add a; len = length(aa); P:N1 = substring(aa, len - 0, 1); P:N2 = substring(aa, len - 1, 1); P:N3 = substring(aa, len - 2, 1); } frame 15 { if (Number(check) == 1) { if (Number(a) < 100) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('MOD') { ID = 1; gotoAndPlay(5); } ../M_ROT:TXT1 = MOD:TXT1; ../M_ROT:TXT2 = MOD:TXT2; ../M_ROT:TXT3 = MOD:TXT3; ../M_ROT:TXT4 = MOD:TXT4; tellTarget ('../M_ROT') { ID = /:MOD_ID; gotoAndPlay(3); } tellTarget ('/AUDIO') { gotoAndPlay(50); } } } } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } } button 2155 { on (release) { _root.difficulty = 'easy'; _root.maindisplay.beginner._visible = true; _root.maindisplay.normal._visible = false; _root.maindisplay.expert._visible = false; } } button 2156 { on (release) { _root.difficulty = 'normal'; _root.maindisplay.beginner._visible = false; _root.maindisplay.expert._visible = false; _root.maindisplay.normal._visible = true; } } button 2157 { on (release) { _root.difficulty = 'expert'; _root.maindisplay.beginner._visible = false; _root.maindisplay.normal._visible = false; _root.maindisplay.expert._visible = true; } } button 2158 { on (release) { _quality = 'low'; } } button 2159 { on (release) { _quality = 'medium'; } } button 2160 { on (release) { _quality = 'high'; } } movieClip 2163 { } movieClip 2164 { frame 1 { stop(); } frame 2 { check = 1; tellTarget ('/ELECTRONS') { gotoAndStop(1); } } frame 14 { bytestotal = MOD:getBytesTotal(); bytesloaded = MOD:getBytesLoaded(); a = int((bytesloaded / bytestotal) * 100); aa = '00' add a; len = length(aa); P:N1 = substring(aa, len - 0, 1); P:N2 = substring(aa, len - 1, 1); P:N3 = substring(aa, len - 2, 1); } frame 15 { if (Number(check) == 1) { if (Number(a) < 100) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('MOD') { ID = 1; gotoAndPlay(5); } ../M_ROT:TXT1 = MOD:TXT1; ../M_ROT:TXT2 = MOD:TXT2; ../M_ROT:TXT3 = MOD:TXT3; ../M_ROT:TXT4 = MOD:TXT4; tellTarget ('../M_ROT') { ID = /:MOD_ID; gotoAndPlay(3); } tellTarget ('/AUDIO') { gotoAndPlay(50); } } } } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } } button 2166 { on (release) { _root.levelnumber = 4; _root.numberofbombs = 10; _root.mhlevel = 4; _root.weaponnumber = '4'; _root.weapontype = 'red'; } } button 2170 { on (release) { _root.levelnumber = 1; _root.numberofbombs = 3; _root.mhlevel = 0; _root.weaponnumber = '1'; _root.weapontype = 'red'; } } button 2171 { on (release) { _root.levelnumber = 2; _root.numberofbombs = 5; _root.mhlevel = 3; _root.weaponnumber = '2'; _root.weapontype = 'red'; } } button 2172 { on (release) { _root.levelnumber = 3; _root.numberofbombs = 5; _root.mhlevel = 3; _root.weaponnumber = '3'; _root.weapontype = 'red'; } } button 2174 { on (release) { _root.MENU._visible = true; _root.transition._visible = true; _root.transition.gotoAndPlay('close'); _root.mode = 'mission'; _root.totalscore = 0; _root.startgame = true; _root.maindisplay.playbtn.enabled = false; _root.maindisplay.instructionsbtn.enabled = false; _root.maindisplay.optionsbtn.enabled = false; ../SCROLLER:check = 0; M_BUT:check = 0; M_ROT:ID = 0; M_BG_L:check = 0; M_BG_Lstory:check = 0; M_BG_Lmax:check = 0; M_BG_Lcred:check = 0; M_BG_Lsur:check = 0; M_BG_Larc:check = 0; M_BG_Lopt:check = 0; 1:check = 0; 2:check = 0; 3:check = 0; 4:check = 0; 5:check = 0; 6:check = 0; 7:check = 0; tellTarget ('/ELECTRONS') { gotoAndPlay(2); } } } movieClip 2176 { frame 1 { _root.totalscore = _root.display.totalscore; _root.prevscore = _root.totalscore; if (_root.prevscore > _root.highscore) { _root.highscore = _root.prevscore; } } } movieClip 2177 { } movieClip 2178 { frame 1 { stop(); } frame 2 { check = 1; tellTarget ('/ELECTRONS') { gotoAndStop(1); } } frame 14 { bytestotal = MOD:getBytesTotal(); bytesloaded = MOD:getBytesLoaded(); a = int((bytesloaded / bytestotal) * 100); aa = '00' add a; len = length(aa); P:N1 = substring(aa, len - 0, 1); P:N2 = substring(aa, len - 1, 1); P:N3 = substring(aa, len - 2, 1); } frame 15 { if (Number(check) == 1) { if (Number(a) < 100) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('MOD') { ID = 1; gotoAndPlay(5); } ../M_ROT:TXT1 = MOD:TXT1; ../M_ROT:TXT2 = MOD:TXT2; ../M_ROT:TXT3 = MOD:TXT3; ../M_ROT:TXT4 = MOD:TXT4; tellTarget ('../M_ROT') { ID = /:MOD_ID; gotoAndPlay(3); } tellTarget ('/AUDIO') { gotoAndPlay(50); } } } } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } } movieClip 2183 { } movieClip 2184 { } movieClip 2185 { frame 600 { stop(); } } movieClip 2186 { frame 1 { stop(); } frame 2 { check = 1; tellTarget ('/ELECTRONS') { gotoAndStop(1); } } frame 14 { bytestotal = MOD:getBytesTotal(); bytesloaded = MOD:getBytesLoaded(); a = int((bytesloaded / bytestotal) * 100); aa = '00' add a; len = length(aa); P:N1 = substring(aa, len - 0, 1); P:N2 = substring(aa, len - 1, 1); P:N3 = substring(aa, len - 2, 1); } frame 15 { if (Number(check) == 1) { if (Number(a) < 100) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('MOD') { ID = 1; gotoAndPlay(5); } ../M_ROT:TXT1 = MOD:TXT1; ../M_ROT:TXT2 = MOD:TXT2; ../M_ROT:TXT3 = MOD:TXT3; ../M_ROT:TXT4 = MOD:TXT4; tellTarget ('../M_ROT') { ID = /:MOD_ID; gotoAndPlay(3); } tellTarget ('/AUDIO') { gotoAndPlay(50); } } } } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } } button 2187 { on (release) { _root.transition._visible = true; _root.transition.gotoAndPlay('close'); _root.totalscore2 = 0; _root.startgame = true; _root.mode = 'survival'; _root.levelnumber = 'survival'; _root.maindisplay.playbtn.enabled = false; _root.maindisplay.instructionsbtn.enabled = false; _root.maindisplay.optionsbtn.enabled = false; ../SCROLLER:check = 0; M_BUT:check = 0; M_ROT:ID = 0; M_BG_L:check = 0; M_BG_Lstory:check = 0; M_BG_Lmax:check = 0; M_BG_Lcred:check = 0; M_BG_Lsur:check = 0; M_BG_Larc:check = 0; M_BG_Lopt:check = 0; 1:check = 0; 2:check = 0; 3:check = 0; 4:check = 0; 5:check = 0; 6:check = 0; 7:check = 0; tellTarget ('/ELECTRONS') { gotoAndPlay(2); } } } movieClip 2189 { } movieClip 2190 { frame 1 { stop(); } frame 2 { check = 1; tellTarget ('/ELECTRONS') { gotoAndStop(1); } } frame 14 { bytestotal = MOD:getBytesTotal(); bytesloaded = MOD:getBytesLoaded(); a = int((bytesloaded / bytestotal) * 100); aa = '00' add a; len = length(aa); P:N1 = substring(aa, len - 0, 1); P:N2 = substring(aa, len - 1, 1); P:N3 = substring(aa, len - 2, 1); } frame 15 { if (Number(check) == 1) { if (Number(a) < 100) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('MOD') { ID = 1; gotoAndPlay(5); } ../M_ROT:TXT1 = MOD:TXT1; ../M_ROT:TXT2 = MOD:TXT2; ../M_ROT:TXT3 = MOD:TXT3; ../M_ROT:TXT4 = MOD:TXT4; tellTarget ('../M_ROT') { ID = /:MOD_ID; gotoAndPlay(3); } tellTarget ('/AUDIO') { gotoAndPlay(50); } } } } frame 17 { if (Number(check) == 1) { gotoAndPlay(_currentframe - 1); } } } button 2191 { on (press) { ../SCROLLER:check = 0; M_BUT:check = 0; M_ROT:ID = 0; M_BG_L:check = 0; M_BG_Lstory:check = 0; M_BG_Lmax:check = 0; M_BG_Lcred:check = 0; M_BG_Lsur:check = 0; M_BG_Larc:check = 0; M_BG_Lopt:check = 0; 1:check = 0; 2:check = 0; 3:check = 0; 4:check = 0; 5:check = 0; 6:check = 0; 7:check = 0; tellTarget ('/ELECTRONS') { gotoAndPlay(2); } } } movieClip 2194 { frame 2 { if (Number(random(50)) != 0) { gotoAndPlay(1); } else { gotoAndPlay(Number(random(2) * 20) + 10); } } frame 21 { gotoAndPlay(2); } frame 40 { gotoAndPlay(2); } } movieClip 2203 { frame 1 { stop(); } } movieClip 2245 { frame 1 { ID = _name; stop(); } frame 2 { tellTarget ('FG1') { gotoAndStop(../:ID - 10); } } frame 23 { stop(); } } movieClip 2248 { frame 1 { stop(); } frame 3 { stop(); } frame 5 { stop(); } frame 7 { stop(); } frame 9 { stop(); } frame 11 { stop(); } frame 13 { stop(); } frame 15 { stop(); } frame 22 { stop(); } frame 24 { stop(); } frame 26 { stop(); } frame 28 { stop(); } frame 30 { stop(); } frame 32 { stop(); } frame 34 { stop(); } } button 2251 { on (rollOver) { check = 1; } on (rollOut) { check = 0; } on (press) { /:MOD_ID = ID; /:P_BUT = 1; /SCROLLER:check = 0; tellTarget ('../M_BG_Lmax') { if (Number(check) == 1) { gotoAndPlay(8); } else { gotoAndPlay(2); } } ../1:check = 0; ../2:check = 0; ../3:check = 0; ../4:check = 0; ../5:check = 0; ../6:check = 0; ../7:check = 0; gotoAndPlay(47); } } movieClip 2266 { frame 21 { gotoAndPlay(1); } } movieClip 2267 { frame 1 { if (Number(/:P_BUT) == 1) { stop(); } } frame 17 { /:P_BUT = 1; } frame 19 { if (Number(check) == 0) { gotoAndPlay(_currentframe - 1); } } } movieClip 2270 { frame 2 { if (Number(random(3)) != 0) { gotoAndPlay(1); } else { ID = _name; } } frame 3 { tellTarget ('FG') { gotoAndStop(../:ID); } tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } } frame 9 { if (Number(check) == 0) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } wait = 0; } } frame 15 { if (Number(check) == 1) { wait = Number(wait) + 1; gotoAndPlay(_currentframe - 1); } else { PRESS:check = 1; if (Number(wait) < 7) { gotoAndPlay(31); } } } frame 21 { tellTarget ('SOUND') { gotoAndPlay(Number(../:ID * 2) + 20); } } frame 30 { gotoAndPlay(8); } frame 46 { gotoAndPlay(8); } frame 47 { check = 1; tellTarget (''../1' add ID') { gotoAndPlay(2); } } frame 77 { if (Number(check) == 0) { gotoAndPlay(31); } } frame 82 { if (Number(check) == 1) { gotoAndPlay(67); } else { gotoAndPlay(31); } } } button 2271 { on (rollOver) { check = 1; } on (rollOut) { check = 0; } on (press) { /:MOD_ID = ID; /:P_BUT = 1; /SCROLLER:check = 0; tellTarget ('../M_BG_Lcred') { if (Number(check) == 1) { gotoAndPlay(8); } else { gotoAndPlay(2); } } ../1:check = 0; ../2:check = 0; ../3:check = 0; ../4:check = 0; ../5:check = 0; ../6:check = 0; ../7:check = 0; gotoAndPlay(47); } } movieClip 2272 { frame 2 { if (Number(random(3)) != 0) { gotoAndPlay(1); } else { ID = _name; } } frame 3 { tellTarget ('FG') { gotoAndStop(../:ID); } tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } } frame 9 { if (Number(check) == 0) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } wait = 0; } } frame 15 { if (Number(check) == 1) { wait = Number(wait) + 1; gotoAndPlay(_currentframe - 1); } else { PRESS:check = 1; if (Number(wait) < 7) { gotoAndPlay(31); } } } frame 21 { tellTarget ('SOUND') { gotoAndPlay(Number(../:ID * 2) + 20); } } frame 30 { gotoAndPlay(8); } frame 46 { gotoAndPlay(8); } frame 47 { check = 1; tellTarget (''../1' add ID') { gotoAndPlay(2); } } frame 77 { if (Number(check) == 0) { gotoAndPlay(31); } } frame 82 { if (Number(check) == 1) { gotoAndPlay(67); } else { gotoAndPlay(31); } } } button 2273 { on (rollOver) { check = 1; } on (rollOut) { check = 0; } on (press) { /:MOD_ID = ID; /:P_BUT = 1; /SCROLLER:check = 0; tellTarget ('../M_BG_Lsur') { if (Number(check) == 1) { gotoAndPlay(8); } else { gotoAndPlay(2); } } ../1:check = 0; ../2:check = 0; ../3:check = 0; ../4:check = 0; ../5:check = 0; ../6:check = 0; ../7:check = 0; gotoAndPlay(47); } } movieClip 2274 { frame 2 { if (Number(random(3)) != 0) { gotoAndPlay(1); } else { ID = _name; } } frame 3 { tellTarget ('FG') { gotoAndStop(../:ID); } tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } } frame 9 { if (Number(check) == 0) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } wait = 0; } } frame 15 { if (Number(check) == 1) { wait = Number(wait) + 1; gotoAndPlay(_currentframe - 1); } else { PRESS:check = 1; if (Number(wait) < 7) { gotoAndPlay(31); } } } frame 21 { tellTarget ('SOUND') { gotoAndPlay(Number(../:ID * 2) + 20); } } frame 30 { gotoAndPlay(8); } frame 46 { gotoAndPlay(8); } frame 47 { check = 1; tellTarget (''../1' add ID') { gotoAndPlay(2); } } frame 77 { if (Number(check) == 0) { gotoAndPlay(31); } } frame 82 { if (Number(check) == 1) { gotoAndPlay(67); } else { gotoAndPlay(31); } } } button 2276 { on (rollOver) { check = 1; } on (rollOut) { check = 0; } on (press) { /:MOD_ID = ID; /:P_BUT = 1; /SCROLLER:check = 0; tellTarget ('../M_BG_Larc') { if (Number(check) == 1) { gotoAndPlay(8); } else { gotoAndPlay(2); } } ../1:check = 0; ../2:check = 0; ../3:check = 0; ../4:check = 0; ../5:check = 0; ../6:check = 0; ../7:check = 0; gotoAndPlay(47); } } movieClip 2277 { frame 2 { if (Number(random(3)) != 0) { gotoAndPlay(1); } else { ID = _name; } } frame 3 { tellTarget ('FG') { gotoAndStop(../:ID); } tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } } frame 9 { if (Number(check) == 0) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } wait = 0; } } frame 15 { if (Number(check) == 1) { wait = Number(wait) + 1; gotoAndPlay(_currentframe - 1); } else { PRESS:check = 1; if (Number(wait) < 7) { gotoAndPlay(31); } } } frame 21 { tellTarget ('SOUND') { gotoAndPlay(Number(../:ID * 2) + 20); } } frame 30 { gotoAndPlay(8); } frame 46 { gotoAndPlay(8); } frame 47 { check = 1; tellTarget (''../1' add ID') { gotoAndPlay(2); } } frame 77 { if (Number(check) == 0) { gotoAndPlay(31); } } frame 82 { if (Number(check) == 1) { gotoAndPlay(67); } else { gotoAndPlay(31); } } } button 2278 { on (rollOver) { check = 1; } on (rollOut) { check = 0; } on (press) { /:MOD_ID = ID; /:P_BUT = 1; /SCROLLER:check = 0; tellTarget ('../M_BG_Lstory') { if (Number(check) == 1) { gotoAndPlay(8); } else { gotoAndPlay(2); } } ../1:check = 0; ../2:check = 0; ../3:check = 0; ../4:check = 0; ../5:check = 0; ../6:check = 0; ../7:check = 0; gotoAndPlay(47); } } movieClip 2279 { frame 2 { if (Number(random(3)) != 0) { gotoAndPlay(1); } else { ID = _name; } } frame 3 { tellTarget ('FG') { gotoAndStop(../:ID); } tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } } frame 9 { if (Number(check) == 0) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } wait = 0; } } frame 15 { if (Number(check) == 1) { wait = Number(wait) + 1; gotoAndPlay(_currentframe - 1); } else { PRESS:check = 1; if (Number(wait) < 7) { gotoAndPlay(31); } } } frame 21 { tellTarget ('SOUND') { gotoAndPlay(Number(../:ID * 2) + 20); } } frame 30 { gotoAndPlay(8); } frame 46 { gotoAndPlay(8); } frame 47 { check = 1; tellTarget (''../1' add ID') { gotoAndPlay(2); } } frame 77 { if (Number(check) == 0) { gotoAndPlay(31); } } frame 82 { if (Number(check) == 1) { gotoAndPlay(67); } else { gotoAndPlay(31); } } } button 2280 { on (rollOver) { check = 1; } on (rollOut) { check = 0; } on (press) { /:MOD_ID = ID; /:P_BUT = 1; /SCROLLER:check = 0; tellTarget ('../M_BG_Lopt') { if (Number(check) == 1) { gotoAndPlay(8); } else { gotoAndPlay(2); } } ../1:check = 0; ../2:check = 0; ../3:check = 0; ../4:check = 0; ../5:check = 0; ../6:check = 0; ../7:check = 0; gotoAndPlay(47); } } movieClip 2281 { frame 2 { if (Number(random(3)) != 0) { gotoAndPlay(1); } else { ID = _name; } } frame 3 { tellTarget ('FG') { gotoAndStop(../:ID); } tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } } frame 9 { if (Number(check) == 0) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } wait = 0; } } frame 15 { if (Number(check) == 1) { wait = Number(wait) + 1; gotoAndPlay(_currentframe - 1); } else { PRESS:check = 1; if (Number(wait) < 7) { gotoAndPlay(31); } } } frame 21 { tellTarget ('SOUND') { gotoAndPlay(Number(../:ID * 2) + 20); } } frame 30 { gotoAndPlay(8); } frame 46 { gotoAndPlay(8); } frame 47 { check = 1; tellTarget (''../1' add ID') { gotoAndPlay(2); } } frame 77 { if (Number(check) == 0) { gotoAndPlay(31); } } frame 82 { if (Number(check) == 1) { gotoAndPlay(67); } else { gotoAndPlay(31); } } } button 2282 { on (rollOver) { check = 1; } on (rollOut) { check = 0; } on (press) { ../SCROLLER:check = 0; if (Number(_root.MENU.M_ROT:ID) == 0) { gotoAndPlay(Number(_currentframe) + 1); } else { _root.MENU.M_BUT:check = 0; _root.MENU.M_ROT:ID = 0; _root.MENU.M_BG_Lstory.gotoAndStop(1); _root.MENU.M_BG_Lmax:gotoAndStop(1); _root.MENU.M_BG_Lcred:gotoAndStop(1); _root.MENU.M_BG_Lsur:gotoAndStop(1); _root.MENU.M_BG_Larc:gotoAndStop(1); _root.MENU.M_BG_Lopt:gotoAndStop(1); 1:check = 0; 2:check = 0; 3:check = 0; 4:check = 0; 5:check = 0; 6:check = 0; 7:check = 0; tellTarget ('/ELECTRONS') { gotoAndPlay(2); } } /:MOD_ID = ID; /:P_BUT = 1; /SCROLLER:check = 0; tellTarget ('../M_BG_L') { if (Number(check) == 1) { gotoAndPlay(8); } else { gotoAndPlay(2); } } ../1:check = 0; ../2:check = 0; ../3:check = 0; ../4:check = 0; ../5:check = 0; ../6:check = 0; ../7:check = 0; gotoAndPlay(47); } } movieClip 2283 { frame 2 { if (Number(random(3)) != 0) { gotoAndPlay(1); } else { ID = _name; } } frame 3 { tellTarget ('FG') { gotoAndStop(../:ID); } tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } } frame 9 { if (Number(check) == 0) { gotoAndPlay(_currentframe - 1); } else { tellTarget ('SOUND') { gotoAndPlay(../:ID * 2); } wait = 0; } } frame 15 { if (Number(check) == 1) { wait = Number(wait) + 1; gotoAndPlay(_currentframe - 1); } else { PRESS:check = 1; if (Number(wait) < 7) { gotoAndPlay(31); } } } frame 21 { tellTarget ('SOUND') { gotoAndPlay(Number(../:ID * 2) + 20); } } frame 30 { gotoAndPlay(8); } frame 46 { gotoAndPlay(8); } frame 47 { check = 1; tellTarget (''../1' add ID') { gotoAndPlay(2); } } frame 77 { if (Number(check) == 0) { gotoAndPlay(31); } } frame 82 { if (Number(check) == 1) { gotoAndPlay(67); } else { gotoAndPlay(31); } } } movieClip 2286 { frame 16 { stop(); } frame 17 { tellTarget ('../') { gotoAndPlay(Number(_currentframe) + 1); } } frame 21 { stop(); } frame 22 { stop(); } } frame 54 { stop(); } frame 55 { stop(); } movieClip 2289 { } movieClip 2291 { } movieClip 2294 { frame 73 { stop(); } } movieClip 2297 { } movieClip 2338 { } movieClip 2379 { } movieClip 2380 { } movieClip 2417 { } movieClip 2418 { } movieClip 2420 { } button 2421 { on (release) { getURL('http://www.maxgames.com', '_blank'); } } movieClip 2424 { } movieClip 2428 { } movieClip 2431 { frame 79 { stop(); } } movieClip 2438 { frame 14 { stop(); } } movieClip 2439 { } movieClip 2440 { } movieClip 2441 { frame 1 { apple(); } frame 2 { play(); } frame 245 { _root.gotoAndPlay('main'); } }




http://swfchan.com/5/22479/info.shtml
Created: 26/5 -2019 21:56:04 Last modified: 26/5 -2019 21:56:04 Server time: 21/12 -2024 18:33:36