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

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

aadefence.swf

This is the info page for
Flash #79827

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


Text
AA Defence

GAME OVER

START

START

ActionScript [AS1/AS2]

Frame 1
gameOver._visible = false; muptop = new Sound(); muptop.attachSound("Muptop"); muptop.start(0, 999); startbutton.onRelease = function () { this._visible = false; stopAllSounds(); cannon1._visible = true; cannon2._visible = true; cannon3._visible = true; title._visible = false; _root.createEmptyMovieClip("bullets", 10); bCount = 0; _root.createEmptyMovieClip("planes", 11); pCount = 0; _root.createEmptyMovieClip("bombs", 12); bmCount = 0; cannonEnterFrame = function () { var _local4 = _root._xmouse - this._x; var _local3 = _root._ymouse - this._y; this.ang = Math.atan2(_local3, _local4); if (this.ang > 0) { _local3 = 0; this.ang = Math.atan2(_local3, _local4); } this._rotation = this.ang * 57.2957795130823; if (bombs.hitTest(this._x, this._y, true)) { this.alive = false; this._visible = false; numAlive--; if (numAlive == 0) { stopAllSounds(); gameover = new Sound(); gameover.attachSound("imenevero"); gameover.start(0, 999); gameOver._visible = true; startbutton._visible = true; } delete this.onEnterFrame; } }; dofires = function () { if (cannon1.alive) { fireBullet(cannon1); AAShot.start(0, 0); AAShot.setPan(-15); AAShot.setVolume(100); } if (cannon2.alive) { fireBullet(cannon2); AAShot.start(0, 0); AAShot.setVolume(100); } if (cannon3.alive) { fireBullet(cannon3); AAShot.start(0, 0); AAShot.setPan(15); AAShot.setVolume(100); } AAShot.start(0, 0); }; _root.onMouseDown = function () { dofires(); bfire = setInterval(dofires, 170); }; _root.onMouseUp = function () { clearInterval(bfire); }; _root.onRelease = function () { clearInterval(bfire); }; Ruinion = new Sound(); Ruinion.attachSound("Ruinion"); Ruinion.start(0, 999); fireBullet = function (who) { var _local2 = "bullet" + bCount; bullets.attachMovie("bullet", _local2, bCount); bullets[_local2]._x = who._x + (Math.cos(who.ang) * 40); bullets[_local2]._y = who._y + (Math.sin(who.ang) * 40); bullets[_local2]._rotation = who._rotation; bullets[_local2].dx = Math.cos(who.ang) * 11; bullets[_local2].dy = Math.sin(who.ang) * 11; bullets[_local2].gotoAndStop((bCount % 2) + 1); who["muzzleFlash" + ((bCount % 2) + 1)].play(); bullets[_local2].onEnterFrame = function () { this._x = this._x + this.dx; this._y = this._y + this.dy; if (((this._x < -100) || (this._x > 650)) || (this._y < -100)) { this.removeMovieClip(); } }; bCount++; }; launchPlane = function () { var _local2 = "plane" + pCount; planes.attachMovie("plane", _local2, pCount); planes[_local2]._x = 600; planes[_local2]._y = (Math.random() * 200) + 20; planes[_local2].dx = -((Math.random() * 3) + 3); planes[_local2].dy = 0; planes[_local2]._yscale = -100; planes[_local2].gotoAndStop(1); planes[_local2].hit = 0; planes[_local2].onEnterFrame = function () { this._x = this._x + this.dx; this._y = this._y + this.dy; this._rotation = Math.atan2(this.dy, this.dx) * 57.2957795130823; if ((this._x < -100) || (this._y > 500)) { this.removeMovieClip(); } if (bullets.hitTest(this._x, this._y, true) && (this.hit < 5)) { this.hit++; this.gotoAndStop(this.hit + 1); } if (this.hit == 5) { kills++; kills_txt.text = kills; this.hit = 6; } if (this.hit == 6) { this.dy = this.dy + 0.1; } if (((Math.random() * 150) < 1) && (this.hit < 5)) { dropBomb(this._x, this._y + 5, this.dx / 3); } }; pCount++; }; planeLauncher = setInterval(launchPlane, 1000); dropBomb = function (x, y, dx) { var _local2 = "bomb" + bmCount; bombs.attachMovie("bomb", _local2, bmCount); bombs[_local2]._x = x; bombs[_local2]._y = y; bombs[_local2].dx = dx; bombs[_local2].dy = 0; bombs[_local2].gotoAndStop(1); bombs[_local2].onEnterFrame = function () { this._x = this._x + this.dx; this._y = this._y + this.dy; this._rotation = Math.atan2(this.dy, this.dx) * 57.2957795130823; if (this._x < -100) { this.removeMovieClip(); } if (bullets.hitTest(this._x, this._y, true)) { this.removeMovieClip(); } if (this._y > 350) { this.play(); this._rotation = 0; delete this.onEnterFrame; } this.dy = this.dy + 0.05; this.dx = this.dx * 0.99; }; bmCount++; }; cannon1.onEnterFrame = cannonEnterFrame; cannon2.onEnterFrame = cannonEnterFrame; cannon3.onEnterFrame = cannonEnterFrame; cannon1.alive = true; cannon2.alive = true; cannon3.alive = true; numAlive = 3; kills = 0; kills_txt.text = kills; skyline.swapDepths(15); gameOver.swapDepths(20); gameOver._visible = false; AAShot = new Sound(cannon1); AAShot.attachSound("AAShot"); };
Symbol 23 MovieClip [bomb] Frame 16
this.removeMovieClip();
Symbol 30 MovieClip Frame 1
stop();

Library Items

Symbol 1 Sound [Ruinion]
Symbol 2 Sound [Muptop]
Symbol 3 Sound [imenevero]
Symbol 4 Sound [AAShot]
Symbol 5 GraphicUsed by:7
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip [bullet]Uses:5 6
Symbol 8 GraphicUsed by:19
Symbol 9 GraphicUsed by:14
Symbol 10 GraphicUsed by:14
Symbol 11 GraphicUsed by:14
Symbol 12 GraphicUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:9 10 11 12 13Used by:19
Symbol 15 GraphicUsed by:19
Symbol 16 GraphicUsed by:19
Symbol 17 GraphicUsed by:19
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClip [plane]Uses:8 14 15 16 17 18
Symbol 20 GraphicUsed by:23
Symbol 21 ShapeTweeningUsed by:23
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClip [bomb]Uses:20 21 22
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:24Used by:Timeline
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:26Used by:Timeline
Symbol 28 GraphicUsed by:31
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:31
Symbol 31 MovieClipUses:28 30Used by:Timeline
Symbol 32 FontUsed by:33
Symbol 33 TextUses:32Used by:34
Symbol 34 MovieClipUses:33Used by:Timeline
Symbol 35 FontUsed by:36 38
Symbol 36 TextUses:35Used by:37
Symbol 37 MovieClipUses:36Used by:Timeline
Symbol 38 EditableTextUses:35Used by:Timeline
Symbol 39 GraphicUsed by:44
Symbol 40 FontUsed by:41 43
Symbol 41 EditableTextUses:40Used by:44
Symbol 42 GraphicUsed by:44
Symbol 43 EditableTextUses:40Used by:44
Symbol 44 ButtonUses:39 41 42 43Used by:Timeline

Instance Names

"skyline"Frame 1Symbol 27 MovieClip
"cannon1"Frame 1Symbol 31 MovieClip
"cannon2"Frame 1Symbol 31 MovieClip
"cannon3"Frame 1Symbol 31 MovieClip
"title"Frame 1Symbol 34 MovieClip
"gameOver"Frame 1Symbol 37 MovieClip
"kills_txt"Frame 1Symbol 38 EditableText
"startbutton"Frame 1Symbol 44 Button
"muzzleFlash1"Symbol 31 MovieClip Frame 1Symbol 30 MovieClip
"muzzleFlash2"Symbol 31 MovieClip Frame 1Symbol 30 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "Ruinion"
ExportAssets (56)Timeline Frame 1Symbol 2 as "Muptop"
ExportAssets (56)Timeline Frame 1Symbol 3 as "imenevero"
ExportAssets (56)Timeline Frame 1Symbol 4 as "AAShot"
ExportAssets (56)Timeline Frame 1Symbol 7 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 19 as "plane"
ExportAssets (56)Timeline Frame 1Symbol 23 as "bomb"




http://swfchan.com/16/79827/info.shtml
Created: 2/4 -2019 18:57:37 Last modified: 2/4 -2019 18:57:37 Server time: 22/12 -2024 21:05:20