STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229473 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2574 · P5148 |
This is the info page for Flash #69815 |
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//ag_intro_mc_4 (defense_fla.ag_intro_mc_4) package defense_fla { import flash.display.*; public dynamic class ag_intro_mc_4 extends MovieClip { public function ag_intro_mc_4(){ addFrameScript(0, frame1, 217, frame218); } function frame218(){ stop(); } function frame1(){ gotoAndPlay(2); } } }//package defense_flaSection 2//bazookaShotInner_20 (defense_fla.bazookaShotInner_20) package defense_fla { import flash.display.*; public dynamic class bazookaShotInner_20 extends MovieClip { public function bazookaShotInner_20(){ addFrameScript(20, frame21); } function frame21(){ stop(); this.parent.removeChild(this); } } }//package defense_flaSection 3//explosion_30 (defense_fla.explosion_30) package defense_fla { import flash.display.*; public dynamic class explosion_30 extends MovieClip { public function explosion_30(){ addFrameScript(20, frame21); } function frame21(){ stop(); } } }//package defense_flaSection 4//howitzerBody_29 (defense_fla.howitzerBody_29) package defense_fla { import flash.display.*; public dynamic class howitzerBody_29 extends MovieClip { public function howitzerBody_29(){ addFrameScript(30, frame31, 40, frame41, 53, frame54); } function frame41(){ stop(); } function frame31(){ gotoAndPlay(1); } function frame54(){ stop(); } } }//package defense_flaSection 5//jeepBodyInner_41 (defense_fla.jeepBodyInner_41) package defense_fla { import flash.display.*; public dynamic class jeepBodyInner_41 extends MovieClip { public function jeepBodyInner_41(){ 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_flaSection 6//MainTimeline (defense_fla.MainTimeline) package defense_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 flash.utils.*; import flash.errors.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.system.*; 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 restartButton:MenuButton; public var maxEnemies:int; public var fireTime:int; public var thompsonPrice:int; public var bullet_bar_mask:MovieClip; public var buildingHit:MovieClip; public var enemySpawnTime:int; public var bd:BitmapData; public var garandPurchased:Boolean; public var bazookaAmmo:int; 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 thompsonAmmo:int; public var b:Bitmap; public var moreGames:MenuButton; public var maxTank; public var thompsonPurchased:Boolean; public var currentGunReloading:Boolean; public var bulletArray:Array; public var currentThompsonAmmo:int; public var maxMachineGunner; public var garandReloading:Boolean; public var garandPrice:int; public var groundHit:MovieClip; public var thompsonReloading:Boolean; public var credits:MenuButton; public var barPurchased:Boolean; public var bazookaPurchased:Boolean; public var solderName:String; public var aimMode:String; public var maxJeep; public var sFader:MovieClip; public var currentCarbineAmmo:int; 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 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 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 numJeep; public var browningAmmo:int; public var loseScreen:LoseScreen; public var logo2:MovieClip; public var logo5:MovieClip; public var currentTime:int; public var statsScreen:MovieClip; public var currentBrowningAmmo:int; public var overStatus:String; public var browningPurchased:Boolean; public var bazookaPrice:int; public var game:MasterGame; 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){ trace("loading complete"); this.gotoAndStop(3); }; } 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(){ stop(); bullet_bar.mask = bullet_bar_mask; this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loader); logo2.buttonMode = true; 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 restartGame(_arg1:MouseEvent):void{ totMoney = 0; level = 0; gameOverBox.parent.removeChild(gameOverBox); restartButton.parent.removeChild(restartButton); gotoAndStop(5); } 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 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 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 gotoGame():void{ gotoAndStop(10); } } }//package defense_flaSection 7//soldierDieNormal_31 (defense_fla.soldierDieNormal_31) package defense_fla { import flash.display.*; public dynamic class soldierDieNormal_31 extends MovieClip { public function soldierDieNormal_31(){ addFrameScript(34, frame35); } function frame35(){ stop(); } } }//package defense_flaSection 8//tankBodyInner_58 (defense_fla.tankBodyInner_58) package defense_fla { import flash.display.*; public dynamic class tankBodyInner_58 extends MovieClip { public function tankBodyInner_58(){ addFrameScript(5, frame6, 20, frame21, 53, frame54); } function frame6(){ gotoAndPlay(1); } function frame54(){ gotoAndPlay(45); } function frame21(){ stop(); } } }//package defense_flaSection 9//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.easingSection 10//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.easingSection 11//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.eventsSection 12//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.pluginsSection 13//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.pluginsSection 14//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.pluginsSection 15//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.pluginsSection 16//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.pluginsSection 17//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.pluginsSection 18//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.pluginsSection 19//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.pluginsSection 20//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.pluginsSection 21//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.pluginsSection 22//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.pluginsSection 23//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.pluginsSection 24//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.pluginsSection 25//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.pluginsSection 26//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.pluginsSection 27//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.pluginsSection 28//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.pluginsSection 29//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.pluginsSection 30//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.pluginsSection 31//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.tweenSection 32//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.tweenSection 33//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 gsSection 34//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 gsSection 35//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 gsSection 36//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); } } }//packageSection 37//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(); }; } } }//packageSection 38//actionFont (actionFont) package { import flash.text.*; public dynamic class actionFont extends Font { } }//packageSection 39//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); } } }//packageSection 40//addHealth (addHealth) package { import flash.display.*; public dynamic class addHealth extends MovieClip { } }//packageSection 41//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++; }; } } }//packageSection 42//arrowDown_up (arrowDown_up) package { import flash.display.*; public dynamic class arrowDown_up extends MovieClip { public var inner:MovieClip; } }//packageSection 43//arrowUp_up (arrowUp_up) package { import flash.display.*; public dynamic class arrowUp_up extends MovieClip { public var inner:MovieClip; } }//packageSection 44//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; } } }//packageSection 45//backgroundMC (backgroundMC) package { import flash.display.*; public dynamic class backgroundMC extends MovieClip { } }//packageSection 46//Bar (Bar) package { import flash.display.*; public dynamic class Bar extends MovieClip { } }//packageSection 47//Bar_hip (Bar_hip) package { import flash.display.*; public dynamic class Bar_hip extends MovieClip { } }//packageSection 48//bar_select (bar_select) package { import flash.display.*; public dynamic class bar_select extends MovieClip { } }//packageSection 49//Bar_sight (Bar_sight) package { import flash.display.*; public dynamic class Bar_sight extends MovieClip { } }//packageSection 50//bar_up (bar_up) package { import flash.display.*; public dynamic class bar_up extends MovieClip { } }//packageSection 51//barSound (barSound) package { import flash.media.*; public dynamic class barSound extends Sound { } }//packageSection 52//battleAmbience (battleAmbience) package { import flash.media.*; public dynamic class battleAmbience extends Sound { } }//packageSection 53//Bazooka (Bazooka) package { import flash.display.*; public dynamic class Bazooka extends MovieClip { } }//packageSection 54//Bazooka_hip (Bazooka_hip) package { import flash.display.*; public dynamic class Bazooka_hip extends MovieClip { } }//packageSection 55//bazooka_select (bazooka_select) package { import flash.display.*; public dynamic class bazooka_select extends MovieClip { } }//packageSection 56//bazooka_up (bazooka_up) package { import flash.display.*; public dynamic class bazooka_up extends MovieClip { } }//packageSection 57//bazookaShot (bazookaShot) package { import flash.display.*; public dynamic class bazookaShot extends MovieClip { } }//packageSection 58//Bazookawav (Bazookawav) package { import flash.media.*; public dynamic class Bazookawav extends Sound { } }//packageSection 59//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); } } }//packageSection 60//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); } } }//packageSection 61//Browning (Browning) package { import flash.display.*; public dynamic class Browning extends MovieClip { } }//packageSection 62//browning_up (browning_up) package { import flash.display.*; public dynamic class browning_up extends MovieClip { } }//packageSection 63//browningSound (browningSound) package { import flash.media.*; public dynamic class browningSound extends Sound { } }//packageSection 64//bulletHole (bulletHole) package { import flash.display.*; public dynamic class bulletHole extends MovieClip { } }//packageSection 65//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(); } } }//packageSection 66//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}}); } } }//packageSection 67//Carbine (Carbine) package { import flash.display.*; public dynamic class Carbine extends MovieClip { } }//packageSection 68//Carbine_hip (Carbine_hip) package { import flash.display.*; public dynamic class Carbine_hip extends MovieClip { } }//packageSection 69//carbine_select (carbine_select) package { import flash.display.*; public dynamic class carbine_select extends MovieClip { } }//packageSection 70//carbine_up (carbine_up) package { import flash.display.*; public dynamic class carbine_up extends MovieClip { } }//packageSection 71//carbineSound (carbineSound) package { import flash.media.*; public dynamic class carbineSound extends Sound { } }//packageSection 72//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; } } }//packageSection 73//CreditsBackground (CreditsBackground) package { import flash.display.*; public dynamic class CreditsBackground extends MovieClip { } }//packageSection 74//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(); } } }//packageSection 75//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); } } }//packageSection 76//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); } } }//packageSection 77//gameBackground (gameBackground) package { import flash.display.*; public dynamic class gameBackground extends MovieClip { } }//packageSection 78//Garand (Garand) package { import flash.display.*; public dynamic class Garand extends MovieClip { } }//packageSection 79//Garand_hip (Garand_hip) package { import flash.display.*; public dynamic class Garand_hip extends MovieClip { } }//packageSection 80//garand_select (garand_select) package { import flash.display.*; public dynamic class garand_select extends MovieClip { } }//packageSection 81//garand_up (garand_up) package { import flash.display.*; public dynamic class garand_up extends MovieClip { } }//packageSection 82//garandNoAmmo (garandNoAmmo) package { import flash.media.*; public dynamic class garandNoAmmo extends Sound { } }//packageSection 83//garandSound (garandSound) package { import flash.media.*; public dynamic class garandSound extends Sound { } }//packageSection 84//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(); } } }//packageSection 85//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; }; } } }//packageSection 86//gunSound (gunSound) package { import flash.media.*; public dynamic class gunSound extends Sound { } }//packageSection 87//headshot_icon (headshot_icon) package { import flash.display.*; public dynamic class headshot_icon extends MovieClip { } }//packageSection 88//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); }; } } }//packageSection 89//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(); } } }//packageSection 90//howitzerBody (howitzerBody) package { import flash.display.*; public dynamic class howitzerBody extends MovieClip { public var innerBody:MovieClip; } }//packageSection 91//howitzerExplode (howitzerExplode) package { import flash.media.*; public dynamic class howitzerExplode extends Sound { } }//packageSection 92//Howitzerwav (Howitzerwav) package { import flash.media.*; public dynamic class Howitzerwav extends Sound { } }//packageSection 93//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(); } } }//packageSection 94//jeepBody (jeepBody) package { import flash.display.*; public dynamic class jeepBody extends MovieClip { public var innerBody:MovieClip; } }//packageSection 95//jeepExplode (jeepExplode) package { import flash.media.*; public dynamic class jeepExplode extends Sound { } }//packageSection 96//Jeepwav (Jeepwav) package { import flash.media.*; public dynamic class Jeepwav extends Sound { } }//packageSection 97//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; } } }//packageSection 98//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; } } }//packageSection 99//loseBackground (loseBackground) package { import flash.display.*; public dynamic class loseBackground extends MovieClip { } }//packageSection 100//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; } } }//packageSection 101//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; }; }; }; }; }; }; }; } } }//packageSection 102//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(); } } }//packageSection 103//MachineGunnerwav (MachineGunnerwav) package { import flash.media.*; public dynamic class MachineGunnerwav extends Sound { } }//packageSection 104//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)); } } }//packageSection 105//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}); }; } } }//packageSection 106//MenuFont (MenuFont) package { import flash.text.*; public dynamic class MenuFont extends Font { } }//packageSection 107//mg_select (mg_select) package { import flash.display.*; public dynamic class mg_select extends MovieClip { } }//packageSection 108//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(); } } }//packageSection 109//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(); } } }//packageSection 110//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(); } } }//packageSection 111//noAmmo (noAmmo) package { import flash.media.*; public dynamic class noAmmo extends Sound { } }//packageSection 112//OkButton (OkButton) package { import flash.display.*; public dynamic class OkButton extends MovieClip { } }//packageSection 113//reloadMP3 (reloadMP3) package { import flash.media.*; public dynamic class reloadMP3 extends Sound { } }//packageSection 114//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; }; }; }; }; }; }; }; } } }//packageSection 115//Riflemanwav (Riflemanwav) package { import flash.media.*; public dynamic class Riflemanwav extends Sound { } }//packageSection 116//rollingThunder (rollingThunder) package { import flash.media.*; public dynamic class rollingThunder extends Sound { } }//packageSection 117//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(); } } }//packageSection 118//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; }; } } }//packageSection 119//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); } } }//packageSection 120//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); } } }//packageSection 121//sparks2 (sparks2) package { import flash.display.*; public dynamic class sparks2 extends MovieClip { public function sparks2(){ addFrameScript(6, frame7); } function frame7(){ stop(); } } }//packageSection 122//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); } } }//packageSection 123//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(); } } }//packageSection 124//tankBody (tankBody) package { import flash.display.*; public dynamic class tankBody extends MovieClip { public var innerBody:MovieClip; } }//packageSection 125//tankExplode (tankExplode) package { import flash.media.*; public dynamic class tankExplode extends Sound { } }//packageSection 126//Tankwav (Tankwav) package { import flash.media.*; public dynamic class Tankwav extends Sound { } }//packageSection 127//Thompson (Thompson) package { import flash.display.*; public dynamic class Thompson extends MovieClip { } }//packageSection 128//Thompson_hip (Thompson_hip) package { import flash.display.*; public dynamic class Thompson_hip extends MovieClip { } }//packageSection 129//thompson_select (thompson_select) package { import flash.display.*; public dynamic class thompson_select extends MovieClip { } }//packageSection 130//Thompson_sight (Thompson_sight) package { import flash.display.*; public dynamic class Thompson_sight extends MovieClip { } }//packageSection 131//thompson_up (thompson_up) package { import flash.display.*; public dynamic class thompson_up extends MovieClip { } }//packageSection 132//upgradeScreenBG (upgradeScreenBG) package { import flash.display.*; public dynamic class upgradeScreenBG extends MovieClip { } }//packageSection 133//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 = ""; } } }//packageSection 134//wIcon_BAR (wIcon_BAR) package { import flash.display.*; public dynamic class wIcon_BAR extends MovieClip { } }//packageSection 135//wIcon_Bazooka (wIcon_Bazooka) package { import flash.display.*; public dynamic class wIcon_Bazooka extends MovieClip { } }//packageSection 136//wIcon_Browning (wIcon_Browning) package { import flash.display.*; public dynamic class wIcon_Browning extends MovieClip { } }//packageSection 137//wIcon_Carbine (wIcon_Carbine) package { import flash.display.*; public dynamic class wIcon_Carbine extends MovieClip { } }//packageSection 138//wIcon_Garand (wIcon_Garand) package { import flash.display.*; public dynamic class wIcon_Garand extends MovieClip { } }//packageSection 139//wIcon_Thompson (wIcon_Thompson) package { import flash.display.*; public dynamic class wIcon_Thompson extends MovieClip { } }//packageSection 140//winJPG (winJPG) package { import flash.display.*; public dynamic class winJPG extends BitmapData { public function winJPG(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//packageSection 141//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); }; } } }//packageSection 142//youLose (youLose) package { import flash.display.*; public dynamic class youLose extends MovieClip { } }//package
Library Items
Symbol 1 Bitmap | Used by:2 | |
Symbol 2 Graphic | Uses:1 | Used by:Timeline |
Symbol 3 Bitmap | Used by:4 | |
Symbol 4 Graphic | Uses:3 | Used by:5 |
Symbol 5 MovieClip | Uses:4 | Used by:Timeline |
Symbol 6 Graphic | Used by:7 | |
Symbol 7 MovieClip | Uses:6 | Used by:Timeline |
Symbol 8 Graphic | Used by:12 619 620 670 | |
Symbol 9 Graphic | Used by:12 670 | |
Symbol 10 Graphic | Used by:12 670 | |
Symbol 11 Graphic | Used by:12 670 | |
Symbol 12 MovieClip | Uses:8 9 10 11 | Used by:Timeline |
Symbol 13 Font {MenuFont} | Used by:379 421 635 644 | |
Symbol 14 Font {actionFont} | Used by:36 40 44 48 52 56 622 624 642 652 691 692 | |
Symbol 15 Sound {rollingThunder} | ||
Symbol 16 Sound {tankExplode} | ||
Symbol 17 Sound {reloadMP3} | ||
Symbol 18 Sound {noAmmo} | ||
Symbol 19 Sound {garandNoAmmo} | ||
Symbol 20 Sound {howitzerExplode} | ||
Symbol 21 Sound {Tankwav} | ||
Symbol 22 Sound {battleAmbience} | ||
Symbol 23 Sound {Howitzerwav} | ||
Symbol 24 Sound {Jeepwav} | ||
Symbol 25 Sound {Riflemanwav} | ||
Symbol 26 Sound {carbineSound} | ||
Symbol 27 Sound {jeepExplode} | ||
Symbol 28 Sound {browningSound} | ||
Symbol 29 Sound {MachineGunnerwav} | ||
Symbol 30 Sound {garandSound} | ||
Symbol 31 Sound {Bazookawav} | ||
Symbol 32 Sound {gunSound} | ||
Symbol 33 Sound {barSound} | ||
Symbol 34 Bitmap | Used by:35 | |
Symbol 35 Graphic | Uses:34 | Used by:39 43 47 51 55 59 |
Symbol 36 Text | Uses:14 | Used by:39 |
Symbol 37 Bitmap | Used by:38 | |
Symbol 38 Graphic | Uses:37 | Used by:39 |
Symbol 39 MovieClip {garand_up} | Uses:35 36 38 | |
Symbol 40 Text | Uses:14 | Used by:43 |
Symbol 41 Bitmap | Used by:42 | |
Symbol 42 Graphic | Uses:41 | Used by:43 |
Symbol 43 MovieClip {bar_up} | Uses:35 40 42 | |
Symbol 44 Text | Uses:14 | Used by:47 |
Symbol 45 Bitmap | Used by:46 | |
Symbol 46 Graphic | Uses:45 | Used by:47 |
Symbol 47 MovieClip {browning_up} | Uses:35 44 46 | |
Symbol 48 Text | Uses:14 | Used by:51 |
Symbol 49 Bitmap | Used by:50 | |
Symbol 50 Graphic | Uses:49 | Used by:51 |
Symbol 51 MovieClip {carbine_up} | Uses:35 48 50 | |
Symbol 52 Text | Uses:14 | Used by:55 |
Symbol 53 Bitmap | Used by:54 | |
Symbol 54 Graphic | Uses:53 | Used by:55 |
Symbol 55 MovieClip {bazooka_up} | Uses:35 52 54 | |
Symbol 56 Text | Uses:14 | Used by:59 |
Symbol 57 Bitmap | Used by:58 | |
Symbol 58 Graphic | Uses:57 | Used by:59 |
Symbol 59 MovieClip {thompson_up} | Uses:35 56 58 | |
Symbol 60 Graphic | Used by:61 | |
Symbol 61 MovieClip {headshot_icon} | Uses:60 | |
Symbol 62 Graphic | Used by:63 | |
Symbol 63 MovieClip {wIcon_Thompson} | Uses:62 | |
Symbol 64 Graphic | Used by:65 | |
Symbol 65 MovieClip {wIcon_BAR} | Uses:64 | |
Symbol 66 Graphic | Used by:67 | |
Symbol 67 MovieClip {wIcon_Carbine} | Uses:66 | |
Symbol 68 Graphic | Used by:69 | |
Symbol 69 MovieClip {wIcon_Garand} | Uses:68 | |
Symbol 70 Graphic | Used by:71 | |
Symbol 71 MovieClip {wIcon_Bazooka} | Uses:70 | |
Symbol 72 Graphic | Used by:73 | |
Symbol 73 MovieClip {wIcon_Browning} | Uses:72 | |
Symbol 74 Bitmap | Used by:75 113 476 | |
Symbol 75 Graphic | Uses:74 | Used by:80 |
Symbol 76 Bitmap | Used by:77 114 477 | |
Symbol 77 Graphic | Uses:76 | Used by:80 |
Symbol 78 Bitmap | Used by:79 115 | |
Symbol 79 Graphic | Uses:78 | Used by:80 |
Symbol 80 MovieClip {muzzle_flash_hip} | Uses:75 77 79 | |
Symbol 81 Graphic | Used by:89 | |
Symbol 82 Graphic | Used by:89 | |
Symbol 83 Graphic | Used by:89 | |
Symbol 84 Graphic | Used by:89 | |
Symbol 85 Graphic | Used by:89 | |
Symbol 86 Graphic | Used by:89 | |
Symbol 87 Graphic | Used by:89 | |
Symbol 88 Graphic | Used by:89 | |
Symbol 89 MovieClip {blood_splat} | Uses:81 82 83 84 85 86 87 88 | |
Symbol 90 Graphic | Used by:96 | |
Symbol 91 Graphic | Used by:96 | |
Symbol 92 Graphic | Used by:96 | |
Symbol 93 Graphic | Used by:96 | |
Symbol 94 Graphic | Used by:96 | |
Symbol 95 Graphic | Used by:96 | |
Symbol 96 MovieClip {sparks} | Uses:90 91 92 93 94 95 | |
Symbol 97 Graphic | Used by:98 | |
Symbol 98 MovieClip | Uses:97 | Used by:112 |
Symbol 99 ShapeTweening | Used by:112 | |
Symbol 100 ShapeTweening | Used by:112 | |
Symbol 101 ShapeTweening | Used by:112 | |
Symbol 102 ShapeTweening | Used by:112 | |
Symbol 103 ShapeTweening | Used by:112 | |
Symbol 104 ShapeTweening | Used by:112 | |
Symbol 105 ShapeTweening | Used by:112 | |
Symbol 106 ShapeTweening | Used by:112 | |
Symbol 107 ShapeTweening | Used by:112 | |
Symbol 108 Graphic | Used by:112 | |
Symbol 109 Graphic | Used by:112 | |
Symbol 110 Graphic | Used by:112 | |
Symbol 111 ShapeTweening | Used by:112 | |
Symbol 112 MovieClip {ground_hit} | Uses:98 99 100 101 102 103 104 105 106 107 108 109 110 111 | |
Symbol 113 Graphic | Uses:74 | Used by:116 |
Symbol 114 Graphic | Uses:76 | Used by:116 |
Symbol 115 Graphic | Uses:78 | Used by:116 478 |
Symbol 116 MovieClip {muzzle_flash} | Uses:113 114 115 | |
Symbol 117 Graphic | Used by:236 279 | |
Symbol 118 Bitmap | Used by:119 | |
Symbol 119 Graphic | Uses:118 | Used by:236 279 |
Symbol 120 Bitmap | Used by:121 | |
Symbol 121 Graphic | Uses:120 | Used by:236 279 |
Symbol 122 Bitmap | Used by:123 | |
Symbol 123 Graphic | Uses:122 | Used by:236 279 |
Symbol 124 Bitmap | Used by:125 | |
Symbol 125 Graphic | Uses:124 | Used by:236 279 |
Symbol 126 Bitmap | Used by:127 | |
Symbol 127 Graphic | Uses:126 | Used by:236 279 |
Symbol 128 Bitmap | Used by:129 | |
Symbol 129 Graphic | Uses:128 | Used by:236 279 |
Symbol 130 Bitmap | Used by:131 | |
Symbol 131 Graphic | Uses:130 | Used by:236 279 |
Symbol 132 Bitmap | Used by:133 | |
Symbol 133 Graphic | Uses:132 | Used by:236 279 |
Symbol 134 Bitmap | Used by:135 | |
Symbol 135 Graphic | Uses:134 | Used by:236 279 |
Symbol 136 Bitmap | Used by:137 | |
Symbol 137 Graphic | Uses:136 | Used by:236 279 |
Symbol 138 Bitmap | Used by:139 | |
Symbol 139 Graphic | Uses:138 | Used by:236 279 |
Symbol 140 Bitmap | Used by:141 | |
Symbol 141 Graphic | Uses:140 | Used by:236 279 |
Symbol 142 Bitmap | Used by:143 | |
Symbol 143 Graphic | Uses:142 | Used by:236 279 |
Symbol 144 Bitmap | Used by:145 | |
Symbol 145 Graphic | Uses:144 | Used by:236 279 |
Symbol 146 Bitmap | Used by:147 | |
Symbol 147 Graphic | Uses:146 | Used by:236 279 |
Symbol 148 Bitmap | Used by:149 246 | |
Symbol 149 Graphic | Uses:148 | Used by:236 |
Symbol 150 Bitmap | Used by:151 247 | |
Symbol 151 Graphic | Uses:150 | Used by:236 |
Symbol 152 Bitmap | Used by:153 | |
Symbol 153 Graphic | Uses:152 | Used by:236 279 |
Symbol 154 Bitmap | Used by:155 245 | |
Symbol 155 Graphic | Uses:154 | Used by:236 |
Symbol 156 Bitmap | Used by:157 | |
Symbol 157 Graphic | Uses:156 | Used by:236 279 |
Symbol 158 Bitmap | Used by:159 248 249 | |
Symbol 159 Graphic | Uses:158 | Used by:236 |
Symbol 160 Graphic | Used by:236 279 606 | |
Symbol 161 Bitmap | Used by:162 250 588 | |
Symbol 162 Graphic | Uses:161 | Used by:236 |
Symbol 163 Bitmap | Used by:164 251 589 | |
Symbol 164 Graphic | Uses:163 | Used by:236 |
Symbol 165 Bitmap | Used by:166 | |
Symbol 166 Graphic | Uses:165 | Used by:236 279 606 |
Symbol 167 Bitmap | Used by:168 252 590 | |
Symbol 168 Graphic | Uses:167 | Used by:236 |
Symbol 169 ShapeTweening | Used by:236 | |
Symbol 170 Bitmap | Used by:171 254 592 | |
Symbol 171 Graphic | Uses:170 | Used by:236 |
Symbol 172 Bitmap | Used by:173 255 593 | |
Symbol 173 Graphic | Uses:172 | Used by:236 |
Symbol 174 Bitmap | Used by:175 256 594 | |
Symbol 175 Graphic | Uses:174 | Used by:236 |
Symbol 176 Bitmap | Used by:177 257 595 | |
Symbol 177 Graphic | Uses:176 | Used by:236 |
Symbol 178 Bitmap | Used by:179 258 596 | |
Symbol 179 Graphic | Uses:178 | Used by:236 |
Symbol 180 Bitmap | Used by:181 259 597 | |
Symbol 181 Graphic | Uses:180 | Used by:236 |
Symbol 182 Bitmap | Used by:183 260 598 | |
Symbol 183 Graphic | Uses:182 | Used by:236 |
Symbol 184 Bitmap | Used by:185 261 599 | |
Symbol 185 Graphic | Uses:184 | Used by:236 |
Symbol 186 Bitmap | Used by:187 262 600 | |
Symbol 187 Graphic | Uses:186 | Used by:236 |
Symbol 188 Bitmap | Used by:189 601 | |
Symbol 189 Graphic | Uses:188 | Used by:236 279 |
Symbol 190 Bitmap | Used by:191 | |
Symbol 191 Graphic | Uses:190 | Used by:236 279 606 |
Symbol 192 Bitmap | Used by:193 | |
Symbol 193 Graphic | Uses:192 | Used by:236 279 606 |
Symbol 194 Bitmap | Used by:195 263 602 | |
Symbol 195 Graphic | Uses:194 | Used by:236 |
Symbol 196 Bitmap | Used by:197 | |
Symbol 197 Graphic | Uses:196 | Used by:236 279 606 |
Symbol 198 Bitmap | Used by:199 200 264 603 | |
Symbol 199 Graphic | Uses:198 | Used by:236 |
Symbol 200 Graphic | Uses:198 | Used by:236 |
Symbol 201 ShapeTweening | Used by:236 | |
Symbol 202 Bitmap | Used by:203 | |
Symbol 203 Graphic | Uses:202 | Used by:236 279 |
Symbol 204 Bitmap | Used by:205 266 | |
Symbol 205 Graphic | Uses:204 | Used by:236 |
Symbol 206 Bitmap | Used by:207 267 | |
Symbol 207 Graphic | Uses:206 | Used by:236 |
Symbol 208 Bitmap | Used by:209 268 | |
Symbol 209 Graphic | Uses:208 | Used by:236 |
Symbol 210 ShapeTweening | Used by:236 | |
Symbol 211 Bitmap | Used by:212 | |
Symbol 212 Graphic | Uses:211 | Used by:236 279 |
Symbol 213 Bitmap | Used by:214 | |
Symbol 214 Graphic | Uses:213 | Used by:236 279 |
Symbol 215 Bitmap | Used by:216 270 | |
Symbol 216 Graphic | Uses:215 | Used by:236 |
Symbol 217 Bitmap | Used by:218 271 | |
Symbol 218 Graphic | Uses:217 | Used by:236 |
Symbol 219 Bitmap | Used by:220 272 | |
Symbol 220 Graphic | Uses:219 | Used by:236 |
Symbol 221 ShapeTweening | Used by:236 | |
Symbol 222 Bitmap | Used by:223 274 | |
Symbol 223 Graphic | Uses:222 | Used by:236 |
Symbol 224 Bitmap | Used by:225 | |
Symbol 225 Graphic | Uses:224 | Used by:236 279 |
Symbol 226 Bitmap | Used by:227 | |
Symbol 227 Graphic | Uses:226 | Used by:236 279 |
Symbol 228 Bitmap | Used by:229 275 | |
Symbol 229 Graphic | Uses:228 | Used by:236 |
Symbol 230 Bitmap | Used by:231 276 | |
Symbol 231 Graphic | Uses:230 | Used by:236 |
Symbol 232 Bitmap | Used by:233 277 | |
Symbol 233 Graphic | Uses:232 | Used by:236 |
Symbol 234 Bitmap | Used by:235 278 | |
Symbol 235 Graphic | Uses:234 | Used by:236 |
Symbol 236 MovieClip {enemyBody} | Uses:117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 160 162 164 166 168 169 171 173 175 177 179 181 183 185 187 189 191 193 195 197 199 200 201 203 205 207 209 210 212 214 216 218 220 221 223 225 227 229 231 233 235 | |
Symbol 237 Graphic | Used by:242 | |
Symbol 238 Graphic | Used by:242 | |
Symbol 239 Graphic | Used by:242 | |
Symbol 240 Graphic | Used by:242 | |
Symbol 241 Graphic | Used by:242 | |
Symbol 242 MovieClip {blood} | Uses:237 238 239 240 241 | |
Symbol 243 Graphic | Used by:244 | |
Symbol 244 MovieClip {bulletHole} | Uses:243 | |
Symbol 245 Graphic | Uses:154 | Used by:279 |
Symbol 246 Graphic | Uses:148 | Used by:279 |
Symbol 247 Graphic | Uses:150 | Used by:279 |
Symbol 248 Graphic | Uses:158 | Used by:279 |
Symbol 249 Graphic | Uses:158 | Used by:279 |
Symbol 250 Graphic | Uses:161 | Used by:279 |
Symbol 251 Graphic | Uses:163 | Used by:279 |
Symbol 252 Graphic | Uses:167 | Used by:279 |
Symbol 253 ShapeTweening | Used by:279 | |
Symbol 254 Graphic | Uses:170 | Used by:279 |
Symbol 255 Graphic | Uses:172 | Used by:279 |
Symbol 256 Graphic | Uses:174 | Used by:279 |
Symbol 257 Graphic | Uses:176 | Used by:279 |
Symbol 258 Graphic | Uses:178 | Used by:279 |
Symbol 259 Graphic | Uses:180 | Used by:279 |
Symbol 260 Graphic | Uses:182 | Used by:279 |
Symbol 261 Graphic | Uses:184 | Used by:279 |
Symbol 262 Graphic | Uses:186 | Used by:279 |
Symbol 263 Graphic | Uses:194 | Used by:279 |
Symbol 264 Graphic | Uses:198 | Used by:279 |
Symbol 265 ShapeTweening | Used by:279 | |
Symbol 266 Graphic | Uses:204 | Used by:279 |
Symbol 267 Graphic | Uses:206 | Used by:279 |
Symbol 268 Graphic | Uses:208 | Used by:279 |
Symbol 269 ShapeTweening | Used by:279 | |
Symbol 270 Graphic | Uses:215 | Used by:279 |
Symbol 271 Graphic | Uses:217 | Used by:279 |
Symbol 272 Graphic | Uses:219 | Used by:279 |
Symbol 273 ShapeTweening | Used by:279 | |
Symbol 274 Graphic | Uses:222 | Used by:279 |
Symbol 275 Graphic | Uses:228 | Used by:279 |
Symbol 276 Graphic | Uses:230 | Used by:279 |
Symbol 277 Graphic | Uses:232 | Used by:279 |
Symbol 278 Graphic | Uses:234 | Used by:279 |
Symbol 279 MovieClip {machineGunner} | Uses:117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 245 246 247 153 248 157 249 160 250 251 166 252 253 254 255 256 257 258 259 260 261 262 189 191 193 263 197 264 265 203 266 267 268 269 212 214 270 271 272 273 274 225 227 275 276 277 278 | |
Symbol 280 Graphic | Used by:376 | |
Symbol 281 Bitmap | Used by:282 | |
Symbol 282 Graphic | Uses:281 | Used by:376 |
Symbol 283 Bitmap | Used by:284 | |
Symbol 284 Graphic | Uses:283 | Used by:376 |
Symbol 285 Bitmap | Used by:286 | |
Symbol 286 Graphic | Uses:285 | Used by:376 |
Symbol 287 Bitmap | Used by:288 | |
Symbol 288 Graphic | Uses:287 | Used by:376 |
Symbol 289 Bitmap | Used by:290 | |
Symbol 290 Graphic | Uses:289 | Used by:376 |
Symbol 291 Bitmap | Used by:292 | |
Symbol 292 Graphic | Uses:291 | Used by:376 |
Symbol 293 Bitmap | Used by:294 | |
Symbol 294 Graphic | Uses:293 | Used by:376 |
Symbol 295 Bitmap | Used by:296 | |
Symbol 296 Graphic | Uses:295 | Used by:376 |
Symbol 297 Bitmap | Used by:298 | |
Symbol 298 Graphic | Uses:297 | Used by:376 |
Symbol 299 Bitmap | Used by:300 | |
Symbol 300 Graphic | Uses:299 | Used by:376 |
Symbol 301 Bitmap | Used by:302 | |
Symbol 302 Graphic | Uses:301 | Used by:376 |
Symbol 303 Bitmap | Used by:304 | |
Symbol 304 Graphic | Uses:303 | Used by:376 |
Symbol 305 Graphic | Used by:376 | |
Symbol 306 Bitmap | Used by:307 | |
Symbol 307 Graphic | Uses:306 | Used by:348 637 |
Symbol 308 Bitmap | Used by:309 | |
Symbol 309 Graphic | Uses:308 | Used by:348 637 |
Symbol 310 Bitmap | Used by:311 | |
Symbol 311 Graphic | Uses:310 | Used by:348 637 |
Symbol 312 Bitmap | Used by:313 | |
Symbol 313 Graphic | Uses:312 | Used by:348 637 |
Symbol 314 Bitmap | Used by:315 | |
Symbol 315 Graphic | Uses:314 | Used by:348 637 |
Symbol 316 Bitmap | Used by:317 | |
Symbol 317 Graphic | Uses:316 | Used by:348 637 |
Symbol 318 Bitmap | Used by:319 | |
Symbol 319 Graphic | Uses:318 | Used by:348 637 |
Symbol 320 Bitmap | Used by:321 | |
Symbol 321 Graphic | Uses:320 | Used by:348 637 |
Symbol 322 Bitmap | Used by:323 | |
Symbol 323 Graphic | Uses:322 | Used by:348 637 |
Symbol 324 Bitmap | Used by:325 | |
Symbol 325 Graphic | Uses:324 | Used by:348 637 |
Symbol 326 Bitmap | Used by:327 | |
Symbol 327 Graphic | Uses:326 | Used by:348 637 |
Symbol 328 Bitmap | Used by:329 | |
Symbol 329 Graphic | Uses:328 | Used by:348 637 |
Symbol 330 Bitmap | Used by:331 | |
Symbol 331 Graphic | Uses:330 | Used by:348 637 |
Symbol 332 Bitmap | Used by:333 | |
Symbol 333 Graphic | Uses:332 | Used by:348 637 |
Symbol 334 Bitmap | Used by:335 | |
Symbol 335 Graphic | Uses:334 | Used by:348 637 |
Symbol 336 Bitmap | Used by:337 | |
Symbol 337 Graphic | Uses:336 | Used by:348 637 |
Symbol 338 Bitmap | Used by:339 | |
Symbol 339 Graphic | Uses:338 | Used by:348 637 |
Symbol 340 Bitmap | Used by:341 | |
Symbol 341 Graphic | Uses:340 | Used by:348 637 |
Symbol 342 Bitmap | Used by:343 | |
Symbol 343 Graphic | Uses:342 | Used by:348 637 |
Symbol 344 Bitmap | Used by:345 | |
Symbol 345 Graphic | Uses:344 | Used by:348 637 |
Symbol 346 Bitmap | Used by:347 | |
Symbol 347 Graphic | Uses:346 | Used by:348 637 |
Symbol 348 MovieClip {defense_fla.explosion_30} | Uses:307 309 311 313 315 317 319 321 323 325 327 329 331 333 335 337 339 341 343 345 347 | Used by:376 474 615 |
Symbol 349 Graphic | Used by:376 | |
Symbol 350 Graphic | Used by:376 | |
Symbol 351 Graphic | Used by:376 | |
Symbol 352 Graphic | Used by:376 | |
Symbol 353 Graphic | Used by:376 | |
Symbol 354 Graphic | Used by:376 | |
Symbol 355 Graphic | Used by:376 | |
Symbol 356 Graphic | Used by:376 | |
Symbol 357 Graphic | Used by:376 | |
Symbol 358 Graphic | Used by:376 | |
Symbol 359 Graphic | Used by:376 | |
Symbol 360 Graphic | Used by:376 | |
Symbol 361 Graphic | Used by:376 | |
Symbol 362 Graphic | Used by:376 | |
Symbol 363 Graphic | Used by:376 | |
Symbol 364 Graphic | Used by:376 | |
Symbol 365 Graphic | Used by:376 | |
Symbol 366 Graphic | Used by:376 | |
Symbol 367 Graphic | Used by:376 | |
Symbol 368 Graphic | Used by:376 | |
Symbol 369 Graphic | Used by:376 | |
Symbol 370 Graphic | Used by:376 | |
Symbol 371 Graphic | Used by:376 | |
Symbol 372 Graphic | Used by:376 | |
Symbol 373 Graphic | Used by:376 | |
Symbol 374 Graphic | Used by:376 | |
Symbol 375 Graphic | Used by:376 | |
Symbol 376 MovieClip {defense_fla.tankBodyInner_58} | Uses:280 282 284 286 288 290 292 294 296 298 300 302 304 305 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 | Used by:377 |
Symbol 377 MovieClip {tankBody} | Uses:376 | |
Symbol 378 Graphic | Used by:380 | |
Symbol 379 Text | Uses:13 | Used by:380 |
Symbol 380 MovieClip {OkButton} | Uses:378 379 | |
Symbol 381 Bitmap | Used by:382 | |
Symbol 382 Graphic | Uses:381 | Used by:383 |
Symbol 383 MovieClip {Thompson} | Uses:382 | |
Symbol 384 Bitmap | Used by:385 | |
Symbol 385 Graphic | Uses:384 | Used by:386 |
Symbol 386 MovieClip {Thompson_hip} | Uses:385 | |
Symbol 387 Bitmap | Used by:388 | |
Symbol 388 Graphic | Uses:387 | Used by:389 |
Symbol 389 MovieClip {Thompson_sight} | Uses:388 | |
Symbol 390 Bitmap | Used by:391 | |
Symbol 391 Graphic | Uses:390 | Used by:392 |
Symbol 392 MovieClip {Garand} | Uses:391 | |
Symbol 393 Bitmap | Used by:394 | |
Symbol 394 Graphic | Uses:393 | Used by:395 |
Symbol 395 MovieClip {Garand_hip} | Uses:394 | |
Symbol 396 Bitmap | Used by:397 | |
Symbol 397 Graphic | Uses:396 | Used by:398 |
Symbol 398 MovieClip {Carbine} | Uses:397 | |
Symbol 399 Bitmap | Used by:400 | |
Symbol 400 Graphic | Uses:399 | Used by:401 |
Symbol 401 MovieClip {Carbine_hip} | Uses:400 | |
Symbol 402 Bitmap | Used by:403 | |
Symbol 403 Graphic | Uses:402 | Used by:404 |
Symbol 404 MovieClip {Browning} | Uses:403 | |
Symbol 405 Bitmap | Used by:406 | |
Symbol 406 Graphic | Uses:405 | Used by:407 |
Symbol 407 MovieClip {Bazooka} | Uses:406 | |
Symbol 408 Bitmap | Used by:409 | |
Symbol 409 Graphic | Uses:408 | Used by:410 |
Symbol 410 MovieClip {Bazooka_hip} | Uses:409 | |
Symbol 411 Bitmap | Used by:412 | |
Symbol 412 Graphic | Uses:411 | Used by:413 |
Symbol 413 MovieClip {Bar_sight} | Uses:412 | Used by:416 |
Symbol 414 Bitmap | Used by:415 | |
Symbol 415 Graphic | Uses:414 | Used by:416 |
Symbol 416 MovieClip {Bar} | Uses:413 415 | |
Symbol 417 Bitmap | Used by:418 | |
Symbol 418 Graphic | Uses:417 | Used by:419 |
Symbol 419 MovieClip {Bar_hip} | Uses:418 | |
Symbol 420 Graphic | Used by:422 | |
Symbol 421 Text | Uses:13 | Used by:422 |
Symbol 422 MovieClip {upgradeScreenBG} | Uses:420 421 | |
Symbol 423 Graphic | Used by:474 | |
Symbol 424 Bitmap | Used by:425 430 433 436 | |
Symbol 425 Graphic | Uses:424 | Used by:474 |
Symbol 426 Bitmap | Used by:427 431 434 437 | |
Symbol 427 Graphic | Uses:426 | Used by:474 |
Symbol 428 Bitmap | Used by:429 432 435 | |
Symbol 429 Graphic | Uses:428 | Used by:474 |
Symbol 430 Graphic | Uses:424 | Used by:474 |
Symbol 431 Graphic | Uses:426 | Used by:474 |
Symbol 432 Graphic | Uses:428 | Used by:474 |
Symbol 433 Graphic | Uses:424 | Used by:474 |
Symbol 434 Graphic | Uses:426 | Used by:474 |
Symbol 435 Graphic | Uses:428 | Used by:474 |
Symbol 436 Graphic | Uses:424 | Used by:474 |
Symbol 437 Graphic | Uses:426 | Used by:474 |
Symbol 438 Bitmap | Used by:439 440 441 442 443 | |
Symbol 439 Graphic | Uses:438 | Used by:474 |
Symbol 440 Graphic | Uses:438 | Used by:474 |
Symbol 441 Graphic | Uses:438 | Used by:474 |
Symbol 442 Graphic | Uses:438 | Used by:474 |
Symbol 443 Graphic | Uses:438 | Used by:474 |
Symbol 444 Bitmap | Used by:445 | |
Symbol 445 Graphic | Uses:444 | Used by:474 |
Symbol 446 Graphic | Used by:474 | |
Symbol 447 Graphic | Used by:474 | |
Symbol 448 Graphic | Used by:474 | |
Symbol 449 Graphic | Used by:474 | |
Symbol 450 Graphic | Used by:474 | |
Symbol 451 Graphic | Used by:474 | |
Symbol 452 Graphic | Used by:474 | |
Symbol 453 Graphic | Used by:474 | |
Symbol 454 Graphic | Used by:474 | |
Symbol 455 Graphic | Used by:474 615 | |
Symbol 456 Graphic | Used by:474 | |
Symbol 457 Graphic | Used by:474 | |
Symbol 458 Graphic | Used by:474 | |
Symbol 459 Graphic | Used by:474 | |
Symbol 460 Graphic | Used by:474 | |
Symbol 461 Graphic | Used by:474 | |
Symbol 462 Graphic | Used by:474 | |
Symbol 463 Graphic | Used by:474 | |
Symbol 464 Graphic | Used by:474 | |
Symbol 465 Graphic | Used by:474 | |
Symbol 466 Graphic | Used by:474 | |
Symbol 467 Graphic | Used by:474 | |
Symbol 468 Graphic | Used by:474 | |
Symbol 469 Graphic | Used by:474 | |
Symbol 470 Graphic | Used by:474 | |
Symbol 471 Graphic | Used by:474 | |
Symbol 472 Graphic | Used by:474 | |
Symbol 473 Graphic | Used by:474 | |
Symbol 474 MovieClip {defense_fla.jeepBodyInner_41} | Uses:423 425 427 429 430 431 432 433 434 435 436 437 439 440 441 442 443 445 446 348 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 | Used by:475 |
Symbol 475 MovieClip {jeepBody} | Uses:474 | |
Symbol 476 Graphic | Uses:74 | Used by:478 |
Symbol 477 Graphic | Uses:76 | Used by:478 |
Symbol 478 MovieClip {muzzle_flash_small} | Uses:476 477 115 | |
Symbol 479 Bitmap | Used by:480 | |
Symbol 480 Graphic | Uses:479 | Used by:481 |
Symbol 481 MovieClip {thompson_select} | Uses:480 | |
Symbol 482 Bitmap | Used by:483 | |
Symbol 483 Graphic | Uses:482 | Used by:484 |
Symbol 484 MovieClip {carbine_select} | Uses:483 | |
Symbol 485 Bitmap | Used by:486 | |
Symbol 486 Graphic | Uses:485 | Used by:487 |
Symbol 487 MovieClip {garand_select} | Uses:486 | |
Symbol 488 Bitmap | Used by:489 | |
Symbol 489 Graphic | Uses:488 | Used by:490 |
Symbol 490 MovieClip {bar_select} | Uses:489 | |
Symbol 491 Bitmap | Used by:492 | |
Symbol 492 Graphic | Uses:491 | Used by:493 |
Symbol 493 MovieClip {mg_select} | Uses:492 | |
Symbol 494 Bitmap | Used by:495 | |
Symbol 495 Graphic | Uses:494 | Used by:496 |
Symbol 496 MovieClip {bazooka_select} | Uses:495 | |
Symbol 497 Bitmap | Used by:498 | |
Symbol 498 Graphic | Uses:497 | Used by:499 626 |
Symbol 499 MovieClip {backgroundMC} | Uses:498 | |
Symbol 500 Graphic | Used by:615 | |
Symbol 501 Bitmap | Used by:503 | |
Symbol 502 Bitmap | Used by:503 523 537 551 565 | |
Symbol 503 Graphic | Uses:501 502 | Used by:615 |
Symbol 504 Bitmap | Used by:506 | |
Symbol 505 Bitmap | Used by:506 525 539 553 567 | |
Symbol 506 Graphic | Uses:504 505 | Used by:615 |
Symbol 507 Bitmap | Used by:509 | |
Symbol 508 Bitmap | Used by:509 527 541 555 569 | |
Symbol 509 Graphic | Uses:507 508 | Used by:615 |
Symbol 510 Bitmap | Used by:512 | |
Symbol 511 Bitmap | Used by:512 529 543 557 | |
Symbol 512 Graphic | Uses:510 511 | Used by:615 |
Symbol 513 Bitmap | Used by:515 | |
Symbol 514 Bitmap | Used by:515 531 545 559 | |
Symbol 515 Graphic | Uses:513 514 | Used by:615 |
Symbol 516 Bitmap | Used by:518 | |
Symbol 517 Bitmap | Used by:518 533 547 561 | |
Symbol 518 Graphic | Uses:516 517 | Used by:615 |
Symbol 519 Bitmap | Used by:521 | |
Symbol 520 Bitmap | Used by:521 535 549 563 | |
Symbol 521 Graphic | Uses:519 520 | Used by:615 |
Symbol 522 Bitmap | Used by:523 | |
Symbol 523 Graphic | Uses:522 502 | Used by:615 |
Symbol 524 Bitmap | Used by:525 | |
Symbol 525 Graphic | Uses:524 505 | Used by:615 |
Symbol 526 Bitmap | Used by:527 | |
Symbol 527 Graphic | Uses:526 508 | Used by:615 |
Symbol 528 Bitmap | Used by:529 | |
Symbol 529 Graphic | Uses:528 511 | Used by:615 |
Symbol 530 Bitmap | Used by:531 | |
Symbol 531 Graphic | Uses:530 514 | Used by:615 |
Symbol 532 Bitmap | Used by:533 | |
Symbol 533 Graphic | Uses:532 517 | Used by:615 |
Symbol 534 Bitmap | Used by:535 | |
Symbol 535 Graphic | Uses:534 520 | Used by:615 |
Symbol 536 Bitmap | Used by:537 | |
Symbol 537 Graphic | Uses:536 502 | Used by:615 |
Symbol 538 Bitmap | Used by:539 | |
Symbol 539 Graphic | Uses:538 505 | Used by:615 |
Symbol 540 Bitmap | Used by:541 | |
Symbol 541 Graphic | Uses:540 508 | Used by:615 |
Symbol 542 Bitmap | Used by:543 | |
Symbol 543 Graphic | Uses:542 511 | Used by:615 |
Symbol 544 Bitmap | Used by:545 | |
Symbol 545 Graphic | Uses:544 514 | Used by:615 |
Symbol 546 Bitmap | Used by:547 | |
Symbol 547 Graphic | Uses:546 517 | Used by:615 |
Symbol 548 Bitmap | Used by:549 | |
Symbol 549 Graphic | Uses:548 520 | Used by:615 |
Symbol 550 Bitmap | Used by:551 | |
Symbol 551 Graphic | Uses:550 502 | Used by:615 |
Symbol 552 Bitmap | Used by:553 | |
Symbol 553 Graphic | Uses:552 505 | Used by:615 |
Symbol 554 Bitmap | Used by:555 | |
Symbol 555 Graphic | Uses:554 508 | Used by:615 |
Symbol 556 Bitmap | Used by:557 | |
Symbol 557 Graphic | Uses:556 511 | Used by:615 |
Symbol 558 Bitmap | Used by:559 | |
Symbol 559 Graphic | Uses:558 514 | Used by:615 |
Symbol 560 Bitmap | Used by:561 | |
Symbol 561 Graphic | Uses:560 517 | Used by:615 |
Symbol 562 Bitmap | Used by:563 | |
Symbol 563 Graphic | Uses:562 520 | Used by:615 |
Symbol 564 Bitmap | Used by:565 | |
Symbol 565 Graphic | Uses:564 502 | Used by:615 |
Symbol 566 Bitmap | Used by:567 | |
Symbol 567 Graphic | Uses:566 505 | Used by:615 |
Symbol 568 Bitmap | Used by:569 | |
Symbol 569 Graphic | Uses:568 508 | Used by:615 |
Symbol 570 Graphic | Used by:615 | |
Symbol 571 Bitmap | Used by:572 584 | |
Symbol 572 Graphic | Uses:571 | Used by:615 |
Symbol 573 Graphic | Used by:615 | |
Symbol 574 Bitmap | Used by:575 | |
Symbol 575 Graphic | Uses:574 | Used by:615 |
Symbol 576 Bitmap | Used by:577 | |
Symbol 577 Graphic | Uses:576 | Used by:615 |
Symbol 578 Graphic | Used by:615 | |
Symbol 579 Graphic | Used by:615 | |
Symbol 580 Bitmap | Used by:581 | |
Symbol 581 Graphic | Uses:580 | Used by:615 |
Symbol 582 Graphic | Used by:615 | |
Symbol 583 Graphic | Used by:615 | |
Symbol 584 Graphic | Uses:571 | Used by:615 |
Symbol 585 Bitmap | Used by:586 | |
Symbol 586 Graphic | Uses:585 | Used by:615 |
Symbol 587 Graphic | Used by:615 | |
Symbol 588 Graphic | Uses:161 | Used by:606 |
Symbol 589 Graphic | Uses:163 | Used by:606 |
Symbol 590 Graphic | Uses:167 | Used by:606 |
Symbol 591 ShapeTweening | Used by:606 | |
Symbol 592 Graphic | Uses:170 | Used by:606 |
Symbol 593 Graphic | Uses:172 | Used by:606 |
Symbol 594 Graphic | Uses:174 | Used by:606 |
Symbol 595 Graphic | Uses:176 | Used by:606 |
Symbol 596 Graphic | Uses:178 | Used by:606 |
Symbol 597 Graphic | Uses:180 | Used by:606 |
Symbol 598 Graphic | Uses:182 | Used by:606 |
Symbol 599 Graphic | Uses:184 | Used by:606 |
Symbol 600 Graphic | Uses:186 | Used by:606 |
Symbol 601 Graphic | Uses:188 | Used by:606 |
Symbol 602 Graphic | Uses:194 | Used by:606 |
Symbol 603 Graphic | Uses:198 | Used by:606 |
Symbol 604 Graphic | Used by:606 | |
Symbol 605 Graphic | Used by:606 | |
Symbol 606 MovieClip {defense_fla.soldierDieNormal_31} | Uses:160 588 589 166 590 591 592 593 594 595 596 597 598 599 600 601 191 193 602 197 603 604 605 | Used by:615 |
Symbol 607 Graphic | Used by:615 | |
Symbol 608 Graphic | Used by:615 | |
Symbol 609 Graphic | Used by:615 | |
Symbol 610 Graphic | Used by:615 | |
Symbol 611 Graphic | Used by:615 | |
Symbol 612 Graphic | Used by:615 | |
Symbol 613 Graphic | Used by:615 | |
Symbol 614 Graphic | Used by:615 | |
Symbol 615 MovieClip {defense_fla.howitzerBody_29} | Uses:500 503 506 509 512 515 518 521 523 525 527 529 531 533 535 537 539 541 543 545 547 549 551 553 555 557 559 561 563 565 567 569 570 572 573 575 577 578 579 581 582 583 584 586 587 348 606 607 608 609 610 611 612 613 614 455 | Used by:616 |
Symbol 616 MovieClip {howitzerBody} | Uses:615 | |
Symbol 617 Graphic | Used by:618 | |
Symbol 618 MovieClip | Uses:617 | Used by:619 620 |
Symbol 619 MovieClip {arrowUp_up} | Uses:8 618 | |
Symbol 620 MovieClip {arrowDown_up} | Uses:8 618 | |
Symbol 621 Graphic | Used by:625 | |
Symbol 622 Text | Uses:14 | Used by:625 |
Symbol 623 Graphic | Used by:625 | |
Symbol 624 Text | Uses:14 | Used by:625 |
Symbol 625 MovieClip {buyButton} | Uses:621 622 623 624 | |
Symbol 626 MovieClip {gameBackground} | Uses:498 | |
Symbol 627 Graphic | Used by:633 | |
Symbol 628 Graphic | Used by:633 | |
Symbol 629 Graphic | Used by:633 | |
Symbol 630 Graphic | Used by:633 | |
Symbol 631 Graphic | Used by:633 | |
Symbol 632 Graphic | Used by:633 | |
Symbol 633 MovieClip {sparks2} | Uses:627 628 629 630 631 632 | |
Symbol 634 Graphic | Used by:636 | |
Symbol 635 Text | Uses:13 | Used by:636 |
Symbol 636 MovieClip {youLose} | Uses:634 635 | |
Symbol 637 MovieClip {defense_fla.bazookaShotInner_20} | Uses:307 309 311 313 315 317 319 321 323 325 327 329 331 333 335 337 339 341 343 345 347 | Used by:638 |
Symbol 638 MovieClip {bazookaShot} | Uses:637 | |
Symbol 639 Bitmap | Used by:640 | |
Symbol 640 Graphic | Uses:639 | Used by:641 |
Symbol 641 MovieClip {addHealth} | Uses:640 | |
Symbol 642 Text | Uses:14 | Used by:646 |
Symbol 643 Graphic | Used by:645 | |
Symbol 644 EditableText | Uses:13 | Used by:645 |
Symbol 645 MovieClip | Uses:643 644 | Used by:646 Timeline |
Symbol 646 MovieClip {Credits} | Uses:642 645 | |
Symbol 647 Graphic | Used by:653 | |
Symbol 648 Bitmap | Used by:649 | |
Symbol 649 Graphic | Uses:648 | Used by:650 |
Symbol 650 MovieClip | Uses:649 | Used by:653 |
Symbol 651 Graphic | Used by:653 | |
Symbol 652 Text | Uses:14 | Used by:653 |
Symbol 653 MovieClip {loseBackground} | Uses:647 650 651 652 | |
Symbol 654 Graphic | Used by:655 | |
Symbol 655 MovieClip | Uses:654 | Used by:656 |
Symbol 656 MovieClip {loaderBar} | Uses:655 | |
Symbol 657 Bitmap {winJPG} | Used by:658 | |
Symbol 658 MovieClip {CreditsBackground} | Uses:657 | Used by:Timeline |
Symbol 659 Graphic | Used by:Timeline | |
Symbol 660 Sound | Used by:670 | |
Symbol 661 Sound | Used by:670 | |
Symbol 662 Graphic | Used by:670 | |
Symbol 663 Graphic | Used by:664 | |
Symbol 664 MovieClip | Uses:663 | Used by:670 |
Symbol 665 Sound | Used by:670 | |
Symbol 666 Sound | Used by:670 | |
Symbol 667 Sound | Used by:670 | |
Symbol 668 Sound | Used by:670 | |
Symbol 669 Sound | Used by:670 | |
Symbol 670 MovieClip {defense_fla.ag_intro_mc_4} | Uses:9 10 11 660 661 662 664 665 666 667 8 668 669 | Used by:Timeline |
Symbol 671 Bitmap | Used by:672 | |
Symbol 672 Graphic | Uses:671 | Used by:Timeline |
Symbol 673 Font | Used by:674 675 | |
Symbol 674 Text | Uses:673 | Used by:Timeline |
Symbol 675 Text | Uses:673 | Used by:Timeline |
Symbol 676 Bitmap | Used by:677 | |
Symbol 677 Graphic | Uses:676 | Used by:678 |
Symbol 678 MovieClip | Uses:677 | Used by:Timeline |
Symbol 679 Bitmap | Used by:680 | |
Symbol 680 Graphic | Uses:679 | Used by:681 |
Symbol 681 MovieClip | Uses:680 | Used by:Timeline |
Symbol 682 Bitmap | Used by:683 | |
Symbol 683 Graphic | Uses:682 | Used by:Timeline |
Symbol 684 Graphic | Used by:685 | |
Symbol 685 MovieClip | Uses:684 | Used by:Timeline |
Symbol 686 Graphic | Used by:687 | |
Symbol 687 MovieClip | Uses:686 | Used by:Timeline |
Symbol 688 Bitmap | Used by:689 | |
Symbol 689 Graphic | Uses:688 | Used by:690 |
Symbol 690 MovieClip | Uses:689 | Used by:Timeline |
Symbol 691 EditableText | Uses:14 | Used by:Timeline |
Symbol 692 Text | Uses:14 | Used by:Timeline |
Instance Names
"bullet_bar" | Frame 1 | Symbol 5 MovieClip |
"bullet_bar_mask" | Frame 1 | Symbol 7 MovieClip |
"logo2" | Frame 1 | Symbol 12 MovieClip |
"logo" | Frame 3 | Symbol 670 MovieClip {defense_fla.ag_intro_mc_4} |
"logo5" | Frame 5 | Symbol 12 MovieClip |
"groundHit" | Frame 15 | Symbol 685 MovieClip |
"buildingHit" | Frame 15 | Symbol 687 MovieClip |
"overlay" | Frame 15 | Symbol 690 MovieClip |
"wallHealthLabel" | Frame 15 | Symbol 691 EditableText |
"gotoMainMenu" | Frame 24 | Symbol 645 MovieClip |
"innerBody" | Symbol 377 MovieClip {tankBody} Frame 1 | Symbol 376 MovieClip {defense_fla.tankBodyInner_58} |
"innerBody" | Symbol 475 MovieClip {jeepBody} Frame 1 | Symbol 474 MovieClip {defense_fla.jeepBodyInner_41} |
"innerBody" | Symbol 616 MovieClip {howitzerBody} Frame 1 | Symbol 615 MovieClip {defense_fla.howitzerBody_29} |
"inner" | Symbol 619 MovieClip {arrowUp_up} Frame 1 | Symbol 618 MovieClip |
"inner" | Symbol 620 MovieClip {arrowDown_up} Frame 1 | Symbol 618 MovieClip |
"playAgainButton" | Symbol 646 MovieClip {Credits} Frame 1 | Symbol 645 MovieClip |
"innerLoader" | Symbol 656 MovieClip {loaderBar} Frame 1 | Symbol 655 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata present, AS3. |
SWFMetaData (77) | Timeline Frame 1 | 1284 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmln ..." |
Labels
"shoot" | Symbol 236 MovieClip {enemyBody} Frame 20 |
"die" | Symbol 236 MovieClip {enemyBody} Frame 35 |
"deathComplete" | Symbol 236 MovieClip {enemyBody} Frame 69 |
"headshot" | Symbol 236 MovieClip {enemyBody} Frame 78 |
"shoot" | Symbol 279 MovieClip {machineGunner} Frame 20 |
"die" | Symbol 279 MovieClip {machineGunner} Frame 30 |
"deathComplete" | Symbol 279 MovieClip {machineGunner} Frame 63 |
"headshot" | Symbol 279 MovieClip {machineGunner} Frame 72 |
"shoot" | Symbol 376 MovieClip {defense_fla.tankBodyInner_58} Frame 12 |
"die" | Symbol 376 MovieClip {defense_fla.tankBodyInner_58} Frame 25 |
"deathComplete" | Symbol 376 MovieClip {defense_fla.tankBodyInner_58} Frame 54 |
"shoot" | Symbol 474 MovieClip {defense_fla.jeepBodyInner_41} Frame 21 |
"die" | Symbol 474 MovieClip {defense_fla.jeepBodyInner_41} Frame 41 |
"shoot" | Symbol 615 MovieClip {defense_fla.howitzerBody_29} Frame 35 |
"die" | Symbol 615 MovieClip {defense_fla.howitzerBody_29} Frame 45 |
"buy" | Symbol 625 MovieClip {buyButton} Frame 1 |
"purchased" | Symbol 625 MovieClip {buyButton} Frame 10 |
|