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

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

Missile Defense.swf

This is the info page for
Flash #37992

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


Text
.com

.com

Missile Defense

Aaron Geisler

Defend your city from enemy missile attack.
Controls:
Mouse: Aim and fire missiles
Space: Scramble fighter

Begin

Begin

Begin

Play More Games

Play More Games

Shield

Repair

Missiles

Missile Power

MIssile Speed

Fighter-intercept

ActionScript [AS1/AS2]

Frame 1
stopAllSounds(); _root.bytesLoaded = _root.getBytesLoaded(); _root.bytesTotal = _root.getBytesTotal(); _root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal)); _root.percentLoadedText = _root.percentLoaded + "%"; _root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) { gotoAndPlay (3); } else { gotoAndPlay (1); }
Frame 3
stop();
Frame 4
messagedisplay = ""; ammodisplay = ""; interceptsdisplay = ""; leveldisplay = ""; healthdisplay = ""; Stage.showMenu = false; Stage.scaleMode = "noScale"; explode1 = new Sound(_root.sound0); explode1.attachSound("explodesound1"); explode2 = new Sound(_root.sound0); explode2.attachSound("explodesound2"); soundpop = new Sound(_root.sound0); soundpop.attachSound("popsound"); bombexplode = new Sound(_root.sound0); bombexplode.attachSound("bombsound"); siren = new Sound(_root.sound0); siren.attachSound("sirensound"); whistle = new Sound(_root.sound0); whistle.attachSound("whistlesound"); stop();
Symbol 66 Button
on (release) { _root.play(); }
Symbol 67 MovieClip Frame 143
_root.play(); stop();
Symbol 79 Button
on (release) { gotoAndPlay ("game"); wait = 0; }
Symbol 82 Button
on (release) { getURL ("http://www.armorgames.com", _blank); }
Symbol 115 MovieClip Frame 1
wait = -5; playbutton._visible = true; stop(); this.onEnterFrame = function () { ifFrameLoaded (2) { gotoAndPlay ("loadscreen"); } };
Symbol 115 MovieClip Frame 2
stop(); this.onEnterFrame = function () { ifFrameLoaded (3) { _quality = "HIGH"; playbutton._visible = true; } };
Symbol 115 MovieClip Frame 3
function resetgame() { _root.siren.start(0, 1); _root.game0.shield0.active = false; _root.game0.shield0._visible = false; t = 0; while (t < repairpickups) { _root.game0["repairpickup" + t].active = false; _root.game0["repairpickup" + t]._visible = false; t = t + 1; } t = 0; while (t < ammopickups) { _root.game0["ammopickup" + t].active = false; _root.game0["ammopickup" + t]._visible = false; t = t + 1; } t = 0; while (t < interceptpickups) { _root.game0["interceptpickup" + t].active = false; _root.game0["interceptpickup" + t]._visible = false; t = t + 1; } t = 0; while (t < speedpickups) { _root.game0["speedpickup" + t].active = false; _root.game0["speedpickup" + t]._visible = false; t = t + 1; } t = 0; while (t < shieldpickups) { _root.game0["shieldpickup" + t].active = false; _root.game0["shieldpickup" + t]._visible = false; t = t + 1; } t = 0; while (t < powerpickups) { _root.game0["powerpickup" + t].active = false; _root.game0["powerpickup" + t]._visible = false; t = t + 1; } t = 0; while (t < supermissiles) { _root.game0["supermissile" + t].active = false; _root.game0["supermissile" + t]._visible = false; t = t + 1; } t = 0; while (t < fighters) { _root.game0["fighter" + t].active = false; _root.game0["fighter" + t]._visible = false; t = t + 1; } t = 0; while (t < bombs) { _root.game0["bomb" + t].active = false; _root.game0["bomb" + t]._visible = false; t = t + 1; } t = 0; while (t < explosions) { _root.game0["explosion" + t].active = false; _root.game0["explosion" + t]._visible = false; t = t + 1; } t = 0; while (t < missiles) { _root.game0["missile" + t].active = false; _root.game0["missile" + t]._visible = false; t = t + 1; } t = 0; while (t < bombers) { _root.game0["bomber" + t].active = false; _root.game0["bomber" + t]._visible = false; t = t + 1; } } function createfighter() { foundfighter = -1; j = 0; while (j <= fighters) { if (_root.game0["fighter" + j].active == false) { foundfighter = j; j = fighters + 1; } j = j + 1; } if (foundfighter > -1) { _root.game0["fighter" + foundfighter]._x = -30; _root.game0["fighter" + foundfighter]._y = (Math.random() * 50) + 25; _root.game0["fighter" + foundfighter].shootdelay = 0; _root.game0["fighter" + foundfighter].active = true; _root.game0["fighter" + foundfighter]._visible = true; } else { _root.game0.fighter0.duplicateMovieClip("fighter" + fighters, fighterdepth + fighters); _root.game0["fighter" + fighters]._x = -30; _root.game0["fighter" + fighters]._y = (Math.random() * 50) + 25; _root.game0["fighter" + fighters].shootdelay = 0; _root.game0["fighter" + fighters].active = true; _root.game0["fighter" + fighters]._visible = true; fighters = fighters + 1; } } function createbomber() { foundbomber = -1; j = 0; while (j <= bombers) { if (_root.game0["bomber" + j].active == false) { foundbomber = j; j = bombers + 1; } j = j + 1; } if (foundbomber > -1) { _root.game0["bomber" + foundbomber]._x = 550; _root.game0["bomber" + foundbomber]._y = (Math.random() * 100) + 75; _root.game0["bomber" + foundbomber].hasload = true; _root.game0["bomber" + foundbomber].dropx = (Math.random() * 256) + 128; _root.game0["bomber" + foundbomber].active = true; _root.game0["bomber" + foundbomber]._visible = true; } else { _root.game0.bomber0.duplicateMovieClip("bomber" + bombers, bomberdepth + bombers); _root.game0["bomber" + bombers]._x = 550; _root.game0["bomber" + bombers]._y = (Math.random() * 100) + 75; _root.game0["bomber" + bombers].hasload = true; _root.game0["bomber" + bombers].dropx = (Math.random() * 256) + 128; _root.game0["bomber" + bombers].active = true; _root.game0["bomber" + bombers]._visible = true; bombers = bombers + 1; } } function createbomb(x, y) { foundbomb = -1; j = 0; while (j <= bombs) { if (_root.game0["bomb" + j].active == false) { foundbomb = j; j = bombs + 1; } j = j + 1; } if (foundbomb > -1) { _root.game0["bomb" + foundbomb]._x = x; _root.game0["bomb" + foundbomb]._y = y; _root.game0["bomb" + foundbomb].active = true; _root.game0["bomb" + foundbomb]._visible = true; } else { _root.game0.bomb0.duplicateMovieClip("bomb" + bombs, bombdepth + bombs); _root.game0["bomb" + bombs]._x = x; _root.game0["bomb" + bombs]._y = y; _root.game0["bomb" + bombs].active = true; _root.game0["bomb" + bombs]._visible = true; bombs = bombs + 1; } } function createshieldpickup() { foundshieldpickup = -1; j = 0; while (j <= shieldpickups) { if (_root.game0["shieldpickup" + j].active == false) { foundshieldpickup = j; j = shieldpickups + 1; } j = j + 1; } if (foundshieldpickup > -1) { _root.game0["shieldpickup" + foundshieldpickup]._x = (Math.random() * 256) + 128; _root.game0["shieldpickup" + foundshieldpickup]._y = -20; _root.game0["shieldpickup" + foundshieldpickup].active = true; _root.game0["shieldpickup" + foundshieldpickup]._visible = true; } else { _root.game0.shieldpickup0.duplicateMovieClip("shieldpickup" + shieldpickups, shieldpickupdepth + shieldpickups); _root.game0["shieldpickup" + shieldpickups]._x = (Math.random() * 256) + 128; _root.game0["shieldpickup" + shieldpickups]._y = -20; _root.game0["shieldpickup" + shieldpickups].active = true; _root.game0["shieldpickup" + shieldpickups]._visible = true; shieldpickups = shieldpickups + 1; } } function createpowerpickup() { foundpowerpickup = -1; j = 0; while (j <= powerpickups) { if (_root.game0["powerpickup" + j].active == false) { foundpowerpickup = j; j = powerpickups + 1; } j = j + 1; } if (foundpowerpickup > -1) { _root.game0["powerpickup" + foundpowerpickup]._x = (Math.random() * 256) + 128; _root.game0["powerpickup" + foundpowerpickup]._y = -20; _root.game0["powerpickup" + foundpowerpickup].active = true; _root.game0["powerpickup" + foundpowerpickup]._visible = true; } else { _root.game0.powerpickup0.duplicateMovieClip("powerpickup" + powerpickups, powerpickupdepth + powerpickups); _root.game0["powerpickup" + powerpickups]._x = (Math.random() * 256) + 128; _root.game0["powerpickup" + powerpickups]._y = -20; _root.game0["powerpickup" + powerpickups].active = true; _root.game0["powerpickup" + powerpickups]._visible = true; powerpickups = powerpickups + 1; } } function createspeedpickup() { foundspeedpickup = -1; j = 0; while (j <= speedpickups) { if (_root.game0["speedpickup" + j].active == false) { foundspeedpickup = j; j = speedpickups + 1; } j = j + 1; } if (foundspeedpickup > -1) { _root.game0["speedpickup" + foundspeedpickup]._x = (Math.random() * 256) + 128; _root.game0["speedpickup" + foundspeedpickup]._y = -20; _root.game0["speedpickup" + foundspeedpickup].active = true; _root.game0["speedpickup" + foundspeedpickup]._visible = true; } else { _root.game0.speedpickup0.duplicateMovieClip("speedpickup" + speedpickups, speedpickupdepth + speedpickups); _root.game0["speedpickup" + speedpickups]._x = (Math.random() * 256) + 128; _root.game0["speedpickup" + speedpickups]._y = -20; _root.game0["speedpickup" + speedpickups].active = true; _root.game0["speedpickup" + speedpickups]._visible = true; speedpickups = speedpickups + 1; } } function createrepairpickup() { foundrepairpickup = -1; j = 0; while (j <= repairpickups) { if (_root.game0["repairpickup" + j].active == false) { foundrepairpickup = j; j = repairpickups + 1; } j = j + 1; } if (foundrepairpickup > -1) { _root.game0["repairpickup" + foundrepairpickup]._x = (Math.random() * 256) + 128; _root.game0["repairpickup" + foundrepairpickup]._y = -20; _root.game0["repairpickup" + foundrepairpickup].active = true; _root.game0["repairpickup" + foundrepairpickup]._visible = true; } else { _root.game0.repairpickup0.duplicateMovieClip("repairpickup" + repairpickups, repairpickupdepth + repairpickups); _root.game0["repairpickup" + repairpickups]._x = (Math.random() * 256) + 128; _root.game0["repairpickup" + repairpickups]._y = -20; _root.game0["repairpickup" + repairpickups].active = true; _root.game0["repairpickup" + repairpickups]._visible = true; repairpickups = repairpickups + 1; } } function createammopickup() { foundammopickup = -1; j = 0; while (j <= ammopickups) { if (_root.game0["ammopickup" + j].active == false) { foundammopickup = j; j = ammopickups + 1; } j = j + 1; } if (foundammopickup > -1) { _root.game0["ammopickup" + foundammopickup]._x = (Math.random() * 256) + 128; _root.game0["ammopickup" + foundammopickup]._y = -20; _root.game0["ammopickup" + foundammopickup].active = true; _root.game0["ammopickup" + foundammopickup]._visible = true; } else { _root.game0.ammopickup0.duplicateMovieClip("ammopickup" + ammopickups, ammopickupdepth + ammopickups); _root.game0["ammopickup" + ammopickups]._x = (Math.random() * 256) + 128; _root.game0["ammopickup" + ammopickups]._y = -20; _root.game0["ammopickup" + ammopickups].active = true; _root.game0["ammopickup" + ammopickups]._visible = true; ammopickups = ammopickups + 1; } } function createinterceptpickup() { foundinterceptpickup = -1; j = 0; while (j <= interceptpickups) { if (_root.game0["interceptpickup" + j].active == false) { foundinterceptpickup = j; j = interceptpickups + 1; } j = j + 1; } if (foundinterceptpickup > -1) { _root.game0["interceptpickup" + foundinterceptpickup]._x = (Math.random() * 256) + 128; _root.game0["interceptpickup" + foundinterceptpickup]._y = -20; _root.game0["interceptpickup" + foundinterceptpickup].active = true; _root.game0["interceptpickup" + foundinterceptpickup]._visible = true; } else { _root.game0.interceptpickup0.duplicateMovieClip("interceptpickup" + interceptpickups, interceptpickupdepth + interceptpickups); _root.game0["interceptpickup" + interceptpickups]._x = (Math.random() * 256) + 128; _root.game0["interceptpickup" + interceptpickups]._y = -20; _root.game0["interceptpickup" + interceptpickups].active = true; _root.game0["interceptpickup" + interceptpickups]._visible = true; interceptpickups = interceptpickups + 1; } } function createsupermissile(x, y, tx, ty, speed, power, supermissilecolor, explosioncolor, side) { movedirection = directiontopoint(x, y, tx, ty); livetime = Math.round(finddistance(x, y, tx, ty) / speed); foundsupermissile = -1; j = 0; while (j <= supermissiles) { if (_root.game0["supermissile" + j].active == false) { foundsupermissile = j; j = supermissiles + 1; } j = j + 1; } if (foundmissle > -1) { _root.game0["supermissile" + foundsupermissile]._x = x; _root.game0["supermissile" + foundsupermissile]._y = y; _root.game0["supermissile" + foundsupermissile].startx = x; _root.game0["supermissile" + foundsupermissile].starty = y; _root.game0["supermissile" + foundsupermissile].livetime = livetime; _root.game0["supermissile" + foundsupermissile].btime = 0; _root.game0["supermissile" + foundsupermissile].power = power; _root.game0["supermissile" + foundsupermissile].hs = vectorx(movedirection, speed); _root.game0["supermissile" + foundsupermissile].vs = vectory(movedirection, speed); _root.game0["supermissile" + foundsupermissile]._visible = true; _root.game0["supermissile" + foundsupermissile].active = true; _root.game0["supermissile" + foundsupermissile].hasload = true; _root.game0["supermissile" + foundsupermissile].explosioncolor = explosioncolor; _root.game0["supermissile" + foundsupermissile].supermissilecolor = supermissilecolor; _root.game0["supermissile" + foundsupermissile].side = side; } else { this.createEmptyMovieClip("supermissile" + supermissiles, supermissiledepth + supermissiles); _root.game0["supermissile" + supermissiles]._x = x; _root.game0["supermissile" + supermissiles]._y = y; _root.game0["supermissile" + supermissiles].startx = x; _root.game0["supermissile" + supermissiles].starty = y; _root.game0["supermissile" + supermissiles].livetime = livetime; _root.game0["supermissile" + supermissiles].btime = 0; _root.game0["supermissile" + supermissiles].power = power; _root.game0["supermissile" + supermissiles].hs = vectorx(movedirection, speed); _root.game0["supermissile" + supermissiles].vs = vectory(movedirection, speed); _root.game0["supermissile" + supermissiles]._visible = true; _root.game0["supermissile" + supermissiles].active = true; _root.game0["supermissile" + supermissiles].hasload = true; _root.game0["supermissile" + supermissiles].explosioncolor = explosioncolor; _root.game0["supermissile" + supermissiles].supermissilecolor = supermissilecolor; _root.game0["supermissile" + supermissiles].side = side; supermissiles = supermissiles + 1; } } function createmissile(x, y, tx, ty, speed, power, missilecolor, explosioncolor, side) { movedirection = directiontopoint(x, y, tx, ty); livetime = Math.round(finddistance(x, y, tx, ty) / speed); foundmissile = -1; j = 0; while (j <= missiles) { if (_root.game0["missile" + j].active == false) { foundmissile = j; j = missiles + 1; } j = j + 1; } if (foundmissle > -1) { _root.game0["missile" + foundmissile]._x = x; _root.game0["missile" + foundmissile]._y = y; _root.game0["missile" + foundmissile].startx = x; _root.game0["missile" + foundmissile].starty = y; _root.game0["missile" + foundmissile].livetime = livetime; _root.game0["missile" + foundmissile].btime = 0; _root.game0["missile" + foundmissile].power = power; _root.game0["missile" + foundmissile].hs = vectorx(movedirection, speed); _root.game0["missile" + foundmissile].vs = vectory(movedirection, speed); _root.game0["missile" + foundmissile]._visible = true; _root.game0["missile" + foundmissile].active = true; _root.game0["missile" + foundmissile].explosioncolor = explosioncolor; _root.game0["missile" + foundmissile].missilecolor = missilecolor; _root.game0["missile" + foundmissile].side = side; } else { this.createEmptyMovieClip("missile" + missiles, missiledepth + missiles); _root.game0["missile" + missiles]._x = x; _root.game0["missile" + missiles]._y = y; _root.game0["missile" + missiles].startx = x; _root.game0["missile" + missiles].starty = y; _root.game0["missile" + missiles].livetime = livetime; _root.game0["missile" + missiles].btime = 0; _root.game0["missile" + missiles].power = power; _root.game0["missile" + missiles].hs = vectorx(movedirection, speed); _root.game0["missile" + missiles].vs = vectory(movedirection, speed); _root.game0["missile" + missiles]._visible = true; _root.game0["missile" + missiles].active = true; _root.game0["missile" + missiles].explosioncolor = explosioncolor; _root.game0["missile" + missiles].missilecolor = missilecolor; _root.game0["missile" + missiles].side = side; missiles = missiles + 1; } } function createexplosion(x, y, maxradius, explosioncolor, side) { foundexplosion = -1; j = 0; while (j <= explosions) { if (_root.game0["explosion" + j].active == false) { foundexplosion = j; j = explosions + 1; } j = j + 1; } if (foundexplosion > -1) { _root.game0["explosion" + foundexplosion]._x = x; _root.game0["explosion" + foundexplosion]._y = y; _root.game0["explosion" + foundexplosion].livetime = 0; _root.game0["explosion" + foundexplosion].radius = 2; _root.game0["explosion" + foundexplosion].maxradius = maxradius; _root.game0["explosion" + foundexplosion]._visible = true; _root.game0["explosion" + foundexplosion].active = true; _root.game0["explosion" + foundexplosion].explosioncolor = explosioncolor; _root.game0["explosion" + foundexplosion].side = side; } else { this.createEmptyMovieClip("explosion" + explosions, explosiondepth + explosions); _root.game0["explosion" + explosions]._x = x; _root.game0["explosion" + explosions]._y = y; _root.game0["explosion" + explosions].livetime = 0; _root.game0["explosion" + explosions].radius = 2; _root.game0["explosion" + explosions].maxradius = maxradius; _root.game0["explosion" + explosions]._visible = true; _root.game0["explosion" + explosions].active = true; _root.game0["explosion" + explosions].explosioncolor = explosioncolor; _root.game0["explosion" + explosions].side = side; explosions = explosions + 1; } } function creategparticle(x, y, radius, gparticledirection, speed, airfriction, gravity, gparticletime, gparticlecolor) { foundgparticle = -1; j = 0; while (j <= gparticles) { if (_root.game0["gparticle" + j].active == false) { foundgparticle = j; j = gparticles + 1; } j = j + 1; } if (foundgparticle > -1) { _root.game0["gparticle" + foundgparticle]._x = x; _root.game0["gparticle" + foundgparticle]._y = y; _root.game0["gparticle" + foundgparticle].radius = radius; _root.game0["gparticle" + foundgparticle]._visible = true; _root.game0["gparticle" + foundgparticle].active = true; _root.game0["gparticle" + foundgparticle].gparticlecolor = gparticlecolor; _root.game0["gparticle" + foundgparticle].gparticletime = gparticletime; _root.game0["gparticle" + foundgparticle].gparticlestarttime = gparticletime; _root.game0["gparticle" + foundgparticle].airfriction = airfriction; _root.game0["gparticle" + foundgparticle].gravity = gravity; _root.game0["gparticle" + foundgparticle].vs = vectory(gparticledirection, speed); _root.game0["gparticle" + foundgparticle].hs = vectorx(gparticledirection, speed); } else { this.createEmptyMovieClip("gparticle" + gparticles, gparticledepth + gparticles); _root.game0["gparticle" + gparticles]._x = x; _root.game0["gparticle" + gparticles]._y = y; _root.game0["gparticle" + gparticles].radius = radius; _root.game0["gparticle" + gparticles]._visible = true; _root.game0["gparticle" + gparticles].active = true; _root.game0["gparticle" + gparticles].gparticlecolor = gparticlecolor; _root.game0["gparticle" + gparticles].gparticletime = gparticletime; _root.game0["gparticle" + gparticles].gparticlestarttime = gparticletime; _root.game0["gparticle" + gparticles].airfriction = airfriction; _root.game0["gparticle" + gparticles].gravity = gravity; _root.game0["gparticle" + gparticles].vs = vectory(gparticledirection, speed); _root.game0["gparticle" + gparticles].hs = vectorx(gparticledirection, speed); gparticles = gparticles + 1; } } function correctdirection(tempdirection) { currentdir = tempdirection; while ((currentdir < 0) || (currentdir >= 360)) { if (currentdir < 0) { currentdir = currentdir + 360; } if (currentdir >= 360) { currentdir = currentdir - 360; } } return(currentdir); } function newspeed(currentspeed, changeamount) { tempspeed = 0; if (currentspeed > 0) { if (currentspeed > changeamount) { tempspeed = currentspeed - changeamount; } else { tempspeed = 0; } } else if (currentspeed < (-changeamount)) { tempspeed = currentspeed + changeamount; } else { tempspeed = 0; } return(tempspeed); } function vectorx(dir, magnitude) { tdir = Math.round(correctdirection(dir)); return(tcos[tdir] * magnitude); } function vectory(dir, magnitude) { tdir = Math.round(correctdirection(dir)); return(-(tsin[tdir] * magnitude)); } function finddistance(x1, y1, x2, y2) { return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)))); } function directiontopoint(x1, y1, x2, y2) { if ((x1 != x2) && (y1 != y2)) { temp1 = (Math.abs(Math.atan((y2 - y1) / (x2 - x1))) * 180) / Math.PI; if ((y2 < y1) && (x2 < x1)) { temp1 = 180 - temp1; } if ((y2 > y1) && (x2 < x1)) { temp1 = 180 + temp1; } if ((y2 > y1) && (x2 > x1)) { temp1 = 360 - temp1; } } else { if ((x2 == x1) && (y2 == y1)) { temp1 = 0; } if ((x2 == x1) && (y2 > y1)) { temp1 = 270; } if ((x2 == x1) && (y2 < y1)) { temp1 = 90; } if ((y2 == y1) && (x2 > x1)) { temp1 = 0; } if ((y2 == y1) && (x2 < x1)) { temp1 = 180; } } return(temp1); } function createrock() { foundrock = -1; j = 0; while (j <= rocks) { if (_root.game0["rock" + j].active == false) { foundrock = j; j = rocks + 1; } j = j + 1; } if (foundrock > -1) { _root.game0["rock" + foundrock]._x = (Math.random() * 300) + 50; _root.game0["rock" + foundrock]._y = (Math.random() * 200) + 25; _root.game0["rock" + foundrock].hs = (Math.random() * 0.2) + 0.1; _root.game0["rock" + foundrock].vs = (Math.random() * 0.1) - 0.05; _root.game0["rock" + foundrock].rotatespeed = (Math.random() * 0.5) - 0.5; _root.game0["rock" + foundrock].active = true; _root.game0["rock" + foundrock]._rotation = Math.random() * 360; _root.game0["rock" + foundrock]._visible = true; } else { _root.game0.rock0.duplicateMovieClip("rock" + rocks, rockdepth + rocks); _root.game0["rock" + rocks]._x = (Math.random() * 300) + 50; _root.game0["rock" + rocks]._y = (Math.random() * 200) + 25; _root.game0["rock" + rocks].hs = (Math.random() * 0.2) + 0.1; _root.game0["rock" + rocks].vs = (Math.random() * 0.1) - 0.05; _root.game0["rock" + rocks].rotatespeed = (Math.random() * 0.5) - 0.25; _root.game0["rock" + rocks]._rotation = Math.random() * 360; _root.game0["rock" + rocks].active = true; _root.game0["rock" + rocks]._visible = true; rocks = rocks + 1; } } function explosioncollide(x, y, radius, explosionside) { tempfind = 0; e = 0; while (e < explosions) { if (_root.game0["explosion" + e].active == true) { if (_root.game0["explosion" + e].side == explosionside) { if (finddistance(x, y, _root.game0["explosion" + e]._x, _root.game0["explosion" + e]._y) <= (radius + _root.game0["explosion" + e].radius)) { tempfind = tempfind + 1; } } } e = e + 1; } return(tempfind); } stop(); paused = false; lastmousex = 0; lastmousey = 0; mousex = 0; mousey = 0; mousedown = false; clicking = false; _root.game0.shield0.active = false; _root.game0.shield0._visible = false; _root.game0.shield0.livetime = 0; fighters = 1; fighterdepth = 100; _root.game0.fighter0.active = false; _root.game0.fighter0._visible = false; bombers = 1; bomberdepth = 200; _root.game0.bomber0.active = false; _root.game0.bomber0._visible = false; bombs = 1; bombdepth = 300; _root.game0.bomb0.active = false; _root.game0.bomb0._visible = false; powerpickups = 1; powerpickupdepth = 400; _root.game0.powerpickup0.active = false; _root.game0.powerpickup0._visible = false; speedpickups = 1; speedpickupdepth = 500; _root.game0.speedpickup0.active = false; _root.game0.speedpickup0._visible = false; shieldpickups = 1; shieldpickupdepth = 600; _root.game0.shieldpickup0.active = false; _root.game0.shieldpickup0._visible = false; repairpickups = 1; repairpickupdepth = 700; _root.game0.repairpickup0.active = false; _root.game0.repairpickup0._visible = false; ammopickups = 1; ammopickupdepth = 800; _root.game0.ammopickup0.active = false; _root.game0.ammopickup0._visible = false; interceptpickups = 1; interceptpickupdepth = 900; _root.game0.interceptpickup0.active = false; _root.game0.interceptpickup0._visible = false; powerupspeed = 2; pickupspeedincrease = 2; pickuppowerincrease = 12; pickuprepairincrease = 125; pickupammoincrease = 8; bombspeed = 0.75; bombpower = 64; fighterspeed = 3; fightershootdelay = 15; fightermissilespeed = 8; fightermissilepower = 12; bomberspeed = 1; constinterceptdelay = 30; maxcitydamage = 500; basemissilespeed = 4; basemissilepower = 32; baseammo = 24; enemymissilespeed = 1; enemymissilepower = 24; shieldlivetime = 300; win = false; constleveltime = 1800; leveltimer = 0; citydamage = 0; missilespeed = basemissilespeed; missilepower = basemissilepower; shieldlivetime = 400; intercepts = 3; ammo = baseammo; level = 1; shootside = 0; interceptdelay = 0; resetgame(); tsin = []; tcos = []; o = 0; while (o <= 360) { tsin[o] = Math.sin(o * (Math.PI/180)); tcos[o] = Math.cos(o * (Math.PI/180)); o = o + 1; } gparticles = 0; gparticledepth = -300; explosions = 0; explosiondepth = -400; missiles = 0; missiledepth = -100; supermissiles = 0; supermissiledepth = -200; this.onEnterFrame = function () { if (wait == 0) { if (paused == false) { if ((Key.isDown(32) && (interceptdelay == 0)) && (intercepts > 0)) { createfighter(); intercepts = intercepts - 1; interceptdelay = constinterceptdelay; } if (interceptdelay > 0) { interceptdelay = interceptdelay - 1; } if ((((mousex > 0) && (mousex < 512)) && (mousey > 0)) && (mousey < 384)) { if (clicking == true) { if (ammo > 0) { if (shootside == 0) { shootside = 1; createmissile(384, 370, mousex, mousey, missilespeed, missilepower, 9934743, 16776960, 0); y = 0; while (y < 2) { creategparticle(382 + (Math.random() * 4), 366 + (Math.random() * 4), (Math.random() * 8) + 8, (Math.random() * 30) + 75, Math.random() * 3, 0.05, 0, (Math.random() * 30) + 30, 5197647); creategparticle(382 + (Math.random() * 4), 366 + (Math.random() * 4), (Math.random() * 8) + 8, (Math.random() * 30) + 75, Math.random() * 3, 0.05, 0, (Math.random() * 30) + 30, 7368816); creategparticle(382 + (Math.random() * 4), 366 + (Math.random() * 4), (Math.random() * 8) + 8, (Math.random() * 30) + 75, Math.random() * 2, 0.05, 0, (Math.random() * 20) + 20, 16776960); y = y + 1; } } else { shootside = 0; createmissile(128, 370, mousex, mousey, missilespeed, missilepower, 9934743, 16776960, 0); y = 0; while (y < 2) { creategparticle(128 + (Math.random() * 4), 366 + (Math.random() * 4), (Math.random() * 8) + 8, (Math.random() * 30) + 75, Math.random() * 3, 0.05, 0, (Math.random() * 30) + 30, 5197647); creategparticle(128 + (Math.random() * 4), 366 + (Math.random() * 4), (Math.random() * 8) + 8, (Math.random() * 30) + 75, Math.random() * 3, 0.05, 0, (Math.random() * 30) + 30, 7368816); creategparticle(128 + (Math.random() * 4), 366 + (Math.random() * 4), (Math.random() * 8) + 8, (Math.random() * 30) + 75, Math.random() * 2, 0.05, 0, (Math.random() * 20) + 20, 16776960); y = y + 1; } } ammo = ammo - 1; } } } } _root.messagedisplay = ""; _root.interceptsdisplay = "Fighter-intercept: " + intercepts; _root.ammodisplay = "Missiles: " + ammo; _root.healthdisplay = ("Health: " + Math.round(((maxcitydamage - citydamage) / maxcitydamage) * 100)) + " %"; _root.leveldisplay = "Level: " + level; if (leveltimer < constleveltime) { if (paused == false) { leveltimer = leveltimer + 1; } } else { win = true; paused = true; } if (citydamage >= maxcitydamage) { paused = true; } if (paused == true) { if (win == true) { _root.messagedisplay = "Victory! Press SHIFT to continue."; if (Key.isDown(16)) { resetgame(); level = level + 1; win = false; ammo = ammo + baseammo; interceptdelay = 0; leveltimer = 0; missilespeed = basemissilespeed; missilepower = basemissilepower; paused = false; } } else { _root.messagedisplay = "Defeat! Press SHIFT to restart."; if (citydamage >= maxcitydamage) { if (Key.isDown(16)) { resetgame(); level = 1; win = false; ammo = baseammo; interceptdelay = 0; leveltimer = 0; paused = false; citydamage = 0; missilespeed = basemissilespeed; missilepower = basemissilepower; intercepts = 3; } } } } if (paused == false) { if (Math.floor(Math.random() * (200 - (level * 10))) == 1) { createmissile(Math.random() * 512, -5, (Math.random() * 256) + 128, 384, enemymissilespeed, enemymissilepower, 4737096, 16711680, 1); } if (Math.floor(Math.random() * (300 - (level * 15))) == 1) { createsupermissile(Math.random() * 512, -5, (Math.random() * 256) + 128, (Math.random() * 64) + 128, enemymissilespeed / 2, enemymissilepower / 2, 4477864, 16763904, 1); } if (Math.floor(Math.random() * (400 - (level * 20))) == 1) { createbomber(); } if (Math.floor(Math.random() * 500) == 1) { randpowerup = Math.floor(Math.random() * 6); if (randpowerup == 0) { createshieldpickup(); } if (randpowerup == 1) { createpowerpickup(); } if (randpowerup == 2) { createspeedpickup(); } if (randpowerup == 3) { createinterceptpickup(); } if (randpowerup == 4) { createammopickup(); } if (randpowerup == 5) { createrepairpickup(); } } if (_root.game0.shield0.active == false) { damagetaken = explosioncollide(256, 356, 64, 1); if ((citydamage + damagetaken) < maxcitydamage) { citydamage = citydamage + damagetaken; } else { citydamage = maxcitydamage; } } if (citydamage > (maxcitydamage / 4)) { if (Math.floor(Math.random() * 10) == 3) { creategparticle(288 + (Math.random() * 5), 345 + (Math.random() * 5), (Math.random() * 8) + 8, (Math.random() * 60) + 60, Math.random(), 0.03, -0.03, (Math.random() * 30) + 30, 5197647); } if (Math.floor(Math.random() * 12) == 2) { creategparticle(288 + (Math.random() * 5), 345 + (Math.random() * 5), (Math.random() * 8) + 8, (Math.random() * 60) + 60, Math.random(), 0.03, -0.05, (Math.random() * 30) + 30, 7368816); } if (Math.floor(Math.random() * 12) == 1) { creategparticle(288 + (Math.random() * 5), 345 + (Math.random() * 5), (Math.random() * 8) + 8, Math.random() * 180, Math.random() * 0.5, 0.08, -0.025, (Math.random() * 10) + 10, 16776960); } if (Math.floor(Math.random() * 12) == 0) { creategparticle(288 + (Math.random() * 5), 345 + (Math.random() * 5), (Math.random() * 8) + 8, Math.random() * 180, Math.random() * 0.5, 0.08, -0.025, (Math.random() * 10) + 10, 16750848); } } if (citydamage > (maxcitydamage / 3)) { if (Math.floor(Math.random() * 10) == 3) { creategparticle(240 + (Math.random() * 5), 310 + (Math.random() * 5), (Math.random() * 8) + 8, (Math.random() * 60) + 60, Math.random(), 0.03, -0.03, (Math.random() * 30) + 30, 5197647); } if (Math.floor(Math.random() * 12) == 2) { creategparticle(240 + (Math.random() * 5), 310 + (Math.random() * 5), (Math.random() * 8) + 8, (Math.random() * 60) + 60, Math.random(), 0.03, -0.05, (Math.random() * 30) + 30, 7368816); } if (Math.floor(Math.random() * 12) == 1) { creategparticle(240 + (Math.random() * 5), 310 + (Math.random() * 5), (Math.random() * 8) + 8, Math.random() * 180, Math.random() * 0.5, 0.08, -0.025, (Math.random() * 10) + 10, 16776960); } if (Math.floor(Math.random() * 12) == 0) { creategparticle(240 + (Math.random() * 5), 310 + (Math.random() * 5), (Math.random() * 8) + 8, Math.random() * 180, Math.random() * 0.5, 0.08, -0.025, (Math.random() * 10) + 10, 16750848); } } if (citydamage > (maxcitydamage / 2)) { if (Math.floor(Math.random() * 10) == 3) { creategparticle(252 + (Math.random() * 5), 360 + (Math.random() * 5), (Math.random() * 8) + 8, (Math.random() * 60) + 60, Math.random(), 0.03, -0.03, (Math.random() * 30) + 30, 5197647); } if (Math.floor(Math.random() * 12) == 2) { creategparticle(252 + (Math.random() * 5), 360 + (Math.random() * 5), (Math.random() * 8) + 8, (Math.random() * 60) + 60, Math.random(), 0.03, -0.05, (Math.random() * 30) + 30, 7368816); } if (Math.floor(Math.random() * 12) == 1) { creategparticle(252 + (Math.random() * 5), 360 + (Math.random() * 5), (Math.random() * 8) + 8, Math.random() * 180, Math.random() * 0.5, 0.08, -0.025, (Math.random() * 10) + 10, 16776960); } if (Math.floor(Math.random() * 12) == 0) { creategparticle(252 + (Math.random() * 5), 360 + (Math.random() * 5), (Math.random() * 8) + 8, Math.random() * 180, Math.random() * 0.5, 0.08, -0.025, (Math.random() * 10) + 10, 16750848); } } if (citydamage > (maxcitydamage / 1.5)) { if (Math.floor(Math.random() * 10) == 3) { creategparticle(200 + (Math.random() * 5), 330 + (Math.random() * 5), (Math.random() * 8) + 8, (Math.random() * 60) + 60, Math.random(), 0.03, -0.03, (Math.random() * 30) + 30, 5197647); } if (Math.floor(Math.random() * 12) == 2) { creategparticle(200 + (Math.random() * 5), 330 + (Math.random() * 5), (Math.random() * 8) + 8, (Math.random() * 60) + 60, Math.random(), 0.03, -0.05, (Math.random() * 30) + 30, 7368816); } if (Math.floor(Math.random() * 12) == 1) { creategparticle(200 + (Math.random() * 5), 330 + (Math.random() * 5), (Math.random() * 8) + 8, Math.random() * 180, Math.random() * 0.5, 0.08, -0.025, (Math.random() * 10) + 10, 16776960); } if (Math.floor(Math.random() * 12) == 0) { creategparticle(200 + (Math.random() * 5), 330 + (Math.random() * 5), (Math.random() * 8) + 8, Math.random() * 180, Math.random() * 0.5, 0.08, -0.025, (Math.random() * 10) + 10, 16750848); } } _root.game0.city0._alpha = 50 + (((maxcitydamage - citydamage) / maxcitydamage) * 50); } lastmousex = mousex; lastmousey = mousey; mousex = _root._xmouse; mousey = _root._ymouse; clicking = false; if (paused == false) { h = 0; while (h < explosions) { if (_root.game0["explosion" + h].active == true) { _root.game0["explosion" + h]._rotation = _root.game0["explosion" + h]._rotation + 15; if (_root.game0["explosion" + h].radius < _root.game0["explosion" + h].maxradius) { _root.game0["explosion" + h].radius = _root.game0["explosion" + h].radius + 1; } else { _root.game0["explosion" + h].livetime = _root.game0["explosion" + h].livetime + 1; } if (_root.game0["explosion" + h].livetime > 30) { _root.game0["explosion" + h].active = false; } _root.game0["explosion" + h].clear(); _root.game0["explosion" + h].lineStyle(1, _root.game0["explosion" + h].explosioncolor, ((30 - _root.game0["explosion" + h].livetime) / 30) * 100); _root.game0["explosion" + h].beginFill(_root.game0["explosion" + h].explosioncolor, ((30 - _root.game0["explosion" + h].livetime) / 30) * 100); _root.game0["explosion" + h].moveTo(0, (-_root.game0["explosion" + h].radius) / 2); _root.game0["explosion" + h].curveTo(_root.game0["explosion" + h].radius / 2, (-_root.game0["explosion" + h].radius) / 2, _root.game0["explosion" + h].radius / 2, 0); _root.game0["explosion" + h].curveTo(_root.game0["explosion" + h].radius / 2, _root.game0["explosion" + h].radius / 2, 0, _root.game0["explosion" + h].radius / 2); _root.game0["explosion" + h].curveTo((-_root.game0["explosion" + h].radius) / 2, _root.game0["explosion" + h].radius / 2, (-_root.game0["explosion" + h].radius) / 2, 0); _root.game0["explosion" + h].curveTo((-_root.game0["explosion" + h].radius) / 2, (-_root.game0["explosion" + h].radius) / 2, 0, (-_root.game0["explosion" + h].radius) / 2); _root.game0["explosion" + h].endFill(); } else { _root.game0["explosion" + h]._visible = false; } h = h + 1; } h = 0; while (h < supermissiles) { if (_root.game0["supermissile" + h].active == true) { _root.game0["supermissile" + h]._alpha = 100; if (_root.game0["supermissile" + h].btime < _root.game0["supermissile" + h].livetime) { if (_root.game0["supermissile" + h]._y > 372) { _root.game0["supermissile" + h].btime = _root.game0["supermissile" + h].livetime; _root.game0["supermissile" + h].hasload = false; } if (_root.game0["supermissile" + h].side == 1) { if (explosioncollide(_root.game0["supermissile" + h]._x, _root.game0["supermissile" + h]._y, 1, 0) >= 1) { _root.game0["supermissile" + h].btime = _root.game0["supermissile" + h].livetime; _root.game0["supermissile" + h].hasload = false; } if (_root.game0.shield0.active == false) { if (finddistance(_root.game0["supermissile" + h]._x, _root.game0["supermissile" + h]._y, 256, 356) < 64) { _root.game0["supermissile" + h].btime = _root.game0["supermissile" + h].livetime; _root.game0["supermissile" + h].hasload = false; } } else if (finddistance(_root.game0["supermissile" + h]._x, _root.game0["supermissile" + h]._y, 256, 356) < 84) { _root.game0["supermissile" + h].btime = _root.game0["supermissile" + h].livetime; _root.game0["supermissile" + h].hasload = false; } } else if (explosioncollide(_root.game0["supermissile" + h]._x, _root.game0["supermissile" + h]._y, 1, 1) >= 1) { _root.game0["supermissile" + h].btime = _root.game0["supermissile" + h].livetime; _root.game0["supermissile" + h].hasload = false; } } if (_root.game0["supermissile" + h].btime < _root.game0["supermissile" + h].livetime) { _root.game0["supermissile" + h]._x = _root.game0["supermissile" + h]._x + _root.game0["supermissile" + h].hs; _root.game0["supermissile" + h]._y = _root.game0["supermissile" + h]._y + _root.game0["supermissile" + h].vs; } else { if (_root.game0["supermissile" + h].btime == _root.game0["supermissile" + h].livetime) { if (_root.game0["supermissile" + h].hasload == false) { createexplosion(_root.game0["supermissile" + h]._x, _root.game0["supermissile" + h]._y, _root.game0["supermissile" + h].power, _root.game0["supermissile" + h].explosioncolor, _root.game0["supermissile" + h].side); } else { g = 0; while (g < 3) { createmissile(_root.game0["supermissile" + h]._x, _root.game0["supermissile" + h]._y, (Math.random() * 256) + 128, 384, enemymissilespeed, enemymissilepower, _root.game0["supermissile" + h].supermissilecolor, _root.game0["supermissile" + h].explosioncolor, _root.game0["supermissile" + h].side); g = g + 1; } } } if (_root.game0["supermissile" + h].btime < (_root.game0["supermissile" + h].livetime + 30)) { _root.game0["supermissile" + h]._alpha = (((_root.game0["supermissile" + h].livetime + 30) - _root.game0["supermissile" + h].btime) / 30) * 100; } else { _root.game0["supermissile" + h]._visible = false; _root.game0["supermissile" + h].active = false; } } _root.game0["supermissile" + h].btime = _root.game0["supermissile" + h].btime + 1; _root.game0["supermissile" + h].clear(); _root.game0["supermissile" + h].lineStyle(2.5, _root.game0["supermissile" + h].supermissilecolor, 100); _root.game0["supermissile" + h].lineTo(_root.game0["supermissile" + h].startx - _root.game0["supermissile" + h]._x, _root.game0["supermissile" + h].starty - _root.game0["supermissile" + h]._y); } else { _root.game0["supermissile" + h]._visible = false; } h = h + 1; } h = 0; while (h < missiles) { if (_root.game0["missile" + h].active == true) { _root.game0["missile" + h]._alpha = 100; if (_root.game0["missile" + h].btime < _root.game0["missile" + h].livetime) { if (_root.game0["missile" + h]._y > 372) { _root.game0["missile" + h].btime = _root.game0["missile" + h].livetime; } if (_root.game0["missile" + h].side == 1) { if (explosioncollide(_root.game0["missile" + h]._x, _root.game0["missile" + h]._y, 1, 0) >= 1) { _root.game0["missile" + h].btime = _root.game0["missile" + h].livetime; } if (_root.game0.shield0.active == false) { if (finddistance(_root.game0["missile" + h]._x, _root.game0["missile" + h]._y, 256, 356) < 64) { _root.game0["missile" + h].btime = _root.game0["missile" + h].livetime; } } else if (finddistance(_root.game0["missile" + h]._x, _root.game0["missile" + h]._y, 256, 356) < 84) { _root.game0["missile" + h].btime = _root.game0["missile" + h].livetime; } } else if (explosioncollide(_root.game0["missile" + h]._x, _root.game0["missile" + h]._y, 1, 1) >= 1) { _root.game0["missile" + h].btime = _root.game0["missile" + h].livetime; } } if (_root.game0["missile" + h].btime < _root.game0["missile" + h].livetime) { _root.game0["missile" + h]._x = _root.game0["missile" + h]._x + _root.game0["missile" + h].hs; _root.game0["missile" + h]._y = _root.game0["missile" + h]._y + _root.game0["missile" + h].vs; } else { if (_root.game0["missile" + h].btime == _root.game0["missile" + h].livetime) { if (_root.game0["missile" + h].side == 0) { _root.explode1.start(0, 1); } if (_root.game0["missile" + h].side == 1) { _root.explode2.start(0, 1); } createexplosion(_root.game0["missile" + h]._x, _root.game0["missile" + h]._y, _root.game0["missile" + h].power, _root.game0["missile" + h].explosioncolor, _root.game0["missile" + h].side); } if (_root.game0["missile" + h].btime < (_root.game0["missile" + h].livetime + 30)) { _root.game0["missile" + h]._alpha = (((_root.game0["missile" + h].livetime + 30) - _root.game0["missile" + h].btime) / 30) * 100; } else { _root.game0["missile" + h]._visible = false; _root.game0["missile" + h].active = false; } } _root.game0["missile" + h].btime = _root.game0["missile" + h].btime + 1; _root.game0["missile" + h].clear(); _root.game0["missile" + h].lineStyle(2.5, _root.game0["missile" + h].missilecolor, 100); _root.game0["missile" + h].lineTo(_root.game0["missile" + h].startx - _root.game0["missile" + h]._x, _root.game0["missile" + h].starty - _root.game0["missile" + h]._y); } else { _root.game0["missile" + h]._visible = false; } h = h + 1; } h = 0; while (h < gparticles) { if (_root.game0["gparticle" + h].active == true) { _root.game0["gparticle" + h].vs = _root.game0["gparticle" + h].vs + _root.game0["gparticle" + h].gravity; _root.game0["gparticle" + h].vs = newspeed(_root.game0["gparticle" + h].vs, Math.abs(_root.game0["gparticle" + h].vs * _root.game0["gparticle" + h].airfriction)); _root.game0["gparticle" + h].hs = newspeed(_root.game0["gparticle" + h].hs, Math.abs(_root.game0["gparticle" + h].hs * _root.game0["gparticle" + h].airfriction)); _root.game0["gparticle" + h]._x = _root.game0["gparticle" + h]._x + _root.game0["gparticle" + h].hs; _root.game0["gparticle" + h]._y = _root.game0["gparticle" + h]._y + _root.game0["gparticle" + h].vs; _root.game0["gparticle" + h]._rotation = _root.game0["gparticle" + h]._rotation + 10; _root.game0["gparticle" + h].gparticletime = _root.game0["gparticle" + h].gparticletime - 1; if (_root.game0["gparticle" + h].gparticletime <= 0) { _root.game0["gparticle" + h].active = false; } _root.game0["gparticle" + h].clear(); _root.game0["gparticle" + h].lineStyle(1, _root.game0["gparticle" + h].gparticlecolor, (_root.game0["gparticle" + h].gparticletime / _root.game0["gparticle" + h].gparticlestarttime) * 100); _root.game0["gparticle" + h].beginFill(_root.game0["gparticle" + h].gparticlecolor, (_root.game0["gparticle" + h].gparticletime / _root.game0["gparticle" + h].gparticlestarttime) * 100); _root.game0["gparticle" + h].moveTo(0, (-_root.game0["gparticle" + h].radius) / 2); _root.game0["gparticle" + h].curveTo(_root.game0["gparticle" + h].radius / 2, (-_root.game0["gparticle" + h].radius) / 2, _root.game0["gparticle" + h].radius / 2, 0); _root.game0["gparticle" + h].curveTo(_root.game0["gparticle" + h].radius / 2, _root.game0["gparticle" + h].radius / 2, 0, _root.game0["gparticle" + h].radius / 2); _root.game0["gparticle" + h].curveTo((-_root.game0["gparticle" + h].radius) / 2, _root.game0["gparticle" + h].radius / 2, (-_root.game0["gparticle" + h].radius) / 2, 0); _root.game0["gparticle" + h].curveTo((-_root.game0["gparticle" + h].radius) / 2, (-_root.game0["gparticle" + h].radius) / 2, 0, (-_root.game0["gparticle" + h].radius) / 2); _root.game0["gparticle" + h].endFill(); } else { _root.game0["gparticle" + h]._visible = false; } h = h + 1; } } } }; mousedetector = new Object(); mousedetector.onMouseDown = function () { mousedown = true; clicking = true; }; mousedetector.onMouseUp = function () { mousedown = false; }; Mouse.addListener(mousedetector);
Instance of Symbol 96 MovieClip "shield0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { if (this.livetime < _root.game0.shieldlivetime) { this.livetime = this.livetime + 1; this._alpha = 50; if (this.livetime < 50) { this._alpha = this.livetime; } if (this.livetime > (_root.game0.shieldlivetime - 50)) { this._alpha = _root.game0.shieldlivetime - this.livetime; } } else { this.active = false; } } else { this._visible = false; } } }
Instance of Symbol 98 MovieClip "bomber0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._x = this._x - _root.game0.bomberspeed; if (this._x < -30) { this.active = false; } if ((this._x < this.dropx) && (this.hasload == true)) { this.hasload = false; _root.game0.createbomb(this._x, this._y); _root.whistle.start(0, 1); } if (_root.game0.explosioncollide(this._x, this._y, 8, 0) > 0) { this.active = false; _root.game0.createexplosion(this._x, this._y, 24, 16763904, 3); } } else { this._visible = false; } } }
Instance of Symbol 100 MovieClip "bomb0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._y = this._y + _root.game0.bombspeed; if (this._y > 372) { _root.bombexplode.start(0, 1); this.active = false; _root.game0.createexplosion(this._x, this._y, _root.game0.bombpower, 16737792, 1); } if (_root.game0.shield0.active == false) { if (_root.game0.finddistance(this._x, this._y, 256, 356) < 64) { _root.bombexplode.start(0, 1); this.active = false; _root.game0.createexplosion(this._x, this._y, _root.game0.bombpower, 16737792, 1); } } else if (_root.game0.finddistance(this._x, this._y, 256, 356) < 84) { _root.bombexplode.start(0, 1); this.active = false; _root.game0.createexplosion(this._x, this._y, _root.game0.bombpower, 16737792, 1); } if (_root.game0.explosioncollide(this._x, this._y, 4, 0) > 0) { _root.bombexplode.start(0, 1); this.active = false; _root.game0.createexplosion(this._x, this._y, _root.game0.bombpower, 16737792, 1); } } else { this._visible = false; } } }
Instance of Symbol 102 MovieClip "fighter0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._x = this._x + _root.game0.fighterspeed; if (this._x > 540) { this.active = false; } if (this.shootdelay == 0) { lowestdistance = 5000; lowestnum = -5; type = -5; d = 0; while (d < _root.game0.missiles) { if ((((_root.game0["missile" + d].active == true) && (_root.game0["missile" + d]._y > this._y)) && (_root.game0["missile" + d]._x > this._x)) && (_root.game0["missile" + d].side == 1)) { currentdistance = _root.game0.finddistance(this._x, this._y, _root.game0["missile" + d]._x, _root.game0["missile" + d]._y); if (currentdistance < lowestdistance) { type = 0; lowestnum = d; lowestdistance = currentdistance; } } d = d + 1; } d = 0; while (d < _root.game0.supermissiles) { if ((((_root.game0["supermissile" + d].active == true) && (_root.game0["supermissile" + d]._y > this._y)) && (_root.game0["supermissile" + d]._x > this._x)) && (_root.game0["supermissile" + d].side == 1)) { currentdistance = _root.game0.finddistance(this._x, this._y, _root.game0["supermissile" + d]._x, _root.game0["supermissile" + d]._y); if (currentdistance < lowestdistance) { type = 1; lowestnum = d; lowestdistance = currentdistance; } } d = d + 1; } d = 0; while (d < _root.game0.bombers) { if (((_root.game0["bomber" + d].active == true) && (_root.game0["bomber" + d]._y > this._y)) && (_root.game0["bomber" + d]._x > this._x)) { currentdistance = _root.game0.finddistance(this._x, this._y, _root.game0["bomber" + d]._x, _root.game0["bomber" + d]._y); if (currentdistance < lowestdistance) { type = 2; lowestnum = d; lowestdistance = currentdistance; } } d = d + 1; } if (lowestnum >= 0) { this.shootdelay = _root.game0.fightershootdelay; if (type == 0) { _root.game0.createmissile(this._x, this._y, (_root.game0["missile" + lowestnum]._x + (Math.random() * 12)) - 6, (_root.game0["missile" + lowestnum]._y + (Math.random() * 12)) + 24, _root.game0.fightermissilespeed, _root.game0.fightermissilepower, 13750737, 16777113, 0); } if (type == 1) { _root.game0.createmissile(this._x, this._y, (_root.game0["supermissile" + lowestnum]._x + (Math.random() * 12)) - 6, (_root.game0["supermissile" + lowestnum]._y + (Math.random() * 12)) + 12, _root.game0.fightermissilespeed, _root.game0.fightermissilepower, 13750737, 16777113, 0); } if (type == 2) { _root.game0.createmissile(this._x, this._y, (_root.game0["bomber" + lowestnum]._x + (Math.random() * 12)) - 16, (_root.game0["bomber" + lowestnum]._y + (Math.random() * 12)) - 6, _root.game0.fightermissilespeed, _root.game0.fightermissilepower, 13750737, 16777113, 0); } } } else { this.shootdelay = this.shootdelay - 1; } } else { this._visible = false; } } }
Instance of Symbol 104 MovieClip "shieldpickup0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._y = this._y + _root.game0.powerupspeed; if (this._y > 400) { this.active = false; } if (_root.game0.explosioncollide(this._x, this._y, 12, 0) > 0) { _root.soundpop.start(0, 1); this.active = false; if (_root.game0.shield0.active == false) { _root.game0.shield0.active = true; _root.game0.shield0._visible = true; _root.game0.shield0.livetime = 0; } } } else { this._visible = false; } } }
Instance of Symbol 106 MovieClip "repairpickup0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._y = this._y + _root.game0.powerupspeed; if (this._y > 400) { this.active = false; } if (_root.game0.explosioncollide(this._x, this._y, 12, 0) > 0) { _root.soundpop.start(0, 1); this.active = false; if ((_root.game0.citydamage - _root.game0.pickuprepairincrease) > 0) { _root.game0.citydamage = _root.game0.citydamage - _root.game0.pickuprepairincrease; } else { _root.game0.citydamage = 0; } } } else { this._visible = false; } } }
Instance of Symbol 108 MovieClip "ammopickup0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._y = this._y + _root.game0.powerupspeed; if (this._y > 400) { this.active = false; } if (_root.game0.explosioncollide(this._x, this._y, 12, 0) > 0) { _root.soundpop.start(0, 1); this.active = false; _root.game0.ammo = _root.game0.ammo + _root.game0.pickupammoincrease; } } else { this._visible = false; } } }
Instance of Symbol 110 MovieClip "powerpickup0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._y = this._y + _root.game0.powerupspeed; if (this._y > 400) { this.active = false; } if (_root.game0.explosioncollide(this._x, this._y, 12, 0) > 0) { _root.soundpop.start(0, 1); this.active = false; _root.game0.missilepower = _root.game0.missilepower + _root.game0.pickuppowerincrease; } } else { this._visible = false; } } }
Instance of Symbol 112 MovieClip "speedpickup0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._y = this._y + _root.game0.powerupspeed; if (this._y > 400) { this.active = false; } if (_root.game0.explosioncollide(this._x, this._y, 12, 0) > 0) { _root.soundpop.start(0, 1); this.active = false; _root.game0.missilespeed = _root.game0.missilespeed + _root.game0.pickupspeedincrease; } } else { this._visible = false; } } }
Instance of Symbol 114 MovieClip "interceptpickup0" in Symbol 115 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.game0.paused == false) { if (this.active == true) { this._y = this._y + _root.game0.powerupspeed; if (this._y > 400) { this.active = false; } if (_root.game0.explosioncollide(this._x, this._y, 12, 0) > 0) { _root.soundpop.start(0, 1); this.active = false; _root.game0.intercepts = _root.game0.intercepts + 1; } } else { this._visible = false; } } }

Library Items

Symbol 1 Sound [whistlesound]
Symbol 2 Sound [sirensound]
Symbol 3 Sound [popsound]
Symbol 4 Sound [explodesound2]
Symbol 5 Sound [explodesound1]
Symbol 6 Sound [bombsound]
Symbol 7 GraphicUsed by:22
Symbol 8 GraphicUsed by:12
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:12
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:8 10 11Used by:22
Symbol 13 GraphicUsed by:22
Symbol 14 ShapeTweeningUsed by:22
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:15Used by:22
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:22
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:22
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:7 12 13 14 16 18 20 21Used by:Timeline
Symbol 23 GraphicUsed by:67
Symbol 24 GraphicUsed by:67
Symbol 25 GraphicUsed by:67
Symbol 26 GraphicUsed by:67
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:67
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:67
Symbol 31 GraphicUsed by:67
Symbol 32 GraphicUsed by:67
Symbol 33 GraphicUsed by:67
Symbol 34 GraphicUsed by:67
Symbol 35 GraphicUsed by:67
Symbol 36 GraphicUsed by:67
Symbol 37 GraphicUsed by:67
Symbol 38 GraphicUsed by:67
Symbol 39 GraphicUsed by:67
Symbol 40 GraphicUsed by:67
Symbol 41 SoundUsed by:67
Symbol 42 GraphicUsed by:67
Symbol 43 GraphicUsed by:67
Symbol 44 GraphicUsed by:67
Symbol 45 GraphicUsed by:67
Symbol 46 ShapeTweeningUsed by:67
Symbol 47 GraphicUsed by:67
Symbol 48 GraphicUsed by:67
Symbol 49 GraphicUsed by:67
Symbol 50 GraphicUsed by:67
Symbol 51 GraphicUsed by:67
Symbol 52 GraphicUsed by:67
Symbol 53 GraphicUsed by:67
Symbol 54 GraphicUsed by:67
Symbol 55 ShapeTweeningUsed by:67
Symbol 56 ShapeTweeningUsed by:67
Symbol 57 GraphicUsed by:61
Symbol 58 FontUsed by:59 60
Symbol 59 TextUses:58Used by:61
Symbol 60 TextUses:58Used by:61
Symbol 61 MovieClipUses:57 59 60Used by:67
Symbol 62 ShapeTweeningUsed by:67
Symbol 63 GraphicUsed by:67
Symbol 64 GraphicUsed by:67
Symbol 65 GraphicUsed by:66
Symbol 66 ButtonUses:65Used by:67
Symbol 67 MovieClipUses:23 24 25 26 28 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 61 62 63 64 66Used by:Timeline
Symbol 68 GraphicUsed by:Timeline
Symbol 69 FontUsed by:70
Symbol 70 TextUses:69Used by:115
Symbol 71 FontUsed by:72 73 84 85 86 87 88 89
Symbol 72 TextUses:71Used by:115
Symbol 73 TextUses:71Used by:115
Symbol 74 GraphicUsed by:79 82
Symbol 75 FontUsed by:76 77 78 80 81
Symbol 76 TextUses:75Used by:79
Symbol 77 TextUses:75Used by:79
Symbol 78 TextUses:75Used by:79
Symbol 79 ButtonUses:74 76 77 78Used by:115
Symbol 80 TextUses:75Used by:82
Symbol 81 TextUses:75Used by:82
Symbol 82 ButtonUses:74 80 81Used by:115
Symbol 83 GraphicUsed by:115
Symbol 84 TextUses:71Used by:115
Symbol 85 TextUses:71Used by:115
Symbol 86 TextUses:71Used by:115
Symbol 87 TextUses:71Used by:115
Symbol 88 TextUses:71Used by:115
Symbol 89 TextUses:71Used by:115
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:115
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:94
Symbol 94 MovieClipUses:93Used by:115
Symbol 95 GraphicUsed by:96
Symbol 96 MovieClipUses:95Used by:115
Symbol 97 GraphicUsed by:98
Symbol 98 MovieClipUses:97Used by:115
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClipUses:99Used by:115
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:115
Symbol 103 GraphicUsed by:104
Symbol 104 MovieClipUses:103Used by:115
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClipUses:105Used by:115
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:107Used by:115
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClipUses:109Used by:115
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:111Used by:115
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:113Used by:115
Symbol 115 MovieClipUses:70 72 73 79 82 83 84 85 86 87 88 89 91 94 96 98 100 102 104 106 108 110 112 114Used by:Timeline
Symbol 116 FontUsed by:117 119 120 121
Symbol 117 EditableTextUses:116Used by:Timeline
Symbol 118 MovieClipUsed by:Timeline
Symbol 119 EditableTextUses:116Used by:Timeline
Symbol 120 EditableTextUses:116Used by:Timeline
Symbol 121 EditableTextUses:116Used by:Timeline
Symbol 122 FontUsed by:123
Symbol 123 EditableTextUses:122Used by:Timeline

Instance Names

"bar"Frame 1Symbol 22 MovieClip
"game0"Frame 4Symbol 115 MovieClip
"sound0"Frame 4Symbol 118 MovieClip
"playbutton"Symbol 115 MovieClip Frame 2Symbol 79 Button
"city0"Symbol 115 MovieClip Frame 3Symbol 94 MovieClip
"shield0"Symbol 115 MovieClip Frame 3Symbol 96 MovieClip
"bomber0"Symbol 115 MovieClip Frame 3Symbol 98 MovieClip
"bomb0"Symbol 115 MovieClip Frame 3Symbol 100 MovieClip
"fighter0"Symbol 115 MovieClip Frame 3Symbol 102 MovieClip
"shieldpickup0"Symbol 115 MovieClip Frame 3Symbol 104 MovieClip
"repairpickup0"Symbol 115 MovieClip Frame 3Symbol 106 MovieClip
"ammopickup0"Symbol 115 MovieClip Frame 3Symbol 108 MovieClip
"powerpickup0"Symbol 115 MovieClip Frame 3Symbol 110 MovieClip
"speedpickup0"Symbol 115 MovieClip Frame 3Symbol 112 MovieClip
"interceptpickup0"Symbol 115 MovieClip Frame 3Symbol 114 MovieClip

Special Tags

Protect (24)Timeline Frame 131 bytes "..$1$G.$KRNr.d5e/OiBvXeGgavYj0."
ExportAssets (56)Timeline Frame 1Symbol 1 as "whistlesound"
ExportAssets (56)Timeline Frame 1Symbol 2 as "sirensound"
ExportAssets (56)Timeline Frame 1Symbol 3 as "popsound"
ExportAssets (56)Timeline Frame 1Symbol 4 as "explodesound2"
ExportAssets (56)Timeline Frame 1Symbol 5 as "explodesound1"
ExportAssets (56)Timeline Frame 1Symbol 6 as "bombsound"

Labels

"start"Symbol 115 MovieClip Frame 1
"loadscreen"Symbol 115 MovieClip Frame 2
"game"Symbol 115 MovieClip Frame 3

Dynamic Text Variables

interceptsdisplaySymbol 117 EditableText""
ammodisplaySymbol 119 EditableText""
leveldisplaySymbol 120 EditableText""
healthdisplaySymbol 121 EditableText""
messagedisplaySymbol 123 EditableText""




http://swfchan.com/8/37992/info.shtml
Created: 13/5 -2019 16:33:08 Last modified: 13/5 -2019 16:33:08 Server time: 31/12 -2024 23:05:16