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

swfchan turned sixteen years old yesterday! (5may2024)

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

palisade-guardian.swf

This is the info page for
Flash #127262

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


Text
play game

close ad

M1 Garand

BAR

M1919 Browning

M1 Carbine

M9 Bazooka

M1A1 Thompson

OK

Level Complete!

Buy Weapon

Purchased

Soldier, you failed.

Soldier, you make me proud. Victory is ours.
Developed and Programmed by:
Mark Loika
Fantastic artwork/visual effects:
Vortix Games Studio
Music:
Rolling Thunder - SoundRangers
Sounds:
37236 Shades Gun Pistol One Shot - Freesound.org
17823 pushtobreak_Earth4 - Freesound.org
various sounds purchased in sound packs
Thanks for playing!
Feel free to leave comments if you want to
influence what will be in Palisade Guardian 2!

main menu

The Wall was destroyed. The enemy has
invaded the house and captured
the top secret documents.
You fail.
And you call yourself a Soldier...

developed by mark loika and vortix games studio

v1.00

Wall: 1000

Developed and Programmed by:
Mark Loika
Fantastic artwork/visual effects:
Vortix Games Studio
Music:
Rolling Thunder - SoundRangers
Sounds:
37236 Shades Gun Pistol One Shot - Freesound.org
17823 pushtobreak_Earth4 - Freesound.org
various sounds purchased in sound packs
Thanks for playing!
Feel free to leave comments if you want to
influence what will be in Palisade Guardian 2!

ActionScript [AS3]

Section 1
//AdLoader (CPMStar.AdLoader) package CPMStar { import flash.events.*; import flash.display.*; import flash.net.*; import flash.system.*; public class AdLoader extends Sprite { private var cpmstarLoader:Loader; private var contentspotid:String; public function AdLoader(_arg1:String){ this.contentspotid = _arg1; addEventListener(Event.ADDED, addedHandler); } private function dispatchHandler(_arg1:Event):void{ dispatchEvent(_arg1); } private function addedHandler(_arg1:Event):void{ removeEventListener(Event.ADDED, addedHandler); Security.allowDomain("server.cpmstar.com"); var _local2 = "http://server.cpmstar.com/adviewas3.swf"; var _local3:DisplayObjectContainer = parent; cpmstarLoader = new Loader(); cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler); cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler); cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid))); addChild(cpmstarLoader); } } }//package CPMStar
Section 2
//ag_intro_mc_7 (defense_CPMStar_fla.ag_intro_mc_7) package defense_CPMStar_fla { import flash.display.*; public dynamic class ag_intro_mc_7 extends MovieClip { public function ag_intro_mc_7(){ addFrameScript(0, frame1, 217, frame218); } function frame218(){ stop(); } function frame1(){ gotoAndPlay(2); } } }//package defense_CPMStar_fla
Section 3
//bazookaShotInner_23 (defense_CPMStar_fla.bazookaShotInner_23) package defense_CPMStar_fla { import flash.display.*; public dynamic class bazookaShotInner_23 extends MovieClip { public function bazookaShotInner_23(){ addFrameScript(20, frame21); } function frame21(){ stop(); this.parent.removeChild(this); } } }//package defense_CPMStar_fla
Section 4
//explosion_33 (defense_CPMStar_fla.explosion_33) package defense_CPMStar_fla { import flash.display.*; public dynamic class explosion_33 extends MovieClip { public function explosion_33(){ addFrameScript(20, frame21); } function frame21(){ stop(); } } }//package defense_CPMStar_fla
Section 5
//howitzerBody_32 (defense_CPMStar_fla.howitzerBody_32) package defense_CPMStar_fla { import flash.display.*; public dynamic class howitzerBody_32 extends MovieClip { public function howitzerBody_32(){ addFrameScript(30, frame31, 40, frame41, 53, frame54); } function frame41(){ stop(); } function frame31(){ gotoAndPlay(1); } function frame54(){ stop(); } } }//package defense_CPMStar_fla
Section 6
//jeepBodyInner_44 (defense_CPMStar_fla.jeepBodyInner_44) package defense_CPMStar_fla { import flash.display.*; public dynamic class jeepBodyInner_44 extends MovieClip { public function jeepBodyInner_44(){ addFrameScript(12, frame13, 16, frame17, 33, frame34, 69, frame70); } function frame17(){ gotoAndPlay(1); } function frame70(){ gotoAndPlay(50); } function frame34(){ stop(); } function frame13(){ gotoAndPlay(1); } } }//package defense_CPMStar_fla
Section 7
//MainTimeline (defense_CPMStar_fla.MainTimeline) package defense_CPMStar_fla { import gs.*; import flash.events.*; import flash.display.*; import flash.geom.*; import flash.filters.*; import flash.media.*; import flash.text.*; import gs.easing.*; import CPMStar.*; import flash.utils.*; import flash.errors.*; import flash.net.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var carbineAmmo:int; public var garandChannel:SoundChannel; public var aF:Font; public var menuMusic:SoundSkin; public var gameOverBox:MovieClip; public var channelSwitch:int; public var pcent:Number; public var totalShotsFired:int; public var currentTime:int; public var restartButton:MenuButton; public var maxEnemies:int; public var ad:DisplayObject; public var fireTime:int; public var bullet_bar_mask:MovieClip; public var thompsonPrice:int; public var buildingHit:MovieClip; public var enemySpawnTime:int; public var bd:BitmapData; public var garandPurchased:Boolean; public var shotCount:int; public var menuFont:Font; public var overlay:MovieClip; public var maxAmmo:int; public var ammoChannel:SoundChannel; public var carbinePrice:int; public var deadArray:Array; public var a:ActionFeed; public var b:Bitmap; public var currentGunReloading:Boolean; public var moreGames:MenuButton; public var maxTank; public var thompsonPurchased:Boolean; public var bulletArray:Array; public var bazookaAmmo:int; public var garandReloading:Boolean; public var thompsonAmmo:int; public var currentThompsonAmmo:int; public var garandPrice:int; public var groundHit:MovieClip; public var thompsonReloading:Boolean; public var maxMachineGunner; public var aimMode:String; public var credits:MenuButton; public var CPMStarContentSpotID:String; public var adBox:MovieClip; public var logo9899:MovieClip; public var barPurchased:Boolean; public var bazookaPurchased:Boolean; public var solderName:String; public var menuFontIntro:Font; public var sFader:MovieClip; public var currentCarbineAmmo:int; public var maxJeep; public var wallHealth:int; public var ammo:int; public var barReloading:Boolean; public var reloadingGun:Boolean; public var ws:WeaponSwitch; public var bazookaReloading:Boolean; public var headshot:Boolean; public var totMoney:Number; public var maxHowitzer; public var xd:Number; public var ammoIndicator:AmmoBar; public var numHowitzer; public var loseCheck:Boolean; public var garandOutOfAmmo:Sound; public var reloadSound:Sound; public var firePoint:Point; public var barPrice:int; public var warSound:SoundSkin; public var yd:Number; public var currentBazookaAmmo:int; public var maxRifleman; public var feedFont:Font; public var soldierName:String; public var mgReloading:Boolean; public var numRifleman; public var gotoMainMenu:MovieClip; public var bkg:Background; public var gun:Gun; public var playGame:MenuButton; public var soundCount:int; public var closeButton:MovieClip; public var gg1:Sound; public var gg2:Sound; public var gg3:Sound; public var ammoClick:Sound; public var bullet_bar:MovieClip; public var shooting:Boolean; public var cursor:Sight; public var winScreen:WinScreen; public var garandAmmo:int; public var adClosed; public var fader:FadeOverlay; public var totalShotsHit:int; public var barAmmo:int; public var enterName:EnterName; public var level:int; public var carbinePurchased:Boolean; public var numTank; public var gamingNews:MenuButton; public var logo:MovieClip; public var playGame2:MenuButton; public var enemyArray:Array; public var carbineReloading:Boolean; public var browningPrice:int; public var radAngle:Number; public var soundChannel3:SoundChannel; public var numEnemies; public var soundChannel1:SoundChannel; public var soundChannel2:SoundChannel; public var currentGarandAmmo:int; public var currentBarAmmo:int; public var numMachineGunner; public var wallHealthLabel:TextField; public var browningAmmo:int; public var numJeep; public var loseScreen:LoseScreen; public var logo2:MovieClip; public var logo5:MovieClip; public var statsScreen:MovieClip; public var overStatus:String; public var game:MasterGame; public var currentBrowningAmmo:int; public var playGame989:MovieClip; public var browningPurchased:Boolean; public var bazookaPrice:int; public var numHeadshots:int; public function MainTimeline(){ addFrameScript(0, frame1, 2, frame3, 4, frame5, 9, frame10, 14, frame15, 23, frame24); } public function createTank():void{ var _local2:*; gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); var _local1:Tank = new Tank(new tankBody(), this, new Tankwav(), new tankExplode()); _local1.x = ((0 - (Math.random() * 50)) - 100); _local1.y = (270 + ((Math.random() - 0.5) * 140)); numTank++; currentTime = 0; enemyArray.push(_local1); enemyArray.sortOn("y", Array.NUMERIC); addChildAt(_local1, (numChildren - 4)); for (_local2 in enemyArray) { enemyArray[_local2].parent.setChildIndex(enemyArray[_local2], (numChildren - 4)); }; gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); } public function loader(_arg1:ProgressEvent):void{ pcent = (_arg1.bytesLoaded / _arg1.bytesTotal); trace(pcent); bullet_bar_mask.x = (bullet_bar.x + (pcent * bullet_bar.width)); if (pcent == 1){ bullet_bar.visible = false; bullet_bar_mask.visible = false; playGame989.buttonMode = true; playGame989.visible = true; playGame989.addEventListener(MouseEvent.CLICK, onPlayGameIntro7); }; } public function gotoArmor2(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://armorgames.com/"); navigateToURL(_local2, "_blank"); } public function stopMenuMusic():void{ menuMusic.stop(); } public function fire():void{ var _local1:Boolean; var _local2:Boolean; var _local3:*; var _local4:String; var _local5:Boolean; var _local6:MovieClip; var _local7:int; var _local8:int; var _local9:*; var _local10:int; var _local11:MovieClip; var _local12:MovieClip; var _local13:MovieClip; var _local14:MovieClip; var _local15:MovieClip; var _local16:MovieClip; var _local17:MovieClip; currentGunReloading = false; if (gun.current_weapon == "thompson"){ if (thompsonReloading == true){ currentGunReloading = true; }; } else { if (gun.current_weapon == "carbine"){ if (carbineReloading == true){ currentGunReloading = true; }; } else { if (gun.current_weapon == "garand"){ if (garandReloading == true){ currentGunReloading = true; }; } else { if (gun.current_weapon == "bar"){ if (barReloading == true){ currentGunReloading = true; }; } else { if (gun.current_weapon == "mg"){ if (mgReloading == true){ currentGunReloading = true; }; } else { if (gun.current_weapon == "bazooka"){ if (bazookaReloading == true){ currentGunReloading = true; }; }; }; }; }; }; }; if (currentGunReloading == false){ if (gun.visible == true){ if (gun.changingWeapon == false){ totalShotsFired++; _local1 = false; if (gun.current_weapon == "thompson"){ if (currentThompsonAmmo > 0){ _local1 = true; cursor.firing = true; shooting = true; }; } else { if (gun.current_weapon == "carbine"){ if (currentCarbineAmmo > 0){ _local1 = true; cursor.firing = false; shooting = false; }; } else { if (gun.current_weapon == "garand"){ if (currentGarandAmmo > 0){ _local1 = true; cursor.firing = false; shooting = false; }; } else { if (gun.current_weapon == "bar"){ if (currentBarAmmo > 0){ _local1 = true; cursor.firing = true; shooting = true; }; } else { if (gun.current_weapon == "mg"){ if (currentBrowningAmmo > 0){ _local1 = true; cursor.firing = true; shooting = true; }; } else { if (gun.current_weapon == "bazooka"){ if (currentBazookaAmmo > 0){ _local1 = true; cursor.firing = false; shooting = false; }; }; }; }; }; }; }; if (_local1 == true){ if (channelSwitch == 0){ soundChannel1 = gg1.play(); } else { if (channelSwitch == 1){ soundChannel2 = gg2.play(); } else { if (channelSwitch == 2){ soundChannel3 = gg3.play(); }; }; }; if (channelSwitch == 0){ channelSwitch = 1; } else { if (channelSwitch == 1){ channelSwitch = 2; } else { if (channelSwitch == 2){ channelSwitch = 0; }; }; }; firePoint.x = (stage.mouseX + (((Math.random() - 0.5) * cursor.distance) * 2)); firePoint.y = (stage.mouseY + (((Math.random() - 0.5) * cursor.distance) * 2)); gun.recoil(); if (gun.current_weapon == "thompson"){ currentThompsonAmmo--; ammoIndicator.Update(currentThompsonAmmo); } else { if (gun.current_weapon == "carbine"){ currentCarbineAmmo--; ammoIndicator.Update(currentCarbineAmmo); } else { if (gun.current_weapon == "garand"){ currentGarandAmmo--; ammoIndicator.Update(currentGarandAmmo); if (currentGarandAmmo == 0){ garandChannel = garandOutOfAmmo.play(); }; } else { if (gun.current_weapon == "bar"){ currentBarAmmo--; ammoIndicator.Update(currentBarAmmo); } else { if (gun.current_weapon == "mg"){ currentBrowningAmmo--; ammoIndicator.Update(currentBrowningAmmo); } else { if (gun.current_weapon == "bazooka"){ currentBazookaAmmo--; ammoIndicator.Update(currentBazookaAmmo); }; }; }; }; }; }; if (aimMode == "hip"){ cursor.endDistance = (cursor.endDistance + 8); } else { if (aimMode == "sight"){ cursor.endDistance = (cursor.endDistance + 2); }; }; _local2 = false; _local3 = 1; headshot = false; if (gun.current_weapon == "bazooka"){ _local5 = false; if (groundHit.hitTestPoint(firePoint.x, firePoint.y, true)){ _local5 = true; } else { if (buildingHit.hitTestPoint(firePoint.x, firePoint.y, true)){ _local5 = true; }; }; if (_local5 == true){ _local6 = new bazookaShot(); _local6.x = firePoint.x; _local6.y = firePoint.y; addChildAt(_local6, (numChildren - 3)); shake(); _local7 = 0; while (_local7 < enemyArray.length) { _local8 = (((firePoint.x - enemyArray[_local7].x) * (firePoint.x - enemyArray[_local7].x)) + (((firePoint.y - enemyArray[_local7].y) + (enemyArray[_local7].height / 3)) * ((firePoint.y - enemyArray[_local7].y) + (enemyArray[_local7].height / 3)))); if (_local8 < 1700){ _local2 = true; enemyArray[_local7].takeDamage(10000); if (enemyArray[_local7].health < 1){ a.addKill(soldierName, new wIcon_Bazooka(), enemyArray[_local7].enemyType); enemyArray[_local7].kill(); enemyArray[_local7].parent.setChildIndex(enemyArray[_local7], (enemyArray[0].parent.getChildIndex(enemyArray[0]) - 1)); enemyArray.splice(_local7, 1); numEnemies++; _local7--; }; if (numEnemies == maxEnemies){ endLevel(); }; }; _local7++; }; if (_local2 == true){ totalShotsHit++; }; }; reload(); } else { for (_local9 in enemyArray) { _local10 = ((enemyArray.length - 1) - _local9); if (enemyArray[_local10].enemy.hitTestPoint(firePoint.x, firePoint.y, false)){ totalShotsHit++; if (enemyArray[_local10].enemyType == "Rifleman"){ _local4 = "Rifleman"; if (Math.abs((enemyArray[_local10].y - firePoint.y)) > 23){ if (Math.abs((enemyArray[_local10].y - firePoint.y)) < 29){ if (Math.abs((enemyArray[_local10].x - firePoint.x)) < 4){ enemyArray[_local10].headshot = true; enemyArray[_local10].takeDamage(100); headshot = true; _local3++; }; }; } else { _local11 = new blood_splat(); addChildAt(_local11, (numChildren - 3)); _local11.x = firePoint.x; _local11.y = firePoint.y; enemyArray[_local10].takeDamage((gun.damage / _local3)); _local3++; }; _local2 = true; } else { if (enemyArray[_local10].enemyType == "MachineGunner"){ _local4 = "Machine Gunner"; if (Math.abs((enemyArray[_local10].y - firePoint.y)) > 23){ if (Math.abs((enemyArray[_local10].y - firePoint.y)) < 29){ if (Math.abs((enemyArray[_local10].x - firePoint.x)) < 4){ enemyArray[_local10].headshot = true; enemyArray[_local10].takeDamage(100); headshot = true; _local3++; }; }; } else { _local12 = new blood_splat(); addChildAt(_local12, (numChildren - 3)); _local12.x = firePoint.x; _local12.y = firePoint.y; enemyArray[_local10].takeDamage((gun.damage / _local3)); }; _local2 = true; } else { if (enemyArray[_local10].enemyType == "Tank"){ if (Math.abs((enemyArray[_local10].x - firePoint.x)) < 30){ if ((enemyArray[_local10].y - firePoint.y) > 0){ if ((enemyArray[_local10].y - firePoint.y) < 40){ _local4 = "Tank"; _local13 = new sparks(); addChildAt(_local13, (numChildren - 3)); _local13.x = firePoint.x; _local13.y = firePoint.y; enemyArray[_local10].takeDamage((gun.damageVehicle / _local3)); _local2 = true; _local3++; }; }; }; } else { if (enemyArray[_local10].enemyType == "Jeep"){ if (Math.abs((enemyArray[_local10].x - firePoint.x)) < 30){ if ((enemyArray[_local10].y - firePoint.y) > 0){ if ((enemyArray[_local10].y - firePoint.y) < 40){ _local4 = "Jeep"; _local14 = new sparks(); addChildAt(_local14, (numChildren - 3)); _local14.x = firePoint.x; _local14.y = firePoint.y; enemyArray[_local10].takeDamage((gun.damageVehicle / _local3)); _local3++; _local2 = true; }; }; }; } else { if (enemyArray[_local10].enemyType == "Howitzer"){ if (Math.abs((enemyArray[_local10].x - firePoint.x)) < 25){ if ((enemyArray[_local10].y - firePoint.y) > 0){ if ((enemyArray[_local10].y - firePoint.y) < 35){ _local4 = "Howitzer"; _local15 = new sparks(); addChildAt(_local15, (numChildren - 3)); _local15.x = firePoint.x; _local15.y = firePoint.y; enemyArray[_local10].takeDamage((gun.damageVehicle / _local3)); _local3++; _local2 = true; }; }; }; }; }; }; }; }; if (enemyArray[_local10].health < 1){ enemyArray[_local10].kill(); enemyArray[_local10].parent.setChildIndex(enemyArray[_local10], (enemyArray[0].parent.getChildIndex(enemyArray[0]) - 1)); enemyArray.splice(_local10, 1); numEnemies++; if (headshot == true){ numHeadshots++; a.addKill(soldierName, new headshot_icon(), _local4); } else { if (gun.current_weapon == "thompson"){ a.addKill(soldierName, new wIcon_Thompson(), _local4); } else { if (gun.current_weapon == "carbine"){ a.addKill(soldierName, new wIcon_Carbine(), _local4); } else { if (gun.current_weapon == "garand"){ a.addKill(soldierName, new wIcon_Garand(), _local4); } else { if (gun.current_weapon == "bar"){ a.addKill(soldierName, new wIcon_BAR(), _local4); } else { if (gun.current_weapon == "mg"){ a.addKill(soldierName, new wIcon_Browning(), _local4); }; }; }; }; }; }; }; if (numEnemies == maxEnemies){ endLevel(); }; }; }; }; if (_local2 == false){ gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); if (groundHit.hitTestPoint(firePoint.x, firePoint.y, true)){ _local16 = new ground_hit(); addChildAt(_local16, (numChildren - 4)); _local16.x = firePoint.x; _local16.y = firePoint.y; bulletArray.push(_local16); } else { if (buildingHit.hitTestPoint(firePoint.x, firePoint.y, true)){ _local17 = new sparks2(); addChildAt(_local17, (numChildren - 4)); _local17.x = firePoint.x; _local17.y = firePoint.y; bulletArray.push(_local17); }; }; }; } else { if (reloadingGun == false){ ammoChannel = ammoClick.play(); cursor.firing = false; reload(); }; }; }; }; }; } public function createMachineGunner():void{ var _local2:*; gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); var _local1:MachineGunner = new MachineGunner(new machineGunner(), this, new MachineGunnerwav()); _local1.x = (0 - (Math.random() * 150)); _local1.y = Math.round((270 + ((Math.random() - 0.5) * 140))); numMachineGunner++; currentTime = 0; enemyArray.push(_local1); enemyArray.sortOn("y", Array.NUMERIC); addChildAt(_local1, (numChildren - 4)); for (_local2 in enemyArray) { enemyArray[_local2].parent.setChildIndex(enemyArray[_local2], (numChildren - 4)); }; cursor.parent.setChildIndex(cursor, (numChildren - 1)); gun.parent.setChildIndex(gun, (numChildren - 2)); } public function onPlayGame(_arg1:MouseEvent):void{ playGame.parent.removeChild(playGame); credits.parent.removeChild(credits); if (currentFrame == 5){ fader.fadeIn(); addChild(fader); addChild(enterName); TweenMax.to(enterName, 0.5, {y:((stage.stageHeight / 2) - (enterName.height / 2))}); }; } public function createJeep():void{ var _local2:*; gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); var _local1:Jeep = new Jeep(new jeepBody(), this, new Jeepwav(), new jeepExplode()); _local1.x = ((0 - (Math.random() * 50)) - 100); _local1.y = (270 + ((Math.random() - 0.5) * 140)); numJeep++; currentTime = 0; enemyArray.push(_local1); enemyArray.sortOn("y", Array.NUMERIC); addChildAt(_local1, (numChildren - 4)); for (_local2 in enemyArray) { enemyArray[_local2].parent.setChildIndex(enemyArray[_local2], (numChildren - 4)); }; gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); } function frame10(){ playGame2 = new MenuButton("play game", menuFont, 24); addChild(playGame2); playGame2.addEventListener(MouseEvent.CLICK, onPlayGame2); playGame2.x = (325 - (playGame2.width / 2)); playGame2.y = 400; } public function nextLevel():void{ var _local1:Number; var _local2:Number; var _local3:Number; totalShotsFired = 0; totalShotsHit = 0; numHeadshots = 0; if (level < 35){ a.addAction((("Level " + String((level + 1))) + " Starting")); maxEnemies = (game.levelArray[level].numRifleman + game.levelArray[level].numMachineGunner); maxEnemies = (maxEnemies + ((game.levelArray[level].numTank + game.levelArray[level].numHowitzer) + game.levelArray[level].numJeep)); enemySpawnTime = game.levelArray[level].spawnTime; currentTime = enemySpawnTime; numEnemies = 0; numRifleman = 0; numMachineGunner = 0; numTank = 0; numHowitzer = 0; numJeep = 0; maxMachineGunner = game.levelArray[level].numMachineGunner; maxRifleman = game.levelArray[level].numRifleman; maxTank = game.levelArray[level].numTank; maxHowitzer = game.levelArray[level].numHowitzer; maxJeep = game.levelArray[level].numJeep; if (gun.current_weapon == "mg"){ gun.visible = true; } else { gun.visible = true; cursor.visible = true; aimMode = "hip"; gun.switchAimMode(aimMode); cursor.parent.setChildIndex(cursor, (numChildren - 1)); _local1 = (gun.x - stage.mouseX); _local2 = (gun.y - stage.mouseY); _local3 = Math.atan2(_local2, _local1); gun.rotation = ((((_local3 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; cursor.x = stage.mouseX; cursor.y = stage.mouseY; }; }; } public function onGotoCredits(_arg1:MouseEvent):void{ gotoAndStop(24); } public function setCursor():void{ var _local1:Number; var _local2:Number; var _local3:Number; if (gun.visible == true){ if (aimMode == "hip"){ _local1 = (gun.x - stage.mouseX); _local2 = (gun.y - stage.mouseY); _local3 = Math.atan2(_local2, _local1); gun.rotation = ((((_local3 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; } else { if (aimMode == "sight"){ gun.x = stage.mouseX; if (stage.mouseY > 125){ gun.y = stage.mouseY; } else { gun.y = 125; }; gun.rotation = 0; }; }; cursor.x = stage.mouseX; cursor.y = stage.mouseY; Mouse.hide(); }; } function frame15(){ stage.focus = stage; stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCursor); stage.addEventListener(MouseEvent.MOUSE_DOWN, onFire); stage.addEventListener(MouseEvent.MOUSE_UP, onFireStop); stage.addEventListener(Event.ENTER_FRAME, enterFrame); stage.addEventListener(KeyboardEvent.KEY_DOWN, onAim); stage.addEventListener(KeyboardEvent.KEY_UP, onHip); reloadSound = new reloadMP3(); ammoClick = new noAmmo(); ammoChannel = new SoundChannel(); ws = new WeaponSwitch(new thompson_select(), new carbine_select(), new garand_select(), new bar_select(), new mg_select(), new bazooka_select()); addChild(ws); ws.x = 500; ws.y = 360; bkg = new Background(new gameBackground()); addChildAt(bkg, 3); thompsonPurchased = true; carbinePurchased = false; garandPurchased = false; barPurchased = false; browningPurchased = false; bazookaPurchased = false; currentGunReloading = false; reloadingGun = false; thompsonPrice = 1000; carbinePrice = 700; garandPrice = 1750; barPrice = 2900; browningPrice = 4200; bazookaPrice = 5450; thompsonAmmo = 20; carbineAmmo = 15; garandAmmo = 8; barAmmo = 20; browningAmmo = 160; bazookaAmmo = 1; currentThompsonAmmo = thompsonAmmo; currentCarbineAmmo = carbineAmmo; currentGarandAmmo = garandAmmo; currentBarAmmo = barAmmo; currentBrowningAmmo = browningAmmo; currentBazookaAmmo = bazookaAmmo; garandOutOfAmmo = new garandNoAmmo(); garandChannel = new SoundChannel(); thompsonReloading = false; carbineReloading = false; garandReloading = false; barReloading = false; mgReloading = false; bazookaReloading = false; deadArray = new Array(); totMoney = 0; loseCheck = false; level = 0; feedFont = new MenuFont(); aF = new actionFont(); a = new ActionFeed(aF, stage, (("Level " + String((level + 1))) + " Starting")); addChild(a); a.x = 10; a.y = 30; totalShotsFired = 0; totalShotsHit = 0; numHeadshots = 0; TweenMax.to(overlay, 2, {alpha:0}); TweenMax.delayedCall(2, overlayOut); gun = new Gun(new muzzle_flash_hip(), new muzzle_flash_small(), new Thompson(), new Thompson_hip(), new Carbine(), new Carbine_hip(), new Bar(), new Bar_hip(), new Garand(), new Garand_hip(), new Browning(), new Bazooka(), new Bazooka_hip()); addChild(gun); headshot = false; xd = (gun.x - stage.mouseX); yd = (gun.y - stage.mouseY); radAngle = Math.atan2(yd, xd); gun.rotation = ((((radAngle * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; game = new MasterGame(); maxEnemies = (game.levelArray[level].numRifleman + game.levelArray[level].numMachineGunner); maxEnemies = (maxEnemies + ((game.levelArray[level].numTank + game.levelArray[level].numHowitzer) + game.levelArray[level].numJeep)); enemySpawnTime = game.levelArray[level].spawnTime; currentTime = enemySpawnTime; numEnemies = 0; numRifleman = 0; numMachineGunner = 0; numTank = 0; numHowitzer = 0; numJeep = 0; maxMachineGunner = game.levelArray[level].numMachineGunner; maxRifleman = game.levelArray[level].numRifleman; maxTank = game.levelArray[level].numTank; maxHowitzer = game.levelArray[level].numHowitzer; maxJeep = game.levelArray[level].numJeep; enemyArray = new Array(); shooting = false; shotCount = 1; wallHealth = 1000; maxAmmo = 20; ammo = maxAmmo; fireTime = gun.fireRate; soundCount = 4; aimMode = "hip"; cursor = new Sight(); addChild(cursor); channelSwitch = 0; gg1 = new gunSound(); gg2 = new gunSound(); gg3 = new gunSound(); bulletArray = new Array(); firePoint = new Point(); ammoIndicator = new AmmoBar(maxAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gameOverBox = new youLose(); restartButton = new MenuButton("continue", menuFont, 24); } public function onFireStop(_arg1:MouseEvent):void{ cursor.firing = false; shooting = false; } function frame1(){ MochiBot.track(this, "30102e09"); stop(); CPMStarContentSpotID = "701Q8D7FB5A1"; adClosed = false; ad = new AdLoader(CPMStarContentSpotID); adBox.addChild(ad); closeButton.buttonMode = true; closeButton.addEventListener(MouseEvent.CLICK, onCloseAd); bullet_bar.mask = bullet_bar_mask; playGame989.visible = false; this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loader); menuFontIntro = new MenuFont(); logo2.buttonMode = true; logo9899.buttonMode = true; logo9899.addEventListener(MouseEvent.CLICK, gotoArmor); logo2.addEventListener(MouseEvent.CLICK, gotoArmor); } function frame3(){ stop(); logo.buttonMode = true; this.addEventListener(Event.ENTER_FRAME, checkLogo); logo.addEventListener(MouseEvent.CLICK, gotoArmor2); } public function onGotoArmor(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://armorgames.com/"); navigateToURL(_local2, "_blank"); } public function onGotoMenu(_arg1:MouseEvent):void{ menuMusic.stop(); warSound.stop(); menuMusic = null; warSound = null; gotoAndStop(5); } public function endStats(_arg1:MouseEvent):void{ TweenMax.to(statsScreen, 1, {alpha:0, blurFilter:{blurX:6, blurY:6, quality:2}}); TweenMax.delayedCall(1, nextLevel); TweenMax.to(menuMusic, 1, {volume:0}); TweenMax.to(warSound, 1, {volume:0.7}); } public function onPlayGame2(_arg1:MouseEvent):void{ playGame2.parent.removeChild(playGame2); gotoAndStop(15); TweenMax.to(menuMusic, 1, {volume:0}); TweenMax.to(warSound, 1, {volume:0.7}); } public function moveCursor(_arg1:MouseEvent):void{ var _local2:Number; var _local3:Number; var _local4:Number; if (gun.visible == true){ if (aimMode == "hip"){ _local2 = (gun.x - stage.mouseX); _local3 = (gun.y - stage.mouseY); _local4 = Math.atan2(_local3, _local2); gun.rotation = ((((_local4 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; } else { if (aimMode == "sight"){ gun.x = stage.mouseX; if (stage.mouseY > 125){ gun.y = stage.mouseY; } else { gun.y = 125; }; gun.rotation = 0; }; }; cursor.x = stage.mouseX; cursor.y = stage.mouseY; Mouse.hide(); }; } function frame24(){ stop(); gotoMainMenu.buttonMode = true; gotoMainMenu.addEventListener(MouseEvent.CLICK, onGotoMenu); } public function createHowitzer():void{ var _local2:*; gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); var _local1:Howitzer = new Howitzer(new howitzerBody(), this, new Howitzerwav(), new howitzerExplode()); _local1.x = ((0 - (Math.random() * 50)) - 100); _local1.y = (270 + ((Math.random() - 0.5) * 140)); numHowitzer++; currentTime = 0; enemyArray.push(_local1); enemyArray.sortOn("y", Array.NUMERIC); addChildAt(_local1, (numChildren - 4)); for (_local2 in enemyArray) { enemyArray[_local2].parent.setChildIndex(enemyArray[_local2], (numChildren - 4)); }; gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); } public function onFire(_arg1:MouseEvent):void{ if (gun.current_weapon == "thompson"){ cursor.firing = true; shooting = true; } else { if (gun.current_weapon == "carbine"){ fire(); cursor.carbineShot(); } else { if (gun.current_weapon == "garand"){ fire(); cursor.garandShot(); } else { if (gun.current_weapon == "bar"){ cursor.firing = true; shooting = true; } else { if (gun.current_weapon == "mg"){ cursor.firing = true; shooting = true; } else { if (gun.current_weapon == "bazooka"){ fire(); cursor.bazookaShot(); }; }; }; }; }; }; } public function createRifleman():void{ var _local2:*; gun.parent.setChildIndex(gun, (numChildren - 1)); cursor.parent.setChildIndex(cursor, (numChildren - 1)); var _local1:Rifleman = new Rifleman(new enemyBody(), this, new Riflemanwav()); _local1.x = (0 - (Math.random() * 150)); _local1.y = Math.round((270 + ((Math.random() - 0.5) * 140))); numRifleman++; currentTime = 0; enemyArray.push(_local1); enemyArray.sortOn("y", Array.NUMERIC); addChildAt(_local1, (numChildren - 4)); for (_local2 in enemyArray) { enemyArray[_local2].parent.setChildIndex(enemyArray[_local2], (numChildren - 4)); }; cursor.parent.setChildIndex(cursor, (numChildren - 1)); gun.parent.setChildIndex(gun, (numChildren - 2)); } public function checkLogo(_arg1:Event):void{ if (logo.currentFrame == 218){ gotoAndStop(5); this.removeEventListener(Event.ENTER_FRAME, checkLogo); }; } function frame5(){ stop(); logo5.buttonMode = true; logo5.addEventListener(MouseEvent.CLICK, onGotoArmor); menuFont = new MenuFont(); warSound = new SoundSkin(new battleAmbience(), 10000); warSound.volume = 0; warSound.play(); menuMusic = new SoundSkin(new rollingThunder(), 10000); menuMusic.play(); menuMusic.volume = 0.5; playGame = new MenuButton("play game", menuFont, 24); addChild(playGame); playGame.addEventListener(MouseEvent.CLICK, onPlayGame); playGame.x = 140; playGame.y = 190; credits = new MenuButton("credits", menuFont, 24); addChild(credits); credits.x = 140; credits.y = 225; moreGames = new MenuButton("more games", menuFont, 24); moreGames.x = 140; moreGames.y = 260; addChild(moreGames); gamingNews = new MenuButton("gaming news", menuFont, 24); gamingNews.x = 140; gamingNews.y = 295; addChild(gamingNews); moreGames.addEventListener(MouseEvent.CLICK, onGotoArmor); gamingNews.addEventListener(MouseEvent.CLICK, onGotoArmor); fader = new FadeOverlay(stage.stageWidth, stage.stageHeight); enterName = new EnterName(menuFont, new OkButton(), stage, soldierName); enterName.x = ((stage.stageWidth / 2) - (enterName.width / 2)); enterName.y = (stage.stageHeight + 10); enterName.ok.addEventListener(MouseEvent.CLICK, killFade); credits.addEventListener(MouseEvent.CLICK, onGotoCredits); } public function overlayOut():void{ overlay.visible = false; } public function actualReload(_arg1:String):void{ var _local2:String = _arg1; if (_local2 == "thompson"){ thompsonReloading = false; a.addAction("Thompson Reloaded"); currentThompsonAmmo = thompsonAmmo; if (gun.current_weapon == _local2){ ammoIndicator.Update(currentThompsonAmmo); }; } else { if (_local2 == "carbine"){ carbineReloading = false; a.addAction("Carbine Reloaded"); currentCarbineAmmo = carbineAmmo; if (gun.current_weapon == _local2){ ammoIndicator.Update(currentCarbineAmmo); }; } else { if (_local2 == "garand"){ garandReloading = false; a.addAction("Garand Reloaded"); currentGarandAmmo = garandAmmo; if (gun.current_weapon == _local2){ ammoIndicator.Update(currentGarandAmmo); }; } else { if (_local2 == "bar"){ barReloading = false; a.addAction("BAR Reloaded"); currentBarAmmo = barAmmo; if (gun.current_weapon == _local2){ ammoIndicator.Update(currentBarAmmo); }; } else { if (_local2 == "mg"){ mgReloading = false; a.addAction("Browning Reloaded"); currentBrowningAmmo = browningAmmo; if (gun.current_weapon == _local2){ ammoIndicator.Update(currentBrowningAmmo); }; } else { if (_local2 == "bazooka"){ bazookaReloading = false; a.addAction("Bazooka Reloaded"); currentBazookaAmmo = bazookaAmmo; if (gun.current_weapon == _local2){ ammoIndicator.Update(currentBazookaAmmo); }; }; }; }; }; }; }; } public function onAim(_arg1:KeyboardEvent):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; if (gun.changingWeapon == false){ if (_arg1.keyCode == 40){ ws.weaponUp(); if (gun.current_weapon == ws.weapon){ } else { gun.switchWeapon(ws.weapon); if (ws.weapon == "thompson"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(thompsonAmmo); ammoIndicator.Update(currentThompsonAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new gunSound(); gg2 = new gunSound(); gg3 = new gunSound(); } else { if (ws.weapon == "carbine"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(carbineAmmo); ammoIndicator.Update(currentCarbineAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new carbineSound(); gg2 = new carbineSound(); gg3 = new carbineSound(); } else { if (ws.weapon == "garand"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(garandAmmo); ammoIndicator.Update(currentGarandAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new garandSound(); gg2 = new garandSound(); gg3 = new garandSound(); } else { if (ws.weapon == "bar"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(barAmmo); ammoIndicator.Update(currentBarAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new barSound(); gg2 = new barSound(); gg3 = new barSound(); } else { if (ws.weapon == "mg"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(browningAmmo); ammoIndicator.Update(currentBrowningAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new browningSound(); gg2 = new browningSound(); gg3 = new browningSound(); } else { if (ws.weapon == "bazooka"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(bazookaAmmo); ammoIndicator.Update(currentBazookaAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new Bazookawav(); gg2 = new Bazookawav(); gg3 = new Bazookawav(); }; }; }; }; }; }; _local2 = (gun.x - stage.mouseX); _local3 = (gun.y - stage.mouseY); _local4 = Math.atan2(_local3, _local2); gun.rotation = ((((_local4 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; if (gun.current_weapon == "mg"){ cursor.visible = false; aimMode = "sight"; } else { aimMode = "hip"; cursor.visible = true; }; }; }; if (_arg1.keyCode == 38){ ws.weaponDown(); if (gun.current_weapon == ws.weapon){ } else { gun.switchWeapon(ws.weapon); if (ws.weapon == "thompson"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(thompsonAmmo); ammoIndicator.Update(currentThompsonAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new gunSound(); gg2 = new gunSound(); gg3 = new gunSound(); } else { if (ws.weapon == "carbine"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(carbineAmmo); ammoIndicator.Update(currentCarbineAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new carbineSound(); gg2 = new carbineSound(); gg3 = new carbineSound(); } else { if (ws.weapon == "garand"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(garandAmmo); ammoIndicator.Update(currentGarandAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new garandSound(); gg2 = new garandSound(); gg3 = new garandSound(); } else { if (ws.weapon == "bar"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(barAmmo); ammoIndicator.Update(currentBarAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new barSound(); gg2 = new barSound(); gg3 = new barSound(); } else { if (ws.weapon == "mg"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(browningAmmo); ammoIndicator.Update(currentBrowningAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new browningSound(); gg2 = new browningSound(); gg3 = new browningSound(); } else { if (ws.weapon == "bazooka"){ ammoIndicator.parent.removeChild(ammoIndicator); ammoIndicator = new AmmoBar(bazookaAmmo); ammoIndicator.Update(currentBazookaAmmo); addChild(ammoIndicator); ammoIndicator.x = 10; ammoIndicator.y = 10; gg1 = new Bazookawav(); gg2 = new Bazookawav(); gg3 = new Bazookawav(); }; }; }; }; }; }; _local5 = (gun.x - stage.mouseX); _local6 = (gun.y - stage.mouseY); _local7 = Math.atan2(_local6, _local5); gun.rotation = ((((_local7 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; if (gun.current_weapon == "mg"){ cursor.visible = false; aimMode = "sight"; } else { aimMode = "hip"; cursor.visible = true; }; }; }; if (_arg1.keyCode == 82){ reload(); }; if (_arg1.keyCode == 32){ if (gun.current_weapon == "mg"){ } else { cursor.visible = false; gun.parent.setChildIndex(gun, (numChildren - 1)); aimMode = "sight"; gun.switchAimMode(aimMode); gun.x = stage.mouseX; gun.rotation = 0; gun.x = stage.mouseX; if (stage.mouseY > 125){ gun.y = stage.mouseY; } else { gun.y = 125; }; gun.rotation = 0; }; }; }; } public function killFade(_arg1:MouseEvent):void{ soldierName = enterName.finalName; fader.kill(); TweenMax.delayedCall(0.5, gotoGame); } public function restartGame(_arg1:MouseEvent):void{ totMoney = 0; level = 0; gameOverBox.parent.removeChild(gameOverBox); restartButton.parent.removeChild(restartButton); gotoAndStop(5); } public function shake():void{ TweenMax.to(this, 0.05, {x:((Math.random() - 0.5) * 5), y:((Math.random() - 0.5) * 5)}); TweenMax.to(this, 0.05, {x:((Math.random() - 0.5) * 5), y:((Math.random() - 0.5) * 5), delay:0.05}); TweenMax.to(this, 0.05, {x:((Math.random() - 0.5) * 5), y:((Math.random() - 0.5) * 5), delay:0.1}); TweenMax.to(this, 0.05, {x:((Math.random() - 0.5) * 5), y:((Math.random() - 0.5) * 5), delay:0.15}); TweenMax.to(this, 0.05, {x:0, y:0, delay:0.2}); } public function lose():void{ endGame(); } public function onHip(_arg1:KeyboardEvent):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; if (gun.changingWeapon == false){ if (gun.visible == true){ if (_arg1.keyCode == 32){ if (gun.current_weapon == "mg"){ } else { cursor.visible = true; aimMode = "hip"; gun.switchAimMode(aimMode); cursor.parent.setChildIndex(cursor, (numChildren - 1)); _local2 = (gun.x - stage.mouseX); _local3 = (gun.y - stage.mouseY); _local4 = Math.atan2(_local3, _local2); gun.rotation = ((((_local4 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; cursor.x = stage.mouseX; cursor.y = stage.mouseY; }; }; if (aimMode == "hip"){ _local5 = (gun.x - stage.mouseX); _local6 = (gun.y - stage.mouseY); _local7 = Math.atan2(_local6, _local5); gun.rotation = ((((_local7 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; } else { if (aimMode == "sight"){ gun.x = stage.mouseX; gun.y = stage.mouseY; gun.rotation = 0; }; }; if (aimMode == "hip"){ _local8 = (gun.x - stage.mouseX); _local9 = (gun.y - stage.mouseY); _local10 = Math.atan2(_local9, _local8); gun.rotation = ((((_local10 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; } else { if (aimMode == "sight"){ gun.x = stage.mouseX; gun.y = stage.mouseY; gun.rotation = 0; }; }; if (aimMode == "hip"){ _local11 = (gun.x - stage.mouseX); _local12 = (gun.y - stage.mouseY); _local13 = Math.atan2(_local12, _local11); gun.rotation = ((((_local13 * 360) / (Math.PI * 2)) - 90) + 30); gun.y = ((350 + (stage.mouseY * 0.75)) + (stage.mouseX / 4)); gun.x = (350 + (stage.mouseX / 2)); if (gun.y < (500 + (Math.abs(gun.rotation) * 5))){ gun.y = (500 + (Math.abs(gun.rotation) * 5)); }; } else { if (aimMode == "sight"){ gun.x = stage.mouseX; gun.y = stage.mouseY; gun.rotation = 0; }; }; cursor.x = stage.mouseX; cursor.y = stage.mouseY; Mouse.hide(); Mouse.hide(); }; }; } public function onCloseAd(_arg1:MouseEvent):void{ closeButton.parent.removeChild(closeButton); adBox.parent.removeChild(adBox); adClosed = true; } public function endLevel():void{ var _local1:*; var _local2:Stats; var _local3:BuyWeapons; var _local4:MenuButton; var _local5:MenuButton; level++; if (level < 35){ currentThompsonAmmo = thompsonAmmo; currentCarbineAmmo = carbineAmmo; currentGarandAmmo = garandAmmo; currentBarAmmo = barAmmo; currentBrowningAmmo = browningAmmo; currentBazookaAmmo = bazookaAmmo; if (gun.current_weapon == "thompson"){ currentThompsonAmmo--; ammoIndicator.Update(currentThompsonAmmo); } else { if (gun.current_weapon == "carbine"){ currentCarbineAmmo--; ammoIndicator.Update(currentCarbineAmmo); } else { if (gun.current_weapon == "garand"){ currentGarandAmmo--; ammoIndicator.Update(currentGarandAmmo); if (currentGarandAmmo == 0){ garandChannel = garandOutOfAmmo.play(); }; } else { if (gun.current_weapon == "bar"){ currentBarAmmo--; ammoIndicator.Update(currentBarAmmo); } else { if (gun.current_weapon == "mg"){ currentBrowningAmmo--; ammoIndicator.Update(currentBrowningAmmo); } else { if (gun.current_weapon == "bazooka"){ currentBazookaAmmo--; ammoIndicator.Update(currentBazookaAmmo); }; }; }; }; }; }; menuMusic.position = 0; TweenMax.to(warSound, 0.5, {volume:0}); TweenMax.to(menuMusic, 1, {volume:0.5}); for (_local1 in enemyArray) { enemyArray[0].kill(); enemyArray[0].parent.setChildIndex(enemyArray[_local1], (enemyArray[0].parent.getChildIndex(enemyArray[0]) - 1)); enemyArray.splice(0, 1); }; statsScreen = new MovieClip(); a.addAction((("Level " + String(level)) + " Complete!")); sFader = new MovieClip(); statsScreen.addChild(sFader); TweenMax.to(sFader, 1, {blurFilter:{blurX:6, blurY:6, quality:2}, colorMatrixFilter:{brightness:0.6, saturation:0.4}}); _local2 = new Stats(feedFont, maxRifleman, numRifleman, maxMachineGunner, numMachineGunner, maxJeep, numJeep, maxTank, numTank, maxHowitzer, numHowitzer, totalShotsFired, totalShotsHit, numHeadshots, level, totMoney); statsScreen.addChild(_local2); _local3 = new BuyWeapons(this, new buyButton(), _local2, ws, new thompson_up(), new carbine_up(), new garand_up(), new bar_up(), new browning_up(), new bazooka_up(), new arrowUp_up(), new arrowDown_up(), menuFont, new addHealth()); statsScreen.addChild(_local3); _local3.x = 500; _local3.y = 65; totMoney = _local2.totalMoneyAmount; _local4 = new MenuButton("Continue", menuFont, 24); _local5 = new MenuButton("More Games", menuFont, 24); statsScreen.addChild(_local5); statsScreen.addChild(_local4); _local5.x = 60; _local5.y = 380; _local4.x = 60; _local4.y = 350; _local4.addEventListener(MouseEvent.CLICK, endStats); _local5.addEventListener(MouseEvent.CLICK, onGotoArmor3); _local2.x = 20; _local2.y = 20; gun.visible = false; cursor.visible = false; Mouse.show(); addChild(statsScreen); } else { gun.visible = false; winScreen = new WinScreen(new Credits(), new CreditsBackground()); winScreen.main.playAgainButton.addEventListener(MouseEvent.CLICK, onPlayAgain); overStatus = "win"; addChild(winScreen); TweenMax.to(warSound, 0.5, {volume:0}); TweenMax.to(menuMusic, 1, {volume:0.5}); }; } public function onPlayAgain(_arg1:MouseEvent):void{ var _local2:*; for (_local2 in enemyArray) { enemyArray[_local2].destroy(); }; if (overStatus == "lost"){ loseScreen.parent.removeChild(loseScreen); } else { if (overStatus == "win"){ winScreen.parent.removeChild(winScreen); }; }; enemyArray = new Array(); thompsonPurchased = true; carbinePurchased = false; garandPurchased = false; barPurchased = false; browningPurchased = false; bazookaPurchased = false; currentThompsonAmmo = thompsonAmmo; currentCarbineAmmo = carbineAmmo; currentGarandAmmo = garandAmmo; currentBarAmmo = barAmmo; currentBrowningAmmo = browningAmmo; currentBazookaAmmo = bazookaAmmo; ws.Reset(); gun.parent.removeChild(gun); cursor.parent.removeChild(cursor); gun.switchWeapon("thompson"); totMoney = 0; wallHealth = 1000; level = 0; ws.parent.removeChild(ws); bkg.parent.removeChild(bkg); ammoIndicator.parent.removeChild(ammoIndicator); menuMusic.stop(); warSound.stop(); gotoAndStop(5); } public function enterFrame(_arg1:Event):void{ var _local2:*; if (wallHealth <= 0){ if (loseCheck == false){ gun.visible = false; loseCheck = true; loseScreen = new LoseScreen(new loseBackground(), menuFont); addChild(loseScreen); overStatus = "lost"; loseScreen.playAgain.addEventListener(MouseEvent.CLICK, onPlayAgain); menuMusic.position = 0; TweenMax.to(warSound, 0.5, {volume:0}); TweenMax.to(menuMusic, 1, {volume:0.5}); }; }; if (gun.visible == false){ Mouse.show(); }; for (_local2 in bulletArray) { bulletArray[_local2].alpha = (bulletArray[_local2].alpha - 0.1); if (bulletArray[_local2].alpha < 0.1){ bulletArray[_local2].parent.removeChild(bulletArray[_local2]); bulletArray.splice(_local2, 1); }; }; currentTime++; fireTime++; if (shooting == true){ if (fireTime >= gun.fireRate){ fire(); fireTime = 0; }; }; var _local3:Number = (Math.random() * 4); _local3 = Math.round(_local3); _local3++; if (currentTime > enemySpawnTime){ if (_local3 == 1){ if (numRifleman < maxRifleman){ createRifleman(); } else { _local3++; }; } else { if (_local3 == 2){ if (numMachineGunner < maxMachineGunner){ createMachineGunner(); } else { _local3++; }; } else { if (_local3 == 3){ if (numTank < maxTank){ createTank(); } else { _local3++; }; } else { if (_local3 == 4){ if (numHowitzer < maxHowitzer){ createHowitzer(); } else { _local3++; }; } else { if (_local3 == 5){ if (numJeep < maxJeep){ createJeep(); } else { _local3++; }; }; }; }; }; }; }; } public function onGotoArmor3(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://armorgames.com/"); navigateToURL(_local2, "_blank"); } public function endGame():void{ gun.visible = false; addChild(gameOverBox); gameOverBox.x = (stage.stageWidth / 2); gameOverBox.y = (stage.stageHeight / 2); addChild(restartButton); restartButton.x = ((stage.stageWidth / 2) - (restartButton.width / 2)); restartButton.y = (stage.stageWidth / 2); restartButton.addEventListener(MouseEvent.CLICK, restartGame); } public function reload():void{ var _local1:String = gun.current_weapon; var _local2:Array = new Array(); _local2.push(_local1); if (gun.current_weapon == "thompson"){ if (thompsonReloading == false){ a.addAction("Thompson Reloading..."); reloadSound.play(); TweenMax.delayedCall(0.8, actualReload, _local2); thompsonReloading = true; }; } else { if (gun.current_weapon == "carbine"){ if (carbineReloading == false){ a.addAction("Carbine Reloading..."); reloadSound.play(); TweenMax.delayedCall(0.4, actualReload, _local2); carbineReloading = true; }; } else { if (gun.current_weapon == "garand"){ if (garandReloading == false){ a.addAction("Garand Reloading..."); reloadSound.play(); TweenMax.delayedCall(0.6, actualReload, _local2); garandReloading = true; }; } else { if (gun.current_weapon == "bar"){ if (barReloading == false){ a.addAction("BAR Reloading..."); reloadSound.play(); TweenMax.delayedCall(1, actualReload, _local2); barReloading = true; }; } else { if (gun.current_weapon == "mg"){ if (mgReloading == false){ a.addAction("Browning Reloading..."); reloadSound.play(); TweenMax.delayedCall(1, actualReload, _local2); mgReloading = true; }; } else { if (gun.current_weapon == "bazooka"){ if (bazookaReloading == false){ a.addAction("Bazooka Reloading..."); reloadSound.play(); TweenMax.delayedCall(6, actualReload, _local2); bazookaReloading = true; }; }; }; }; }; }; }; } public function gotoArmor(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://armorgames.com/"); navigateToURL(_local2, "_blank"); } public function onPlayGameIntro7(_arg1:MouseEvent):void{ if (adClosed == false){ adBox.parent.removeChild(adBox); }; gotoAndStop(3); } public function gotoGame():void{ gotoAndStop(10); } } }//package defense_CPMStar_fla
Section 8
//soldierDieNormal_34 (defense_CPMStar_fla.soldierDieNormal_34) package defense_CPMStar_fla { import flash.display.*; public dynamic class soldierDieNormal_34 extends MovieClip { public function soldierDieNormal_34(){ addFrameScript(34, frame35); } function frame35(){ stop(); } } }//package defense_CPMStar_fla
Section 9
//tankBodyInner_61 (defense_CPMStar_fla.tankBodyInner_61) package defense_CPMStar_fla { import flash.display.*; public dynamic class tankBodyInner_61 extends MovieClip { public function tankBodyInner_61(){ addFrameScript(5, frame6, 20, frame21, 53, frame54); } function frame6(){ gotoAndPlay(1); } function frame54(){ gotoAndPlay(45); } function frame21(){ stop(); } } }//package defense_CPMStar_fla
Section 10
//Cubic (gs.easing.Cubic) package gs.easing { public class Cubic { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2)); } } }//package gs.easing
Section 11
//Elastic (gs.easing.Elastic) package gs.easing { public class Elastic { private static const _2PI:Number = 6.28318530717959; public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * 0.3); }; if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5))); }; --_arg1; return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 == 2){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * (0.3 * 1.5)); }; if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5))); }; if (_arg1 < 1){ --_arg1; return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2)); }; --_arg1; return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) * 0.5) + _arg3) + _arg2)); } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * 0.3); }; if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5))); }; return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) + _arg3) + _arg2)); } } }//package gs.easing
Section 12
//TweenEvent (gs.events.TweenEvent) package gs.events { import flash.events.*; public class TweenEvent extends Event { public var info:Object; public static const UPDATE:String = "update"; public static const START:String = "start"; public static const version:Number = 0.9; public static const COMPLETE:String = "complete"; public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); this.info = _arg2; } override public function clone():Event{ return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable)); } } }//package gs.events
Section 13
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin) package gs.plugins { import gs.*; import flash.display.*; public class AutoAlphaPlugin extends TweenPlugin { protected var _tweenVisible:Boolean; protected var _target:Object; protected var _visible:Boolean; protected var _tween:TweenLite; public static const VERSION:Number = 1; public static const API:Number = 1; public function AutoAlphaPlugin(){ this.propName = "autoAlpha"; this.overwriteProps = ["alpha", "visible"]; this.onComplete = onCompleteTween; } override public function killProps(_arg1:Object):void{ super.killProps(_arg1); _tweenVisible = !(Boolean(("visible" in _arg1))); } public function onCompleteTween():void{ if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){ _target.visible = _visible; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _visible = Boolean(!((_arg2 == 0))); _tweenVisible = true; addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); if (((!((_target.visible == true))) && (_tweenVisible))){ _target.visible = true; }; } } }//package gs.plugins
Section 14
//BevelFilterPlugin (gs.plugins.BevelFilterPlugin) package gs.plugins { import gs.*; import flash.display.*; import flash.filters.*; public class BevelFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BevelFilterPlugin(){ this.propName = "bevelFilter"; this.overwriteProps = ["bevelFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BevelFilter; initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2)))); return (true); } } }//package gs.plugins
Section 15
//BezierPlugin (gs.plugins.BezierPlugin) package gs.plugins { import gs.*; import gs.utils.tween.*; public class BezierPlugin extends TweenPlugin { protected var _future:Object; protected var _orient:Boolean; protected var _orientData:Array; protected var _target:Object; protected var _beziers:Object; protected static const _RAD2DEG:Number = 57.2957795130823; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function BezierPlugin(){ _future = {}; super(); this.propName = "bezier"; this.overwriteProps = []; } override public function killProps(_arg1:Object):void{ var _local2:String; for (_local2 in _beziers) { if ((_local2 in _arg1)){ delete _beziers[_local2]; }; }; super.killProps(_arg1); } protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{ var _local5:int; var _local6:String; _target = _arg1.target; if (_arg1.exposedVars.orientToBezier == true){ _orientData = [["x", "y", "rotation", 0]]; _orient = true; } else { if ((_arg1.exposedVars.orientToBezier is Array)){ _orientData = _arg1.exposedVars.orientToBezier; _orient = true; }; }; var _local4:Object = {}; _local5 = 0; while (_local5 < _arg2.length) { for (_local6 in _arg2[_local5]) { if (_local4[_local6] == undefined){ _local4[_local6] = [_arg1.target[_local6]]; }; if (typeof(_arg2[_local5][_local6]) == "number"){ _local4[_local6].push(_arg2[_local5][_local6]); } else { _local4[_local6].push((_arg1.target[_local6] + Number(_arg2[_local5][_local6]))); }; }; _local5++; }; for (_local6 in _local4) { this.overwriteProps[this.overwriteProps.length] = _local6; if (_arg1.exposedVars[_local6] != undefined){ if (typeof(_arg1.exposedVars[_local6]) == "number"){ _local4[_local6].push(_arg1.exposedVars[_local6]); } else { _local4[_local6].push((_arg1.target[_local6] + Number(_arg1.exposedVars[_local6]))); }; delete _arg1.exposedVars[_local6]; _local5 = (_arg1.tweens.length - 1); while (_local5 > -1) { if (_arg1.tweens[_local5].name == _local6){ _arg1.tweens.splice(_local5, 1); }; _local5--; }; }; }; _beziers = parseBeziers(_local4, _arg3); } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), false); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:String; var _local4:Object; var _local5:Number; var _local6:uint; var _local7:Number; var _local8:int; var _local9:Object; var _local10:Boolean; var _local11:Number; var _local12:Number; var _local13:Array; var _local14:Number; if (_arg1 == 1){ for (_local3 in _beziers) { _local2 = (_beziers[_local3].length - 1); _target[_local3] = _beziers[_local3][_local2][2]; }; } else { for (_local3 in _beziers) { _local6 = _beziers[_local3].length; if (_arg1 < 0){ _local2 = 0; } else { if (_arg1 >= 1){ _local2 = (_local6 - 1); } else { _local2 = int((_local6 * _arg1)); }; }; _local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6); _local4 = _beziers[_local3][_local2]; if (this.round){ _local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); _local8 = ((_local7)<0) ? -1 : 1; _target[_local3] = ((((_local7 % 1) * _local8))>0.5) ? (int(_local7) + _local8) : int(_local7); } else { _target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); }; }; }; if (_orient){ _local9 = _target; _local10 = this.round; _target = _future; this.round = false; _orient = false; this.changeFactor = (_arg1 + 0.01); _target = _local9; this.round = _local10; _orient = true; _local2 = 0; while (_local2 < _orientData.length) { _local13 = _orientData[_local2]; _local14 = ((_local13[3]) || (0)); _local11 = (_future[_local13[0]] - _target[_local13[0]]); _local12 = (_future[_local13[1]] - _target[_local13[1]]); _target[_local13[2]] = ((Math.atan2(_local12, _local11) * _RAD2DEG) + _local14); _local2++; }; }; } public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{ var _local3:int; var _local4:Array; var _local5:Object; var _local6:String; var _local7:Object = {}; if (_arg2){ for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 2){ _local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]]; _local3 = 1; while (_local3 < (_local4.length - 1)) { _local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]]; _local3++; }; } else { _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; } else { for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 3){ _local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)]; _local3 = 2; while (_local3 < (_local4.length - 2)) { _local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)]; _local3++; }; _local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]]; } else { if (_local4.length == 3){ _local5[_local5.length] = [_local4[0], _local4[1], _local4[2]]; } else { if (_local4.length == 2){ _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; }; }; }; return (_local7); } } }//package gs.plugins
Section 16
//BezierThroughPlugin (gs.plugins.BezierThroughPlugin) package gs.plugins { import gs.*; public class BezierThroughPlugin extends BezierPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BezierThroughPlugin(){ this.propName = "bezierThrough"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), true); return (true); } } }//package gs.plugins
Section 17
//BlurFilterPlugin (gs.plugins.BlurFilterPlugin) package gs.plugins { import gs.*; import flash.display.*; import flash.filters.*; public class BlurFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function BlurFilterPlugin(){ this.propName = "blurFilter"; this.overwriteProps = ["blurFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BlurFilter; initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2)))); return (true); } } }//package gs.plugins
Section 18
//ColorMatrixFilterPlugin (gs.plugins.ColorMatrixFilterPlugin) package gs.plugins { import gs.*; import flash.display.*; import flash.filters.*; public class ColorMatrixFilterPlugin extends FilterPlugin { protected var _matrix:Array; protected var _matrixTween:EndArrayPlugin; public static const API:Number = 1; public static const VERSION:Number = 1.1; protected static var _lumG:Number = 0.71516; protected static var _lumR:Number = 0.212671; protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; protected static var _lumB:Number = 0.072169; public function ColorMatrixFilterPlugin(){ this.propName = "colorMatrixFilter"; this.overwriteProps = ["colorMatrixFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = ColorMatrixFilter; var _local4:Object = _arg2; initFilter({remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, new ColorMatrixFilter(_idMatrix.slice())); _matrix = ColorMatrixFilter(_filter).matrix; var _local5:Array = []; if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){ _local5 = _local4.matrix; } else { if (_local4.relative == true){ _local5 = _matrix.slice(); } else { _local5 = _idMatrix.slice(); }; _local5 = setBrightness(_local5, _local4.brightness); _local5 = setContrast(_local5, _local4.contrast); _local5 = setHue(_local5, _local4.hue); _local5 = setSaturation(_local5, _local4.saturation); _local5 = setThreshold(_local5, _local4.threshold); if (!isNaN(_local4.colorize)){ _local5 = colorize(_local5, _local4.colorize, _local4.amount); }; }; _matrixTween = new EndArrayPlugin(); _matrixTween.init(_matrix, _local5); return (true); } override public function set changeFactor(_arg1:Number):void{ _matrixTween.changeFactor = _arg1; ColorMatrixFilter(_filter).matrix = _matrix; super.changeFactor = _arg1; } public static function setSaturation(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Number = (1 - _arg2); var _local4:Number = (_local3 * _lumR); var _local5:Number = (_local3 * _lumG); var _local6:Number = (_local3 * _lumB); var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local7, _arg1)); } public static function setHue(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 * (Math.PI / 180)); var _local3:Number = Math.cos(_arg2); var _local4:Number = Math.sin(_arg2); var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return (applyMatrix(_local5, _arg1)); } public static function setThreshold(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function applyMatrix(_arg1:Array, _arg2:Array):Array{ var _local6:int; var _local7:int; if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (_arg2); }; var _local3:Array = []; var _local4:int; var _local5:int; _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 5) { if (_local7 == 4){ _local5 = _arg1[(_local4 + 4)]; } else { _local5 = 0; }; _local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5); _local7++; }; _local4 = (_local4 + 5); _local6++; }; return (_local3); } public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{ if (isNaN(_arg2)){ return (_arg1); }; if (isNaN(_arg3)){ _arg3 = 1; }; var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF); var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF); var _local6:Number = ((_arg2 & 0xFF) / 0xFF); var _local7:Number = (1 - _arg3); var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local8, _arg1)); } public static function setBrightness(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = ((_arg2 * 100) - 100); return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1)); } public static function setContrast(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 + 0.01); var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } } }//package gs.plugins
Section 19
//DropShadowFilterPlugin (gs.plugins.DropShadowFilterPlugin) package gs.plugins { import gs.*; import flash.display.*; import flash.filters.*; public class DropShadowFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function DropShadowFilterPlugin(){ this.propName = "dropShadowFilter"; this.overwriteProps = ["dropShadowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = DropShadowFilter; initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject)); return (true); } } }//package gs.plugins
Section 20
//EndArrayPlugin (gs.plugins.EndArrayPlugin) package gs.plugins { import gs.*; import flash.display.*; import gs.utils.tween.*; public class EndArrayPlugin extends TweenPlugin { protected var _a:Array; protected var _info:Array; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function EndArrayPlugin(){ _info = []; super(); this.propName = "endArray"; this.overwriteProps = ["endArray"]; } public function init(_arg1:Array, _arg2:Array):void{ _a = _arg1; var _local3:int = (_arg2.length - 1); while (_local3 > -1) { if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){ _info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3])); }; _local3--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (false); }; init((_arg1 as Array), _arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:ArrayTweenInfo; var _local4:Number; var _local5:int; if (this.round){ _local2 = (_info.length - 1); while (_local2 > -1) { _local3 = _info[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local5 = ((_local4)<0) ? -1 : 1; _a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4); _local2--; }; } else { _local2 = (_info.length - 1); while (_local2 > -1) { _local3 = _info[_local2]; _a[_local3.index] = (_local3.start + (_local3.change * _arg1)); _local2--; }; }; } } }//package gs.plugins
Section 21
//FilterPlugin (gs.plugins.FilterPlugin) package gs.plugins { import gs.*; import flash.display.*; import flash.filters.*; import gs.utils.tween.*; public class FilterPlugin extends TweenPlugin { protected var _remove:Boolean; protected var _target:Object; protected var _index:int; protected var _filter:BitmapFilter; protected var _type:Class; public static const VERSION:Number = 1.03; public static const API:Number = 1; public function onCompleteTween():void{ var _local1:int; var _local2:Array; if (_remove){ _local2 = _target.filters; if (!(_local2[_index] is _type)){ _local1 = (_local2.length - 1); while (_local1 > -1) { if ((_local2[_local1] is _type)){ _local2.splice(_local1, 1); break; }; _local1--; }; } else { _local2.splice(_index, 1); }; _target.filters = _local2; }; } protected function initFilter(_arg1:Object, _arg2:BitmapFilter):void{ var _local4:String; var _local5:int; var _local6:HexColorsPlugin; var _local3:Array = _target.filters; _index = -1; if (_arg1.index != null){ _index = _arg1.index; } else { _local5 = (_local3.length - 1); while (_local5 > -1) { if ((_local3[_local5] is _type)){ _index = _local5; break; }; _local5--; }; }; if ((((((_index == -1)) || ((_local3[_index] == null)))) || ((_arg1.addFilter == true)))){ _index = ((_arg1.index)!=null) ? _arg1.index : _local3.length; _local3[_index] = _arg2; _target.filters = _local3; }; _filter = _local3[_index]; _remove = Boolean((_arg1.remove == true)); if (_remove){ this.onComplete = onCompleteTween; }; var _local7:Object = ((_arg1.isTV)==true) ? _arg1.exposedVars : _arg1; for (_local4 in _local7) { if (((((((((!((_local4 in _filter))) || ((_filter[_local4] == _local7[_local4])))) || ((_local4 == "remove")))) || ((_local4 == "index")))) || ((_local4 == "addFilter")))){ } else { if ((((((_local4 == "color")) || ((_local4 == "highlightColor")))) || ((_local4 == "shadowColor")))){ _local6 = new HexColorsPlugin(); _local6.initColor(_filter, _local4, _filter[_local4], _local7[_local4]); _tweens[_tweens.length] = new TweenInfo(_local6, "changeFactor", 0, 1, _local4, false); } else { if ((((((((_local4 == "quality")) || ((_local4 == "inner")))) || ((_local4 == "knockout")))) || ((_local4 == "hideObject")))){ _filter[_local4] = _local7[_local4]; } else { addTween(_filter, _local4, _filter[_local4], _local7[_local4], _local4); }; }; }; }; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:TweenInfo; var _local4:Array = _target.filters; _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); _local2--; }; if (!(_local4[_index] is _type)){ _index = (_local4.length - 1); _local2 = (_local4.length - 1); while (_local2 > -1) { if ((_local4[_local2] is _type)){ _index = _local2; break; }; _local2--; }; }; _local4[_index] = _filter; _target.filters = _local4; } } }//package gs.plugins
Section 22
//FramePlugin (gs.plugins.FramePlugin) package gs.plugins { import gs.*; import flash.display.*; public class FramePlugin extends TweenPlugin { protected var _target:MovieClip; public var frame:int; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function FramePlugin(){ this.propName = "frame"; this.overwriteProps = ["frame"]; this.round = true; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; addTween(this, "frame", this.frame, _arg2, "frame"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.gotoAndStop(this.frame); } } }//package gs.plugins
Section 23
//GlowFilterPlugin (gs.plugins.GlowFilterPlugin) package gs.plugins { import gs.*; import flash.display.*; import flash.filters.*; public class GlowFilterPlugin extends FilterPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function GlowFilterPlugin(){ this.propName = "glowFilter"; this.overwriteProps = ["glowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = GlowFilter; initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout)); return (true); } } }//package gs.plugins
Section 24
//HexColorsPlugin (gs.plugins.HexColorsPlugin) package gs.plugins { import gs.*; import flash.display.*; public class HexColorsPlugin extends TweenPlugin { protected var _colors:Array; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function HexColorsPlugin(){ this.propName = "hexColors"; this.overwriteProps = []; _colors = []; } override public function killProps(_arg1:Object):void{ var _local2:int = (_colors.length - 1); while (_local2 > -1) { if (_arg1[_colors[_local2][1]] != undefined){ _colors.splice(_local2, 1); }; _local2--; }; super.killProps(_arg1); } public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{ var _local5:Number; var _local6:Number; var _local7:Number; if (_arg3 != _arg4){ _local5 = (_arg3 >> 16); _local6 = ((_arg3 >> 8) & 0xFF); _local7 = (_arg3 & 0xFF); _colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)]; this.overwriteProps[this.overwriteProps.length] = _arg2; }; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:Array; _local2 = (_colors.length - 1); while (_local2 > -1) { _local3 = _colors[_local2]; _local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7]))); _local2--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; for (_local4 in _arg2) { initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4])); }; return (true); } } }//package gs.plugins
Section 25
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin) package gs.plugins { public class RemoveTintPlugin extends TintPlugin { public static const VERSION:Number = 1.01; public static const API:Number = 1; public function RemoveTintPlugin(){ this.propName = "removeTint"; } } }//package gs.plugins
Section 26
//RoundPropsPlugin (gs.plugins.RoundPropsPlugin) package gs.plugins { import gs.*; import flash.display.*; public class RoundPropsPlugin extends TweenPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function RoundPropsPlugin(){ this.propName = "roundProps"; this.overwriteProps = []; this.round = true; } public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package gs.plugins
Section 27
//ShortRotationPlugin (gs.plugins.ShortRotationPlugin) package gs.plugins { import gs.*; import flash.display.*; public class ShortRotationPlugin extends TweenPlugin { public static const VERSION:Number = 1; public static const API:Number = 1; public function ShortRotationPlugin(){ this.propName = "shortRotation"; this.overwriteProps = []; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; if (typeof(_arg2) == "number"){ trace("WARNING: You appear to be using the old shortRotation syntax. Instead of passing a number, please pass an object with properties that correspond to the rotations values For example, TweenMax.to(mc, 2, {shortRotation:{rotationX:-170, rotationY:25}})"); return (false); }; for (_local4 in _arg2) { initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]); }; return (true); } public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ var _local5:Number = ((_arg4 - _arg3) % 360); if (((_arg4 - _arg3) % 360) != (_local5 % 180)){ _local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360); }; addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package gs.plugins
Section 28
//TintPlugin (gs.plugins.TintPlugin) package gs.plugins { import gs.*; import flash.display.*; import flash.geom.*; import gs.utils.tween.*; public class TintPlugin extends TweenPlugin { protected var _target:DisplayObject; protected var _ct:ColorTransform; protected var _ignoreAlpha:Boolean; public static const VERSION:Number = 1.1; public static const API:Number = 1; protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"]; public function TintPlugin(){ this.propName = "tint"; this.overwriteProps = ["tint"]; } public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{ var _local3:int; var _local4:String; _target = _arg1; _ct = _target.transform.colorTransform; _local3 = (_props.length - 1); while (_local3 > -1) { _local4 = _props[_local3]; if (_ct[_local4] != _arg2[_local4]){ _tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false); }; _local3--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg1 is DisplayObject)){ return (false); }; var _local4:ColorTransform = new ColorTransform(); if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){ _local4.color = uint(_arg2); }; _ignoreAlpha = true; init((_arg1 as DisplayObject), _local4); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:ColorTransform; updateTweens(_arg1); if (_ignoreAlpha){ _local2 = _target.transform.colorTransform; _ct.alphaMultiplier = _local2.alphaMultiplier; _ct.alphaOffset = _local2.alphaOffset; }; _target.transform.colorTransform = _ct; } } }//package gs.plugins
Section 29
//TweenPlugin (gs.plugins.TweenPlugin) package gs.plugins { import gs.*; import gs.utils.tween.*; public class TweenPlugin { public var overwriteProps:Array; protected var _tweens:Array; public var propName:String; public var onComplete:Function; public var round:Boolean; protected var _changeFactor:Number;// = 0 public static const VERSION:Number = 1.03; public static const API:Number = 1; public function TweenPlugin(){ _tweens = []; super(); } protected function updateTweens(_arg1:Number):void{ var _local2:int; var _local3:TweenInfo; var _local4:Number; var _local5:int; if (this.round){ _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local5 = ((_local4)<0) ? -1 : 1; _local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4); _local2--; }; } else { _local2 = (_tweens.length - 1); while (_local2 > -1) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); _local2--; }; }; } public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _changeFactor = _arg1; } protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{ var _local6:Number; if (_arg4 != null){ _local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4); if (_local6 != 0){ _tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false); }; }; } public function killProps(_arg1:Object):void{ var _local2:int; _local2 = (this.overwriteProps.length - 1); while (_local2 > -1) { if ((this.overwriteProps[_local2] in _arg1)){ this.overwriteProps.splice(_local2, 1); }; _local2--; }; _local2 = (_tweens.length - 1); while (_local2 > -1) { if ((_tweens[_local2].name in _arg1)){ _tweens.splice(_local2, 1); }; _local2--; }; } public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName); return (true); } public function get changeFactor():Number{ return (_changeFactor); } public static function activate(_arg1:Array):Boolean{ var _local2:int; var _local3:Object; _local2 = (_arg1.length - 1); while (_local2 > -1) { _local3 = new (_arg1[_local2]); TweenLite.plugins[_local3.propName] = _arg1[_local2]; _local2--; }; return (true); } } }//package gs.plugins
Section 30
//VisiblePlugin (gs.plugins.VisiblePlugin) package gs.plugins { import gs.*; import flash.display.*; public class VisiblePlugin extends TweenPlugin { protected var _target:Object; protected var _visible:Boolean; protected var _tween:TweenLite; public static const VERSION:Number = 1; public static const API:Number = 1; public function VisiblePlugin(){ this.propName = "visible"; this.overwriteProps = ["visible"]; this.onComplete = onCompleteTween; } public function onCompleteTween():void{ if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){ _target.visible = _visible; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _visible = Boolean(_arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ if (_target.visible != true){ _target.visible = true; }; } } }//package gs.plugins
Section 31
//VolumePlugin (gs.plugins.VolumePlugin) package gs.plugins { import gs.*; import flash.display.*; import flash.media.*; public class VolumePlugin extends TweenPlugin { protected var _target:Object; protected var _st:SoundTransform; public static const VERSION:Number = 1.01; public static const API:Number = 1; public function VolumePlugin(){ this.propName = "volume"; this.overwriteProps = ["volume"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){ return (false); }; _target = _arg1; _st = _target.soundTransform; addTween(_st, "volume", _st.volume, _arg2, "volume"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.soundTransform = _st; } } }//package gs.plugins
Section 32
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo) package gs.utils.tween { public class ArrayTweenInfo { public var change:Number; public var start:Number; public var index:uint; public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){ this.index = _arg1; this.start = _arg2; this.change = _arg3; } } }//package gs.utils.tween
Section 33
//TweenInfo (gs.utils.tween.TweenInfo) package gs.utils.tween { public class TweenInfo { public var start:Number; public var name:String; public var change:Number; public var target:Object; public var property:String; public var isPlugin:Boolean; public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){ this.target = _arg1; this.property = _arg2; this.start = _arg3; this.change = _arg4; this.name = _arg5; this.isPlugin = _arg6; } } }//package gs.utils.tween
Section 34
//OverwriteManager (gs.OverwriteManager) package gs { import gs.utils.tween.*; import flash.utils.*; import flash.errors.*; public class OverwriteManager { public static const ALL:int = 1; public static const NONE:int = 0; public static const AUTO:int = 2; public static const CONCURRENT:int = 3; public static const version:Number = 3.12; public static var mode:int; public static var enabled:Boolean; public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array):void{ var _local4:int; var _local5:String; var _local6:TweenInfo; _local4 = (_arg3.length - 1); while (_local4 > -1) { _local6 = _arg3[_local4]; if ((_local6.name in _arg1)){ _arg3.splice(_local4, 1); } else { if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){ _local6.target.killProps(_arg1); if (_local6.target.overwriteProps.length == 0){ _arg3.splice(_local4, 1); }; }; }; _local4--; }; for (_local5 in _arg1) { delete _arg2[_local5]; }; } public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{ var _local7:int; var _local8:TweenLite; var _local10:Array; var _local11:Object; var _local12:int; var _local13:TweenInfo; var _local14:Array; var _local3:Object = _arg1.vars; var _local4:int = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite); if ((((_local4 < 2)) || ((_arg2 == null)))){ return; }; var _local5:Number = _arg1.startTime; var _local6:Array = []; var _local9 = -1; _local7 = (_arg2.length - 1); while (_local7 > -1) { _local8 = _arg2[_local7]; if (_local8 == _arg1){ _local9 = _local7; } else { if ((((((_local7 < _local9)) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){ _local6[_local6.length] = _local8; }; }; _local7--; }; if ((((_local6.length == 0)) || ((_arg1.tweens.length == 0)))){ return; }; if (_local4 == AUTO){ _local10 = _arg1.tweens; _local11 = {}; _local7 = (_local10.length - 1); while (_local7 > -1) { _local13 = _local10[_local7]; if (_local13.isPlugin){ if (_local13.name == "_MULTIPLE_"){ _local14 = _local13.target.overwriteProps; _local12 = (_local14.length - 1); while (_local12 > -1) { _local11[_local14[_local12]] = true; _local12--; }; } else { _local11[_local13.name] = true; }; _local11[_local13.target.propName] = true; } else { _local11[_local13.name] = true; }; _local7--; }; _local7 = (_local6.length - 1); while (_local7 > -1) { killVars(_local11, _local6[_local7].exposedVars, _local6[_local7].tweens); _local7--; }; } else { _local7 = (_local6.length - 1); while (_local7 > -1) { _local6[_local7].enabled = false; _local7--; }; }; } public static function init(_arg1:int=2):int{ if (TweenLite.version < 10.09){ trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com."); }; TweenLite.overwriteManager = OverwriteManager; mode = _arg1; enabled = true; return (mode); } } }//package gs
Section 35
//TweenLite (gs.TweenLite) package gs { import flash.events.*; import flash.display.*; import gs.utils.tween.*; import gs.plugins.*; import flash.utils.*; public class TweenLite { public var started:Boolean; public var delay:Number; protected var _hasUpdate:Boolean; protected var _hasPlugins:Boolean; public var initted:Boolean; public var active:Boolean; public var startTime:Number; public var target:Object; public var duration:Number; public var gc:Boolean; public var tweens:Array; public var vars:Object; public var ease:Function; public var exposedVars:Object; public var initTime:Number; public var combinedTimeScale:Number; public static const version:Number = 10.091; private static var _timer:Timer = new Timer(2000); public static var defaultEase:Function = TweenLite.easeOut; public static var plugins:Object = {}; public static var currentTime:uint; public static var masterList:Dictionary = new Dictionary(false); protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1}; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public static var timingSprite:Sprite = new Sprite(); public static var overwriteManager:Object; private static var _tlInitted:Boolean; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ if (_arg1 == null){ return; }; if (!_tlInitted){ TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]); currentTime = getTimer(); timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; _timer.addEventListener("timer", killGarbage, false, 0, true); _timer.start(); _tlInitted = true; }; this.vars = _arg3; this.duration = ((_arg2) || (0.001)); this.delay = ((_arg3.delay) || (0)); this.combinedTimeScale = ((_arg3.timeScale) || (1)); this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0)))); this.target = _arg1; if (typeof(this.vars.ease) != "function"){ this.vars.ease = defaultEase; }; if (this.vars.easeParams != null){ this.vars.proxiedEase = this.vars.ease; this.vars.ease = easeProxy; }; this.ease = this.vars.ease; this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars; this.tweens = []; this.initTime = currentTime; this.startTime = (this.initTime + (this.delay * 1000)); var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); if (((!((_arg1 in masterList))) || ((_local4 == 1)))){ masterList[_arg1] = [this]; } else { masterList[_arg1].push(this); }; if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){ initTweenVals(); if (this.active){ render((this.startTime + 1)); } else { render(this.startTime); }; if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){ this.target.visible = this.exposedVars.visible; }; }; } public function get enabled():Boolean{ return ((this.gc) ? false : true); } public function set enabled(_arg1:Boolean):void{ var _local2:Array; var _local3:Boolean; var _local4:int; if (_arg1){ if (!(this.target in masterList)){ masterList[this.target] = [this]; } else { _local2 = masterList[this.target]; _local4 = (_local2.length - 1); while (_local4 > -1) { if (_local2[_local4] == this){ _local3 = true; break; }; _local4--; }; if (!_local3){ _local2[_local2.length] = this; }; }; }; this.gc = (_arg1) ? false : true; if (this.gc){ this.active = false; } else { this.active = this.started; }; } public function clear():void{ this.tweens = []; this.vars = (this.exposedVars = {ease:this.vars.ease}); _hasUpdate = false; } public function render(_arg1:uint):void{ var _local3:Number; var _local4:TweenInfo; var _local5:int; var _local2:Number = ((_arg1 - this.startTime) * 0.001); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0; } else { _local3 = this.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change)); _local5--; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } public function activate():void{ this.started = (this.active = true); if (!this.initted){ initTweenVals(); }; if (this.vars.onStart != null){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (this.duration == 0.001){ this.startTime = (this.startTime - 1); }; } public function initTweenVals():void{ var _local1:String; var _local2:int; var _local3:*; var _local4:TweenInfo; if (((!((this.exposedVars.timeScale == undefined))) && (this.target.hasOwnProperty("timeScale")))){ this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false); }; for (_local1 in this.exposedVars) { if ((_local1 in _reservedProps)){ } else { if ((_local1 in plugins)){ _local3 = new (plugins[_local1]); if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){ this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false); } else { this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true); _hasPlugins = true; }; } else { this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false); }; }; }; if (this.vars.runBackwards == true){ _local2 = (this.tweens.length - 1); while (_local2 > -1) { _local4 = this.tweens[_local2]; this.tweens[_local2].start = (_local4.start + _local4.change); _local4.change = -(_local4.change); _local2--; }; }; if (this.vars.onUpdate != null){ _hasUpdate = true; }; if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){ overwriteManager.manageOverwrites(this, masterList[this.target]); }; this.initted = true; } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } public function killVars(_arg1:Object):void{ if (overwriteManager.enabled){ overwriteManager.killVars(_arg1, this.exposedVars, this.tweens); }; } public function complete(_arg1:Boolean=false):void{ var _local2:int; if (!_arg1){ if (!this.initted){ initTweenVals(); }; this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale)); render(currentTime); return; }; if (_hasPlugins){ _local2 = (this.tweens.length - 1); while (_local2 > -1) { if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){ this.tweens[_local2].target.onComplete(); }; _local2--; }; }; if (this.vars.persist != true){ this.enabled = false; }; if (this.vars.onComplete != null){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); }; } public static function updateAll(_arg1:Event=null):void{ var _local4:Array; var _local5:int; var _local6:TweenLite; var _local2:uint = (currentTime = getTimer()); var _local3:Dictionary = masterList; for each (_local4 in _local3) { _local5 = (_local4.length - 1); while (_local5 > -1) { _local6 = _local4[_local5]; if (_local6.active){ _local6.render(_local2); } else { if (_local6.gc){ _local4.splice(_local5, 1); } else { if (_local2 >= _local6.startTime){ _local6.activate(); _local6.render(_local2); }; }; }; _local5--; }; }; } public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{ if (_arg1 != null){ if (_arg2){ _arg1.clear(); }; _arg1.enabled = false; }; } public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{ var _local3:Array; var _local4:int; var _local5:TweenLite; if (((!((_arg1 == null))) && ((_arg1 in masterList)))){ _local3 = masterList[_arg1]; _local4 = (_local3.length - 1); while (_local4 > -1) { _local5 = _local3[_local4]; if (((_arg2) && (!(_local5.gc)))){ _local5.complete(false); }; _local5.clear(); _local4--; }; delete masterList[_arg1]; }; } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } protected static function killGarbage(_arg1:TimerEvent):void{ var _local3:Object; var _local2:Dictionary = masterList; for (_local3 in _local2) { if (_local2[_local3].length == 0){ delete _local2[_local3]; }; }; } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0})); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package gs
Section 36
//TweenMax (gs.TweenMax) package gs { import flash.events.*; import gs.utils.tween.*; import gs.plugins.*; import gs.events.*; import flash.utils.*; public class TweenMax extends TweenLite implements IEventDispatcher { protected var _dispatcher:EventDispatcher; protected var _callbacks:Object; public var pauseTime:Number; protected var _repeatCount:Number; protected var _timeScale:Number; public static const version:Number = 10.1; public static var removeTween:Function = TweenLite.removeTween; private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(); ; protected static var _pausedTweens:Dictionary = new Dictionary(false); protected static var _globalTimeScale:Number = 1; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _activatedPlugins:Boolean = TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin, HexColorsPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, BevelFilterPlugin, DropShadowFilterPlugin, GlowFilterPlugin, RoundPropsPlugin, BezierPlugin, BezierThroughPlugin, ShortRotationPlugin]); public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); if (TweenLite.version < 10.09){ trace("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com."); }; if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenMax)))){ _timeScale = 1; this.combinedTimeScale = _globalTimeScale; } else { _timeScale = this.combinedTimeScale; this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale); }; if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){ this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale))); }; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ initDispatcher(); if ((((_arg2 == 0)) && ((this.delay == 0)))){ onUpdateDispatcher(); onCompleteDispatcher(); }; }; _repeatCount = 0; if (((!(isNaN(this.vars.yoyo))) || (!(isNaN(this.vars.loop))))){ this.vars.persist = true; }; if ((((this.delay == 0)) && (!((this.exposedVars.startAt == null))))){ this.exposedVars.startAt.overwrite = 0; new TweenMax(this.target, 0, this.exposedVars.startAt); }; } public function dispatchEvent(_arg1:Event):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.dispatchEvent(_arg1)); } public function get reversed():Boolean{ return ((this.ease == reverseEase)); } public function set reversed(_arg1:Boolean):void{ if (this.reversed != _arg1){ reverse(); }; } public function get progress():Number{ var _local1:Number = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime; var _local2:Number = (((((_local1 - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale); if (_local2 > 1){ return (1); }; if (_local2 < 0){ return (0); }; return (_local2); } override public function set enabled(_arg1:Boolean):void{ if (!_arg1){ _pausedTweens[this] = null; delete _pausedTweens[this]; }; super.enabled = _arg1; if (_arg1){ this.combinedTimeScale = (_timeScale * _globalTimeScale); }; } protected function onStartDispatcher(... _args):void{ if (_callbacks.onStart != null){ _callbacks.onStart.apply(null, this.vars.onStartParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); } public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{ var _local5:int; var _local6:TweenInfo; var _local7:Object; var _local8:Object; var _local9:Array; var _local10:Boolean; var _local11:Array; var _local12:Object; var _local4:Number = this.progress; if (this.initted){ if (!_arg3){ _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local6 = this.tweens[_local5]; if (_local6.name == _arg1){ _local6.target[_local6.property] = _local6.start; }; _local5--; }; }; _local7 = this.vars; _local8 = this.exposedVars; _local9 = this.tweens; _local10 = _hasPlugins; this.tweens = []; this.vars = (this.exposedVars = {}); this.vars[_arg1] = _arg2; initTweenVals(); if (((!((this.ease == reverseEase))) && ((_local7.ease is Function)))){ this.ease = _local7.ease; }; if (((_arg3) && (!((_local4 == 0))))){ adjustStartValues(); }; _local11 = this.tweens; this.vars = _local7; this.exposedVars = _local8; this.tweens = _local9; _local12 = {}; _local12[_arg1] = true; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local6 = this.tweens[_local5]; if (_local6.name == _arg1){ this.tweens.splice(_local5, 1); } else { if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){ _local6.target.killProps(_local12); if (_local6.target.overwriteProps.length == 0){ this.tweens.splice(_local5, 1); }; }; }; _local5--; }; this.tweens = this.tweens.concat(_local11); _hasPlugins = Boolean(((_local10) || (_hasPlugins))); }; this.vars[_arg1] = (this.exposedVars[_arg1] = _arg2); } override public function initTweenVals():void{ var _local1:int; var _local2:int; var _local3:String; var _local4:String; var _local5:Array; var _local6:Object; var _local7:TweenInfo; if (((!((this.exposedVars.startAt == null))) && (!((this.delay == 0))))){ this.exposedVars.startAt.overwrite = 0; new TweenMax(this.target, 0, this.exposedVars.startAt); }; super.initTweenVals(); if ((((this.exposedVars.roundProps is Array)) && (!((TweenLite.plugins.roundProps == null))))){ _local5 = this.exposedVars.roundProps; _local1 = (_local5.length - 1); while (_local1 > -1) { _local3 = _local5[_local1]; _local2 = (this.tweens.length - 1); while (_local2 > -1) { _local7 = this.tweens[_local2]; if (_local7.name == _local3){ if (_local7.isPlugin){ _local7.target.round = true; } else { if (_local6 == null){ _local6 = new TweenLite.plugins.roundProps(); _local6.add(_local7.target, _local3, _local7.start, _local7.change); _hasPlugins = true; this.tweens[_local2] = new TweenInfo(_local6, "changeFactor", 0, 1, _local3, true); } else { _local6.add(_local7.target, _local3, _local7.start, _local7.change); this.tweens.splice(_local2, 1); }; }; } else { if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){ _local4 = ((" " + _local7.target.overwriteProps.join(" ")) + " "); if (_local4.indexOf(((" " + _local3) + " ")) != -1){ _local7.target.round = true; }; }; }; _local2--; }; _local1--; }; }; } public function restart(_arg1:Boolean=false):void{ if (_arg1){ this.initTime = currentTime; this.startTime = (currentTime + (this.delay * (1000 / this.combinedTimeScale))); } else { this.startTime = currentTime; this.initTime = (currentTime - (this.delay * (1000 / this.combinedTimeScale))); }; _repeatCount = 0; if (this.target != this.vars.onComplete){ render(this.startTime); }; this.pauseTime = NaN; _pausedTweens[this] = null; delete _pausedTweens[this]; this.enabled = true; } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher != null){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (_dispatcher == null){ initDispatcher(); }; if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){ this.vars.onUpdate = onUpdateDispatcher; _hasUpdate = true; }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } protected function adjustStartValues():void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:TweenInfo; var _local6:int; var _local1:Number = this.progress; if (_local1 != 0){ _local2 = this.ease(_local1, 0, 1, 1); _local3 = (1 / (1 - _local2)); _local6 = (this.tweens.length - 1); while (_local6 > -1) { _local5 = this.tweens[_local6]; _local4 = (_local5.start + _local5.change); if (_local5.isPlugin){ _local5.change = ((_local4 - _local2) * _local3); } else { _local5.change = ((_local4 - _local5.target[_local5.property]) * _local3); }; _local5.start = (_local4 - _local5.change); _local6--; }; }; } override public function render(_arg1:uint):void{ var _local3:Number; var _local4:TweenInfo; var _local5:int; var _local2:Number = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0; } else { _local3 = this.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change)); _local5--; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } protected function initDispatcher():void{ var _local1:Object; var _local2:String; if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); _callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete}; if (this.vars.isTV == true){ this.vars = this.vars.clone(); } else { _local1 = {}; for (_local2 in this.vars) { _local1[_local2] = this.vars[_local2]; }; this.vars = _local1; }; this.vars.onStart = onStartDispatcher; this.vars.onComplete = onCompleteDispatcher; if ((this.vars.onStartListener is Function)){ _dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true); }; if ((this.vars.onUpdateListener is Function)){ _dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true); this.vars.onUpdate = onUpdateDispatcher; _hasUpdate = true; }; if ((this.vars.onCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true); }; }; } public function willTrigger(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.willTrigger(_arg1)); } public function set progress(_arg1:Number):void{ this.startTime = (currentTime - ((this.duration * _arg1) * 1000)); this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); if (!this.started){ activate(); }; render(currentTime); if (!isNaN(this.pauseTime)){ this.pauseTime = currentTime; this.startTime = 999999999999999; this.active = false; }; } public function reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{ this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease; var _local3:Number = this.progress; if (((_arg1) && ((_local3 > 0)))){ this.startTime = (currentTime - ((((1 - _local3) * this.duration) * 1000) / this.combinedTimeScale)); this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); }; if (_arg2 != false){ if (_local3 < 1){ resume(); } else { restart(); }; }; } protected function onUpdateDispatcher(... _args):void{ if (_callbacks.onUpdate != null){ _callbacks.onUpdate.apply(null, this.vars.onUpdateParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); } public function set paused(_arg1:Boolean):void{ if (_arg1){ pause(); } else { resume(); }; } public function resume():void{ this.enabled = true; if (!isNaN(this.pauseTime)){ this.initTime = (this.initTime + (currentTime - this.pauseTime)); this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale))); this.pauseTime = NaN; if (((!(this.started)) && ((currentTime >= this.startTime)))){ activate(); } else { this.active = this.started; }; _pausedTweens[this] = null; delete _pausedTweens[this]; }; } public function get paused():Boolean{ return (!(isNaN(this.pauseTime))); } public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4)); } public function killProperties(_arg1:Array):void{ var _local3:int; var _local2:Object = {}; _local3 = (_arg1.length - 1); while (_local3 > -1) { _local2[_arg1[_local3]] = true; _local3--; }; killVars(_local2); } public function hasEventListener(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.hasEventListener(_arg1)); } public function pause():void{ if (isNaN(this.pauseTime)){ this.pauseTime = currentTime; this.startTime = 999999999999999; this.enabled = false; _pausedTweens[this] = this; }; } override public function complete(_arg1:Boolean=false):void{ if (((((!(isNaN(this.vars.yoyo))) && ((((_repeatCount < this.vars.yoyo)) || ((this.vars.yoyo == 0)))))) || (((!(isNaN(this.vars.loop))) && ((((_repeatCount < this.vars.loop)) || ((this.vars.loop == 0)))))))){ _repeatCount++; if (!isNaN(this.vars.yoyo)){ this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease; }; this.startTime = (_arg1) ? (this.startTime + (this.duration * (1000 / this.combinedTimeScale))) : currentTime; this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); } else { if (this.vars.persist == true){ pause(); }; }; super.complete(_arg1); } public function set timeScale(_arg1:Number):void{ if (_arg1 < 1E-5){ _arg1 = (_timeScale = 1E-5); } else { _timeScale = _arg1; _arg1 = (_arg1 * _globalTimeScale); }; this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1))); if (this.startTime != 999999999999999){ this.startTime = (this.initTime + (this.delay * (1000 / _arg1))); }; this.combinedTimeScale = _arg1; } public function invalidate(_arg1:Boolean=true):void{ var _local2:Number; if (this.initted){ _local2 = this.progress; if (((!(_arg1)) && (!((_local2 == 0))))){ this.progress = 0; }; this.tweens = []; _hasPlugins = false; this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars; initTweenVals(); _timeScale = ((this.vars.timeScale) || (1)); this.combinedTimeScale = (_timeScale * _globalTimeScale); this.delay = ((this.vars.delay) || (0)); if (isNaN(this.pauseTime)){ this.startTime = (this.initTime + ((this.delay * 1000) / this.combinedTimeScale)); }; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ if (_dispatcher != null){ this.vars.onStart = _callbacks.onStart; this.vars.onUpdate = _callbacks.onUpdate; this.vars.onComplete = _callbacks.onComplete; _dispatcher = null; }; initDispatcher(); }; if (_local2 != 0){ if (_arg1){ adjustStartValues(); } else { this.progress = _local2; }; }; }; } public function get timeScale():Number{ return (_timeScale); } protected function onCompleteDispatcher(... _args):void{ if (_callbacks.onComplete != null){ _callbacks.onComplete.apply(null, this.vars.onCompleteParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); } public static function set globalTimeScale(_arg1:Number):void{ setGlobalTimeScale(_arg1); } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(true, _arg1, _arg2); } public static function killAllDelayedCalls(_arg1:Boolean=false):void{ killAll(_arg1, false, true); } public static function setGlobalTimeScale(_arg1:Number):void{ var _local3:int; var _local4:Array; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; var _local2:Dictionary = masterList; _globalTimeScale = _arg1; for each (_local4 in _local2) { _local3 = (_local4.length - 1); while (_local3 > -1) { if ((_local4[_local3] is TweenMax)){ _local4[_local3].timeScale = (_local4[_local3].timeScale * 1); }; _local3--; }; }; } public static function get globalTimeScale():Number{ return (_globalTimeScale); } public static function getTweensOf(_arg1:Object):Array{ var _local4:TweenLite; var _local5:int; var _local2:Array = masterList[_arg1]; var _local3:Array = []; if (_local2 != null){ _local5 = (_local2.length - 1); while (_local5 > -1) { if (!_local2[_local5].gc){ _local3[_local3.length] = _local2[_local5]; }; _local5--; }; }; for each (_local4 in _pausedTweens) { if (_local4.target == _arg1){ _local3[_local3.length] = _local4; }; }; return (_local3); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{ return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0})); } public static function isTweening(_arg1:Object):Boolean{ var _local2:Array = getTweensOf(_arg1); var _local3:int = (_local2.length - 1); while (_local3 > -1) { if (((((_local2[_local3].active) || ((_local2[_local3].startTime == currentTime)))) && (!(_local2[_local3].gc)))){ return (true); }; _local3--; }; return (false); } public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{ var _local5:Boolean; var _local4:Array = getAllTweens(); var _local6:int = (_local4.length - 1); while (_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local4[_local6] is TweenMax)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){ _local4[_local6].paused = _arg1; }; _local6--; }; } public static function killAllTweens(_arg1:Boolean=false):void{ killAll(_arg1, true, false); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3.runBackwards = true; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{ var _local5:Boolean; var _local6:int; var _local4:Array = getAllTweens(); _local6 = (_local4.length - 1); while (_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ if (_arg1){ _local4[_local6].complete(false); _local4[_local6].clear(); } else { TweenLite.removeTween(_local4[_local6], true); }; }; _local6--; }; } public static function getAllTweens():Array{ var _local3:Array; var _local4:int; var _local5:TweenLite; var _local1:Dictionary = masterList; var _local2:Array = []; for each (_local3 in _local1) { _local4 = (_local3.length - 1); while (_local4 > -1) { if (!_local3[_local4].gc){ _local2[_local2.length] = _local3[_local4]; }; _local4--; }; }; for each (_local5 in _pausedTweens) { _local2[_local2.length] = _local5; }; return (_local2); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(false, _arg1, _arg2); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ return (new TweenMax(_arg1, _arg2, _arg3)); } } }//package gs
Section 37
//Action (Action) package { import gs.*; import flash.display.*; import flash.text.*; public class Action extends MovieClip { private var main:MovieClip; private var txt1:TextField; private var par:ActionFeed; private var textFormat:TextFormat; private var eFont:Font; private var aArray:Array; public var fading:Boolean;// = false public function Action(_arg1, _arg2:String, _arg3, _arg4):void{ main = new MovieClip(); txt1 = new TextField(); super(); par = _arg4; aArray = _arg3; eFont = _arg1; var _local5:TextFormat = new TextFormat(eFont.fontName, 13, 0xEEEEEE); txt1.text = _arg2; txt1.setTextFormat(_local5); txt1.autoSize = TextFieldAutoSize.LEFT; txt1.antiAliasType = AntiAliasType.ADVANCED; txt1.selectable = false; txt1.embedFonts = true; main.addChild(txt1); addChild(main); TweenMax.delayedCall(2.4, TimerComplete); this.alpha = 0; TweenMax.to(this, 0.4, {alpha:1}); } private function kill():void{ main.parent.removeChild(main); this.parent.removeChild(this); aArray.splice(aArray.indexOf(this), 1); par.minusAction(); } public function TimerComplete():void{ if (fading == false){ fadeOut(); fading = true; }; } public function fadeOut():void{ TweenMax.to(this, 0.4, {alpha:0}); TweenMax.delayedCall(0.4, kill); } } }//package
Section 38
//ActionFeed (ActionFeed) package { import gs.*; import flash.display.*; import flash.text.*; public class ActionFeed extends MovieClip { public var actionArray:Array; private var eFont:Font; private var numActions:int;// = 1 private var main:MovieClip; public function ActionFeed(_arg1:Font, _arg2, _arg3:String):void{ main = new MovieClip(); actionArray = new Array(); super(); eFont = _arg1; var _local4:Action = new Action(_arg1, _arg3, actionArray, this); main.addChild(_local4); actionArray.push(_local4); addChild(main); this.alpha = 0.8; } public function addKill(_arg1, _arg2, _arg3):void{ var _local5:*; numActions++; var _local4:ActionKill = new ActionKill(eFont, _arg1, _arg2, _arg3, actionArray, this); actionArray.unshift(_local4); main.addChild(_local4); _local4.y = -17; for (_local5 in actionArray) { TweenMax.to(actionArray[_local5], 0.4, {y:(_local5 * 17)}); }; if (numActions > 5){ actionArray[(actionArray.length - 1)].TimerComplete(); }; } public function minusAction():void{ numActions--; } public function addAction(_arg1):void{ var _local3:*; numActions++; var _local2:Action = new Action(eFont, _arg1, actionArray, this); actionArray.unshift(_local2); main.addChild(_local2); _local2.y = -17; for (_local3 in actionArray) { TweenMax.to(actionArray[_local3], 0.4, {y:(_local3 * 17)}); }; if (numActions > 5){ actionArray[(actionArray.length - 1)].TimerComplete(); }; } } }//package
Section 39
//actionFont (actionFont) package { import flash.text.*; public dynamic class actionFont extends Font { } }//package
Section 40
//ActionKill (ActionKill) package { import gs.*; import flash.display.*; import flash.filters.*; import flash.text.*; public class ActionKill extends MovieClip { private var main:MovieClip; private var txt1:TextField; private var par:ActionFeed; private var textFormat:TextFormat; private var eFont:Font; private var aArray:Array; public var fading:Boolean;// = false public function ActionKill(_arg1, _arg2:String, _arg3:MovieClip, _arg4:String, _arg5, _arg6):void{ main = new MovieClip(); txt1 = new TextField(); super(); var _local7:GlowFilter = new GlowFilter(0, 1, 1.5, 1.5, 6, 2); var _local8:Array = new Array(); _local8.push(_local7); par = _arg6; aArray = _arg5; eFont = _arg1; var _local9:TextFormat = new TextFormat(eFont.fontName, 13, 0xEEEEEE); txt1.text = _arg2; txt1.setTextFormat(_local9); txt1.autoSize = TextFieldAutoSize.LEFT; txt1.antiAliasType = AntiAliasType.ADVANCED; txt1.selectable = false; txt1.embedFonts = true; var _local10:TextField = new TextField(); _local10.text = _arg4; _local9.color = 0xFF0000; _local10.setTextFormat(_local9); _local10.autoSize = TextFieldAutoSize.LEFT; _local10.antiAliasType = AntiAliasType.ADVANCED; _local10.selectable = false; _local10.embedFonts = true; var _local11:MovieClip = _arg3; main.addChild(txt1); main.addChild(_local11); _local11.x = (txt1.width + 5); main.addChild(_local10); _local10.x = ((_local11.x + _local11.width) + 5); addChild(main); TweenMax.delayedCall(2.4, TimerComplete); this.alpha = 0; TweenMax.to(this, 0.4, {alpha:1}); } private function kill():void{ main.parent.removeChild(main); this.parent.removeChild(this); aArray.splice(aArray.indexOf(this), 1); par.minusAction(); } public function TimerComplete():void{ if (fading == false){ fadeOut(); fading = true; }; } public function fadeOut():void{ TweenMax.to(this, 0.4, {alpha:0}); TweenMax.delayedCall(0.4, kill); } } }//package
Section 41
//addHealth (addHealth) package { import flash.display.*; public dynamic class addHealth extends MovieClip { } }//package
Section 42
//AmmoBar (AmmoBar) package { import flash.display.*; public class AmmoBar extends MovieClip { public var ammoShape:Shape; public var ammoMC:MovieClip; public var barMC:MovieClip; public function AmmoBar(_arg1:int):void{ var _local4:Shape; barMC = new MovieClip(); ammoMC = new MovieClip(); ammoShape = new Shape(); super(); var _local2:int; var _local3:int = _arg1; _local2 = 0; while (_local2 < _local3) { _local4 = new Shape(); _local4.graphics.beginFill(0x333333); _local4.graphics.drawRect((_local2 * 3), 0, 1, 5); _local4.graphics.endFill(); barMC.addChild(_local4); _local2++; }; addChild(barMC); addChild(ammoMC); barMC.alpha = 0.5; Update(_arg1); } public function Update(_arg1:int):void{ ammoShape.graphics.clear(); var _local2:int; while (_local2 < _arg1) { ammoShape.graphics.beginFill(0xFFFFFF); ammoShape.graphics.drawRect((_local2 * 3), 0, 1, 5); ammoShape.graphics.endFill(); ammoMC.addChild(ammoShape); _local2++; }; } } }//package
Section 43
//arrowDown_up (arrowDown_up) package { import flash.display.*; public dynamic class arrowDown_up extends MovieClip { public var inner:MovieClip; } }//package
Section 44
//arrowUp_up (arrowUp_up) package { import flash.display.*; public dynamic class arrowUp_up extends MovieClip { public var inner:MovieClip; } }//package
Section 45
//Background (Background) package { import flash.display.*; public class Background extends MovieClip { private var main:MovieClip; public function Background(_arg1):void{ main = new MovieClip(); super(); main.addChild(_arg1); addChild(main); main.x = -10; main.y = -10; } } }//package
Section 46
//backgroundMC (backgroundMC) package { import flash.display.*; public dynamic class backgroundMC extends MovieClip { } }//package
Section 47
//Bar (Bar) package { import flash.display.*; public dynamic class Bar extends MovieClip { } }//package
Section 48
//Bar_hip (Bar_hip) package { import flash.display.*; public dynamic class Bar_hip extends MovieClip { } }//package
Section 49
//bar_select (bar_select) package { import flash.display.*; public dynamic class bar_select extends MovieClip { } }//package
Section 50
//Bar_sight (Bar_sight) package { import flash.display.*; public dynamic class Bar_sight extends MovieClip { } }//package
Section 51
//bar_up (bar_up) package { import flash.display.*; public dynamic class bar_up extends MovieClip { } }//package
Section 52
//barSound (barSound) package { import flash.media.*; public dynamic class barSound extends Sound { } }//package
Section 53
//battleAmbience (battleAmbience) package { import flash.media.*; public dynamic class battleAmbience extends Sound { } }//package
Section 54
//Bazooka (Bazooka) package { import flash.display.*; public dynamic class Bazooka extends MovieClip { } }//package
Section 55
//Bazooka_hip (Bazooka_hip) package { import flash.display.*; public dynamic class Bazooka_hip extends MovieClip { } }//package
Section 56
//bazooka_select (bazooka_select) package { import flash.display.*; public dynamic class bazooka_select extends MovieClip { } }//package
Section 57
//bazooka_up (bazooka_up) package { import flash.display.*; public dynamic class bazooka_up extends MovieClip { } }//package
Section 58
//bazookaShot (bazookaShot) package { import flash.display.*; public dynamic class bazookaShot extends MovieClip { } }//package
Section 59
//Bazookawav (Bazookawav) package { import flash.media.*; public dynamic class Bazookawav extends Sound { } }//package
Section 60
//blood (blood) package { import flash.display.*; public dynamic class blood extends MovieClip { public function blood(){ addFrameScript(4, frame5); } function frame5(){ stop(); this.parent.removeChild(this); } } }//package
Section 61
//blood_splat (blood_splat) package { import flash.display.*; public dynamic class blood_splat extends MovieClip { public function blood_splat(){ addFrameScript(8, frame9); } function frame9(){ stop(); this.parent.removeChild(this); } } }//package
Section 62
//Browning (Browning) package { import flash.display.*; public dynamic class Browning extends MovieClip { } }//package
Section 63
//browning_up (browning_up) package { import flash.display.*; public dynamic class browning_up extends MovieClip { } }//package
Section 64
//browningSound (browningSound) package { import flash.media.*; public dynamic class browningSound extends Sound { } }//package
Section 65
//bulletHole (bulletHole) package { import flash.display.*; public dynamic class bulletHole extends MovieClip { } }//package
Section 66
//buyButton (buyButton) package { import flash.display.*; public dynamic class buyButton extends MovieClip { public function buyButton(){ addFrameScript(0, frame1, 9, frame10); } function frame10(){ stop(); } function frame1(){ stop(); } } }//package
Section 67
//BuyWeapons (BuyWeapons) package { import gs.*; import flash.events.*; import flash.display.*; import flash.filters.*; import flash.text.*; import gs.easing.*; public class BuyWeapons extends MovieClip { private var textFormat:TextFormat; private var space:int; private var downArrow:MovieClip; private var num:int;// = 0 private var carbine:MovieClip; private var priceText:TextField; private var garand:MovieClip; private var buyStatus:Boolean;// = true private var bar:MovieClip; private var weaponArray:Array; private var stats:Stats; private var reel:MovieClip; private var healthText:TextField; private var reelMask:MovieClip; private var upArrow:MovieClip; private var healthButton:MovieClip; private var filtersArray:Array; private var main:MovieClip; private var descriptionArray:Array; private var descriptionText:TextField; private var reference; private var font:Font; private var bazooka:MovieClip; private var noMoneyMC:MovieClip; private var buyButton:MovieClip; private var switcher:WeaponSwitch; private var glowFilter:GlowFilter; private var browning:MovieClip; private var n:int;// = 0 private var thompson:MovieClip; private var noMoney:TextField; public function BuyWeapons(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14):void{ var _local22:*; var _local23:Shape; var _local24:Shape; thompson = new MovieClip(); carbine = new MovieClip(); garand = new MovieClip(); bar = new MovieClip(); browning = new MovieClip(); bazooka = new MovieClip(); weaponArray = new Array(); upArrow = new MovieClip(); downArrow = new MovieClip(); reel = new MovieClip(); reelMask = new MovieClip(); main = new MovieClip(); descriptionText = new TextField(); priceText = new TextField(); noMoney = new TextField(); noMoneyMC = new MovieClip(); descriptionArray = new Array(); healthText = new TextField(); filtersArray = new Array(); super(); glowFilter = new GlowFilter(0xFFFFFF, 2, 10, 10, 2, 2); filtersArray.push(glowFilter); healthButton = _arg14; noMoney.text = "Insufficient Funds"; noMoneyMC.addChild(noMoney); switcher = _arg4; stats = _arg3; buyButton = _arg2; buyButton.buttonMode = true; reference = _arg1; font = _arg13; textFormat = new TextFormat(font.fontName, 14, 0xEEEEEE); var _local15:TextField = new TextField(); _local15.text = "Buy new weapons and repair the house wall"; _local15.setTextFormat(textFormat); _local15.autoSize = TextFieldAutoSize.LEFT; _local15.antiAliasType = AntiAliasType.ADVANCED; _local15.selectable = false; _local15.embedFonts = true; addChild(main); upArrow = _arg11; downArrow = _arg12; thompson = _arg5; carbine = _arg6; garand = _arg7; bar = _arg8; browning = _arg9; bazooka = _arg10; var _local16 = "The M1A1 Thompson is a fully-automatic submachine gun with a high rate of fire. It's clip holds 20 .45 caliber rounds. 35 damage against infantry units, and 15 damage against vehicles and Howitzers. Reload time: .8 seconds."; var _local17 = "The M1 Carbine is an extremely accurate semi-automatic rifle. It's clip holds 15 .30 caliber rounds. 60 damage against infantry units, and 35 damage against vehicles and Howitzers. Reload time: .4 seconds."; var _local18 = "The M1 Garand is a powerful and accurate semi-automatic rifle. It's clip holds 8 .30-06 rounds. 120 damage against infantry units, and 65 damage against vehicles and Howitzers. Reload time: .6 seconds."; var _local19 = "The Browning Automatic Rifle, or BAR, is a fully-automatic rifle. It's clip holds 20 .30-6 rounds. 100 damage against infantry units, and 50 damage against vehicles and Howitzers. Reload time: 1 second."; var _local20 = "The M1919 Browning is a fully-automatic mounted machine gun. It's belt holds 160 .30-06 rounds. 115 damage against infantry units, and 65 damage against vehicles and Howitzers. Reload time: 1 second."; var _local21 = "The M9 bazooka fires a 60mm rocket. Will destroy everything it hits. Reload time: 6 seconds"; descriptionArray.push(_local16, _local17, _local18, _local19, _local20, _local21); weaponArray.push(thompson, carbine, garand, bar, browning, bazooka); space = (weaponArray[0].height + 10); for (_local22 in weaponArray) { weaponArray[_local22].cacheAsBitmap = true; weaponArray[_local22].buttonMode = true; reel.addChild(weaponArray[_local22]); if (_local22 > 0){ weaponArray[_local22].y = ((weaponArray[(_local22 - 1)].y + weaponArray[(_local22 - 1)].height) + 10); }; weaponArray[_local22].addEventListener(MouseEvent.MOUSE_OVER, weaponOver); weaponArray[_local22].addEventListener(MouseEvent.MOUSE_OUT, weaponOut); weaponArray[_local22].addEventListener(MouseEvent.CLICK, weaponInfo); weaponArray[_local22].name = String(_local22); weaponArray[_local22].mouseChildren = false; }; _local23 = new Shape(); _local23.graphics.beginFill(0); _local23.graphics.drawRect(0, 0, 140, 285); _local23.graphics.endFill(); reelMask.addChild(_local23); addChild(reelMask); reel.mask = reelMask; addChild(reel); reel.y = 33; reelMask.y = 33; addChild(upArrow); addChild(downArrow); upArrow.x = (reel.width / 2); downArrow.x = (reel.width / 2); upArrow.y = (-8 + 33); downArrow.y = (reelMask.height + 41); upArrow.buttonMode = true; downArrow.buttonMode = true; upArrow.addEventListener(MouseEvent.CLICK, weaponUp); upArrow.addEventListener(MouseEvent.ROLL_OVER, arrowOver); downArrow.addEventListener(MouseEvent.ROLL_OVER, arrowOver); upArrow.addEventListener(MouseEvent.ROLL_OUT, arrowOut); downArrow.addEventListener(MouseEvent.ROLL_OUT, arrowOut); downArrow.addEventListener(MouseEvent.CLICK, weaponDown); upArrow.visible = false; _local24 = new Shape(); _local24.graphics.beginFill(0); _local24.graphics.drawRect(0, 0, 365, 420); _local24.graphics.endFill(); _local24.alpha = 0.6; main.addChild(_local24); descriptionText.text = _local16; descriptionText.setTextFormat(textFormat); descriptionText.width = 175; descriptionText.wordWrap = true; descriptionText.multiline = true; descriptionText.height = 400; descriptionText.antiAliasType = AntiAliasType.ADVANCED; descriptionText.selectable = false; descriptionText.embedFonts = true; noMoney.setTextFormat(textFormat); noMoney.autoSize = TextFieldAutoSize.LEFT; noMoney.antiAliasType = AntiAliasType.ADVANCED; noMoney.selectable = false; noMoney.embedFonts = true; addChild(descriptionText); descriptionText.x = -200; descriptionText.y = 80; addChild(buyButton); buyButton.x = -200; buyButton.y = 302; buyButton.gotoAndStop("purchased"); buyButton.addEventListener(MouseEvent.CLICK, buyGun); main.x = -230; main.y = -50; _local15.x = -220; _local15.y = -40; addChild(priceText); priceText.x = -202; priceText.y = 277; priceText.visible = false; priceText.selectable = false; addChild(noMoneyMC); noMoneyMC.x = -202; noMoneyMC.y = 330; noMoneyMC.alpha = 0; addChild(healthButton); healthButton.x = -190; healthButton.y = -13; healthButton.addEventListener(MouseEvent.CLICK, onAddHealth); if (reference.wallHealth < 1000){ healthText.text = (("Your wall has " + String(reference.wallHealth)) + "/1000 health, you may want to repair it"); healthButton.buttonMode = true; } else { healthText.text = "Your wall is at full health, it does not need repair"; healthButton.buttonMode = false; }; textFormat.color = 0xFF0000; textFormat.size = 12; healthText.setTextFormat(textFormat); healthText.width = 140; healthText.wordWrap = true; healthText.multiline = true; healthText.antiAliasType = AntiAliasType.ADVANCED; healthText.selectable = false; healthText.embedFonts = true; var _local25:TextField = new TextField(); _local25.text = "Cost: 20 Wall Health: +25"; _local25.setTextFormat(textFormat); _local25.autoSize = TextFieldAutoSize.LEFT; _local25.antiAliasType = AntiAliasType.ADVANCED; _local25.selectable = false; _local25.embedFonts = true; addChild(_local25); _local25.x = -165; _local25.y = -38; textFormat.size = 14; healthText.x = -165; healthText.y = -23; addChild(healthText); healthText.multiline = true; textFormat.color = 0xEEEEEE; TweenMax.to(carbine, 0.3, {colorMatrixFilter:{contrast:1.6, brightness:1.6}}); setGunInfo(); } private function alert():void{ noMoneyMC.alpha = 1; TweenMax.to(noMoneyMC, 0.3, {alpha:0, delay:0.5}); } private function weaponOver(_arg1:MouseEvent):void{ TweenMax.to(_arg1.target, 0.3, {colorMatrixFilter:{contrast:1.6, brightness:1.6}}); } private function arrowOut(_arg1:MouseEvent):void{ TweenMax.to(_arg1.target.inner, 1, {scaleX:1, scaleY:1, colorMatrixFilter:{contrast:1, brightness:1}, ease:Elastic.easeOut}); } private function weaponOut(_arg1:MouseEvent):void{ var _local2:*; for (_local2 in weaponArray) { if (_local2 == n){ } else { TweenMax.to(weaponArray[_local2], 0.3, {colorMatrixFilter:{contrast:1, brightness:1}}); }; }; } private function onAddHealth(_arg1:MouseEvent):void{ textFormat.color = 0xFF0000; if (reference.wallHealth < 1000){ if (reference.totMoney >= 20){ reference.totMoney = (reference.totMoney - 20); reference.wallHealth = (reference.wallHealth + 25); if (reference.wallHealth > 1000){ reference.wallHealth = 1000; healthButton.buttonMode = false; healthText.text = "Your wall is at full health, it does not need repair"; textFormat.size = 12; healthText.setTextFormat(textFormat); healthText.antiAliasType = AntiAliasType.ADVANCED; healthText.selectable = false; healthText.embedFonts = true; healthText.width = 140; healthText.wordWrap = true; healthText.multiline = true; healthText.multiline = true; textFormat.size = 14; } else { healthButton.buttonMode = true; healthText.text = (("Your wall has " + String(reference.wallHealth)) + "/1000 health, you may want to repair it"); textFormat.size = 12; healthText.setTextFormat(textFormat); healthText.antiAliasType = AntiAliasType.ADVANCED; healthText.selectable = false; healthText.embedFonts = true; healthText.multiline = true; healthText.width = 140; healthText.wordWrap = true; healthText.multiline = true; textFormat.size = 14; }; stats.updateMoney(reference.totMoney); reference.wallHealthLabel.text = String(("Wall: " + reference.wallHealth)); }; }; textFormat.color = 0xEEEEEE; } private function setGunInfo():void{ n = 1; descriptionText.text = descriptionArray[n]; descriptionText.setTextFormat(textFormat); descriptionText.width = 175; descriptionText.wordWrap = true; descriptionText.multiline = true; descriptionText.height = 400; descriptionText.antiAliasType = AntiAliasType.ADVANCED; descriptionText.selectable = false; descriptionText.embedFonts = true; noMoneyMC.alpha = 0; if (n == 0){ if (reference.thompsonPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.thompsonPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 1){ if (reference.carbinePurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.carbinePrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 2){ if (reference.garandPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.garandPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 3){ if (reference.barPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.barPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 4){ if (reference.browningPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.browningPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 5){ if (reference.bazookaPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.bazookaPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; }; }; }; }; }; }; priceText.setTextFormat(textFormat); priceText.autoSize = TextFieldAutoSize.LEFT; priceText.antiAliasType = AntiAliasType.ADVANCED; priceText.selectable = false; priceText.embedFonts = true; } private function weaponUp(_arg1:MouseEvent):void{ downArrow.visible = true; if (num > 0){ num--; TweenMax.to(reel, 0.6, {y:(-((num * space)) + 30)}); } else { upArrow.visible = false; }; if (num == 0){ upArrow.visible = false; }; } private function buyGun(_arg1:MouseEvent):void{ if (buyStatus == false){ if (n == 0){ if (reference.totMoney >= reference.thompsonPrice){ reference.thompsonPurchased = true; reference.totMoney = (reference.totMoney - reference.thompsonPrice); buyStatus = true; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; stats.updateMoney(reference.totMoney); switcher.addWeapon("thompson"); priceText.text = ""; priceText.visible = false; } else { alert(); }; } else { if (n == 1){ if (reference.totMoney >= reference.carbinePrice){ reference.carbinePurchased = true; reference.totMoney = (reference.totMoney - reference.carbinePrice); buyStatus = true; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; stats.updateMoney(reference.totMoney); switcher.addWeapon("carbine"); priceText.text = ""; priceText.visible = false; } else { alert(); }; } else { if (n == 2){ if (reference.totMoney >= reference.garandPrice){ reference.garandPurchased = true; reference.totMoney = (reference.totMoney - reference.garandPrice); buyStatus = true; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; stats.updateMoney(reference.totMoney); switcher.addWeapon("garand"); priceText.text = ""; priceText.visible = false; } else { alert(); }; } else { if (n == 3){ if (reference.totMoney >= reference.barPrice){ reference.barPurchased = true; reference.totMoney = (reference.totMoney - reference.barPrice); buyStatus = true; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; stats.updateMoney(reference.totMoney); switcher.addWeapon("bar"); priceText.text = ""; priceText.visible = false; } else { alert(); }; } else { if (n == 4){ if (reference.totMoney >= reference.browningPrice){ reference.browningPurchased = true; reference.totMoney = (reference.totMoney - reference.browningPrice); buyStatus = true; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; stats.updateMoney(reference.totMoney); switcher.addWeapon("mg"); priceText.text = ""; priceText.visible = false; } else { alert(); }; } else { if (n == 5){ if (reference.totMoney >= reference.bazookaPrice){ reference.bazookaPurchased = true; reference.totMoney = (reference.totMoney - reference.bazookaPrice); buyStatus = true; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; stats.updateMoney(reference.totMoney); switcher.addWeapon("bazooka"); priceText.text = ""; priceText.visible = false; } else { alert(); }; }; }; }; }; }; }; priceText.setTextFormat(textFormat); priceText.autoSize = TextFieldAutoSize.LEFT; priceText.antiAliasType = AntiAliasType.ADVANCED; priceText.selectable = false; priceText.embedFonts = true; }; } private function weaponDown(_arg1:MouseEvent):void{ upArrow.visible = true; if (num < 3){ num++; TweenMax.to(reel, 0.6, {y:(-((num * space)) + 30)}); } else { downArrow.visible = false; }; if (num == 3){ downArrow.visible = false; }; } private function weaponInfo(_arg1:MouseEvent):void{ n = int(_arg1.target.name); descriptionText.text = descriptionArray[n]; descriptionText.setTextFormat(textFormat); descriptionText.width = 175; descriptionText.wordWrap = true; descriptionText.multiline = true; descriptionText.height = 400; descriptionText.antiAliasType = AntiAliasType.ADVANCED; descriptionText.selectable = false; descriptionText.embedFonts = true; noMoneyMC.alpha = 0; if (n == 0){ if (reference.thompsonPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.thompsonPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 1){ if (reference.carbinePurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.carbinePrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 2){ if (reference.garandPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.garandPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 3){ if (reference.barPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.barPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 4){ if (reference.browningPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.browningPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; } else { if (n == 5){ if (reference.bazookaPurchased == true){ priceText.text = ""; priceText.visible = false; buyButton.gotoAndStop("purchased"); buyButton.buttonMode = false; buyStatus = true; } else { priceText.visible = true; priceText.text = (("Price: " + String(reference.bazookaPrice)) + "$"); buyButton.gotoAndStop("buy"); buyButton.buttonMode = true; buyStatus = false; }; }; }; }; }; }; }; priceText.setTextFormat(textFormat); priceText.autoSize = TextFieldAutoSize.LEFT; priceText.antiAliasType = AntiAliasType.ADVANCED; priceText.selectable = false; priceText.embedFonts = true; } private function arrowOver(_arg1:MouseEvent):void{ TweenMax.to(_arg1.target.inner, 0.2, {scaleX:1.1, scaleY:1.1, colorMatrixFilter:{contrast:1.2, brightness:1.2}}); } } }//package
Section 68
//Carbine (Carbine) package { import flash.display.*; public dynamic class Carbine extends MovieClip { } }//package
Section 69
//Carbine_hip (Carbine_hip) package { import flash.display.*; public dynamic class Carbine_hip extends MovieClip { } }//package
Section 70
//carbine_select (carbine_select) package { import flash.display.*; public dynamic class carbine_select extends MovieClip { } }//package
Section 71
//carbine_up (carbine_up) package { import flash.display.*; public dynamic class carbine_up extends MovieClip { } }//package
Section 72
//carbineSound (carbineSound) package { import flash.media.*; public dynamic class carbineSound extends Sound { } }//package
Section 73
//Credits (Credits) package { import flash.display.*; public dynamic class Credits extends MovieClip { public var playAgainButton:MovieClip; public function Credits(){ addFrameScript(0, frame1); } function frame1(){ playAgainButton.buttonMode = true; } } }//package
Section 74
//CreditsBackground (CreditsBackground) package { import flash.display.*; public dynamic class CreditsBackground extends MovieClip { } }//package
Section 75
//enemyBody (enemyBody) package { import flash.display.*; public dynamic class enemyBody extends MovieClip { public function enemyBody(){ addFrameScript(14, frame15, 30, frame31, 68, frame69, 106, frame107); } function frame69(){ stop(); } function frame15(){ gotoAndPlay(1); } function frame107(){ stop(); } function frame31(){ stop(); } } }//package
Section 76
//EnterName (EnterName) package { import gs.*; import flash.events.*; import flash.display.*; import flash.text.*; public class EnterName extends MovieClip { public var finalName:String; public var ok:MenuButton; private var playerName:String; private var ref; private var inputText:TextField; private var main:MovieClip; private var disabled:Boolean;// = false public function EnterName(_arg1:Font, _arg2:MovieClip, _arg3, _arg4):void{ main = new MovieClip(); inputText = new TextField(); super(); finalName = _arg4; ref = _arg3; var _local5:Shape = new Shape(); _local5.graphics.beginFill(0x333333); _local5.graphics.drawRect(0, 0, 350, 120); _local5.graphics.endFill(); main.addChild(_local5); var _local6:Font = _arg1; var _local7:TextField = new TextField(); var _local8:TextFormat = new TextFormat(_local6.fontName, 20, 0xEEEEEE); _local7.text = "Soldier, enter your name"; _local7.setTextFormat(_local8); _local7.autoSize = TextFieldAutoSize.LEFT; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.selectable = false; _local7.embedFonts = true; _local7.x = ((_local5.width / 2) - (_local7.width / 2)); _local7.y = 10; main.addChild(_local7); var _local9:Shape = new Shape(); _local9.graphics.beginFill(0x666666); _local9.graphics.drawRect(0, 0, 200, 20); _local9.graphics.endFill(); main.addChild(_local9); _local9.x = ((_local5.width / 2) - (_local9.width / 2)); _local9.y = 50; _local8.size = 16; inputText.type = TextFieldType.INPUT; inputText.border = false; inputText.height = 20; inputText.width = 200; _local8.color = 0xEEEEEE; inputText.setTextFormat(_local8); _local7.embedFonts = true; _local7.antiAliasType = AntiAliasType.ADVANCED; main.addChild(inputText); inputText.x = _local9.x; inputText.y = _local9.y; inputText.addEventListener(TextEvent.TEXT_INPUT, onChangeText); ok = new MenuButton("ok", _local6, 20); main.addChild(ok); ok.x = ((_local5.width / 2) - (ok.width / 2)); ok.y = 80; ok.buttonMode = true; ok.addEventListener(MouseEvent.CLICK, onOK); addChild(main); } private function onChangeText(_arg1:TextEvent):void{ if (_arg1.target.text.length > 20){ _arg1.target.text = _arg1.target.text.substring(0, 20); }; } private function onOK(_arg1:MouseEvent):void{ if (disabled == false){ playerName = inputText.text; if (playerName == ""){ playerName = "Player1"; }; finalName = playerName; inputText.text = ""; ok.Disable(); TweenMax.to(this, 0.6, {alpha:0}); TweenMax.delayedCall(0.6, onKill); disabled = true; }; } private function onKill():void{ this.parent.removeChild(this); } } }//package
Section 77
//FadeOverlay (FadeOverlay) package { import gs.*; import flash.display.*; public class FadeOverlay extends MovieClip { private var main:MovieClip; public function FadeOverlay(_arg1, _arg2):void{ main = new MovieClip(); super(); var _local3:Shape = new Shape(); _local3.graphics.beginFill(0); _local3.graphics.drawRect(0, 0, _arg1, _arg2); _local3.graphics.endFill(); main.addChild(_local3); addChild(main); this.alpha = 0; } public function fadeIn():void{ TweenMax.to(this, 0.5, {alpha:0.6}); } private function destroy():void{ this.parent.removeChild(this); } public function kill():void{ TweenMax.to(this, 0.5, {alpha:0}); TweenMax.delayedCall(0.5, destroy); } } }//package
Section 78
//gameBackground (gameBackground) package { import flash.display.*; public dynamic class gameBackground extends MovieClip { } }//package
Section 79
//Garand (Garand) package { import flash.display.*; public dynamic class Garand extends MovieClip { } }//package
Section 80
//Garand_hip (Garand_hip) package { import flash.display.*; public dynamic class Garand_hip extends MovieClip { } }//package
Section 81
//garand_select (garand_select) package { import flash.display.*; public dynamic class garand_select extends MovieClip { } }//package
Section 82
//garand_up (garand_up) package { import flash.display.*; public dynamic class garand_up extends MovieClip { } }//package
Section 83
//garandNoAmmo (garandNoAmmo) package { import flash.media.*; public dynamic class garandNoAmmo extends Sound { } }//package
Section 84
//garandSound (garandSound) package { import flash.media.*; public dynamic class garandSound extends Sound { } }//package
Section 85
//ground_hit (ground_hit) package { import flash.display.*; public dynamic class ground_hit extends MovieClip { public function ground_hit(){ addFrameScript(8, frame9); } function frame9(){ stop(); } } }//package
Section 86
//Gun (Gun) package { import gs.*; import flash.display.*; import flash.geom.*; public class Gun extends MovieClip { private var Garand_Aim:MovieClip; private var Browning_Aim:MovieClip; private var sightVisible:Boolean;// = false private var Bazooka_Aim:MovieClip; private var gunX:int; private var gunY:int; private var bitmapData:BitmapData; public var sight:MovieClip; private var sightBD:BitmapData; public var current_weapon:String;// = "thompson" private var Bar_Hip:MovieClip; private var Carbine_Hip:MovieClip; private var bitmap:Bitmap; private var switching:Boolean;// = false public var fireRate:int; public var main:MovieClip; public var damageVehicle:int; private var flash_hip:MovieClip; private var flashAimX:Number; private var sightB:Bitmap; private var matrix:Matrix; private var recoilTween:TweenMax; private var Thompson_Hip:MovieClip; private var currentAimMode:String;// = "hip" private var flashHipX:Number; private var Garand_Hip:MovieClip; private var Carbine_Aim:MovieClip; private var Bar_Aim:MovieClip; public var aim_mode:String;// = "hip" private var Bazooka_Hip:MovieClip; private var flashAimY:Number; private var flashHipY:Number; public var changingWeapon:Boolean;// = false public var damage:int; private var flash_small:MovieClip; private var Thompson_Aim:MovieClip; public function Gun(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13):void{ sight = new MovieClip(); main = new MovieClip(); flash_hip = new MovieClip(); flash_small = new MovieClip(); Thompson_Aim = new MovieClip(); Thompson_Hip = new MovieClip(); Carbine_Aim = new MovieClip(); Carbine_Hip = new MovieClip(); Garand_Aim = new MovieClip(); Garand_Hip = new MovieClip(); Bar_Aim = new MovieClip(); Bar_Hip = new MovieClip(); Bazooka_Aim = new MovieClip(); Bazooka_Hip = new MovieClip(); Browning_Aim = new MovieClip(); matrix = new Matrix(); super(); if (current_weapon == "thompson"){ damage = 35; damageVehicle = 15; fireRate = 3; } else { if (current_weapon == "carbine"){ damage = 60; damageVehicle = 35; fireRate = 4; } else { if (current_weapon == "garand"){ damage = 120; damageVehicle = 65; fireRate = 4; } else { if (current_weapon == "bar"){ damage = 100; damageVehicle = 50; fireRate = 4; } else { if (current_weapon == "mg"){ damage = 115; damageVehicle = 65; fireRate = 3; }; }; }; }; }; flash_hip = _arg1; flash_small = _arg2; Thompson_Aim = _arg3; Thompson_Hip = _arg4; Carbine_Aim = _arg5; Carbine_Hip = _arg6; Bar_Aim = _arg7; Bar_Hip = _arg8; Garand_Aim = _arg9; Garand_Hip = _arg10; Bazooka_Aim = _arg12; Bazooka_Hip = _arg13; Browning_Aim = _arg11; addChild(main); main.addChild(flash_hip); main.addChild(flash_small); flash_hip.gotoAndStop(4); flash_small.gotoAndStop(4); gunX = -280; gunY = -320; bitmapData = new BitmapData(Thompson_Hip.width, Thompson_Hip.height, true, 0); bitmapData.draw(Thompson_Hip); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); flashHipX = ((main.width / 2) - 130); flashHipY = -50; flashAimX = ((main.width / 2) + 10); flashAimY = 20; flash_hip.x = flashHipX; flash_hip.y = flashHipY; flash_small.x = flashAimX; flash_small.y = flashAimY; main.x = gunX; main.y = gunY; } private function drawWeapon():void{ if (switching == true){ bitmapData.dispose(); }; if (current_weapon == "thompson"){ gunX = -280; gunY = -320; bitmapData.dispose(); bitmapData = new BitmapData(Thompson_Hip.width, Thompson_Hip.height, true, 0); bitmapData.draw(Thompson_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); flashHipX = ((main.width / 2) - 130); flashHipY = -50; flashAimX = ((main.width / 2) + 10); flashAimY = 20; flash_hip.x = flashHipX; flash_hip.y = flashHipY; flash_small.x = flashAimX; flash_small.y = flashAimY; switchAimMode(aim_mode); } else { if (current_weapon == "carbine"){ gunX = -280; gunY = -330; bitmapData.dispose(); bitmapData = new BitmapData(Carbine_Hip.width, Carbine_Hip.height, true, 0); bitmapData.draw(Carbine_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); flashHipX = ((main.width / 2) - 160); flashHipY = -60; flashAimX = (main.width / 2); flashAimY = 20; flash_hip.x = flashHipX; flash_hip.y = flashHipY; flash_small.x = flashAimX; flash_small.y = flashAimY; switchAimMode(aim_mode); } else { if (current_weapon == "garand"){ gunX = -280; gunY = -330; bitmapData.dispose(); bitmapData = new BitmapData(Garand_Hip.width, Garand_Hip.height, true, 0); bitmapData.draw(Garand_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); flashHipX = ((main.width / 2) - 160); flashHipY = -60; flashAimX = (main.width / 2); flashAimY = 20; flash_hip.x = flashHipX; flash_hip.y = flashHipY; flash_small.x = flashAimX; flash_small.y = flashAimY; switchAimMode(aim_mode); } else { if (current_weapon == "bar"){ gunX = -200; gunY = -330; bitmapData.dispose(); bitmapData = new BitmapData(Bar_Hip.width, Bar_Hip.height, true, 0); bitmapData.draw(Bar_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); flashHipX = ((main.width / 2) - 220); flashHipY = -70; flashAimX = ((main.width / 2) + 38); flashAimY = 24; flash_hip.x = flashHipX; flash_hip.y = flashHipY; flash_small.x = flashAimX; flash_small.y = flashAimY; switchAimMode(aim_mode); } else { if (current_weapon == "mg"){ bitmapData.dispose(); bitmapData = new BitmapData(Browning_Aim.width, Browning_Aim.height, true, 0); bitmapData.draw(Browning_Aim); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); flash_hip.visible = false; flash_small.visible = true; flashAimX = 114; flashAimY = 15; flash_small.x = flashAimX; flash_small.y = flashAimY; aim_mode = "sight"; gunX = -112; gunY = -14; main.x = gunX; main.y = gunY; switchAimMode(aim_mode); } else { if (current_weapon == "bazooka"){ bitmapData.dispose(); bitmapData = new BitmapData(Bazooka_Hip.width, Bazooka_Hip.height, true, 0); bitmapData.draw(Bazooka_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); flashAimX = 114; flashAimY = 15; flash_small.x = flashAimX; flash_small.y = flashAimY; gunX = -275; gunY = -330; main.x = gunX; main.y = gunY; switchAimMode(aim_mode); }; }; }; }; }; }; } public function switchAimMode(_arg1:String):void{ aim_mode = _arg1; if (aim_mode == currentAimMode){ } else { if (aim_mode == "sight"){ flash_hip.visible = false; flash_small.visible = true; TweenMax.removeTween(recoilTween); if (current_weapon == "thompson"){ gunX = -164; gunY = 0; bitmapData.dispose(); bitmapData = new BitmapData(Thompson_Aim.width, Thompson_Aim.height, true, 0); bitmapData.draw(Thompson_Aim); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); main.x = gunX; main.y = gunY; currentAimMode = "sight"; } else { if (current_weapon == "carbine"){ gunX = -167; gunY = -10; bitmapData.dispose(); bitmapData = new BitmapData(Carbine_Aim.width, Carbine_Aim.height, true, 0); bitmapData.draw(Carbine_Aim); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); main.x = gunX; main.y = gunY; currentAimMode = "sight"; } else { if (current_weapon == "garand"){ gunX = -164; gunY = -14; bitmapData.dispose(); bitmapData = new BitmapData(Garand_Aim.width, Garand_Aim.height, true, 0); bitmapData.draw(Garand_Aim); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); main.x = gunX; main.y = gunY; currentAimMode = "sight"; } else { if (current_weapon == "bar"){ gunX = -199; gunY = -28; bitmapData.dispose(); bitmapData = new BitmapData(Bar_Aim.width, Bar_Aim.height, true, 0); bitmapData.draw(Bar_Aim); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); main.x = gunX; main.y = gunY; currentAimMode = "sight"; } else { if (current_weapon == "bazooka"){ gunX = -164; gunY = 5; bitmapData.dispose(); bitmapData = new BitmapData(Bazooka_Aim.width, Bazooka_Aim.height, true, 0); bitmapData.draw(Bazooka_Aim); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); main.x = gunX; main.y = gunY; currentAimMode = "sight"; }; }; }; }; }; } else { if (aim_mode == "hip"){ flash_hip.visible = true; flash_small.visible = false; TweenMax.removeTween(recoilTween); if (current_weapon == "thompson"){ bitmapData.dispose(); bitmapData = new BitmapData(Thompson_Hip.width, Thompson_Hip.height, true, 0); bitmapData.draw(Thompson_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); gunX = -280; gunY = -320; main.x = gunX; main.y = gunY; currentAimMode = "hip"; } else { if (current_weapon == "carbine"){ bitmapData.dispose(); bitmapData = new BitmapData(Carbine_Hip.width, Carbine_Hip.height, true, 0); bitmapData.draw(Carbine_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); gunX = -280; gunY = -320; main.x = gunX; main.y = gunY; currentAimMode = "hip"; } else { if (current_weapon == "garand"){ bitmapData.dispose(); bitmapData = new BitmapData(Garand_Hip.width, Garand_Hip.height, true, 0); bitmapData.draw(Garand_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); gunX = -280; gunY = -320; main.x = gunX; main.y = gunY; currentAimMode = "hip"; } else { if (current_weapon == "bar"){ bitmapData.dispose(); bitmapData = new BitmapData(Bar_Hip.width, Bar_Hip.height, true, 0); bitmapData.draw(Bar_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); gunX = -200; gunY = -330; main.x = gunX; main.y = gunY; currentAimMode = "hip"; } else { if (current_weapon == "bazooka"){ bitmapData.dispose(); bitmapData = new BitmapData(Bazooka_Hip.width, Bazooka_Hip.height, true, 0); bitmapData.draw(Bazooka_Hip); main.removeChild(bitmap); bitmap = new Bitmap(bitmapData); bitmap.smoothing = true; main.addChild(bitmap); gunX = -275; gunY = -330; main.x = gunX; main.y = gunY; currentAimMode = "hip"; }; }; }; }; }; }; }; }; } function changingFalse():void{ changingWeapon = false; } public function recoil():void{ flash_hip.x = flashHipX; flash_hip.y = flashHipY; flash_small.x = flashAimX; flash_small.y = flashAimY; if (current_weapon == "thompson"){ if (aim_mode == "sight"){ flash_hip.visible = false; flash_small.visible = true; flash_small.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = ((gunX - 15) - ((Math.random() - 0.5) * 10)); matrix.ty = (gunY - ((Math.random() - 0.5) * 10)); } else { if (aim_mode == "hip"){ flash_hip.visible = true; flash_small.visible = false; flash_hip.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = (gunX - ((Math.random() - 0.5) * 10)); matrix.ty = (gunY - ((Math.random() - 0.5) * 10)); }; }; } else { if (current_weapon == "carbine"){ if (aim_mode == "sight"){ flash_hip.visible = false; flash_small.visible = true; flash_small.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = ((gunX - 15) - ((Math.random() - 0.5) * 6)); matrix.ty = (gunY - ((Math.random() - 0.5) * 6)); } else { if (aim_mode == "hip"){ flash_hip.visible = true; flash_small.visible = false; flash_hip.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = (gunX - ((Math.random() - 0.5) * 10)); matrix.ty = (gunY - ((Math.random() - 0.5) * 10)); }; }; } else { if (current_weapon == "garand"){ if (aim_mode == "sight"){ flash_hip.visible = false; flash_small.visible = true; flash_small.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = ((gunX - 15) - ((Math.random() - 0.5) * 6)); matrix.ty = (gunY - ((Math.random() - 0.5) * 6)); } else { if (aim_mode == "hip"){ flash_hip.visible = true; flash_small.visible = false; flash_hip.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = (gunX - ((Math.random() - 0.5) * 10)); matrix.ty = (gunY - ((Math.random() - 0.5) * 10)); }; }; } else { if (current_weapon == "bar"){ flash_hip.visible = false; flash_small.visible = true; if (aim_mode == "sight"){ flash_hip.visible = false; flash_small.visible = true; flash_small.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = ((gunX - 15) - ((Math.random() - 0.5) * 6)); matrix.ty = (gunY - ((Math.random() - 0.5) * 6)); } else { if (aim_mode == "hip"){ flash_hip.visible = true; flash_small.visible = false; flash_hip.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = (gunX - ((Math.random() - 0.5) * 10)); matrix.ty = (gunY - ((Math.random() - 0.5) * 10)); }; }; } else { if (current_weapon == "mg"){ flash_small.gotoAndPlay(1); matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = ((gunX - 15) - ((Math.random() - 0.5) * 6)); matrix.ty = (gunY - ((Math.random() - 0.5) * 6)); } else { if (current_weapon == "bazooka"){ matrix = new Matrix(); matrix.scale(1.1, 1.1); matrix.tx = ((gunX - 15) - ((Math.random() - 0.5) * 6)); matrix.ty = (gunY - ((Math.random() - 0.5) * 6)); }; }; }; }; }; }; main.transform.matrix = matrix; recoilTween = new TweenMax(main, 0.2, {scaleX:1, scaleY:1, x:gunX, y:gunY}); } private function actualSwitch():void{ drawWeapon(); switching = true; if (current_weapon == "thompson"){ damage = 35; damageVehicle = 15; gunX = -280; gunY = -320; fireRate = 3; } else { if (current_weapon == "carbine"){ damage = 60; damageVehicle = 35; gunX = -280; gunY = -320; fireRate = 6; } else { if (current_weapon == "garand"){ damage = 120; damageVehicle = 65; gunX = -280; gunY = -320; fireRate = 6; } else { if (current_weapon == "bar"){ damage = 100; damageVehicle = 50; gunX = -200; gunY = -330; fireRate = 4; } else { if (current_weapon == "mg"){ damage = 110; damageVehicle = 60; fireRate = 3; }; }; }; }; }; TweenMax.to(main, 0.4, {y:gunY, overwrite:1}); TweenMax.delayedCall(0.2, changingFalse); main.x = gunX; main.y = gunY; } public function switchWeapon(_arg1:String):void{ if (current_weapon == _arg1){ } else { if (_arg1 == "mg"){ } else { switchAimMode("hip"); }; changingWeapon = true; TweenMax.to(main, 0.4, {y:100, overwrite:1}); TweenMax.delayedCall(0.4, actualSwitch); current_weapon = _arg1; }; } } }//package
Section 87
//gunSound (gunSound) package { import flash.media.*; public dynamic class gunSound extends Sound { } }//package
Section 88
//headshot_icon (headshot_icon) package { import flash.display.*; public dynamic class headshot_icon extends MovieClip { } }//package
Section 89
//HealthBar (HealthBar) package { import flash.display.*; public class HealthBar extends MovieClip { private var maxHealth:int; private var red:Shape; private var barWidth:int; private var main:MovieClip; private var bar:Shape; public var health:int; public function HealthBar(_arg1, _arg2):void{ main = new MovieClip(); bar = new Shape(); red = new Shape(); super(); health = _arg1; maxHealth = _arg1; barWidth = _arg2; var _local3:Shape = new Shape(); _local3.graphics.beginFill(0x333333); _local3.graphics.drawRect(0, 0, (_arg2 + 2), 5); _local3.graphics.endFill(); bar.graphics.beginFill(2648359); bar.graphics.drawRect(1, 1, barWidth, 3); bar.graphics.endFill(); main.addChild(_local3); main.addChild(red); main.addChild(bar); addChild(main); main.alpha = 0.5; } public function updateBar(_arg1):void{ health = _arg1; if (health < 0){ health = 0; }; var _local2:int = ((health / maxHealth) * barWidth); bar.graphics.clear(); bar.graphics.beginFill(2648359); bar.graphics.drawRect(1, 1, _local2, 3); bar.graphics.endFill(); red.graphics.clear(); red.graphics.beginFill(11406605); red.graphics.drawRect((bar.x + bar.width), 1, (barWidth - _local2), 3); red.graphics.endFill(); if (health == 0){ this.parent.removeChild(this); }; } } }//package
Section 90
//Howitzer (Howitzer) package { import gs.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Howitzer extends MovieClip { private var speed:Number;// = 1 public var enemy:MovieClip; private var shootTime:int;// = 130 private var sound:Sound; public var health:int;// = 350 private var explode:Sound; public var enemyType:String;// = "Howitzer" public var mode:String;// = "run" private var dead:Boolean;// = false private var currentTime:int; private var offset:int; private var deathFunction:Boolean;// = false private var dying:Boolean;// = false private var destroyFunction:Boolean;// = false private var s; private var hb:HealthBar; private var soundChannel:SoundChannel; public function Howitzer(_arg1:MovieClip, _arg2, _arg3, _arg4):void{ currentTime = shootTime; offset = ((Math.random() * 100) + 130); soundChannel = new SoundChannel(); super(); explode = _arg4; sound = _arg3; hb = new HealthBar(health, 40); enemy = _arg1.innerBody; addChild(enemy); enemy.addEventListener(Event.ENTER_FRAME, enterFrame); s = _arg2; hb.y = (enemy.y - 30); hb.x = (-((hb.width / 2)) - 5); addChild(hb); } public function destroy():void{ if (destroyFunction == false){ dead = true; this.parent.removeChild(this); destroyFunction = true; mode = "dead"; }; } private function enterFrame(_arg1:Event):void{ if (mode == "shoot"){ if (currentTime > shootTime){ attack(); currentTime = 0; }; currentTime++; } else { if (mode == "run"){ if (this.x < ((320 + (this.y / 2)) - offset)){ this.x = (this.x + speed); } else { mode = "shoot"; }; } else { if (mode == "dead"){ if (dead == false){ if (enemy.currentFrame == 54){ dying = true; }; if (dying == true){ if (deathFunction == false){ TweenMax.delayedCall(3, destroy); TweenMax.to(this, 0.5, {alpha:0, delay:2.5}); deathFunction = true; }; }; }; }; }; }; } public function attack():void{ soundChannel = sound.play(); s.wallHealth = (s.wallHealth - 15); enemy.gotoAndPlay("shoot"); s.wallHealthLabel.text = String(("Wall: " + s.wallHealth)); s.shake(); } public function takeDamage(_arg1:int):void{ health = (health - _arg1); hb.updateBar(health); } public function kill():void{ explode.play(); enemy.gotoAndPlay("die"); mode = "dead"; s.shake(); } } }//package
Section 91
//howitzerBody (howitzerBody) package { import flash.display.*; public dynamic class howitzerBody extends MovieClip { public var innerBody:MovieClip; } }//package
Section 92
//howitzerExplode (howitzerExplode) package { import flash.media.*; public dynamic class howitzerExplode extends Sound { } }//package
Section 93
//Howitzerwav (Howitzerwav) package { import flash.media.*; public dynamic class Howitzerwav extends Sound { } }//package
Section 94
//Jeep (Jeep) package { import gs.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Jeep extends MovieClip { private var speed:Number;// = 3 public var enemy:MovieClip; private var shootTime:int;// = 100 private var sound:Sound; public var health:int;// = 300 private var explode:Sound; public var enemyType:String;// = "Jeep" public var mode:String;// = "run" private var dead:Boolean;// = false private var currentTime:int; private var offset:int; private var deathFunction:Boolean;// = false private var dying:Boolean;// = false private var destroyFunction:Boolean;// = false private var s; private var hb:HealthBar; private var soundChannel:SoundChannel; public function Jeep(_arg1:MovieClip, _arg2, _arg3, _arg4):void{ currentTime = shootTime; offset = ((Math.random() * 100) + 130); soundChannel = new SoundChannel(); super(); explode = _arg4; sound = _arg3; hb = new HealthBar(health, 30); enemy = _arg1.innerBody; addChild(enemy); enemy.addEventListener(Event.ENTER_FRAME, enterFrame); s = _arg2; hb.y = (enemy.y - 30); hb.x = (-((hb.width / 2)) - 5); addChild(hb); } public function destroy():void{ if (destroyFunction == false){ dead = true; this.parent.removeChild(this); destroyFunction = true; mode = "dead"; }; } private function enterFrame(_arg1:Event):void{ if (mode == "shoot"){ if (currentTime > shootTime){ attack(); currentTime = 0; }; currentTime++; } else { if (mode == "run"){ if (this.x < ((320 + (this.y / 2)) - offset)){ this.x = (this.x + speed); } else { mode = "shoot"; }; } else { if (mode == "dead"){ if (dead == false){ if (enemy.currentFrame == 70){ dying = true; }; if (dying == true){ if (deathFunction == false){ TweenMax.delayedCall(3, destroy); TweenMax.to(this, 0.5, {alpha:0, delay:2.5}); deathFunction = true; }; }; }; }; }; }; } public function attack():void{ soundChannel = sound.play(); s.wallHealth = (s.wallHealth - 10); enemy.gotoAndPlay("shoot"); s.wallHealthLabel.text = String(("Wall: " + s.wallHealth)); } public function takeDamage(_arg1:int):void{ health = (health - _arg1); hb.updateBar(health); } public function kill():void{ explode.play(); enemy.gotoAndPlay("die"); mode = "dead"; s.shake(); } } }//package
Section 95
//jeepBody (jeepBody) package { import flash.display.*; public dynamic class jeepBody extends MovieClip { public var innerBody:MovieClip; } }//package
Section 96
//jeepExplode (jeepExplode) package { import flash.media.*; public dynamic class jeepExplode extends Sound { } }//package
Section 97
//Jeepwav (Jeepwav) package { import flash.media.*; public dynamic class Jeepwav extends Sound { } }//package
Section 98
//Level (Level) package { public class Level { public var spawnTime:int; public var numJeep:int; public var numHowitzer:int; public var numTank:int; public var numRifleman:int; public var numMachineGunner:int; public function Level(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4=0, _arg5=0, _arg6:int=10):void{ numRifleman = _arg1; numMachineGunner = _arg2; numTank = _arg3; numHowitzer = _arg4; numJeep = _arg5; spawnTime = _arg6; } } }//package
Section 99
//loaderBar (loaderBar) package { import flash.display.*; import flash.filters.*; public dynamic class loaderBar extends MovieClip { public var glowFilter:GlowFilter; public var innerLoader:MovieClip; public var filtersArray:Array; public function loaderBar(){ addFrameScript(0, frame1); } function frame1(){ glowFilter = new GlowFilter(0xFFFFFF, 1, 8, 8, 2, 2); filtersArray = new Array(); innerLoader.filters = filtersArray; } } }//package
Section 100
//loseBackground (loseBackground) package { import flash.display.*; public dynamic class loseBackground extends MovieClip { } }//package
Section 101
//LoseScreen (LoseScreen) package { import flash.display.*; import flash.text.*; public class LoseScreen extends MovieClip { public var playAgain:MenuButton; public function LoseScreen(_arg1:MovieClip, _arg2:Font):void{ addChild(_arg1); playAgain = new MenuButton("play again", _arg2, 26); addChild(playAgain); playAgain.x = (325 - (playAgain.width / 2)); playAgain.y = 400; } } }//package
Section 102
//MachineGunner (MachineGunner) package { import gs.*; import flash.events.*; import flash.display.*; import flash.media.*; public class MachineGunner extends MovieClip { private var soundChannel:SoundChannel; private var speed:Number;// = 2.2 public var enemy:MovieClip; private var shootTime:int;// = 30 private var offset:int; private var sound:Sound; public var headshot:Boolean;// = false public var health:int;// = 100 public var enemyType:String;// = "MachineGunner" public var mode:String;// = "run" private var dead:Boolean;// = false private var currentTime:int; private var deathFunction:Boolean;// = false private var destroyFunction:Boolean;// = false private var s; private var hb:HealthBar; public function MachineGunner(_arg1:MovieClip, _arg2, _arg3):void{ currentTime = shootTime; offset = (Math.random() * 50); soundChannel = new SoundChannel(); super(); sound = _arg3; hb = new HealthBar(health, 15); enemy = _arg1; addChild(enemy); enemy.addEventListener(Event.ENTER_FRAME, enterFrame); s = _arg2; addChild(hb); hb.y = (enemy.y - enemy.height); hb.x = -((hb.width / 2)); } public function destroy():void{ if (destroyFunction == false){ dead = true; this.parent.removeChild(this); destroyFunction = true; mode = "dead"; }; } public function attack():void{ soundChannel = sound.play(); s.wallHealth = (s.wallHealth - 2); enemy.gotoAndPlay("shoot"); s.wallHealthLabel.text = String(("Wall: " + s.wallHealth)); } public function takeDamage(_arg1:int):void{ health = (health - _arg1); hb.updateBar(health); } public function kill():void{ if (headshot == false){ enemy.gotoAndPlay("die"); } else { enemy.gotoAndPlay("headshot"); }; mode = "dead"; } private function enterFrame(_arg1:Event):void{ if (mode == "shoot"){ if (currentTime > shootTime){ attack(); currentTime = 0; }; currentTime++; } else { if (mode == "run"){ if (this.x < ((320 + (this.y / 2)) - offset)){ this.x = (this.x + speed); } else { mode = "shoot"; }; } else { if (mode == "dead"){ if (dead == false){ if (enemy.currentFrame == 63){ if (deathFunction == false){ TweenMax.delayedCall(3, destroy); TweenMax.to(this, 0.5, {alpha:0, delay:2.5}); deathFunction = true; }; } else { if (enemy.currentFrame == 101){ if (deathFunction == false){ TweenMax.delayedCall(3, destroy); TweenMax.to(this, 0.5, {alpha:0, delay:2.5}); deathFunction = true; }; }; }; }; }; }; }; } } }//package
Section 103
//machineGunner (machineGunner) package { import flash.display.*; public dynamic class machineGunner extends MovieClip { public function machineGunner(){ addFrameScript(14, frame15, 27, frame28, 62, frame63, 100, frame101); } function frame15(){ gotoAndPlay(1); } function frame63(){ stop(); } function frame28(){ stop(); } function frame101(){ stop(); } } }//package
Section 104
//MachineGunnerwav (MachineGunnerwav) package { import flash.media.*; public dynamic class MachineGunnerwav extends Sound { } }//package
Section 105
//MasterGame (MasterGame) package { public class MasterGame { public var levelArray:Array; public function MasterGame():void{ levelArray = new Array(); super(); levelArray.push(new Level(15, 0, 0, 0, 0, 20)); levelArray.push(new Level(15, 5, 0, 0, 0, 20)); levelArray.push(new Level(15, 10, 0, 1, 0, 19)); levelArray.push(new Level(10, 15, 0, 2, 0, 19)); levelArray.push(new Level(10, 20, 0, 2, 0, 18)); levelArray.push(new Level(10, 10, 0, 2, 1, 18)); levelArray.push(new Level(15, 10, 0, 3, 2, 17)); levelArray.push(new Level(15, 10, 0, 5, 4, 17)); levelArray.push(new Level(15, 12, 0, 5, 5, 16)); levelArray.push(new Level(17, 17, 0, 5, 5, 16)); levelArray.push(new Level(18, 18, 0, 5, 6, 16)); levelArray.push(new Level(18, 18, 1, 3, 3, 16)); levelArray.push(new Level(20, 20, 1, 4, 4, 16)); levelArray.push(new Level(20, 20, 2, 5, 5, 16)); levelArray.push(new Level(20, 20, 3, 5, 5, 16)); levelArray.push(new Level(22, 22, 0, 7, 0, 15)); levelArray.push(new Level(20, 20, 3, 4, 4, 15)); levelArray.push(new Level(21, 21, 4, 5, 5, 15)); levelArray.push(new Level(22, 22, 5, 5, 5, 15)); levelArray.push(new Level(25, 25, 7, 2, 2, 15)); levelArray.push(new Level(25, 25, 5, 6, 6, 14)); levelArray.push(new Level(25, 25, 6, 6, 6, 14)); levelArray.push(new Level(25, 25, 7, 6, 6, 14)); levelArray.push(new Level(30, 30, 6, 6, 6, 14)); levelArray.push(new Level(30, 30, 7, 6, 6, 14)); levelArray.push(new Level(40, 40, 2, 2, 2, 13)); levelArray.push(new Level(30, 30, 6, 6, 6, 13)); levelArray.push(new Level(32, 32, 7, 7, 7, 13)); levelArray.push(new Level(15, 10, 12, 2, 2, 13)); levelArray.push(new Level(35, 35, 7, 7, 7, 13)); levelArray.push(new Level(36, 36, 8, 8, 8, 12)); levelArray.push(new Level(37, 37, 9, 8, 8, 12)); levelArray.push(new Level(38, 38, 9, 9, 9, 12)); levelArray.push(new Level(39, 39, 10, 9, 9, 11)); levelArray.push(new Level(45, 45, 12, 12, 12, 10)); } } }//package
Section 106
//MenuButton (MenuButton) package { import gs.*; import flash.events.*; import flash.display.*; import flash.text.*; import gs.easing.*; public class MenuButton extends MovieClip { private var disabled:Boolean;// = false private var inner:MovieClip; private var main:MovieClip; private var tick:MovieClip; public function MenuButton(_arg1, _arg2, _arg3):void{ main = new MovieClip(); inner = new MovieClip(); tick = new MovieClip(); super(); var _local4:Font = _arg2; var _local5:TextField = new TextField(); _local5.text = _arg1; var _local6:Shape = new Shape(); _local6.graphics.beginFill(0xEEEEEE); _local6.graphics.drawRect(0, -1, 10, 2); _local6.graphics.endFill(); tick.addChild(_local6); var _local7:TextFormat = new TextFormat(_local4.fontName, _arg3, 0xEEEEEE); _local5.setTextFormat(_local7); _local5.autoSize = TextFieldAutoSize.LEFT; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.selectable = false; _local5.embedFonts = true; var _local8:Shape = new Shape(); _local8.graphics.beginFill(0); _local8.graphics.drawRect(-2, 2, (_local5.width + 40), _local5.height); _local8.graphics.endFill(); _local8.alpha = 0; inner.addChild(_local5); main.addChild(_local8); main.addChild(inner); addChild(main); addChild(tick); tick.y = ((_local8.height / 2) + 3); tick.alpha = 0; tick.width = 2; this.buttonMode = true; this.mouseChildren = false; this.addEventListener(MouseEvent.MOUSE_OVER, onOver); this.addEventListener(MouseEvent.MOUSE_OUT, onOut); } public function onOver(_arg1:MouseEvent):void{ if (disabled == false){ TweenMax.to(inner, 0.2, {x:20, ease:Cubic.easeInOut}); TweenMax.to(tick, 0.2, {width:18, alpha:1, ease:Cubic.easeInOut}); }; } public function Disable():void{ disabled = true; this.buttonMode = false; TweenMax.to(inner, 0.2, {x:0, ease:Cubic.easeInOut}); TweenMax.to(tick, 0.2, {width:2, alpha:0, ease:Cubic.easeInOut}); } public function onOut(_arg1:MouseEvent):void{ if (disabled == false){ TweenMax.to(inner, 0.2, {x:0, ease:Cubic.easeInOut}); TweenMax.to(tick, 0.2, {width:2, alpha:0, ease:Cubic.easeInOut}); }; } } }//package
Section 107
//MenuFont (MenuFont) package { import flash.text.*; public dynamic class MenuFont extends Font { } }//package
Section 108
//mg_select (mg_select) package { import flash.display.*; public dynamic class mg_select extends MovieClip { } }//package
Section 109
//MochiBot (MochiBot) package { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ if (Security.sandboxType == "localWithFile"){ return (null); }; var _local3:MochiBot = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); var _local4 = "http://core.mochibot.com/my/core.swf"; var _local5:URLVariables = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; var _local6:String = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; var _local7:URLRequest = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; var _local8:Loader = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package
Section 110
//muzzle_flash (muzzle_flash) package { import flash.display.*; public dynamic class muzzle_flash extends MovieClip { public function muzzle_flash(){ addFrameScript(3, frame4); } function frame4(){ stop(); } } }//package
Section 111
//muzzle_flash_hip (muzzle_flash_hip) package { import flash.display.*; public dynamic class muzzle_flash_hip extends MovieClip { public function muzzle_flash_hip(){ addFrameScript(3, frame4); } function frame4(){ stop(); } } }//package
Section 112
//muzzle_flash_small (muzzle_flash_small) package { import flash.display.*; public dynamic class muzzle_flash_small extends MovieClip { public function muzzle_flash_small(){ addFrameScript(3, frame4); } function frame4(){ stop(); } } }//package
Section 113
//noAmmo (noAmmo) package { import flash.media.*; public dynamic class noAmmo extends Sound { } }//package
Section 114
//OkButton (OkButton) package { import flash.display.*; public dynamic class OkButton extends MovieClip { } }//package
Section 115
//reloadMP3 (reloadMP3) package { import flash.media.*; public dynamic class reloadMP3 extends Sound { } }//package
Section 116
//Rifleman (Rifleman) package { import gs.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Rifleman extends MovieClip { private var soundChannel:SoundChannel; private var speed:Number;// = 2 public var enemy:MovieClip; private var shootTime:int;// = 60 private var offset:int; private var sound:Sound; public var headshot:Boolean;// = false public var health:int;// = 100 public var enemyType:String;// = "Rifleman" public var mode:String;// = "run" private var dead:Boolean;// = false private var currentTime:int;// = 60 private var deathFunction:Boolean;// = false private var destroyFunction:Boolean;// = false private var s; private var hb:HealthBar; public function Rifleman(_arg1:MovieClip, _arg2, _arg3):void{ offset = ((Math.random() * 150) + 80); soundChannel = new SoundChannel(); super(); sound = _arg3; hb = new HealthBar(health, 15); enemy = _arg1; addChild(enemy); enemy.addEventListener(Event.ENTER_FRAME, enterFrame); s = _arg2; addChild(hb); hb.y = (enemy.y - enemy.height); hb.x = -((hb.width / 2)); } public function destroy():void{ if (destroyFunction == false){ dead = true; this.parent.removeChild(this); destroyFunction = true; mode = "dead"; }; } public function attack():void{ soundChannel = sound.play(); s.wallHealth = (s.wallHealth - 3); enemy.gotoAndPlay("shoot"); s.wallHealthLabel.text = String(("Wall: " + s.wallHealth)); } public function takeDamage(_arg1:int):void{ health = (health - _arg1); hb.updateBar(health); } public function kill():void{ if (headshot == false){ enemy.gotoAndPlay("die"); } else { enemy.gotoAndPlay("headshot"); }; mode = "dead"; } private function enterFrame(_arg1:Event):void{ if (mode == "shoot"){ if (currentTime > shootTime){ attack(); currentTime = 0; }; currentTime++; } else { if (mode == "run"){ if (this.x < ((320 + (this.y / 2)) - offset)){ this.x = (this.x + speed); } else { mode = "shoot"; }; } else { if (mode == "dead"){ if (dead == false){ if (enemy.currentFrame == 69){ if (deathFunction == false){ TweenMax.delayedCall(3, destroy); TweenMax.to(this, 0.5, {alpha:0, delay:2.5}); deathFunction = true; }; } else { if (enemy.currentFrame == 107){ if (deathFunction == false){ TweenMax.delayedCall(3, destroy); TweenMax.to(this, 0.5, {alpha:0, delay:2.5}); deathFunction = true; }; }; }; }; }; }; }; } } }//package
Section 117
//Riflemanwav (Riflemanwav) package { import flash.media.*; public dynamic class Riflemanwav extends Sound { } }//package
Section 118
//rollingThunder (rollingThunder) package { import flash.media.*; public dynamic class rollingThunder extends Sound { } }//package
Section 119
//Sight (Sight) package { import flash.events.*; import flash.display.*; public class Sight extends MovieClip { private var main:MovieClip; private var size:int;// = 15 private var inner1:MovieClip; private var inner2:MovieClip; private var inner3:MovieClip; private var inner4:MovieClip; private var shape1:Shape; private var shape2:Shape; private var shape3:Shape; public var firing:Boolean;// = false public var distance:Number;// = 4 public var endDistance:Number;// = 4 public var maxDistance:int;// = 50 private var shape4:Shape; public function Sight():void{ main = new MovieClip(); inner1 = new MovieClip(); inner2 = new MovieClip(); inner3 = new MovieClip(); inner4 = new MovieClip(); shape1 = new Shape(); shape2 = new Shape(); shape3 = new Shape(); shape4 = new Shape(); super(); shape1.graphics.beginFill(0xFFFFFF); shape1.graphics.drawRect(0, -(size), 1, size); shape1.y = -(distance); shape2.graphics.beginFill(0xFFFFFF); shape2.graphics.drawRect(0, 0, size, 1); shape2.x = distance; shape3.graphics.beginFill(0xFFFFFF); shape3.graphics.drawRect(0, 0, 1, size); shape3.y = distance; shape4.graphics.beginFill(0xFFFFFF); shape4.graphics.drawRect(-(size), 0, size, 1); shape4.x = -(distance); main.addChild(shape1); main.addChild(shape2); main.addChild(shape3); main.addChild(shape4); addChild(main); this.addEventListener(Event.ENTER_FRAME, frame); } public function barShot():void{ distance = (distance + ((endDistance - distance) * 2)); size = ((70 - distance) / 2); if (size > 14){ size = 14; }; reDraw(); } public function reDraw():void{ shape1.graphics.clear(); shape1.graphics.beginFill(0xFFFFFF); shape1.graphics.drawRect(0, -(size), 1, size); shape1.y = -(distance); shape2.graphics.clear(); shape2.graphics.beginFill(0xFFFFFF); shape2.graphics.drawRect(0, 0, size, 1); shape2.x = distance; shape3.graphics.clear(); shape3.graphics.beginFill(0xFFFFFF); shape3.graphics.drawRect(0, 0, 1, size); shape3.y = distance; shape4.graphics.clear(); shape4.graphics.beginFill(0xFFFFFF); shape4.graphics.drawRect(-(size), 0, size, 1); shape4.x = -(distance); } public function garandShot():void{ distance = (distance + ((endDistance - distance) * 3)); size = ((70 - distance) / 2); if (size > 14){ size = 14; }; reDraw(); } public function bazookaShot():void{ distance = (distance + ((endDistance - distance) * 4)); size = ((70 - distance) / 4); if (size > 14){ size = 14; }; reDraw(); } public function carbineShot():void{ distance = (distance + ((endDistance - distance) * 2)); size = ((70 - distance) / 2); if (size > 14){ size = 14; }; reDraw(); } private function frame(_arg1:Event):void{ if (firing == false){ if (distance > 4){ distance = (distance - ((distance - 4) / 6)); } else { distance = 4; }; endDistance = distance; } else { distance = (distance + ((endDistance - distance) / 4)); }; if (distance > maxDistance){ distance = maxDistance; }; size = ((70 - distance) / 2); if (size > 14){ size = 14; }; reDraw(); } } }//package
Section 120
//SoundSkin (SoundSkin) package { import flash.events.*; import flash.media.*; import flash.net.*; public class SoundSkin extends EventDispatcher { private var _channel:SoundChannel; private var _loopCount:int;// = 0 private var _sound:Sound; public var loops:int;// = 1 private var _loaded:Boolean;// = false private var _playhead:Number;// = 0 private var _mute:Boolean;// = false private var _volume:Number;// = 1 public function SoundSkin(_arg1:Sound=null, _arg2:int=1, _arg3:Number=0):void{ _sound = ((_arg1 is Sound)) ? _arg1 : new Sound(); _loaded = !((_arg1 == null)); _playhead = _arg3; loops = _arg2; } public function get percentPlayback():Number{ var _local1:Number = (playing) ? (_channel.position / estimatedLength) : (_playhead / estimatedLength); return ((isNaN(_local1)) ? 0 : _local1); } public function set mute(_arg1:Boolean):void{ _mute = _arg1; volume = _volume; } public function get estimatedLength():Number{ var _local1:Number = (loaded) ? _sound.length : (_sound.length / percentLoaded); return ((isNaN(_local1)) ? 0 : _local1); } public function play():void{ if (((!(playing)) && ((percentLoaded > 0)))){ _channel = _sound.play(_playhead, 0, new SoundTransform((_mute) ? 0 : _volume)); if (_channel != null){ _channel.addEventListener(Event.SOUND_COMPLETE, this._onSoundComplete); }; }; } public function get loaded():Boolean{ return (_loaded); } public function set percentPlayback(_arg1:Number):void{ position = (estimatedLength * _arg1); } public function stop():void{ if (playing){ _playhead = _channel.position; _channel.stop(); _channel.removeEventListener(Event.SOUND_COMPLETE, this._onSoundComplete); _channel = null; }; } private function _onSoundComplete(_arg1:Event):void{ _channel.removeEventListener(Event.SOUND_COMPLETE, this._onSoundComplete); _channel = null; _loopCount++; if ((((loops <= 0)) || ((_loopCount < loops)))){ rewind(); play(); dispatchEvent(new SoundSkinEvent(SoundSkinEvent.SOUND_LOOP)); } else { reset(); dispatchEvent(new SoundSkinEvent(SoundSkinEvent.SOUND_COMPLETE)); }; } public function toggleMute():void{ mute = !(_mute); } public function set position(_arg1:Number):void{ var _local2:Boolean = playing; stop(); _playhead = Math.max(0, Math.min(_arg1, _sound.length)); if (_local2){ play(); }; } public function get mute():Boolean{ return (_mute); } public function get volume():Number{ return (_volume); } public function get sound():Sound{ return (_sound); } public function reset():void{ _loopCount = 0; rewind(); } public function get position():Number{ if (playing){ return (_channel.position); }; return (_playhead); } public function get percentLoaded():Number{ var _local1:Number = (_sound.bytesLoaded / _sound.bytesTotal); return ((isNaN(_local1)) ? 0 : _local1); } public function load(_arg1:String, _arg2:Number=1):void{ if ((((_sound.url == null)) && ((percentLoaded == 0)))){ _sound.addEventListener(Event.COMPLETE, this._onSoundLoad); _sound.load(new URLRequest(_arg1), new SoundLoaderContext((_arg2 * 1000))); }; } public function get playing():Boolean{ return (!((_channel == null))); } public function togglePlayback():void{ if (playing){ stop(); } else { play(); }; } public function set volume(_arg1:Number):void{ _volume = _arg1; if (playing){ _channel.soundTransform = new SoundTransform((_mute) ? 0 : _volume); }; } public function get length():Number{ return (_sound.length); } private function _onSoundLoad(_arg1:Event):void{ _sound.removeEventListener(Event.COMPLETE, this._onSoundLoad); _loaded = true; dispatchEvent(new SoundSkinEvent(SoundSkinEvent.SOUND_LOADED)); } public function destroy():void{ stop(); if (((!((_sound.url == null))) && (!(_loaded)))){ _sound.close(); }; _sound = null; _channel = null; } public function rewind():void{ if (playing){ stop(); _playhead = 0; play(); } else { _playhead = 0; }; } } }//package
Section 121
//SoundSkinEvent (SoundSkinEvent) package { import flash.events.*; public class SoundSkinEvent extends Event { public static const SOUND_LOOP:String = "soundSkinLoop"; public static const SOUND_LOADED:String = "soundSkinLoaded"; public static const SOUND_COMPLETE:String = "soundSkinComplete"; public static const SOUND_FADE:String = "soundSkinFade"; public function SoundSkinEvent(_arg1:String):void{ super(_arg1, false, false); } } }//package
Section 122
//sparks (sparks) package { import flash.display.*; public dynamic class sparks extends MovieClip { public function sparks(){ addFrameScript(6, frame7); } function frame7(){ stop(); this.parent.removeChild(this); } } }//package
Section 123
//sparks2 (sparks2) package { import flash.display.*; public dynamic class sparks2 extends MovieClip { public function sparks2(){ addFrameScript(6, frame7); } function frame7(){ stop(); } } }//package
Section 124
//Stats (Stats) package { import flash.display.*; import flash.text.*; public class Stats extends MovieClip { public var money:Number; private var textFormat:TextFormat; private var textArray:Array; private var font:Font; public var totalMoneyAmount:Number; private var totalMoney:TextField; public function Stats(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14, _arg15, _arg16):void{ var _local33:*; var _local34:*; textArray = new Array(); totalMoney = new TextField(); super(); var _local17:Shape = new Shape(); _local17.graphics.beginFill(0); _local17.graphics.drawRect(0, 0, 10, 10); _local17.graphics.endFill(); var _local18:MovieClip = new MovieClip(); _local18.addChild(_local17); _local17.alpha = 0.6; addChild(_local18); font = _arg1; var _local19:TextField = new TextField(); _local19.text = ("Stats for Level " + String(_arg15)); var _local20:TextField = new TextField(); var _local21:TextField = new TextField(); var _local22:TextField = new TextField(); var _local23:TextField = new TextField(); var _local24:TextField = new TextField(); var _local25:TextField = new TextField(); var _local26:TextField = new TextField(); var _local27:TextField = new TextField(); var _local28:TextField = new TextField(); var _local29:TextField = new TextField(); textArray.push(_local20, _local21, _local22, _local24, _local23, _local25, _local26); textFormat = new TextFormat(font.fontName, 14, 0xEEEEEE); _local20.text = (((String(_arg3) + " of ") + String(_arg2)) + " Rifleman"); _local21.text = (((String(_arg5) + " of ") + String(_arg4)) + " Machine Gunners"); if (_arg7 == 0){ _local22.text = (((String(_arg7) + " of ") + String(_arg6)) + " Jeeps"); } else { if (_arg7 > 1){ _local22.text = (((String(_arg7) + " of ") + String(_arg6)) + " Jeeps"); } else { if (_arg7 == 1){ _local22.text = (((String(_arg7) + " of ") + String(_arg6)) + " Jeep"); }; }; }; if (_arg9 == 0){ _local23.text = (((String(_arg9) + " of ") + String(_arg8)) + " Tanks"); } else { if (_arg9 > 1){ _local23.text = (((String(_arg9) + " of ") + String(_arg8)) + " Tanks"); } else { if (_arg9 == 1){ _local23.text = (((String(_arg9) + " of ") + String(_arg8)) + " Tanks"); }; }; }; if (_arg11 == 0){ _local24.text = (((String(_arg11) + " of ") + String(_arg10)) + " Howitzers"); } else { if (_arg11 > 1){ _local24.text = (((String(_arg11) + " of ") + String(_arg10)) + " Howitzers"); } else { if (_arg11 == 1){ _local24.text = (((String(_arg11) + " of ") + String(_arg10)) + " Howitzer"); }; }; }; if (_arg14 == 1){ _local26.text = (String(_arg14) + " Headshot"); } else { _local26.text = (String(_arg14) + " Headshots"); }; _local25.text = String(((_arg13 / _arg12) * 100)); if (_local25.text.length > 5){ _local25.text = _local25.text.slice(0, 5); }; _local25.appendText("% Accuracy"); money = (((((_arg16 + (10 * _arg3)) + (12 * _arg5)) + (15 * _arg7)) + (17 * _arg11)) + (25 * _arg9)); var _local30:Number = ((money - _arg16) * (_arg13 / _arg12)); var _local31:Number = (20 * _arg14); _local27.text = formatDecimals((money - _arg16)); _local27.appendText("$"); _local27.text = ("Earned This Level: " + _local27.text); _local28.text = formatDecimals(_local30); _local28.appendText("$"); _local28.text = ("Accuracy Bonus: " + _local28.text); _local29.text = formatDecimals(_local31); _local29.appendText("$"); _local29.text = ("Headshot Bonus: " + _local29.text); totalMoney.text = formatDecimals(((money + _local30) + _local31)); totalMoney.appendText("$"); totalMoney.text = ("Total Money: " + totalMoney.text); totalMoneyAmount = ((money + _local30) + _local31); var _local32:Array = new Array(); _local32.push(_local27, _local28, _local29, totalMoney); for (_local33 in textArray) { textArray[_local33].setTextFormat(textFormat); textArray[_local33].autoSize = TextFieldAutoSize.LEFT; textArray[_local33].antiAliasType = AntiAliasType.ADVANCED; textArray[_local33].selectable = false; textArray[_local33].embedFonts = true; addChild(textArray[_local33]); textArray[_local33].y = ((_local33 + 2) * 20); }; for (_local34 in _local32) { _local32[_local34].setTextFormat(textFormat); _local32[_local34].autoSize = TextFieldAutoSize.LEFT; _local32[_local34].antiAliasType = AntiAliasType.ADVANCED; _local32[_local34].selectable = false; _local32[_local34].embedFonts = true; addChild(_local32[_local34]); _local32[_local34].y = (((_local34 + 4) + textArray.length) * 20); }; textFormat.size = 18; totalMoney.setTextFormat(textFormat); totalMoney.y = (totalMoney.y + 15); totalMoney.x = (totalMoney.x + 5); textFormat.size = 16; _local19.setTextFormat(textFormat); _local19.autoSize = TextFieldAutoSize.LEFT; _local19.antiAliasType = AntiAliasType.ADVANCED; _local19.selectable = false; _local19.embedFonts = true; addChild(_local19); _local18.height = 420; _local18.width = 240; _local18.x = -5; _local18.y = -5; } public function updateMoney(_arg1):void{ totalMoney.text = (("Total Money: " + String(formatDecimals(_arg1))) + "$"); textFormat.size = 18; totalMoney.setTextFormat(textFormat); totalMoney.autoSize = TextFieldAutoSize.LEFT; totalMoney.antiAliasType = AntiAliasType.ADVANCED; totalMoney.selectable = false; totalMoney.embedFonts = true; textFormat.size = 14; } private function formatDecimals(_arg1):String{ var _local2:Number; var _local3:String; _arg1 = (_arg1 * 100); _arg1 = Math.round(_arg1); _arg1 = String(Math.floor(_arg1)); if (_arg1.length == 1){ return (("0.0" + _arg1)); }; if (_arg1.length == 2){ return (("0." + _arg1)); }; _local2 = _arg1.slice(-2); _arg1 = _arg1.substring(0, (_arg1.length - 2)); if (_local2 == 0){ _local3 = (String(_arg1) + ".00"); } else { if (String(_local2).length == 1){ _local3 = (((String(_arg1) + ".") + String(_local2)) + "0"); } else { _local3 = ((String(_arg1) + ".") + String(_local2)); }; }; return (_local3); } } }//package
Section 125
//Tank (Tank) package { import gs.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Tank extends MovieClip { private var speed:Number;// = 0.6 public var enemy:MovieClip; private var shootTime:int;// = 200 private var sound:Sound; public var health:int;// = 750 private var explode:Sound; public var enemyType:String;// = "Tank" public var mode:String;// = "run" private var dead:Boolean;// = false private var currentTime:int; private var offset:int; private var deathFunction:Boolean;// = false private var dying:Boolean;// = false private var destroyFunction:Boolean;// = false private var s; private var hb:HealthBar; private var soundChannel:SoundChannel; public function Tank(_arg1:MovieClip, _arg2, _arg3, _arg4):void{ currentTime = shootTime; offset = ((Math.random() * 150) + 190); soundChannel = new SoundChannel(); super(); explode = _arg4; sound = _arg3; hb = new HealthBar(health, 40); enemy = _arg1.innerBody; addChild(enemy); enemy.addEventListener(Event.ENTER_FRAME, enterFrame); s = _arg2; hb.y = (enemy.y - 30); hb.x = (-((hb.width / 2)) - 5); addChild(hb); } public function destroy():void{ if (destroyFunction == false){ dead = true; this.parent.removeChild(this); destroyFunction = true; mode = "dead"; }; } private function enterFrame(_arg1:Event):void{ if (mode == "shoot"){ if (currentTime > shootTime){ attack(); currentTime = 0; }; currentTime++; } else { if (mode == "run"){ if (this.x < ((320 + (this.y / 2)) - offset)){ this.x = (this.x + speed); } else { mode = "shoot"; }; } else { if (mode == "dead"){ if (dead == false){ if (enemy.currentFrame == 54){ dying = true; }; if (dying == true){ if (deathFunction == false){ TweenMax.delayedCall(3, destroy); TweenMax.to(this, 0.5, {alpha:0, delay:2.5}); deathFunction = true; }; }; }; }; }; }; } public function attack():void{ soundChannel = sound.play(); s.wallHealth = (s.wallHealth - 20); enemy.gotoAndPlay("shoot"); s.wallHealthLabel.text = String(("Wall: " + s.wallHealth)); s.shake(); } public function takeDamage(_arg1:int):void{ health = (health - _arg1); hb.updateBar(health); } public function kill():void{ explode.play(); enemy.gotoAndPlay("die"); mode = "dead"; s.shake(); } } }//package
Section 126
//tankBody (tankBody) package { import flash.display.*; public dynamic class tankBody extends MovieClip { public var innerBody:MovieClip; } }//package
Section 127
//tankExplode (tankExplode) package { import flash.media.*; public dynamic class tankExplode extends Sound { } }//package
Section 128
//Tankwav (Tankwav) package { import flash.media.*; public dynamic class Tankwav extends Sound { } }//package
Section 129
//Thompson (Thompson) package { import flash.display.*; public dynamic class Thompson extends MovieClip { } }//package
Section 130
//Thompson_hip (Thompson_hip) package { import flash.display.*; public dynamic class Thompson_hip extends MovieClip { } }//package
Section 131
//thompson_select (thompson_select) package { import flash.display.*; public dynamic class thompson_select extends MovieClip { } }//package
Section 132
//Thompson_sight (Thompson_sight) package { import flash.display.*; public dynamic class Thompson_sight extends MovieClip { } }//package
Section 133
//thompson_up (thompson_up) package { import flash.display.*; public dynamic class thompson_up extends MovieClip { } }//package
Section 134
//upgradeScreenBG (upgradeScreenBG) package { import flash.display.*; public dynamic class upgradeScreenBG extends MovieClip { } }//package
Section 135
//WeaponSwitch (WeaponSwitch) package { import gs.*; import flash.display.*; public class WeaponSwitch extends MovieClip { private var selected_weapon:int;// = 0 private var select5:String; private var select6:String; private var select4:String; private var bazooka:MovieClip; private var carbine:MovieClip; private var bar:MovieClip; private var mg:MovieClip; public var weapon:String;// = "thompson" private var weaponArray:Array; private var thompson:MovieClip; private var select1:String;// = "thompson" private var select2:String; private var select3:String; private var main:MovieClip; private var garand:MovieClip; public function WeaponSwitch(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:MovieClip, _arg5:MovieClip, _arg6:MovieClip):void{ weaponArray = new Array(); main = new MovieClip(); super(); thompson = _arg1; carbine = _arg2; garand = _arg3; bar = _arg4; mg = _arg5; bazooka = _arg6; carbine.alpha = 0; garand.alpha = 0; bar.alpha = 0; mg.alpha = 0; bazooka.alpha = 0; weaponArray.push(thompson); main.addChild(thompson); addChild(main); } public function addWeapon(_arg1):void{ if (_arg1 == "carbine"){ main.addChild(carbine); carbine.y = ((weaponArray[(weaponArray.length - 1)].y + weaponArray[(weaponArray.length - 1)].height) + 10); if ((weaponArray.length - 1) == 0){ select2 = "carbine"; } else { if ((weaponArray.length - 1) == 1){ select3 = "carbine"; } else { if ((weaponArray.length - 1) == 2){ select4 = "carbine"; } else { if ((weaponArray.length - 1) == 3){ select5 = "carbine"; } else { if ((weaponArray.length - 1) == 4){ select6 = "carbine"; }; }; }; }; }; weaponArray.push(carbine); } else { if (_arg1 == "garand"){ main.addChild(garand); garand.y = ((weaponArray[(weaponArray.length - 1)].y + weaponArray[(weaponArray.length - 1)].height) + 10); if ((weaponArray.length - 1) == 0){ select2 = "garand"; } else { if ((weaponArray.length - 1) == 1){ select3 = "garand"; } else { if ((weaponArray.length - 1) == 2){ select4 = "garand"; } else { if ((weaponArray.length - 1) == 3){ select5 = "garand"; } else { if ((weaponArray.length - 1) == 4){ select6 = "garand"; }; }; }; }; }; weaponArray.push(garand); } else { if (_arg1 == "bar"){ main.addChild(bar); bar.y = ((weaponArray[(weaponArray.length - 1)].y + weaponArray[(weaponArray.length - 1)].height) + 10); if ((weaponArray.length - 1) == 0){ select2 = "bar"; } else { if ((weaponArray.length - 1) == 1){ select3 = "bar"; } else { if ((weaponArray.length - 1) == 2){ select4 = "bar"; } else { if ((weaponArray.length - 1) == 3){ select5 = "bar"; } else { if ((weaponArray.length - 1) == 4){ select6 = "bar"; }; }; }; }; }; weaponArray.push(bar); } else { if (_arg1 == "mg"){ main.addChild(mg); mg.y = ((weaponArray[(weaponArray.length - 1)].y + weaponArray[(weaponArray.length - 1)].height) + 10); if ((weaponArray.length - 1) == 0){ select2 = "mg"; } else { if ((weaponArray.length - 1) == 1){ select3 = "mg"; } else { if ((weaponArray.length - 1) == 2){ select4 = "mg"; } else { if ((weaponArray.length - 1) == 3){ select5 = "mg"; } else { if ((weaponArray.length - 1) == 4){ select6 = "mg"; }; }; }; }; }; weaponArray.push(mg); } else { if (_arg1 == "bazooka"){ main.addChild(bazooka); bazooka.y = ((weaponArray[(weaponArray.length - 1)].y + weaponArray[(weaponArray.length - 1)].height) + 10); if ((weaponArray.length - 1) == 0){ select2 = "bazooka"; } else { if ((weaponArray.length - 1) == 1){ select3 = "bazooka"; } else { if ((weaponArray.length - 1) == 2){ select4 = "bazooka"; } else { if ((weaponArray.length - 1) == 3){ select5 = "bazooka"; } else { if ((weaponArray.length - 1) == 4){ select6 = "bazooka"; }; }; }; }; }; weaponArray.push(bazooka); }; }; }; }; }; } public function weaponUp():void{ var _local1:*; if (selected_weapon < (weaponArray.length - 1)){ selected_weapon++; if (selected_weapon == 0){ weapon = select1; } else { if (selected_weapon == 1){ weapon = select2; } else { if (selected_weapon == 2){ weapon = select3; } else { if (selected_weapon == 3){ weapon = select4; } else { if (selected_weapon == 4){ weapon = select5; } else { if (selected_weapon == 5){ weapon = select6; }; }; }; }; }; }; for (_local1 in weaponArray) { if (_local1 == selected_weapon){ TweenMax.to(weaponArray[_local1], 0.6, {alpha:1, overwrite:1}); } else { TweenMax.to(weaponArray[_local1], 0.4, {alpha:0, overwrite:1}); }; }; TweenMax.to(main, 0.6, {y:-(weaponArray[selected_weapon].y), overwrite:1}); }; } public function weaponDown():void{ var _local1:*; if (selected_weapon > 0){ selected_weapon--; if (selected_weapon == 0){ weapon = select1; } else { if (selected_weapon == 1){ weapon = select2; } else { if (selected_weapon == 2){ weapon = select3; } else { if (selected_weapon == 3){ weapon = select4; } else { if (selected_weapon == 4){ weapon = select5; } else { if (selected_weapon == 5){ weapon = select6; }; }; }; }; }; }; for (_local1 in weaponArray) { if (_local1 == selected_weapon){ TweenMax.to(weaponArray[_local1], 0.6, {alpha:1, overwrite:1}); } else { TweenMax.to(weaponArray[_local1], 0.4, {alpha:0, overwrite:1}); }; }; TweenMax.to(main, 0.6, {y:-(weaponArray[selected_weapon].y), overwrite:1}); }; } public function Reset():void{ carbine.alpha = 0; garand.alpha = 0; bar.alpha = 0; mg.alpha = 0; bazooka.alpha = 0; weaponArray = new Array(); main.parent.removeChild(main); main = new MovieClip(); main.addChild(thompson); addChild(main); weapon = "thompson"; select1 = "thompson"; select2 = ""; select3 = ""; select4 = ""; select5 = ""; select6 = ""; } } }//package
Section 136
//wIcon_BAR (wIcon_BAR) package { import flash.display.*; public dynamic class wIcon_BAR extends MovieClip { } }//package
Section 137
//wIcon_Bazooka (wIcon_Bazooka) package { import flash.display.*; public dynamic class wIcon_Bazooka extends MovieClip { } }//package
Section 138
//wIcon_Browning (wIcon_Browning) package { import flash.display.*; public dynamic class wIcon_Browning extends MovieClip { } }//package
Section 139
//wIcon_Carbine (wIcon_Carbine) package { import flash.display.*; public dynamic class wIcon_Carbine extends MovieClip { } }//package
Section 140
//wIcon_Garand (wIcon_Garand) package { import flash.display.*; public dynamic class wIcon_Garand extends MovieClip { } }//package
Section 141
//wIcon_Thompson (wIcon_Thompson) package { import flash.display.*; public dynamic class wIcon_Thompson extends MovieClip { } }//package
Section 142
//winJPG (winJPG) package { import flash.display.*; public dynamic class winJPG extends BitmapData { public function winJPG(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 143
//WinScreen (WinScreen) package { import flash.events.*; import flash.display.*; public class WinScreen extends MovieClip { public var main:MovieClip; public function WinScreen(_arg1, _arg2):void{ main = new MovieClip(); super(); addChild(_arg2); main = _arg1; addChild(main); main.y = 450; main.x = 325; this.addEventListener(Event.ENTER_FRAME, frame); } private function frame(_arg1:Event):void{ if (main.y > 10){ main.y = (main.y - 0.5); }; } } }//package
Section 144
//youLose (youLose) package { import flash.display.*; public dynamic class youLose extends MovieClip { } }//package

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:Timeline
Symbol 3 BitmapUsed by:4
Symbol 4 GraphicUses:3Used by:5
Symbol 5 MovieClipUses:4Used by:Timeline
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:Timeline
Symbol 8 GraphicUsed by:12 17 19 625 626 675
Symbol 9 GraphicUsed by:12 675
Symbol 10 GraphicUsed by:12 675
Symbol 11 GraphicUsed by:12 675
Symbol 12 MovieClipUses:8 9 10 11Used by:Timeline
Symbol 13 GraphicUsed by:14  Timeline
Symbol 14 MovieClipUses:13Used by:Timeline
Symbol 15 Font {MenuFont}Used by:16 18 385 427 641 650
Symbol 16 TextUses:15Used by:17
Symbol 17 MovieClipUses:8 16Used by:Timeline
Symbol 18 TextUses:15Used by:19
Symbol 19 MovieClipUses:8 18Used by:Timeline
Symbol 20 Font {actionFont}Used by:42 46 50 54 58 62 628 630 648 658 696 697
Symbol 21 Sound {Riflemanwav}
Symbol 22 Sound {Tankwav}
Symbol 23 Sound {MachineGunnerwav}
Symbol 24 Sound {battleAmbience}
Symbol 25 Sound {Howitzerwav}
Symbol 26 Sound {howitzerExplode}
Symbol 27 Sound {Jeepwav}
Symbol 28 Sound {noAmmo}
Symbol 29 Sound {jeepExplode}
Symbol 30 Sound {garandNoAmmo}
Symbol 31 Sound {tankExplode}
Symbol 32 Sound {rollingThunder}
Symbol 33 Sound {carbineSound}
Symbol 34 Sound {barSound}
Symbol 35 Sound {garandSound}
Symbol 36 Sound {gunSound}
Symbol 37 Sound {Bazookawav}
Symbol 38 Sound {reloadMP3}
Symbol 39 Sound {browningSound}
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:40Used by:45 49 53 57 61 65
Symbol 42 TextUses:20Used by:45
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:45
Symbol 45 MovieClip {garand_up}Uses:41 42 44
Symbol 46 TextUses:20Used by:49
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:49
Symbol 49 MovieClip {bar_up}Uses:41 46 48
Symbol 50 TextUses:20Used by:53
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:53
Symbol 53 MovieClip {browning_up}Uses:41 50 52
Symbol 54 TextUses:20Used by:57
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:57
Symbol 57 MovieClip {carbine_up}Uses:41 54 56
Symbol 58 TextUses:20Used by:61
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:61
Symbol 61 MovieClip {bazooka_up}Uses:41 58 60
Symbol 62 TextUses:20Used by:65
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:65
Symbol 65 MovieClip {thompson_up}Uses:41 62 64
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClip {headshot_icon}Uses:66
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClip {wIcon_Thompson}Uses:68
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClip {wIcon_BAR}Uses:70
Symbol 72 GraphicUsed by:73
Symbol 73 MovieClip {wIcon_Carbine}Uses:72
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClip {wIcon_Garand}Uses:74
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClip {wIcon_Bazooka}Uses:76
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClip {wIcon_Browning}Uses:78
Symbol 80 BitmapUsed by:81 119 482
Symbol 81 GraphicUses:80Used by:86
Symbol 82 BitmapUsed by:83 120 483
Symbol 83 GraphicUses:82Used by:86
Symbol 84 BitmapUsed by:85 121
Symbol 85 GraphicUses:84Used by:86
Symbol 86 MovieClip {muzzle_flash_hip}Uses:81 83 85
Symbol 87 GraphicUsed by:95
Symbol 88 GraphicUsed by:95
Symbol 89 GraphicUsed by:95
Symbol 90 GraphicUsed by:95
Symbol 91 GraphicUsed by:95
Symbol 92 GraphicUsed by:95
Symbol 93 GraphicUsed by:95
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClip {blood_splat}Uses:87 88 89 90 91 92 93 94
Symbol 96 GraphicUsed by:102
Symbol 97 GraphicUsed by:102
Symbol 98 GraphicUsed by:102
Symbol 99 GraphicUsed by:102
Symbol 100 GraphicUsed by:102
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClip {sparks}Uses:96 97 98 99 100 101
Symbol 103 GraphicUsed by:104
Symbol 104 MovieClipUses:103Used by:118
Symbol 105 ShapeTweeningUsed by:118
Symbol 106 ShapeTweeningUsed by:118
Symbol 107 ShapeTweeningUsed by:118
Symbol 108 ShapeTweeningUsed by:118
Symbol 109 ShapeTweeningUsed by:118
Symbol 110 ShapeTweeningUsed by:118
Symbol 111 ShapeTweeningUsed by:118
Symbol 112 ShapeTweeningUsed by:118
Symbol 113 ShapeTweeningUsed by:118
Symbol 114 GraphicUsed by:118
Symbol 115 GraphicUsed by:118
Symbol 116 GraphicUsed by:118
Symbol 117 ShapeTweeningUsed by:118
Symbol 118 MovieClip {ground_hit}Uses:104 105 106 107 108 109 110 111 112 113 114 115 116 117
Symbol 119 GraphicUses:80Used by:122
Symbol 120 GraphicUses:82Used by:122
Symbol 121 GraphicUses:84Used by:122 484
Symbol 122 MovieClip {muzzle_flash}Uses:119 120 121
Symbol 123 GraphicUsed by:242 285
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:242 285
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:242 285
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:128Used by:242 285
Symbol 130 BitmapUsed by:131
Symbol 131 GraphicUses:130Used by:242 285
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:242 285
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:242 285
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:242 285
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:242 285
Symbol 140 BitmapUsed by:141
Symbol 141 GraphicUses:140Used by:242 285
Symbol 142 BitmapUsed by:143
Symbol 143 GraphicUses:142Used by:242 285
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:242 285
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:242 285
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:242 285
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:242 285
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:242 285
Symbol 154 BitmapUsed by:155 252
Symbol 155 GraphicUses:154Used by:242
Symbol 156 BitmapUsed by:157 253
Symbol 157 GraphicUses:156Used by:242
Symbol 158 BitmapUsed by:159
Symbol 159 GraphicUses:158Used by:242 285
Symbol 160 BitmapUsed by:161 251
Symbol 161 GraphicUses:160Used by:242
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:242 285
Symbol 164 BitmapUsed by:165 254 255
Symbol 165 GraphicUses:164Used by:242
Symbol 166 GraphicUsed by:242 285 612
Symbol 167 BitmapUsed by:168 256 594
Symbol 168 GraphicUses:167Used by:242
Symbol 169 BitmapUsed by:170 257 595
Symbol 170 GraphicUses:169Used by:242
Symbol 171 BitmapUsed by:172
Symbol 172 GraphicUses:171Used by:242 285 612
Symbol 173 BitmapUsed by:174 258 596
Symbol 174 GraphicUses:173Used by:242
Symbol 175 ShapeTweeningUsed by:242
Symbol 176 BitmapUsed by:177 260 598
Symbol 177 GraphicUses:176Used by:242
Symbol 178 BitmapUsed by:179 261 599
Symbol 179 GraphicUses:178Used by:242
Symbol 180 BitmapUsed by:181 262 600
Symbol 181 GraphicUses:180Used by:242
Symbol 182 BitmapUsed by:183 263 601
Symbol 183 GraphicUses:182Used by:242
Symbol 184 BitmapUsed by:185 264 602
Symbol 185 GraphicUses:184Used by:242
Symbol 186 BitmapUsed by:187 265 603
Symbol 187 GraphicUses:186Used by:242
Symbol 188 BitmapUsed by:189 266 604
Symbol 189 GraphicUses:188Used by:242
Symbol 190 BitmapUsed by:191 267 605
Symbol 191 GraphicUses:190Used by:242
Symbol 192 BitmapUsed by:193 268 606
Symbol 193 GraphicUses:192Used by:242
Symbol 194 BitmapUsed by:195 607
Symbol 195 GraphicUses:194Used by:242 285
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:242 285 612
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:242 285 612
Symbol 200 BitmapUsed by:201 269 608
Symbol 201 GraphicUses:200Used by:242
Symbol 202 BitmapUsed by:203
Symbol 203 GraphicUses:202Used by:242 285 612
Symbol 204 BitmapUsed by:205 206 270 609
Symbol 205 GraphicUses:204Used by:242
Symbol 206 GraphicUses:204Used by:242
Symbol 207 ShapeTweeningUsed by:242
Symbol 208 BitmapUsed by:209
Symbol 209 GraphicUses:208Used by:242 285
Symbol 210 BitmapUsed by:211 272
Symbol 211 GraphicUses:210Used by:242
Symbol 212 BitmapUsed by:213 273
Symbol 213 GraphicUses:212Used by:242
Symbol 214 BitmapUsed by:215 274
Symbol 215 GraphicUses:214Used by:242
Symbol 216 ShapeTweeningUsed by:242
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:242 285
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:242 285
Symbol 221 BitmapUsed by:222 276
Symbol 222 GraphicUses:221Used by:242
Symbol 223 BitmapUsed by:224 277
Symbol 224 GraphicUses:223Used by:242
Symbol 225 BitmapUsed by:226 278
Symbol 226 GraphicUses:225Used by:242
Symbol 227 ShapeTweeningUsed by:242
Symbol 228 BitmapUsed by:229 280
Symbol 229 GraphicUses:228Used by:242
Symbol 230 BitmapUsed by:231
Symbol 231 GraphicUses:230Used by:242 285
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:242 285
Symbol 234 BitmapUsed by:235 281
Symbol 235 GraphicUses:234Used by:242
Symbol 236 BitmapUsed by:237 282
Symbol 237 GraphicUses:236Used by:242
Symbol 238 BitmapUsed by:239 283
Symbol 239 GraphicUses:238Used by:242
Symbol 240 BitmapUsed by:241 284
Symbol 241 GraphicUses:240Used by:242
Symbol 242 MovieClip {enemyBody}Uses:123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 166 168 170 172 174 175 177 179 181 183 185 187 189 191 193 195 197 199 201 203 205 206 207 209 211 213 215 216 218 220 222 224 226 227 229 231 233 235 237 239 241
Symbol 243 GraphicUsed by:248
Symbol 244 GraphicUsed by:248
Symbol 245 GraphicUsed by:248
Symbol 246 GraphicUsed by:248
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClip {blood}Uses:243 244 245 246 247
Symbol 249 GraphicUsed by:250
Symbol 250 MovieClip {bulletHole}Uses:249
Symbol 251 GraphicUses:160Used by:285
Symbol 252 GraphicUses:154Used by:285
Symbol 253 GraphicUses:156Used by:285
Symbol 254 GraphicUses:164Used by:285
Symbol 255 GraphicUses:164Used by:285
Symbol 256 GraphicUses:167Used by:285
Symbol 257 GraphicUses:169Used by:285
Symbol 258 GraphicUses:173Used by:285
Symbol 259 ShapeTweeningUsed by:285
Symbol 260 GraphicUses:176Used by:285
Symbol 261 GraphicUses:178Used by:285
Symbol 262 GraphicUses:180Used by:285
Symbol 263 GraphicUses:182Used by:285
Symbol 264 GraphicUses:184Used by:285
Symbol 265 GraphicUses:186Used by:285
Symbol 266 GraphicUses:188Used by:285
Symbol 267 GraphicUses:190Used by:285
Symbol 268 GraphicUses:192Used by:285
Symbol 269 GraphicUses:200Used by:285
Symbol 270 GraphicUses:204Used by:285
Symbol 271 ShapeTweeningUsed by:285
Symbol 272 GraphicUses:210Used by:285
Symbol 273 GraphicUses:212Used by:285
Symbol 274 GraphicUses:214Used by:285
Symbol 275 ShapeTweeningUsed by:285
Symbol 276 GraphicUses:221Used by:285
Symbol 277 GraphicUses:223Used by:285
Symbol 278 GraphicUses:225Used by:285
Symbol 279 ShapeTweeningUsed by:285
Symbol 280 GraphicUses:228Used by:285
Symbol 281 GraphicUses:234Used by:285
Symbol 282 GraphicUses:236Used by:285
Symbol 283 GraphicUses:238Used by:285
Symbol 284 GraphicUses:240Used by:285
Symbol 285 MovieClip {machineGunner}Uses:123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 251 252 253 159 254 163 255 166 256 257 172 258 259 260 261 262 263 264 265 266 267 268 195 197 199 269 203 270 271 209 272 273 274 275 218 220 276 277 278 279 280 231 233 281 282 283 284
Symbol 286 GraphicUsed by:382
Symbol 287 BitmapUsed by:288
Symbol 288 GraphicUses:287Used by:382
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:382
Symbol 291 BitmapUsed by:292
Symbol 292 GraphicUses:291Used by:382
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:293Used by:382
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:295Used by:382
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:382
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:382
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:382
Symbol 303 BitmapUsed by:304
Symbol 304 GraphicUses:303Used by:382
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:382
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:382
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:382
Symbol 311 GraphicUsed by:382
Symbol 312 BitmapUsed by:313
Symbol 313 GraphicUses:312Used by:354 643
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:354 643
Symbol 316 BitmapUsed by:317
Symbol 317 GraphicUses:316Used by:354 643
Symbol 318 BitmapUsed by:319
Symbol 319 GraphicUses:318Used by:354 643
Symbol 320 BitmapUsed by:321
Symbol 321 GraphicUses:320Used by:354 643
Symbol 322 BitmapUsed by:323
Symbol 323 GraphicUses:322Used by:354 643
Symbol 324 BitmapUsed by:325
Symbol 325 GraphicUses:324Used by:354 643
Symbol 326 BitmapUsed by:327
Symbol 327 GraphicUses:326Used by:354 643
Symbol 328 BitmapUsed by:329
Symbol 329 GraphicUses:328Used by:354 643
Symbol 330 BitmapUsed by:331
Symbol 331 GraphicUses:330Used by:354 643
Symbol 332 BitmapUsed by:333
Symbol 333 GraphicUses:332Used by:354 643
Symbol 334 BitmapUsed by:335
Symbol 335 GraphicUses:334Used by:354 643
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:354 643
Symbol 338 BitmapUsed by:339
Symbol 339 GraphicUses:338Used by:354 643
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:354 643
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:354 643
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:354 643
Symbol 346 BitmapUsed by:347
Symbol 347 GraphicUses:346Used by:354 643
Symbol 348 BitmapUsed by:349
Symbol 349 GraphicUses:348Used by:354 643
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:354 643
Symbol 352 BitmapUsed by:353
Symbol 353 GraphicUses:352Used by:354 643
Symbol 354 MovieClip {defense_CPMStar_fla.explosion_33}Uses:313 315 317 319 321 323 325 327 329 331 333 335 337 339 341 343 345 347 349 351 353Used by:382 480 621
Symbol 355 GraphicUsed by:382
Symbol 356 GraphicUsed by:382
Symbol 357 GraphicUsed by:382
Symbol 358 GraphicUsed by:382
Symbol 359 GraphicUsed by:382
Symbol 360 GraphicUsed by:382
Symbol 361 GraphicUsed by:382
Symbol 362 GraphicUsed by:382
Symbol 363 GraphicUsed by:382
Symbol 364 GraphicUsed by:382
Symbol 365 GraphicUsed by:382
Symbol 366 GraphicUsed by:382
Symbol 367 GraphicUsed by:382
Symbol 368 GraphicUsed by:382
Symbol 369 GraphicUsed by:382
Symbol 370 GraphicUsed by:382
Symbol 371 GraphicUsed by:382
Symbol 372 GraphicUsed by:382
Symbol 373 GraphicUsed by:382
Symbol 374 GraphicUsed by:382
Symbol 375 GraphicUsed by:382
Symbol 376 GraphicUsed by:382
Symbol 377 GraphicUsed by:382
Symbol 378 GraphicUsed by:382
Symbol 379 GraphicUsed by:382
Symbol 380 GraphicUsed by:382
Symbol 381 GraphicUsed by:382
Symbol 382 MovieClip {defense_CPMStar_fla.tankBodyInner_61}Uses:286 288 290 292 294 296 298 300 302 304 306 308 310 311 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381Used by:383
Symbol 383 MovieClip {tankBody}Uses:382
Symbol 384 GraphicUsed by:386
Symbol 385 TextUses:15Used by:386
Symbol 386 MovieClip {OkButton}Uses:384 385
Symbol 387 BitmapUsed by:388
Symbol 388 GraphicUses:387Used by:389
Symbol 389 MovieClip {Thompson}Uses:388
Symbol 390 BitmapUsed by:391
Symbol 391 GraphicUses:390Used by:392
Symbol 392 MovieClip {Thompson_hip}Uses:391
Symbol 393 BitmapUsed by:394
Symbol 394 GraphicUses:393Used by:395
Symbol 395 MovieClip {Thompson_sight}Uses:394
Symbol 396 BitmapUsed by:397
Symbol 397 GraphicUses:396Used by:398
Symbol 398 MovieClip {Garand}Uses:397
Symbol 399 BitmapUsed by:400
Symbol 400 GraphicUses:399Used by:401
Symbol 401 MovieClip {Garand_hip}Uses:400
Symbol 402 BitmapUsed by:403
Symbol 403 GraphicUses:402Used by:404
Symbol 404 MovieClip {Carbine}Uses:403
Symbol 405 BitmapUsed by:406
Symbol 406 GraphicUses:405Used by:407
Symbol 407 MovieClip {Carbine_hip}Uses:406
Symbol 408 BitmapUsed by:409
Symbol 409 GraphicUses:408Used by:410
Symbol 410 MovieClip {Browning}Uses:409
Symbol 411 BitmapUsed by:412
Symbol 412 GraphicUses:411Used by:413
Symbol 413 MovieClip {Bazooka}Uses:412
Symbol 414 BitmapUsed by:415
Symbol 415 GraphicUses:414Used by:416
Symbol 416 MovieClip {Bazooka_hip}Uses:415
Symbol 417 BitmapUsed by:418
Symbol 418 GraphicUses:417Used by:419
Symbol 419 MovieClip {Bar_sight}Uses:418Used by:422
Symbol 420 BitmapUsed by:421
Symbol 421 GraphicUses:420Used by:422
Symbol 422 MovieClip {Bar}Uses:419 421
Symbol 423 BitmapUsed by:424
Symbol 424 GraphicUses:423Used by:425
Symbol 425 MovieClip {Bar_hip}Uses:424
Symbol 426 GraphicUsed by:428
Symbol 427 TextUses:15Used by:428
Symbol 428 MovieClip {upgradeScreenBG}Uses:426 427
Symbol 429 GraphicUsed by:480
Symbol 430 BitmapUsed by:431 436 439 442
Symbol 431 GraphicUses:430Used by:480
Symbol 432 BitmapUsed by:433 437 440 443
Symbol 433 GraphicUses:432Used by:480
Symbol 434 BitmapUsed by:435 438 441
Symbol 435 GraphicUses:434Used by:480
Symbol 436 GraphicUses:430Used by:480
Symbol 437 GraphicUses:432Used by:480
Symbol 438 GraphicUses:434Used by:480
Symbol 439 GraphicUses:430Used by:480
Symbol 440 GraphicUses:432Used by:480
Symbol 441 GraphicUses:434Used by:480
Symbol 442 GraphicUses:430Used by:480
Symbol 443 GraphicUses:432Used by:480
Symbol 444 BitmapUsed by:445 446 447 448 449
Symbol 445 GraphicUses:444Used by:480
Symbol 446 GraphicUses:444Used by:480
Symbol 447 GraphicUses:444Used by:480
Symbol 448 GraphicUses:444Used by:480
Symbol 449 GraphicUses:444Used by:480
Symbol 450 BitmapUsed by:451
Symbol 451 GraphicUses:450Used by:480
Symbol 452 GraphicUsed by:480
Symbol 453 GraphicUsed by:480
Symbol 454 GraphicUsed by:480
Symbol 455 GraphicUsed by:480
Symbol 456 GraphicUsed by:480
Symbol 457 GraphicUsed by:480
Symbol 458 GraphicUsed by:480
Symbol 459 GraphicUsed by:480
Symbol 460 GraphicUsed by:480
Symbol 461 GraphicUsed by:480 621
Symbol 462 GraphicUsed by:480
Symbol 463 GraphicUsed by:480
Symbol 464 GraphicUsed by:480
Symbol 465 GraphicUsed by:480
Symbol 466 GraphicUsed by:480
Symbol 467 GraphicUsed by:480
Symbol 468 GraphicUsed by:480
Symbol 469 GraphicUsed by:480
Symbol 470 GraphicUsed by:480
Symbol 471 GraphicUsed by:480
Symbol 472 GraphicUsed by:480
Symbol 473 GraphicUsed by:480
Symbol 474 GraphicUsed by:480
Symbol 475 GraphicUsed by:480
Symbol 476 GraphicUsed by:480
Symbol 477 GraphicUsed by:480
Symbol 478 GraphicUsed by:480
Symbol 479 GraphicUsed by:480
Symbol 480 MovieClip {defense_CPMStar_fla.jeepBodyInner_44}Uses:429 431 433 435 436 437 438 439 440 441 442 443 445 446 447 448 449 451 452 354 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479Used by:481
Symbol 481 MovieClip {jeepBody}Uses:480
Symbol 482 GraphicUses:80Used by:484
Symbol 483 GraphicUses:82Used by:484
Symbol 484 MovieClip {muzzle_flash_small}Uses:482 483 121
Symbol 485 BitmapUsed by:486
Symbol 486 GraphicUses:485Used by:487
Symbol 487 MovieClip {thompson_select}Uses:486
Symbol 488 BitmapUsed by:489
Symbol 489 GraphicUses:488Used by:490
Symbol 490 MovieClip {carbine_select}Uses:489
Symbol 491 BitmapUsed by:492
Symbol 492 GraphicUses:491Used by:493
Symbol 493 MovieClip {garand_select}Uses:492
Symbol 494 BitmapUsed by:495
Symbol 495 GraphicUses:494Used by:496
Symbol 496 MovieClip {bar_select}Uses:495
Symbol 497 BitmapUsed by:498
Symbol 498 GraphicUses:497Used by:499
Symbol 499 MovieClip {mg_select}Uses:498
Symbol 500 BitmapUsed by:501
Symbol 501 GraphicUses:500Used by:502
Symbol 502 MovieClip {bazooka_select}Uses:501
Symbol 503 BitmapUsed by:504
Symbol 504 GraphicUses:503Used by:505 632
Symbol 505 MovieClip {backgroundMC}Uses:504
Symbol 506 GraphicUsed by:621
Symbol 507 BitmapUsed by:509
Symbol 508 BitmapUsed by:509 529 543 557 571
Symbol 509 GraphicUses:507 508Used by:621
Symbol 510 BitmapUsed by:512
Symbol 511 BitmapUsed by:512 531 545 559 573
Symbol 512 GraphicUses:510 511Used by:621
Symbol 513 BitmapUsed by:515
Symbol 514 BitmapUsed by:515 533 547 561 575
Symbol 515 GraphicUses:513 514Used by:621
Symbol 516 BitmapUsed by:518
Symbol 517 BitmapUsed by:518 535 549 563
Symbol 518 GraphicUses:516 517Used by:621
Symbol 519 BitmapUsed by:521
Symbol 520 BitmapUsed by:521 537 551 565
Symbol 521 GraphicUses:519 520Used by:621
Symbol 522 BitmapUsed by:524
Symbol 523 BitmapUsed by:524 539 553 567
Symbol 524 GraphicUses:522 523Used by:621
Symbol 525 BitmapUsed by:527
Symbol 526 BitmapUsed by:527 541 555 569
Symbol 527 GraphicUses:525 526Used by:621
Symbol 528 BitmapUsed by:529
Symbol 529 GraphicUses:528 508Used by:621
Symbol 530 BitmapUsed by:531
Symbol 531 GraphicUses:530 511Used by:621
Symbol 532 BitmapUsed by:533
Symbol 533 GraphicUses:532 514Used by:621
Symbol 534 BitmapUsed by:535
Symbol 535 GraphicUses:534 517Used by:621
Symbol 536 BitmapUsed by:537
Symbol 537 GraphicUses:536 520Used by:621
Symbol 538 BitmapUsed by:539
Symbol 539 GraphicUses:538 523Used by:621
Symbol 540 BitmapUsed by:541
Symbol 541 GraphicUses:540 526Used by:621
Symbol 542 BitmapUsed by:543
Symbol 543 GraphicUses:542 508Used by:621
Symbol 544 BitmapUsed by:545
Symbol 545 GraphicUses:544 511Used by:621
Symbol 546 BitmapUsed by:547
Symbol 547 GraphicUses:546 514Used by:621
Symbol 548 BitmapUsed by:549
Symbol 549 GraphicUses:548 517Used by:621
Symbol 550 BitmapUsed by:551
Symbol 551 GraphicUses:550 520Used by:621
Symbol 552 BitmapUsed by:553
Symbol 553 GraphicUses:552 523Used by:621
Symbol 554 BitmapUsed by:555
Symbol 555 GraphicUses:554 526Used by:621
Symbol 556 BitmapUsed by:557
Symbol 557 GraphicUses:556 508Used by:621
Symbol 558 BitmapUsed by:559
Symbol 559 GraphicUses:558 511Used by:621
Symbol 560 BitmapUsed by:561
Symbol 561 GraphicUses:560 514Used by:621
Symbol 562 BitmapUsed by:563
Symbol 563 GraphicUses:562 517Used by:621
Symbol 564 BitmapUsed by:565
Symbol 565 GraphicUses:564 520Used by:621
Symbol 566 BitmapUsed by:567
Symbol 567 GraphicUses:566 523Used by:621
Symbol 568 BitmapUsed by:569
Symbol 569 GraphicUses:568 526Used by:621
Symbol 570 BitmapUsed by:571
Symbol 571 GraphicUses:570 508Used by:621
Symbol 572 BitmapUsed by:573
Symbol 573 GraphicUses:572 511Used by:621
Symbol 574 BitmapUsed by:575
Symbol 575 GraphicUses:574 514Used by:621
Symbol 576 GraphicUsed by:621
Symbol 577 BitmapUsed by:578 590
Symbol 578 GraphicUses:577Used by:621
Symbol 579 GraphicUsed by:621
Symbol 580 BitmapUsed by:581
Symbol 581 GraphicUses:580Used by:621
Symbol 582 BitmapUsed by:583
Symbol 583 GraphicUses:582Used by:621
Symbol 584 GraphicUsed by:621
Symbol 585 GraphicUsed by:621
Symbol 586 BitmapUsed by:587
Symbol 587 GraphicUses:586Used by:621
Symbol 588 GraphicUsed by:621
Symbol 589 GraphicUsed by:621
Symbol 590 GraphicUses:577Used by:621
Symbol 591 BitmapUsed by:592
Symbol 592 GraphicUses:591Used by:621
Symbol 593 GraphicUsed by:621
Symbol 594 GraphicUses:167Used by:612
Symbol 595 GraphicUses:169Used by:612
Symbol 596 GraphicUses:173Used by:612
Symbol 597 ShapeTweeningUsed by:612
Symbol 598 GraphicUses:176Used by:612
Symbol 599 GraphicUses:178Used by:612
Symbol 600 GraphicUses:180Used by:612
Symbol 601 GraphicUses:182Used by:612
Symbol 602 GraphicUses:184Used by:612
Symbol 603 GraphicUses:186Used by:612
Symbol 604 GraphicUses:188Used by:612
Symbol 605 GraphicUses:190Used by:612
Symbol 606 GraphicUses:192Used by:612
Symbol 607 GraphicUses:194Used by:612
Symbol 608 GraphicUses:200Used by:612
Symbol 609 GraphicUses:204Used by:612
Symbol 610 GraphicUsed by:612
Symbol 611 GraphicUsed by:612
Symbol 612 MovieClip {defense_CPMStar_fla.soldierDieNormal_34}Uses:166 594 595 172 596 597 598 599 600 601 602 603 604 605 606 607 197 199 608 203 609 610 611Used by:621
Symbol 613 GraphicUsed by:621
Symbol 614 GraphicUsed by:621
Symbol 615 GraphicUsed by:621
Symbol 616 GraphicUsed by:621
Symbol 617 GraphicUsed by:621
Symbol 618 GraphicUsed by:621
Symbol 619 GraphicUsed by:621
Symbol 620 GraphicUsed by:621
Symbol 621 MovieClip {defense_CPMStar_fla.howitzerBody_32}Uses:506 509 512 515 518 521 524 527 529 531 533 535 537 539 541 543 545 547 549 551 553 555 557 559 561 563 565 567 569 571 573 575 576 578 579 581 583 584 585 587 588 589 590 592 593 354 612 613 614 615 616 617 618 619 620 461Used by:622
Symbol 622 MovieClip {howitzerBody}Uses:621
Symbol 623 GraphicUsed by:624
Symbol 624 MovieClipUses:623Used by:625 626
Symbol 625 MovieClip {arrowUp_up}Uses:8 624
Symbol 626 MovieClip {arrowDown_up}Uses:8 624
Symbol 627 GraphicUsed by:631
Symbol 628 TextUses:20Used by:631
Symbol 629 GraphicUsed by:631
Symbol 630 TextUses:20Used by:631
Symbol 631 MovieClip {buyButton}Uses:627 628 629 630
Symbol 632 MovieClip {gameBackground}Uses:504
Symbol 633 GraphicUsed by:639
Symbol 634 GraphicUsed by:639
Symbol 635 GraphicUsed by:639
Symbol 636 GraphicUsed by:639
Symbol 637 GraphicUsed by:639
Symbol 638 GraphicUsed by:639
Symbol 639 MovieClip {sparks2}Uses:633 634 635 636 637 638
Symbol 640 GraphicUsed by:642
Symbol 641 TextUses:15Used by:642
Symbol 642 MovieClip {youLose}Uses:640 641
Symbol 643 MovieClip {defense_CPMStar_fla.bazookaShotInner_23}Uses:313 315 317 319 321 323 325 327 329 331 333 335 337 339 341 343 345 347 349 351 353Used by:644
Symbol 644 MovieClip {bazookaShot}Uses:643
Symbol 645 BitmapUsed by:646
Symbol 646 GraphicUses:645Used by:647
Symbol 647 MovieClip {addHealth}Uses:646
Symbol 648 TextUses:20Used by:652
Symbol 649 GraphicUsed by:651
Symbol 650 EditableTextUses:15Used by:651
Symbol 651 MovieClipUses:649 650Used by:652  Timeline
Symbol 652 MovieClip {Credits}Uses:648 651
Symbol 653 GraphicUsed by:659
Symbol 654 BitmapUsed by:655
Symbol 655 GraphicUses:654Used by:656
Symbol 656 MovieClipUses:655Used by:659
Symbol 657 GraphicUsed by:659
Symbol 658 TextUses:20Used by:659
Symbol 659 MovieClip {loseBackground}Uses:653 656 657 658
Symbol 660 GraphicUsed by:661
Symbol 661 MovieClipUses:660Used by:662
Symbol 662 MovieClip {loaderBar}Uses:661
Symbol 663 Bitmap {winJPG}Used by:664
Symbol 664 MovieClip {CreditsBackground}Uses:663Used by:Timeline
Symbol 665 SoundUsed by:675
Symbol 666 SoundUsed by:675
Symbol 667 GraphicUsed by:675
Symbol 668 GraphicUsed by:669
Symbol 669 MovieClipUses:668Used by:675
Symbol 670 SoundUsed by:675
Symbol 671 SoundUsed by:675
Symbol 672 SoundUsed by:675
Symbol 673 SoundUsed by:675
Symbol 674 SoundUsed by:675
Symbol 675 MovieClip {defense_CPMStar_fla.ag_intro_mc_7}Uses:9 10 11 665 666 667 669 670 671 672 8 673 674Used by:Timeline
Symbol 676 BitmapUsed by:677
Symbol 677 GraphicUses:676Used by:Timeline
Symbol 678 FontUsed by:679 680
Symbol 679 TextUses:678Used by:Timeline
Symbol 680 TextUses:678Used by:Timeline
Symbol 681 BitmapUsed by:682
Symbol 682 GraphicUses:681Used by:683
Symbol 683 MovieClipUses:682Used by:Timeline
Symbol 684 BitmapUsed by:685
Symbol 685 GraphicUses:684Used by:686
Symbol 686 MovieClipUses:685Used by:Timeline
Symbol 687 BitmapUsed by:688
Symbol 688 GraphicUses:687Used by:Timeline
Symbol 689 GraphicUsed by:690
Symbol 690 MovieClipUses:689Used by:Timeline
Symbol 691 GraphicUsed by:692
Symbol 692 MovieClipUses:691Used by:Timeline
Symbol 693 BitmapUsed by:694
Symbol 694 GraphicUses:693Used by:695
Symbol 695 MovieClipUses:694Used by:Timeline
Symbol 696 EditableTextUses:20Used by:Timeline
Symbol 697 TextUses:20Used by:Timeline

Instance Names

"bullet_bar"Frame 1Symbol 5 MovieClip
"bullet_bar_mask"Frame 1Symbol 7 MovieClip
"logo9899"Frame 1Symbol 12 MovieClip
"adBox"Frame 1Symbol 14 MovieClip
"logo2"Frame 1Symbol 12 MovieClip
"playGame989"Frame 1Symbol 17 MovieClip
"closeButton"Frame 1Symbol 19 MovieClip
"logo"Frame 3Symbol 675 MovieClip {defense_CPMStar_fla.ag_intro_mc_7}
"logo5"Frame 5Symbol 12 MovieClip
"groundHit"Frame 15Symbol 690 MovieClip
"buildingHit"Frame 15Symbol 692 MovieClip
"overlay"Frame 15Symbol 695 MovieClip
"wallHealthLabel"Frame 15Symbol 696 EditableText
"gotoMainMenu"Frame 24Symbol 651 MovieClip
"innerBody"Symbol 383 MovieClip {tankBody} Frame 1Symbol 382 MovieClip {defense_CPMStar_fla.tankBodyInner_61}
"innerBody"Symbol 481 MovieClip {jeepBody} Frame 1Symbol 480 MovieClip {defense_CPMStar_fla.jeepBodyInner_44}
"innerBody"Symbol 622 MovieClip {howitzerBody} Frame 1Symbol 621 MovieClip {defense_CPMStar_fla.howitzerBody_32}
"inner"Symbol 625 MovieClip {arrowUp_up} Frame 1Symbol 624 MovieClip
"inner"Symbol 626 MovieClip {arrowDown_up} Frame 1Symbol 624 MovieClip
"playAgainButton"Symbol 652 MovieClip {Credits} Frame 1Symbol 651 MovieClip
"innerLoader"Symbol 662 MovieClip {loaderBar} Frame 1Symbol 661 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 11284 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmln ..."

Labels

"shoot"Symbol 242 MovieClip {enemyBody} Frame 20
"die"Symbol 242 MovieClip {enemyBody} Frame 35
"deathComplete"Symbol 242 MovieClip {enemyBody} Frame 69
"headshot"Symbol 242 MovieClip {enemyBody} Frame 78
"shoot"Symbol 285 MovieClip {machineGunner} Frame 20
"die"Symbol 285 MovieClip {machineGunner} Frame 30
"deathComplete"Symbol 285 MovieClip {machineGunner} Frame 63
"headshot"Symbol 285 MovieClip {machineGunner} Frame 72
"shoot"Symbol 382 MovieClip {defense_CPMStar_fla.tankBodyInner_61} Frame 12
"die"Symbol 382 MovieClip {defense_CPMStar_fla.tankBodyInner_61} Frame 25
"deathComplete"Symbol 382 MovieClip {defense_CPMStar_fla.tankBodyInner_61} Frame 54
"shoot"Symbol 480 MovieClip {defense_CPMStar_fla.jeepBodyInner_44} Frame 21
"die"Symbol 480 MovieClip {defense_CPMStar_fla.jeepBodyInner_44} Frame 41
"shoot"Symbol 621 MovieClip {defense_CPMStar_fla.howitzerBody_32} Frame 35
"die"Symbol 621 MovieClip {defense_CPMStar_fla.howitzerBody_32} Frame 45
"buy"Symbol 631 MovieClip {buyButton} Frame 1
"purchased"Symbol 631 MovieClip {buyButton} Frame 10




http://swfchan.com/26/127262/info.shtml
Created: 25/2 -2019 05:05:22 Last modified: 25/2 -2019 05:05:22 Server time: 06/05 -2024 14:24:29