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

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM90582216-1DC&rnd=90582216" width="1" height="1"></div>

armorgames that-hero-guy-from-o-4189.swf

This is the info page for
Flash #267446

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


Text
Loading...

Loading...

Continue

Play

Credits

Play More Games

Settings

Version 1.0.5

Back

Credits

Game By
Hero Interactive, LLC
www.herointeractive.com
Jason Maynard, Eric Ottati,
Jared Riley, Jim Lester

Music By
Brian Hall
Polyphone Music
polyphonemusic.com

Settings

Graphics

Music

Sound

High

Med

Low

On

Off

City Health:

<p align="left"></p>

Score:

<p align="left"></p>

The City Has Been Destroyed

Main Menu

Main Menu

Play More Games

Play More Games

Sounds

This game is site locked

Go here to play:

<p align="center"></p>

ActionScript [AS3]

Section 1
//AdLoader (CPMStar.AdLoader) package CPMStar { import flash.display.*; import flash.net.*; import flash.system.*; public class AdLoader { private static var cpmstarLoader:Loader; public static function LoadAd(_arg1:int, _arg2:int):DisplayObject{ Security.allowDomain("server.cpmstar.com"); var _local3 = "http://server.cpmstar.com/adviewas3.swf"; cpmstarLoader = new Loader(); cpmstarLoader.load(new URLRequest(((((_local3 + "?poolid=") + _arg1) + "&subpoolid=") + _arg2))); return (cpmstarLoader); } } }//package CPMStar
Section 2
//Color (fl.motion.Color) package fl.motion { import flash.display.*; import flash.geom.*; public class Color extends ColorTransform { private var _tintColor:Number;// = 0 private var _tintMultiplier:Number;// = 0 public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8); } private function deriveTintColor():uint{ var _local1:Number = (1 / this.tintMultiplier); var _local2:uint = Math.round((this.redOffset * _local1)); var _local3:uint = Math.round((this.greenOffset * _local1)); var _local4:uint = Math.round((this.blueOffset * _local1)); var _local5:uint = (((_local2 << 16) | (_local3 << 8)) | _local4); return (_local5); } public function set brightness(_arg1:Number):void{ if (_arg1 > 1){ _arg1 = 1; } else { if (_arg1 < -1){ _arg1 = -1; }; }; var _local2:Number = (1 - Math.abs(_arg1)); var _local3:Number = 0; if (_arg1 > 0){ _local3 = (_arg1 * 0xFF); }; this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2)); this.redOffset = (this.greenOffset = (this.blueOffset = _local3)); } private function parseXML(_arg1:XML=null):Color{ var _local3:XML; var _local4:String; var _local5:uint; if (!_arg1){ return (this); }; var _local2:XML = _arg1.elements()[0]; if (!_local2){ return (this); }; for each (_local3 in _local2.attributes()) { _local4 = _local3.localName(); if (_local4 == "tintColor"){ _local5 = (Number(_local3.toString()) as uint); this.tintColor = _local5; } else { this[_local4] = Number(_local3.toString()); }; }; return (this); } public function get tintColor():uint{ return (this._tintColor); } public function set tintColor(_arg1:uint):void{ this.setTint(_arg1, this.tintMultiplier); } public function get brightness():Number{ return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1)); } public function set tintMultiplier(_arg1:Number):void{ this.setTint(this.tintColor, _arg1); } public function get tintMultiplier():Number{ return (this._tintMultiplier); } public function setTint(_arg1:uint, _arg2:Number):void{ this._tintColor = _arg1; this._tintMultiplier = _arg2; this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2))); var _local3:uint = ((_arg1 >> 16) & 0xFF); var _local4:uint = ((_arg1 >> 8) & 0xFF); var _local5:uint = (_arg1 & 0xFF); this.redOffset = Math.round((_local3 * _arg2)); this.greenOffset = Math.round((_local4 * _arg2)); this.blueOffset = Math.round((_local5 * _arg2)); } public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{ var _local4:Number = (1 - _arg3); var _local5:uint = ((_arg1 >> 24) & 0xFF); var _local6:uint = ((_arg1 >> 16) & 0xFF); var _local7:uint = ((_arg1 >> 8) & 0xFF); var _local8:uint = (_arg1 & 0xFF); var _local9:uint = ((_arg2 >> 24) & 0xFF); var _local10:uint = ((_arg2 >> 16) & 0xFF); var _local11:uint = ((_arg2 >> 8) & 0xFF); var _local12:uint = (_arg2 & 0xFF); var _local13:uint = ((_local5 * _local4) + (_local9 * _arg3)); var _local14:uint = ((_local6 * _local4) + (_local10 * _arg3)); var _local15:uint = ((_local7 * _local4) + (_local11 * _arg3)); var _local16:uint = ((_local8 * _local4) + (_local12 * _arg3)); var _local17:uint = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16); return (_local17); } public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{ var _local4:Number = (1 - _arg3); var _local5:ColorTransform = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3))); return (_local5); } public static function fromXML(_arg1:XML):Color{ return (Color(new (Color).parseXML(_arg1))); } } }//package fl.motion
Section 3
//ag_intro_mc_74 (THGFOLTG_fla.ag_intro_mc_74) package THGFOLTG_fla { import flash.display.*; public dynamic class ag_intro_mc_74 extends MovieClip { public function ag_intro_mc_74(){ addFrameScript(0, frame1, 178, frame179); } function frame1(){ gotoAndPlay(2); } function frame179(){ stop(); } } }//package THGFOLTG_fla
Section 4
//BackBTN_27 (THGFOLTG_fla.BackBTN_27) package THGFOLTG_fla { import flash.display.*; public dynamic class BackBTN_27 extends MovieClip { public function BackBTN_27(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 5
//City_2 (THGFOLTG_fla.City_2) package THGFOLTG_fla { import flash.display.*; public dynamic class City_2 extends MovieClip { public function City_2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 6
//CreditsBTN_24 (THGFOLTG_fla.CreditsBTN_24) package THGFOLTG_fla { import flash.display.*; public dynamic class CreditsBTN_24 extends MovieClip { public function CreditsBTN_24(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 7
//GameOverMainMenu_45 (THGFOLTG_fla.GameOverMainMenu_45) package THGFOLTG_fla { import flash.display.*; public dynamic class GameOverMainMenu_45 extends MovieClip { public function GameOverMainMenu_45(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 8
//GameOverMoreGames_46 (THGFOLTG_fla.GameOverMoreGames_46) package THGFOLTG_fla { import flash.display.*; public dynamic class GameOverMoreGames_46 extends MovieClip { public function GameOverMoreGames_46(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 9
//HighBTN_30 (THGFOLTG_fla.HighBTN_30) package THGFOLTG_fla { import flash.display.*; public dynamic class HighBTN_30 extends MovieClip { public function HighBTN_30(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 10
//LowBTN_32 (THGFOLTG_fla.LowBTN_32) package THGFOLTG_fla { import flash.display.*; public dynamic class LowBTN_32 extends MovieClip { public function LowBTN_32(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 11
//MedBTN_31 (THGFOLTG_fla.MedBTN_31) package THGFOLTG_fla { import flash.display.*; public dynamic class MedBTN_31 extends MovieClip { public function MedBTN_31(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 12
//MoreGamesBTN_25 (THGFOLTG_fla.MoreGamesBTN_25) package THGFOLTG_fla { import flash.display.*; public dynamic class MoreGamesBTN_25 extends MovieClip { public function MoreGamesBTN_25(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 13
//OffBTN_34 (THGFOLTG_fla.OffBTN_34) package THGFOLTG_fla { import flash.display.*; public dynamic class OffBTN_34 extends MovieClip { public function OffBTN_34(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 14
//OnBTN_33 (THGFOLTG_fla.OnBTN_33) package THGFOLTG_fla { import flash.display.*; public dynamic class OnBTN_33 extends MovieClip { public function OnBTN_33(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 15
//PauseContinue_59 (THGFOLTG_fla.PauseContinue_59) package THGFOLTG_fla { import flash.display.*; public dynamic class PauseContinue_59 extends MovieClip { public function PauseContinue_59(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 16
//PauseMainMenu_60 (THGFOLTG_fla.PauseMainMenu_60) package THGFOLTG_fla { import flash.display.*; public dynamic class PauseMainMenu_60 extends MovieClip { public function PauseMainMenu_60(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 17
//PauseMoreGames_61 (THGFOLTG_fla.PauseMoreGames_61) package THGFOLTG_fla { import flash.display.*; public dynamic class PauseMoreGames_61 extends MovieClip { public function PauseMoreGames_61(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 18
//PlayGameBTN_23 (THGFOLTG_fla.PlayGameBTN_23) package THGFOLTG_fla { import flash.display.*; public dynamic class PlayGameBTN_23 extends MovieClip { public function PlayGameBTN_23(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 19
//SettingsBTN_26 (THGFOLTG_fla.SettingsBTN_26) package THGFOLTG_fla { import flash.display.*; public dynamic class SettingsBTN_26 extends MovieClip { public function SettingsBTN_26(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package THGFOLTG_fla
Section 20
//SoundBuffer_68 (THGFOLTG_fla.SoundBuffer_68) package THGFOLTG_fla { import flash.display.*; public dynamic class SoundBuffer_68 extends MovieClip { public function SoundBuffer_68(){ addFrameScript(0, frame1); } function frame1(){ gotoAndStop(totalFrames); } } }//package THGFOLTG_fla
Section 21
//Tip_42 (THGFOLTG_fla.Tip_42) package THGFOLTG_fla { import flash.display.*; public dynamic class Tip_42 extends MovieClip { public function Tip_42(){ addFrameScript(119, frame120); } function frame120(){ stop(); } } }//package THGFOLTG_fla
Section 22
//Tutorial_47 (THGFOLTG_fla.Tutorial_47) package THGFOLTG_fla { import flash.display.*; public dynamic class Tutorial_47 extends MovieClip { public var skip_btn:MovieClip; public function Tutorial_47(){ addFrameScript(269, frame270); } function frame270(){ stop(); } } }//package THGFOLTG_fla
Section 23
//BossMeteor (BossMeteor) package { import flash.display.*; public class BossMeteor extends MovieClip { private var initX; private var initY; public var mainRef:Main; public var vX; public var vY; private var targetX;// = 300 private var maxVY; private var targetY;// = 550 public var mass:int; public var fire:meteorImpact; public var blnDead:Boolean; public var type:Number; private function RandNum(_arg1:Number, _arg2:Number):Number{ return ((Math.round((Math.random() * (_arg2 - _arg1))) + _arg1)); } public function behavior():void{ if (mainRef.currentState() == 1){ if (vY < maxVY){ vY = (vY + (2 / (this.scaleX * this.scaleX))); }; if ((((((((this.y < ((targetY + initY) + 100))) && ((this.y >= (initY - 100))))) && ((this.x > (0 - (this.width / 2)))))) && ((this.x < (600 + (this.width / 2)))))){ this.x = (this.x + vX); this.y = (this.y + vY); } else { if ((((((this.x > (0 - (this.width / 2)))) && ((this.x < (600 + (this.width / 2)))))) && ((this.y > 0)))){ blnDead = true; mainRef.shakeScreen(((this.scaleX - 1) / 100)); this.gotoAndPlay((this.currentFrame + 1)); animationCheck(); } else { if (this.y < (initY - 100)){ mainRef.game_mc.adjustScore(((this.width * this.scaleX) + 800)); mainRef.game_mc.DeleteMeteor(this); } else { mainRef.game_mc.adjustScore((((this.width * this.scaleX) + 800) - this.y)); mainRef.game_mc.DeleteMeteor(this); }; }; }; }; } public function Setup(_arg1:Main, _arg2:Number):void{ mainRef = _arg1; blnDead = false; type = (_arg2 + 1); this.scaleX = (mainRef.game_mc.getTimerCount() / (5 + (mainRef.game_mc.getTimerCount() / 15))); this.scaleY = scaleX; this.x = 300; this.y = (-100 - (this.height / 2)); initX = this.x; initY = this.y; maxVY = (((targetY - initY) / this.scaleX) / 50); vY = (((targetY - initY) / this.scaleX) / 200); vX = (((targetX - initX) / this.scaleX) / 200); mass = (this.scaleX * 160); } public function shatter():void{ mainRef.shakeScreen(15); } private function animationCheck():void{ var _local1:MovieClip; if (this.currentFrame == 2){ mainRef.game_mc.adjustHealth((this.width / 5)); mainRef.sPlayer.PlaySound(new Impact()); mainRef.sPlayer.PlaySound(new Fire()); }; if (this.currentFrame == this.totalFrames){ _local1 = new meteorImpact(); mainRef.game_mc.graveyard.addChild(_local1); _local1.x = this.x; _local1.y = (this.y + (this.height / 4)); if (type == 1){ _local1.scaleX = this.scaleX; } else { if (type == 2){ _local1.scaleX = (this.scaleX * 1.5); }; }; _local1.scaleY = _local1.scaleX; mainRef.game_mc.DeleteMeteor(this); }; } public function KillMe():void{ var _local1:* = mainRef.game_mc.hero_mc.getCurrentTarget(); if (_local1 == this){ mainRef.game_mc.hero_mc.clearCurrentTarget(); mainRef.game_mc.hero_mc.gotoAndStop(nextFrame); }; mainRef.game_mc.meteorZone_mc.removeChild(this); } } }//package
Section 24
//BOSSmeteorA (BOSSmeteorA) package { public dynamic class BOSSmeteorA extends BossMeteor { public function BOSSmeteorA(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 25
//BOSSmeteorB (BOSSmeteorB) package { public dynamic class BOSSmeteorB extends BossMeteor { public function BOSSmeteorB(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 26
//Button (Button) package { import flash.media.*; public dynamic class Button extends Sound { } }//package
Section 27
//ContinueBTN (ContinueBTN) package { import flash.display.*; public dynamic class ContinueBTN extends MovieClip { public function ContinueBTN(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 28
//Fire (Fire) package { import flash.media.*; public dynamic class Fire extends Sound { } }//package
Section 29
//GAME (GAME) package { import flash.display.*; import flash.events.*; import flash.media.*; import flash.geom.*; import flash.net.*; import flash.utils.*; import flash.text.*; import flash.system.*; import flash.ui.*; import flash.filters.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class GAME extends GameEngine { public var pauseTimer:Timer; public function GAME(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5); } public function runMainMenu(_arg1:TimerEvent):void{ Main(parent).mainMenu(); } function frame1(){ stop(); city.sky.gotoAndStop(1); city.ground.gotoAndStop(1); pauseTimer = new Timer(100, 1); pauseTimer.addEventListener(TimerEvent.TIMER, runMainMenu); pauseTimer.start(); } function frame2(){ stop(); city.sky.gotoAndStop(1); city.ground.gotoAndStop(1); Main(root).runCredits(); } function frame3(){ stop(); city.sky.gotoAndStop(1); city.ground.gotoAndStop(1); Main(root).runSettings(); } function frame4(){ stop(); city.sky.gotoAndPlay(2); city.ground.gotoAndPlay(2); hero_mc.Setup(Main(root)); } function frame5(){ stop(); city.sky.stop(); city.ground.stop(); } } }//package
Section 30
//GameEngine (GameEngine) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.text.*; public class GameEngine extends MovieClip { public var back_btn:MovieClip; private var bossSpawnDelay; public var tutorial_mc:MovieClip; private var enemyToSpawn:Number; private var superSpeedTimer:Timer; private var mainRef:Main; private var enemies:Array; public var moregames_btn:MovieClip; public var credits_btn:MovieClip; public var settings_btn:MovieClip; public var activeEnemies:Array; private var powerupSpawnDelay; public var health_dt:TextField; public var powerupIcon1:ShockWaveIcon; public var powerupIcon2:ShockWaveIcon; public var powerupIcon3:ShockWaveIcon; public var score_dt:TextField; public var graphicsMED_btn:MovieClip; public var musicON_btn:MovieClip; public var poly_btn:MovieClip; public var city:MovieClip; public var gameTimer:Timer; public var Cursor:MovieClip; private var pickups:Array; public var soundOFF_btn:MovieClip; public var gameOver_mc:MovieClip; public var activePickups:Array; public var score:int; private var pickupToSpawn:Number; public var musicOFF_btn:MovieClip; private var cityHealth:Number; public var meteorZone_mc:MovieClip; public var graveyard:Graveyard; private var spawnDelay; public var graphicsHIGH_btn:MovieClip; public var soundON_btn:MovieClip; private var bosses:Array; public var graphicsLOW_btn:MovieClip; public var heroCredits_mc:MovieClip; public var hero_mc:Hero_sm; public var start_btn:MovieClip; public function GameEngine(){ gameTimer = new Timer(1000, 0); activeEnemies = new Array(); activePickups = new Array(); superSpeedTimer = new Timer(3000, 1); super(); } private function RandNum(_arg1:Number, _arg2:Number):Number{ return (Math.round((((Math.random() * ((_arg2 - _arg1) + 0.8)) + _arg1) - 0.4))); } private function generatePowerup():void{ pickupToSpawn = RandNum(0, (pickups.length - 1)); var _local1:MovieClip = new (pickups[pickupToSpawn]); mainRef.addChild(_local1); _local1.Setup(mainRef, pickupToSpawn); activePickups.push(_local1); } public function spliceArray(_arg1:MovieClip):void{ var _local2:Number = 0; while (_local2 < activeEnemies.length) { if (_arg1 == activeEnemies[_local2]){ activeEnemies.splice(_local2, 1); break; }; _local2++; }; } public function updateMeteors():void{ var _local1:int; _local1 = 0; while (_local1 < activeEnemies.length) { activeEnemies[_local1].behavior(); _local1++; }; } public function adjustScore(_arg1:int):void{ score = (score + _arg1); score_dt.text = score.toString(); } public function DeleteMeteor(_arg1:MovieClip):void{ shortenDelay(); var _local2:Number = 0; while (_local2 < activeEnemies.length) { if (_arg1.name == activeEnemies[_local2].name){ activeEnemies.splice(_local2, 1); _arg1.KillMe(); break; }; _local2++; }; } public function checkDelay():void{ if (gameTimer.currentCount >= bossSpawnDelay){ bossSpawnDelay = (bossSpawnDelay + (gameTimer.currentCount / 1.5)); spawnDelay = (spawnDelay + RandNum((1 + (200 / gameTimer.currentCount)), (2 + (400 / gameTimer.currentCount)))); generateBoss(); } else { if (gameTimer.currentCount >= spawnDelay){ spawnDelay = (spawnDelay + RandNum((1 + (10 / Math.sqrt(gameTimer.currentCount))), (2 + (20 / Math.sqrt(gameTimer.currentCount))))); generate(); }; }; if (gameTimer.currentCount >= powerupSpawnDelay){ powerupSpawnDelay = (spawnDelay + RandNum(15, 30)); generatePowerup(); }; } public function Setup(_arg1:Main):void{ enemies = new Array(); bosses = new Array(); pickups = new Array(); cityHealth = 100; score = 0; mainRef = _arg1; enemies.push(meteorA); enemies.push(meteorB); bosses.push(BOSSmeteorA); bosses.push(BOSSmeteorB); pickups.push(ShockWavePickup); pickups.push(LaserBeamsPickup); pickups.push(SuperSpeedPickup); spawnDelay = 4; bossSpawnDelay = 45; powerupSpawnDelay = RandNum(15, 30); this.addEventListener(Event.ENTER_FRAME, setHealthScore); } public function shortenDelay():void{ if (meteorZone_mc.numChildren == 1){ spawnDelay = (gameTimer.currentCount + 2); }; } private function endGame(_arg1:TimerEvent):void{ gameTimer.stop(); if (activePickups.length > 0){ mainRef.removeChild(activePickups[0]); activePickups.splice(0, 1); }; gotoAndStop(5); } private function generate():void{ var _local2:int; var _local3:uint; enemyToSpawn = RandNum(0, (enemies.length - 1)); var _local1:MovieClip = new (enemies[enemyToSpawn]); _local1.Setup(mainRef, enemyToSpawn); if (meteorZone_mc.numChildren > 0){ _local3 = (meteorZone_mc.numChildren - 1); _local2 = _local3; while (_local2 >= 1) { if (meteorZone_mc.getChildAt(_local2).width <= _local1.width){ _local3--; }; _local2--; }; } else { _local3 = 0; }; if (_local3 == meteorZone_mc.numChildren){ meteorZone_mc.addChild(_local1); } else { meteorZone_mc.addChildAt(_local1, (_local3 + 1)); }; activeEnemies.push(_local1); } private function generateBoss():void{ enemyToSpawn = RandNum(0, (bosses.length - 1)); var _local1:MovieClip = new (bosses[enemyToSpawn]); meteorZone_mc.addChildAt(_local1, 0); activeEnemies.push(_local1); _local1.Setup(mainRef, enemyToSpawn); } public function getActiveEnemies():Array{ return (activeEnemies); } public function moveCursor():void{ if ((((((((stage.mouseX >= 0)) && ((stage.mouseX <= 600)))) && ((stage.mouseY >= 0)))) && ((stage.mouseY <= 550)))){ Cursor.x = stage.mouseX; Cursor.y = stage.mouseY; Cursor.alpha = (0 + (Math.sqrt((((stage.mouseX - hero_mc.x) * (stage.mouseX - hero_mc.x)) + ((stage.mouseY - hero_mc.y) * (stage.mouseY - hero_mc.y)))) / 700)); }; } public function spawnShockWave():void{ var _local1:* = new ShockWavePower(); _local1.x = hero_mc.x; _local1.y = hero_mc.y; addChild(_local1); _local1.Setup(mainRef); } public function getTimerCount():Number{ return (gameTimer.currentCount); } public function endSuperSpeed(_arg1:TimerEvent):void{ if (hero_mc != null){ hero_mc.blnSuperSpeed = false; superSpeedTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, endSuperSpeed); superSpeedTimer.reset(); hero_mc.speedGlow(0); }; } private function setHealthScore(_arg1:Event):void{ score_dt.text = "0"; health_dt.text = "100%"; this.removeEventListener(Event.ENTER_FRAME, setHealthScore); } public function adjustHealth(_arg1:int):void{ var _local2:Timer; if (cityHealth == 0){ } else { cityHealth = (cityHealth - _arg1); if (cityHealth < 0){ cityHealth = 0; }; health_dt.text = (cityHealth + "%"); mainRef.game_mc.city.skyline.gotoAndStop((6 - Math.round(((5 * cityHealth) / 100)))); if (cityHealth == 0){ _local2 = new Timer(1000, 1); _local2.addEventListener(TimerEvent.TIMER, endGame); _local2.start(); }; }; } public function activateSuperSpeed():void{ hero_mc.blnSuperSpeed = true; superSpeedTimer.addEventListener(TimerEvent.TIMER_COMPLETE, endSuperSpeed); superSpeedTimer.start(); hero_mc.speedGlow(3); } } }//package
Section 31
//Graveyard (Graveyard) package { import flash.display.*; public dynamic class Graveyard extends MovieClip { } }//package
Section 32
//Hero_sm (Hero_sm) package { public dynamic class Hero_sm extends HeroController { public function Hero_sm(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 33
//HeroController (HeroController) package { import flash.display.*; import flash.events.*; import fl.motion.*; import flash.filters.*; public class HeroController extends MovieClip { private var tint:Color; private var hitRadius; private var forceX; public var blnSuperSpeed:Boolean; public var cape:MovieClip; private var forceY; private var rotdir:int; private var ActiveEnemies:Array; private var capeFrame:Number; private var initRot:int; public var mainRef:Main; public var targetEnemy:MovieClip; public var motionblur_mc:MovieClip; private var movdis:int; private var detint:Color; private var hero_filters:Array; public function HeroController(){ tint = new Color(); detint = new Color(); super(); } private function motionBlur(_arg1:Number, _arg2:Number):void{ var _local3:BlurFilter = new BlurFilter(_arg1, _arg2, 1); if (hero_filters.length < 2){ hero_filters.push(_local3); } else { hero_filters[0] = _local3; }; if (this.currentFrame != 3){ this.filters = hero_filters; }; } public function speedGlow(_arg1):void{ var _local2:GlowFilter = new GlowFilter(16724838, 0.8, 10, 10, _arg1, 1, false, false); if (hero_filters.length < 2){ hero_filters.push(_local2); } else { hero_filters[1] = _local2; }; this.filters = hero_filters; } private function animateCape():void{ if (capeFrame > this.cape.totalFrames){ capeFrame = 1; }; this.cape.gotoAndStop(capeFrame); capeFrame++; } public function Setup(_arg1:Main):void{ mainRef = _arg1; blnSuperSpeed = false; capeFrame = 1; initRot = 0; hero_filters = new Array(); motionBlur(0, 0); speedGlow(0); this.filters = hero_filters; detint.setTint(0xFF6600, 0); heroReset(); } public function clearCurrentTarget():void{ targetEnemy = null; } public function HitTest():void{ var _local1:int; var _local2:int; ActiveEnemies = mainRef.game_mc.getActiveEnemies(); rotdir = (((Math.atan2((stage.mouseY - this.y), ((stage.mouseX - this.x) / 4)) * 180) / Math.PI) + 90); movdis = Math.sqrt(((Math.abs((stage.mouseX - this.x)) * Math.abs((stage.mouseX - this.x))) + (Math.abs((stage.mouseY - this.y)) * Math.abs((stage.mouseY - this.y))))); if (ActiveEnemies.length == 0){ targetEnemy = null; } else { _local2 = 0; while (_local2 < ActiveEnemies.length) { _local1 = (((Math.atan2((ActiveEnemies[_local2].y - this.y), ((stage.mouseX - ActiveEnemies[_local2].x) / 4)) * 180) / Math.PI) + 90); hitRadius = Math.sqrt(Math.abs((((this.x - ActiveEnemies[_local2].x) * (this.x - ActiveEnemies[_local2].x)) + ((this.y - ActiveEnemies[_local2].y) * (this.y - ActiveEnemies[_local2].y))))); if (Math.abs((_local1 - rotdir)) <= 45){ hitRadius = (hitRadius - (movdis / 10)); }; if ((((((((((hitRadius <= (ActiveEnemies[_local2].width / 2.2))) && ((hitRadius >= (ActiveEnemies[_local2].width / 6))))) && ((this.y > (ActiveEnemies[_local2].y - (ActiveEnemies[_local2].height / 4)))))) && ((stage.mouseY < (this.y + 20))))) && ((ActiveEnemies[_local2].blnDead == false)))){ this.gotoAndStop(4); animateCape(); targetEnemy = ActiveEnemies[_local2]; deflect(); break; } else { targetEnemy = null; }; _local2++; }; }; } public function moveHero():void{ var _local1:int; var _local2:int; if (((((((!((targetEnemy == null))) && ((blnSuperSpeed == true)))) && ((targetEnemy.width < 320)))) && ((targetEnemy.blnDead == false)))){ targetEnemy.shatter(); } else { if (targetEnemy != null){ rotdir = (((Math.atan2((targetEnemy.y - this.y), ((stage.mouseX - targetEnemy.x) / 4)) * 180) / Math.PI) + 90); this.scaleY = 1; motionBlur(0, 0); this.transform.colorTransform = detint; this.rotation = rotdir; initRot = this.rotation; this.y = (targetEnemy.y + ((targetEnemy.height / 2.3) * Math.sin((((90 - rotdir) * Math.PI) / 180)))); if (stage.mouseX > targetEnemy.x){ this.x = (targetEnemy.x - ((targetEnemy.width / 2.2) * Math.abs(Math.cos((((90 - rotdir) * Math.PI) / 180))))); } else { if (stage.mouseX < targetEnemy.x){ this.x = (targetEnemy.x + ((targetEnemy.width / 2.2) * Math.abs(Math.cos((((90 - rotdir) * Math.PI) / 180))))); }; }; } else { if (targetEnemy == null){ if (blnSuperSpeed == false){ this.x = ((this.x * 0.85) + (stage.mouseX * 0.15)); this.y = ((this.y * 0.85) + (stage.mouseY * 0.15)); } else { this.x = ((this.x * 0.6) + (stage.mouseX * 0.4)); this.y = ((this.y * 0.6) + (stage.mouseY * 0.4)); }; if ((((Math.abs((this.x - stage.mouseX)) < 2)) && ((Math.abs((this.y - stage.mouseY)) < 2)))){ heroReset(); } else { if (movdis < 60){ if (stage.mouseX < this.x){ rotdir = ((-((((Math.atan2((stage.mouseY - this.y), (this.x - stage.mouseX)) * 180) / Math.PI) + 90)) * movdis) / 50); } else { if (stage.mouseX > this.x){ rotdir = (((((Math.atan2((stage.mouseY - this.y), (stage.mouseX - this.x)) * 180) / Math.PI) + 90) * movdis) / 50); }; }; this.gotoAndStop(2); this.scaleY = 1; motionBlur(Math.abs((stage.mouseX - this.x)), Math.abs((stage.mouseY - this.y))); this.rotation = rotdir; tint.setTint(0xFF6600, (movdis / 70)); this.transform.colorTransform = tint; } else { rotdir = (((Math.atan2((stage.mouseY - this.y), (stage.mouseX - this.x)) * 180) / Math.PI) + 90); initRot = this.rotation; this.rotation = rotdir; motionBlur(0, 0); this.transform.colorTransform = detint; this.gotoAndStop(3); _local1 = initRot; _local2 = rotdir; if (initRot < 0){ _local1 = (360 + initRot); }; if (rotdir < 0){ _local2 = (360 + rotdir); }; if ((((_local1 < 90)) && ((_local2 > 270)))){ _local1 = (360 + rotdir); }; if ((((_local2 < 90)) && ((_local1 > 270)))){ _local2 = (360 + _local2); }; if (Math.abs((_local2 - _local1)) > 15){ this.scaleY = 1; } else { this.scaleY = (movdis / 50); }; }; }; }; }; }; } public function getCurrentTarget():MovieClip{ if (targetEnemy != null){ return (targetEnemy); }; return (null); } public function heroReset(){ this.x = stage.mouseX; this.y = stage.mouseY; this.gotoAndStop(1); animateCape(); this.rotation = 0; this.scaleY = 1; motionBlur(0, 0); this.transform.colorTransform = detint; } private function deflect():void{ forceX = ((stage.mouseX - targetEnemy.x) / targetEnemy.mass); forceY = ((stage.mouseY - this.y) / targetEnemy.mass); if (Math.abs(targetEnemy.vX) < (Math.abs(forceX) * 100)){ targetEnemy.vX = (targetEnemy.vX + forceX); }; if (((((stage.mouseY - 10) < this.y)) && ((targetEnemy.vY > (forceY * 100))))){ targetEnemy.vY = (targetEnemy.vY + forceY); }; } } }//package
Section 34
//Impact (Impact) package { import flash.media.*; public dynamic class Impact extends Sound { } }//package
Section 35
//Intro (Intro) package { public dynamic class Intro extends Preloader { public function Intro(){ addFrameScript(0, frame1, 180, frame181); } function frame1(){ stop(); } function frame181(){ heroLogo.buttonMode = true; heroLogo.useHandCursor = true; } } }//package
Section 36
//KeyboardControls (KeyboardControls) package { import flash.events.*; public class KeyboardControls { var seven:Boolean;// = false var eight:Boolean;// = false var downy:Boolean;// = false var three:Boolean;// = false var four:Boolean;// = false var zero:Boolean;// = false var five:Boolean;// = false var shifty:Boolean;// = false var nine:Boolean;// = false var spacey:Boolean;// = false var upy:Boolean;// = false var lefty:Boolean;// = false var two:Boolean;// = false var righty:Boolean;// = false var six:Boolean;// = false var p:Boolean;// = false var one:Boolean;// = false public function KeyboardControls(_arg1){ _arg1.addEventListener(KeyboardEvent.KEY_DOWN, Downs); _arg1.addEventListener(KeyboardEvent.KEY_UP, Ups); } public function get Right():Boolean{ return (righty); } public function set Six(_arg1:Boolean){ six = _arg1; } public function set Three(_arg1:Boolean){ three = _arg1; } public function set One(_arg1:Boolean){ one = _arg1; } public function set Zero(_arg1:Boolean){ zero = _arg1; } public function set Four(_arg1:Boolean){ four = _arg1; } public function set Down(_arg1:Boolean){ downy = _arg1; } public function Ups(_arg1){ if (_arg1.keyCode == 80){ p = false; }; if (_arg1.keyCode == 51){ three = false; }; if (_arg1.keyCode == 52){ four = false; }; if (_arg1.keyCode == 53){ five = false; }; if (_arg1.keyCode == 54){ six = false; }; if (_arg1.keyCode == 55){ seven = false; }; if (_arg1.keyCode == 56){ eight = false; }; if (_arg1.keyCode == 57){ nine = false; }; if (_arg1.keyCode == 48){ zero = false; }; if (_arg1.keyCode == 50){ two = false; }; if (_arg1.keyCode == 49){ one = false; }; if (_arg1.keyCode == 38){ upy = false; }; if (_arg1.keyCode == 37){ lefty = false; }; if (_arg1.keyCode == 40){ downy = false; }; if (_arg1.keyCode == 39){ righty = false; }; if (_arg1.keyCode == 32){ spacey = false; }; if (_arg1.keyCode == 16){ shifty = false; }; } public function set P(_arg1:Boolean){ p = _arg1; } public function get Left():Boolean{ return (lefty); } public function set Five(_arg1:Boolean){ five = _arg1; } public function get Two():Boolean{ return (two); } public function get Up():Boolean{ return (upy); } public function get Six():Boolean{ return (six); } public function get Four():Boolean{ return (four); } public function get Zero():Boolean{ return (zero); } public function get Down():Boolean{ return (downy); } public function set Shift(_arg1:Boolean){ shifty = _arg1; } public function get One():Boolean{ return (one); } public function set Left(_arg1:Boolean){ lefty = _arg1; } public function get P():Boolean{ return (p); } public function set Nine(_arg1:Boolean){ nine = _arg1; } public function set Two(_arg1:Boolean){ two = _arg1; } public function get Nine():Boolean{ return (nine); } public function set Seven(_arg1:Boolean){ seven = _arg1; } public function set Eight(_arg1:Boolean){ eight = _arg1; } public function get Five():Boolean{ return (five); } public function get Shift():Boolean{ return (shifty); } public function get Space():Boolean{ return (spacey); } public function get Eight():Boolean{ return (eight); } public function Downs(_arg1:KeyboardEvent){ if (_arg1.keyCode == 80){ p = true; }; if (_arg1.keyCode == 38){ upy = true; }; if (_arg1.keyCode == 37){ lefty = true; }; if (_arg1.keyCode == 40){ downy = true; }; if (_arg1.keyCode == 39){ righty = true; }; if (_arg1.keyCode == 32){ spacey = true; }; if (_arg1.keyCode == 16){ shifty = true; }; if (_arg1.keyCode == 49){ one = true; }; if (_arg1.keyCode == 50){ two = true; }; if (_arg1.keyCode == 51){ three = true; }; if (_arg1.keyCode == 52){ four = true; }; if (_arg1.keyCode == 53){ five = true; }; if (_arg1.keyCode == 54){ six = true; }; if (_arg1.keyCode == 55){ seven = true; }; if (_arg1.keyCode == 56){ eight = true; }; if (_arg1.keyCode == 57){ nine = true; }; if (_arg1.keyCode == 48){ zero = true; }; } public function get Seven():Boolean{ return (seven); } public function set Up(_arg1:Boolean){ upy = _arg1; } public function set Right(_arg1:Boolean){ righty = _arg1; } public function set Space(_arg1:Boolean){ spacey = _arg1; } public function get Three():Boolean{ return (three); } } }//package
Section 37
//Laser (Laser) package { import flash.media.*; public dynamic class Laser extends Sound { } }//package
Section 38
//LaserBeamsPickup (LaserBeamsPickup) package { public dynamic class LaserBeamsPickup extends Pickups { } }//package
Section 39
//LaserImpact (LaserImpact) package { import flash.display.*; public dynamic class LaserImpact extends MovieClip { } }//package
Section 40
//LazerEyes (LazerEyes) package { import flash.display.*; import flash.events.*; public class LazerEyes extends Sprite { var ActiveEnemies:Array; var LazerSecondaryColor:uint;// = 0xFF9900 var iconNumber:int; var LazerThickness:Number;// = 1 var player; var LazerSecondaryThickness;// = 1 var LazerPrimaryColor:uint;// = 0xFF9900 var LazerTimer;// = 0 var enemy; var mainRef:Main; var laserImpact_mc:MovieClip; public function LazerEyes(_arg1:Main, _arg2:int){ mainRef = _arg1; iconNumber = _arg2; player = mainRef.game_mc.hero_mc; enemy = getEnemy(); laserImpact_mc = new LaserImpact(); laserImpact_mc.name = "laserImpact_mc"; if (enemy != null){ addEventListener(Event.ENTER_FRAME, FollowMeteor); mainRef.turnOffPower(iconNumber); mainRef.addChild(laserImpact_mc); }; } private function FollowMeteor(_arg1:Event){ LazerTimer = (LazerTimer + 1); laserImpact_mc.x = enemy.x; laserImpact_mc.y = enemy.y; graphics.clear(); graphics.lineStyle(LazerSecondaryThickness, LazerSecondaryColor, 0.6); graphics.moveTo((player.x - 2), (player.y - 8)); graphics.lineTo(enemy.x, enemy.y); graphics.lineStyle(LazerThickness, LazerPrimaryColor, 0.6); graphics.moveTo((player.x + 2), (player.y - 8)); graphics.lineTo(enemy.x, enemy.y); if (LazerTimer == 4){ enemy.shatter(); mainRef.removeMC(laserImpact_mc); }; if (LazerTimer == 6){ removeEventListener(Event.ENTER_FRAME, FollowMeteor); graphics.clear(); }; } private function getEnemy():MovieClip{ var _local2:*; var _local3:MovieClip; var _local4:int; var _local1:int; _local4 = 0; while (_local4 < mainRef.game_mc.meteorZone_mc.numChildren) { _local3 = (mainRef.game_mc.meteorZone_mc.getChildAt(_local4) as MovieClip); if ((((((((_local3.y > _local1)) && ((_local3.x < 600)))) && ((_local3.x > 0)))) && ((_local3.currentFrame == 1)))){ _local1 = mainRef.game_mc.meteorZone_mc.getChildAt(_local4).y; _local2 = mainRef.game_mc.meteorZone_mc.getChildAt(_local4); }; _local4++; }; return (_local2); } } }//package
Section 41
//LineVector (LineVector) package { public class LineVector { public var x:Number; public var y:Number; public function LineVector():void{ x = 0; y = 0; } function Add(_arg1:LineVector):void{ this.x = (this.x + _arg1.x); this.y = (this.y + _arg1.y); } function VecToAngle(_arg1:Number, _arg2:Number):void{ CreateVectorTowardsAngle(_arg1); Scale(_arg2); } function Scale(_arg1:Number):void{ this.x = (this.x * _arg1); this.y = (this.y * _arg1); } function Print():void{ trace(((("Vector: " + this.x) + ", ") + this.y)); } function ConvertToUnitVector():void{ var _local1:Number = GetLength(); if (_local1 != 0){ this.x = (this.x / _local1); this.y = (this.y / _local1); }; } function CreateVectorTowardsAngle(_arg1:Number):void{ _arg1 = ((_arg1 * Math.PI) / 180); this.x = (Math.cos(_arg1) * 1); this.y = (Math.sin(_arg1) * 1); } function AngleToAlign(_arg1:Number, _arg2:Number, _arg3:Number):Number{ var _local4:Number = 0; var _local5:Number = GetAngle(); var _local6:Number = 0; var _local7 = ""; if (_arg1 >= 0){ _local4 = (_arg1 - 180); if ((((_local5 < _arg1)) && ((_local5 > _local4)))){ _local6 = (-(_arg3) * _arg2); _local7 = (_local7 + (((((" AAA " + _arg1) + " ") + _local5) + " ") + _local6)); if ((_local5 - _arg1) > _local6){ _local6 = (_local5 - _arg1); }; } else { _local6 = (_arg3 * _arg2); _local7 = (_local7 + (((((" BBB " + _arg1) + " ") + _local5) + " ") + _local6)); if (_local5 >= 0){ if (_local5 != _local4){ if ((_local5 - _arg1) < _local6){ _local6 = (_local5 - _arg1); }; }; }; }; } else { _local4 = (_arg1 + 180); if ((((_local5 < _local4)) && ((_local5 > _arg1)))){ _local6 = (_arg3 * _arg2); _local7 = (_local7 + (((((" CCC " + _arg1) + " ") + _local5) + " ") + _local6)); if ((_local5 - _arg1) < _local6){ _local6 = (_local5 - _arg1); }; } else { _local6 = (-(_arg3) * _arg2); _local7 = (_local7 + (((((" DDD " + _arg1) + " ") + _local5) + " ") + _local6)); if (_local5 < 0){ if ((_local5 - _arg1) > _local6){ _local6 = (_local5 - _arg1); }; }; }; }; if (Math.abs(_local6) > 30){ } else { if (_local5 == 0){ }; }; return (_local6); } function GetLength():Number{ var _local1:Number = ((this.x * this.x) + (this.y * this.y)); return (Math.sqrt(_local1)); } function GetAngle():Number{ var _local1:Number = Math.atan2(this.y, this.x); var _local2:Number = ((360 * _local1) / (2 * Math.PI)); return (_local2); } } }//package
Section 42
//LoadingBar (LoadingBar) package { import flash.display.*; public dynamic class LoadingBar extends MovieClip { public function LoadingBar(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 43
//Main (Main) package { import flash.display.*; import flash.events.*; import flash.media.*; import flash.net.*; import flash.ui.*; public class Main extends MovieClip { private var pauseScreen:MovieClip; public var game_mc:GAME; private var keyControl:KeyboardControls; private var laserSound:Sound; private var polyURL:URLRequest; private var heroURL:URLRequest; private var screenEffect:ScreenEffects; private var moreGamesLoader:URLLoader; private var heroLoader:URLLoader; public var mPlayer:MusicPlayer; public var siteLock_btn:MovieClip; private var selectedSound:String; private var blnHasSeenTutorial:Boolean; public var objUrlLocking:UrlLocking; public var sPlayer:SoundPlayer; public var bg:MovieClip; private var selectedGraphics:String; private var selectedMusic:String; public var gameState:Number; private var sparkle_mc; private var moreGamesURL:URLRequest; public function Main():void{ addFrameScript(0, frame1, 1, frame2, 2, frame3, 14, frame15); blnHasSeenTutorial = false; objUrlLocking = new UrlLocking(stage, false, false); objUrlLocking.AddAllowableDomain("herointeractive.com"); objUrlLocking.AddAllowableDomain("armorgames.com"); objUrlLocking.AddAdFreeDomain("addictinggames.com"); objUrlLocking.AddAdFreeDomain("agstage.shockwave.com"); objUrlLocking.AddAdFreeDomain("freeonlinegames.com"); objUrlLocking.AddAdFreeDomain("andkon.com"); objUrlLocking.AddAdFreeDomain("kongregate.com"); objUrlLocking.AddAdFreeDomain("kongregatetrunk.com"); objUrlLocking.AddAdFreeDomain("gamezhero.com"); sPlayer = new SoundPlayer(); mPlayer = new MusicPlayer(this.stage); } public function MouseOut(_arg1:MouseEvent):void{ _arg1.target.gotoAndStop(1); } public function runCredits():void{ game_mc.back_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.back_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.back_btn.addEventListener(MouseEvent.MOUSE_UP, gotoMainMenu); game_mc.heroCredits_mc.addEventListener(MouseEvent.MOUSE_UP, loadHeroWebsite); game_mc.heroCredits_mc.buttonMode = true; game_mc.heroCredits_mc.useHandCursor = true; game_mc.poly_btn.addEventListener(MouseEvent.MOUSE_UP, loadPolyphone); game_mc.poly_btn.buttonMode = true; game_mc.poly_btn.useHandCursor = true; } private function runTutorial(_arg1:Event):void{ if (game_mc.tutorial_mc != null){ blnHasSeenTutorial = true; stage.removeEventListener(Event.ENTER_FRAME, runTutorial); game_mc.tutorial_mc.skip_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.tutorial_mc.skip_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.tutorial_mc.skip_btn.addEventListener(MouseEvent.MOUSE_UP, gotoGame); }; } function frame1(){ stop(); runPreloader(); } public function currentState():Number{ return (gameState); } public function shakeScreen(_arg1:int):void{ screenEffect.SHAKE(_arg1); } public function removeMC(_arg1:MovieClip):void{ this.removeChild(_arg1); } private function runGame(_arg1:Event):void{ stage.removeEventListener(Event.ENTER_FRAME, runGame); game_mc.Setup(this); changeState(1); } private function settingsClick(_arg1:MouseEvent):void{ if (_arg1.target == game_mc.graphicsHIGH_btn){ selectedGraphics = _arg1.target.name; game_mc.graphicsMED_btn.gotoAndStop(1); game_mc.graphicsLOW_btn.gotoAndStop(1); stage.quality = StageQuality.HIGH; } else { if (_arg1.target == game_mc.graphicsMED_btn){ selectedGraphics = _arg1.target.name; game_mc.graphicsHIGH_btn.gotoAndStop(1); game_mc.graphicsLOW_btn.gotoAndStop(1); stage.quality = StageQuality.MEDIUM; } else { if (_arg1.target == game_mc.graphicsLOW_btn){ selectedGraphics = _arg1.target.name; game_mc.graphicsHIGH_btn.gotoAndStop(1); game_mc.graphicsMED_btn.gotoAndStop(1); stage.quality = StageQuality.LOW; } else { if (_arg1.target == game_mc.musicON_btn){ selectedMusic = _arg1.target.name; game_mc.musicOFF_btn.gotoAndStop(1); MusicMode(true); } else { if (_arg1.target == game_mc.musicOFF_btn){ selectedMusic = _arg1.target.name; game_mc.musicON_btn.gotoAndStop(1); MusicMode(false); } else { if (_arg1.target == game_mc.soundON_btn){ selectedSound = _arg1.target.name; game_mc.soundOFF_btn.gotoAndStop(1); SoundMode(true); } else { if (_arg1.target == game_mc.soundOFF_btn){ selectedSound = _arg1.target.name; game_mc.soundON_btn.gotoAndStop(1); SoundMode(false); }; }; }; }; }; }; }; _arg1.target.gotoAndStop(3); } private function gotoSettings(_arg1:MouseEvent):void{ game_mc.gotoAndStop(3); } public function turnOnPower(_arg1:int):void{ if (game_mc.powerupIcon1.currentFrame == 1){ game_mc.powerupIcon1.gotoAndStop((1 + _arg1)); } else { if (game_mc.powerupIcon2.currentFrame == 1){ game_mc.powerupIcon2.gotoAndStop((1 + _arg1)); } else { if (game_mc.powerupIcon3.currentFrame == 1){ game_mc.powerupIcon3.gotoAndStop((1 + _arg1)); }; }; }; } private function runPreloader():void{ var _local1:MovieClip = new Intro(); _local1.x = 300; _local1.y = 195; addChild(_local1); _local1.Setup(this); } private function settingsMouseOut(_arg1:MouseEvent):void{ if ((((((_arg1.target == game_mc.graphicsHIGH_btn)) || ((_arg1.target == game_mc.graphicsMED_btn)))) || ((_arg1.target == game_mc.graphicsLOW_btn)))){ if (selectedGraphics != _arg1.target.name){ _arg1.target.gotoAndStop(1); } else { _arg1.target.gotoAndStop(3); }; }; if ((((_arg1.target == game_mc.musicON_btn)) || ((_arg1.target == game_mc.musicOFF_btn)))){ if (selectedMusic != _arg1.target.name){ _arg1.target.gotoAndStop(1); } else { _arg1.target.gotoAndStop(3); }; }; if ((((_arg1.target == game_mc.soundON_btn)) || ((_arg1.target == game_mc.soundOFF_btn)))){ if (selectedSound != _arg1.target.name){ _arg1.target.gotoAndStop(1); } else { _arg1.target.gotoAndStop(3); }; }; } public function siteLocked():void{ siteLock_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoMoreGames); siteLock_btn.sponsorURL_dt.text = "www.armorgames.com"; } public function SoundMode(_arg1:Boolean):void{ sPlayer.soundOn = _arg1; } public function addSparkle(_arg1:int, _arg2:int):void{ sparkle_mc = new PickupSparkle(); addChild(sparkle_mc); sparkle_mc.x = _arg1; sparkle_mc.y = _arg2; sparkle_mc.scaleX = 2; sparkle_mc.scaleY = 2; sparkle_mc.addEventListener(Event.ENTER_FRAME, removeSparkle); } private function gotoCredits(_arg1:MouseEvent):void{ game_mc.gotoAndStop(2); } public function mainMenu():void{ game_mc.start_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.start_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.start_btn.addEventListener(MouseEvent.MOUSE_UP, gotoGame); game_mc.credits_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.credits_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.credits_btn.addEventListener(MouseEvent.MOUSE_UP, gotoCredits); game_mc.settings_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.settings_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.settings_btn.addEventListener(MouseEvent.MOUSE_UP, gotoSettings); game_mc.moregames_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.moregames_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.moregames_btn.addEventListener(MouseEvent.MOUSE_UP, gotoMoreGames); } public function gotoMainMenu(_arg1:MouseEvent):void{ var _local2:int; changeState(0); game_mc.city.skyline.gotoAndStop(1); game_mc.gotoAndStop(1); sPlayer.StopAllSounds(); if (game_mc.activeEnemies.length > 0){ _local2 = 0; while (_local2 < game_mc.activeEnemies.length) { game_mc.activeEnemies.splice(_local2, 1); _local2--; _local2++; }; }; if (game_mc.activePickups.length > 0){ game_mc.removeChild(game_mc.activePickups[0]); game_mc.activePickups.splice(0, 1); }; if (pauseScreen != null){ if (_arg1.target == pauseScreen.menu_btn){ stage.removeEventListener(Event.ENTER_FRAME, unPause); keyControl.P = false; pauseScreen.destroy(); }; }; } public function changeState(_arg1:Number){ if ((((_arg1 == 0)) && (!((currentState() == 0))))){ mPlayer.PlayMusic(new MenuMusic()); } else { if ((((_arg1 == 1)) && ((currentState() == 0)))){ mPlayer.PlayMusic(new MainMusic()); }; }; gameState = _arg1; Run(); } public function MusicMode(_arg1:Boolean):void{ mPlayer.musicOn = _arg1; } public function gotoMoreGames(_arg1:MouseEvent):void{ moreGamesURL = new URLRequest("http://www.armorgames.com"); navigateToURL(moreGamesURL, "_blank"); } function frame15(){ stop(); siteLocked(); } public function removePreloader(_arg1:MovieClip):void{ removeChild(_arg1); keyControl = new KeyboardControls(stage); screenEffect = new ScreenEffects(this, stage); } public function runSettings():void{ game_mc.back_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.back_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.back_btn.addEventListener(MouseEvent.MOUSE_UP, gotoMainMenu); game_mc.graphicsHIGH_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.graphicsHIGH_btn.addEventListener(MouseEvent.MOUSE_OUT, settingsMouseOut); game_mc.graphicsHIGH_btn.addEventListener(MouseEvent.MOUSE_UP, settingsClick); game_mc.graphicsMED_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.graphicsMED_btn.addEventListener(MouseEvent.MOUSE_OUT, settingsMouseOut); game_mc.graphicsMED_btn.addEventListener(MouseEvent.MOUSE_UP, settingsClick); game_mc.graphicsLOW_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.graphicsLOW_btn.addEventListener(MouseEvent.MOUSE_OUT, settingsMouseOut); game_mc.graphicsLOW_btn.addEventListener(MouseEvent.MOUSE_UP, settingsClick); game_mc.musicON_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.musicON_btn.addEventListener(MouseEvent.MOUSE_OUT, settingsMouseOut); game_mc.musicON_btn.addEventListener(MouseEvent.MOUSE_UP, settingsClick); game_mc.musicOFF_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.musicOFF_btn.addEventListener(MouseEvent.MOUSE_OUT, settingsMouseOut); game_mc.musicOFF_btn.addEventListener(MouseEvent.MOUSE_UP, settingsClick); game_mc.soundON_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.soundON_btn.addEventListener(MouseEvent.MOUSE_OUT, settingsMouseOut); game_mc.soundON_btn.addEventListener(MouseEvent.MOUSE_UP, settingsClick); game_mc.soundOFF_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.soundOFF_btn.addEventListener(MouseEvent.MOUSE_OUT, settingsMouseOut); game_mc.soundOFF_btn.addEventListener(MouseEvent.MOUSE_UP, settingsClick); if (selectedGraphics == game_mc.graphicsHIGH_btn.name){ game_mc.graphicsHIGH_btn.gotoAndStop(3); } else { if (selectedGraphics == game_mc.graphicsMED_btn.name){ game_mc.graphicsMED_btn.gotoAndStop(3); } else { if (selectedGraphics == game_mc.graphicsLOW_btn.name){ game_mc.graphicsLOW_btn.gotoAndStop(3); } else { selectedGraphics = "graphicsHIGH_btn"; game_mc.graphicsHIGH_btn.gotoAndStop(3); }; }; }; if (selectedMusic == game_mc.musicON_btn.name){ game_mc.musicON_btn.gotoAndStop(3); } else { if (selectedMusic == game_mc.musicOFF_btn.name){ game_mc.musicOFF_btn.gotoAndStop(3); } else { selectedMusic = "musicON_btn"; game_mc.musicON_btn.gotoAndStop(3); }; }; if (selectedSound == game_mc.soundON_btn.name){ game_mc.soundON_btn.gotoAndStop(3); } else { if (selectedSound == game_mc.soundOFF_btn.name){ game_mc.soundOFF_btn.gotoAndStop(3); } else { selectedSound = "soundON_btn"; game_mc.soundON_btn.gotoAndStop(3); }; }; } private function openPauseScreen():void{ pauseScreen = new PauseScreenOverlay(); pauseScreen.Setup(this); stage.addChild(pauseScreen); game_mc.city.stop(); game_mc.city.sky.stop(); game_mc.city.ground.stop(); stage.addEventListener(Event.ENTER_FRAME, unPause); } public function updateGame(_arg1:Event):void{ if (game_mc.currentFrame == 4){ game_mc.moveCursor(); game_mc.checkDelay(); game_mc.updateMeteors(); game_mc.hero_mc.HitTest(); game_mc.hero_mc.moveHero(); if (game_mc.activePickups.length > 0){ game_mc.activePickups[0].motion(); }; if (keyControl.P){ keyControl.P = false; changeState(2); }; if (keyControl.One){ keyControl.One = false; usePower(1); }; if (keyControl.Two){ keyControl.Two = false; usePower(2); }; if (keyControl.Three){ keyControl.Three = false; usePower(3); }; } else { changeState(0); gameOver(); }; } public function unPause(_arg1:Event):void{ if (((keyControl.P) || ((_arg1.target == pauseScreen.continue_btn)))){ stage.removeEventListener(Event.ENTER_FRAME, unPause); keyControl.P = false; pauseScreen.destroy(); changeState(1); game_mc.city.play(); game_mc.city.sky.play(); game_mc.city.ground.play(); }; } private function usePower(_arg1:int):void{ if (_arg1 == 1){ if (game_mc.powerupIcon1.currentFrame == 2){ game_mc.spawnShockWave(); turnOffPower(_arg1); sPlayer.PlaySound(new Shockwave()); } else { if (game_mc.powerupIcon1.currentFrame == 3){ if (game_mc.meteorZone_mc.numChildren > 0){ addChild(new LazerEyes(this, _arg1)); sPlayer.PlaySound(new Laser()); } else { return; }; } else { if (game_mc.powerupIcon1.currentFrame == 4){ game_mc.activateSuperSpeed(); turnOffPower(_arg1); sPlayer.PlaySound(new SuperSpeed(), 0.2); }; }; }; } else { if (_arg1 == 2){ if (game_mc.powerupIcon2.currentFrame == 2){ game_mc.spawnShockWave(); turnOffPower(_arg1); sPlayer.PlaySound(new Shockwave()); } else { if (game_mc.powerupIcon2.currentFrame == 3){ if (game_mc.meteorZone_mc.numChildren > 0){ addChild(new LazerEyes(this, _arg1)); sPlayer.PlaySound(new Laser()); } else { return; }; } else { if (game_mc.powerupIcon2.currentFrame == 4){ game_mc.activateSuperSpeed(); turnOffPower(_arg1); sPlayer.PlaySound(new SuperSpeed(), 0.2); }; }; }; } else { if (_arg1 == 3){ if (game_mc.powerupIcon3.currentFrame == 2){ game_mc.spawnShockWave(); turnOffPower(_arg1); sPlayer.PlaySound(new Shockwave()); } else { if (game_mc.powerupIcon3.currentFrame == 3){ if (game_mc.meteorZone_mc.numChildren > 0){ addChild(new LazerEyes(this, _arg1)); sPlayer.PlaySound(new Laser()); } else { return; }; } else { if (game_mc.powerupIcon3.currentFrame == 4){ game_mc.activateSuperSpeed(); turnOffPower(_arg1); sPlayer.PlaySound(new SuperSpeed(), 0.2); }; }; }; }; }; }; } private function clickForPower(_arg1:MouseEvent):void{ if ((((game_mc.powerupIcon1.currentFrame > 1)) && ((gameState == 1)))){ usePower(1); }; } private function gameOver():void{ game_mc.gameOver_mc.score_dt.text = ("Score: " + game_mc.score); game_mc.gameOver_mc.menu_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.gameOver_mc.menu_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.gameOver_mc.menu_btn.addEventListener(MouseEvent.MOUSE_UP, gotoMainMenu); game_mc.gameOver_mc.moreGames_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); game_mc.gameOver_mc.moreGames_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); game_mc.gameOver_mc.moreGames_btn.addEventListener(MouseEvent.MOUSE_UP, gotoMoreGames); } private function Run():void{ switch (gameState){ case 0: game_mc.gameTimer.stop(); game_mc.gameTimer.reset(); stage.removeEventListener(Event.ENTER_FRAME, updateGame); stage.removeEventListener(MouseEvent.MOUSE_DOWN, clickForPower); Mouse.show(); break; case 1: Mouse.hide(); game_mc.gameTimer.start(); stage.addEventListener(Event.ENTER_FRAME, updateGame); stage.addEventListener(MouseEvent.MOUSE_DOWN, clickForPower); break; case 2: game_mc.gameTimer.stop(); stage.removeEventListener(Event.ENTER_FRAME, updateGame); stage.removeEventListener(MouseEvent.MOUSE_DOWN, clickForPower); Mouse.show(); openPauseScreen(); break; }; } function frame2(){ changeState(0); } function frame3(){ gotoAndStop("game"); } public function removeSparkle(_arg1:Event):void{ if (sparkle_mc.currentFrame == sparkle_mc.totalFrames){ sparkle_mc.removeEventListener(Event.ENTER_FRAME, removeSparkle); removeChild(sparkle_mc); }; } public function turnOffPower(_arg1:int):void{ if (_arg1 == 1){ game_mc.powerupIcon1.gotoAndStop(game_mc.powerupIcon2.currentFrame); game_mc.powerupIcon2.gotoAndStop(game_mc.powerupIcon3.currentFrame); game_mc.powerupIcon3.gotoAndStop(1); } else { if (_arg1 == 2){ game_mc.powerupIcon2.gotoAndStop(game_mc.powerupIcon3.currentFrame); game_mc.powerupIcon3.gotoAndStop(1); } else { if (_arg1 == 3){ game_mc.powerupIcon3.gotoAndStop(1); }; }; }; } private function loadPolyphone(_arg1:MouseEvent):void{ polyURL = new URLRequest("http://www.polyphonemusic.com"); navigateToURL(polyURL, "_blank"); } private function gotoGame(_arg1:MouseEvent):void{ if (blnHasSeenTutorial == true){ game_mc.gotoAndStop(4); stage.addEventListener(Event.ENTER_FRAME, runGame); } else { game_mc.gotoAndStop(6); stage.addEventListener(Event.ENTER_FRAME, runTutorial); }; } public function MouseOver(_arg1:MouseEvent):void{ _arg1.target.gotoAndStop(2); if (this.currentFrame > 1){ sPlayer.PlaySound(new Button()); }; } public function loadHeroWebsite(_arg1:MouseEvent):void{ heroURL = new URLRequest("http://www.herointeractive.com"); navigateToURL(heroURL, "_blank"); } } }//package
Section 44
//MainMusic (MainMusic) package { import flash.media.*; public dynamic class MainMusic extends Sound { } }//package
Section 45
//MenuMusic (MenuMusic) package { import flash.media.*; public dynamic class MenuMusic extends Sound { } }//package
Section 46
//Meteor (Meteor) package { import flash.display.*; import flash.events.*; public class Meteor extends MovieClip { private var initX; private var initY; private var diceRoll:Number; public var mainRef:Main; public var vX; public var vY; private var targetX;// = 300 private var maxVY; private var targetY;// = 530 public var blnShattered:Boolean; public var blnDead:Boolean; public var type:Number; public var mass:Number; private function RandNum(_arg1:Number, _arg2:Number):Number{ return (Math.round((((Math.random() * ((_arg2 - _arg1) + 0.8)) + _arg1) - 0.4))); } public function behavior():void{ if ((((mainRef.currentState() == 1)) && ((blnShattered == false)))){ if (vY < maxVY){ vY = (vY + 0.2); }; if ((((((((this.y < ((targetY + initY) + 100))) && ((this.y >= (initY - 100))))) && ((this.x > (0 - (this.width / 2)))))) && ((this.x < (600 + (this.width / 2)))))){ this.x = (this.x + vX); this.y = (this.y + vY); } else { if ((((((this.x > (10 - (this.width / 2)))) && ((this.x < (590 + (this.width / 2)))))) && ((this.y > (initY - 10))))){ blnDead = true; mainRef.shakeScreen((this.width / 50)); this.gotoAndPlay((this.currentFrame + 1)); animationCheck(); } else { if (this.y < (initY - 100)){ mainRef.game_mc.adjustScore(((this.width * this.scaleX) + 500)); mainRef.game_mc.DeleteMeteor(this); } else { mainRef.game_mc.adjustScore((((this.width * this.scaleX) + 500) - this.y)); mainRef.game_mc.DeleteMeteor(this); }; }; }; }; } public function Setup(_arg1:Main, _arg2:Number):void{ mainRef = _arg1; blnShattered = false; blnDead = false; var _local3:* = RandNum(1, 10); type = (_arg2 + 1); if (_local3 <= 9){ this.scaleX = (RandNum(100, 150) / 100); } else { this.scaleX = (RandNum(200, 300) / 100); }; this.scaleY = this.scaleX; this.x = RandNum(0, 600); this.y = (-100 - (this.height / 2)); initX = this.x; initY = this.y; diceRoll = RandNum(0, 1); if (diceRoll == 0){ maxVY = (1 + ((mainRef.game_mc.gameTimer.currentCount / 80) * Math.sqrt((mainRef.game_mc.gameTimer.currentCount / 20)))); } else { maxVY = RandNum(3, 6); }; if ((((this.height < 100)) && ((maxVY > 6)))){ maxVY = 6; } else { if (maxVY > 15){ maxVY = 15; }; }; if ((((mainRef.game_mc.gameTimer.currentCount < 30)) && ((maxVY > 4)))){ maxVY = 4; }; vY = (((targetY - initY) / (this.scaleX * this.scaleX)) / 200); vX = ((targetX - initX) / 400); mass = (this.scaleX * 80); } public function shatter():void{ if (blnShattered == false){ this.gotoAndPlay(26); mainRef.game_mc.spliceArray(this); mainRef.game_mc.adjustScore(800); mainRef.sPlayer.PlaySound(new Shatter()); }; blnShattered = true; this.addEventListener(Event.ENTER_FRAME, shatterAnimationCheck); } private function animationCheck():void{ var _local1:MovieClip; if (this.currentFrame == 2){ mainRef.game_mc.adjustHealth((this.width / 5)); mainRef.sPlayer.PlaySound(new Impact()); mainRef.sPlayer.PlaySound(new Fire(), 0.5); }; if (this.currentFrame == 25){ _local1 = new meteorImpact(); mainRef.game_mc.graveyard.addChild(_local1); _local1.x = (this.x + 1); _local1.y = ((this.y + (this.height / 4)) + 1); if (type == 1){ _local1.scaleX = this.scaleX; } else { if (type == 2){ _local1.scaleX = (this.scaleX * 1.5); }; }; _local1.scaleY = _local1.scaleX; mainRef.game_mc.DeleteMeteor(this); }; } private function shatterAnimationCheck(_arg1:Event):void{ if (this.currentFrame == 50){ mainRef.game_mc.shortenDelay(); this.removeEventListener(Event.ENTER_FRAME, shatterAnimationCheck); KillMe(); }; } public function KillMe():void{ var _local1:* = mainRef.game_mc.hero_mc.getCurrentTarget(); if (_local1 == this){ mainRef.game_mc.hero_mc.clearCurrentTarget(); mainRef.game_mc.hero_mc.gotoAndStop(nextFrame); }; mainRef.game_mc.meteorZone_mc.removeChild(this); } } }//package
Section 47
//meteorA (meteorA) package { public dynamic class meteorA extends Meteor { public function meteorA(){ addFrameScript(0, frame1, 24, frame25); } function frame25(){ stop(); } function frame1(){ stop(); } } }//package
Section 48
//meteorB (meteorB) package { public dynamic class meteorB extends Meteor { public function meteorB(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 49
//meteorImpact (meteorImpact) package { import flash.display.*; public dynamic class meteorImpact extends MovieClip { public function meteorImpact(){ addFrameScript(399, frame400); } function frame400(){ stop(); } } }//package
Section 50
//MusicPlayer (MusicPlayer) package { import flash.display.*; import flash.events.*; import flash.media.*; public class MusicPlayer { private var numMasterVolume:Number; private var strDefaultTransition:String; private var blnMusicOn:Boolean; private var intTransitionCounterCurrent:int; var chnMusicChannel0:SoundChannel; var chnMusicChannel1:SoundChannel; var arrChannelData:Array; private var intMode:int; private var intTransitionCounterTotal:int; private var intDefaultTransitionTime:int; public function MusicPlayer(_arg1:Stage){ blnMusicOn = true; numMasterVolume = 1; strDefaultTransition = "FadeOutFadeIn"; intDefaultTransitionTime = 120; _arg1.addEventListener(Event.ENTER_FRAME, Run); arrChannelData = new Array(); arrChannelData.push({sndMusic:null, dblVolume:1, blnLoop:true, strTransitionEffect:"", intTransitionTime:2}); arrChannelData.push({sndMusic:null, dblVolume:1, blnLoop:true, strTransitionEffect:"", intTransitionTime:2}); } public function Channel0Complete(_arg1:Event):void{ var _local2:SoundTransform; if (arrChannelData[0].blnLoop == true){ _local2 = new SoundTransform(); chnMusicChannel0 = arrChannelData[0].sndMusic.play(0, 1); _local2.volume = (numMasterVolume * arrChannelData[0].dblVolume); chnMusicChannel0.soundTransform = _local2; chnMusicChannel0.addEventListener(Event.SOUND_COMPLETE, Channel0Complete); } else { intMode = 0; }; } public function Channel1Complete(_arg1:Event):void{ var _local2:SoundTransform; if (arrChannelData[1].blnLoop == true){ _local2 = new SoundTransform(); chnMusicChannel1 = arrChannelData[1].sndMusic.play(0, 1); _local2.volume = (numMasterVolume * arrChannelData[1].dblVolume); chnMusicChannel1.soundTransform = _local2; chnMusicChannel1.addEventListener(Event.SOUND_COMPLETE, Channel1Complete); } else { intMode = 0; }; } public function set musicOn(_arg1:Boolean):void{ var _local2:* = blnMusicOn; blnMusicOn = _arg1; if (_local2 == _arg1){ return; }; if (blnMusicOn == true){ RestartMusic(); } else { HaltMusic(); }; } private function HaltMusic():void{ switch (intMode){ case 0: break; case 1: case 2: chnMusicChannel0.stop(); break; case 3: chnMusicChannel0.stop(); arrChannelData[0].sndMusic = null; break; case 4: try { chnMusicChannel0.stop(); } catch(e:Error) { }; try { chnMusicChannel1.stop(); } catch(e:Error) { }; arrChannelData[0].sndMusic = arrChannelData[1].sndMusic; arrChannelData[0].dblVolume = arrChannelData[1].dblVolume; arrChannelData[0].blnLoop = arrChannelData[1].blnLoop; arrChannelData[0].strTransitionEffect = arrChannelData[1].strTransitionEffect; arrChannelData[0].intTransitionTime = arrChannelData[1].intTransitionTime; break; case 5: case 6: chnMusicChannel1.stop(); arrChannelData[0].sndMusic = arrChannelData[1].sndMusic; arrChannelData[0].dblVolume = arrChannelData[1].dblVolume; arrChannelData[0].blnLoop = arrChannelData[1].blnLoop; arrChannelData[0].strTransitionEffect = arrChannelData[1].strTransitionEffect; arrChannelData[0].intTransitionTime = arrChannelData[1].intTransitionTime; break; case 7: chnMusicChannel1.stop(); arrChannelData[0].sndMusic = null; break; case 8: try { chnMusicChannel0.stop(); } catch(e:Error) { }; try { chnMusicChannel1.stop(); } catch(e:Error) { }; break; }; } private function FadeOut(_arg1:int, _arg2:Boolean=false):void{ var _local3:Number = (numMasterVolume * arrChannelData[_arg1].dblVolume); if (intTransitionCounterTotal == 0){ if (_arg1 == 0){ chnMusicChannel0.stop(); } else { chnMusicChannel1.stop(); }; intMode = 0; return; }; intTransitionCounterCurrent++; var _local4:int = intTransitionCounterTotal; if (_arg2 == true){ _local4 = Math.round((intTransitionCounterTotal / 2)); }; var _local5:Number = (intTransitionCounterCurrent / intTransitionCounterTotal); if (_local5 > 1){ _local5 = 1; }; var _local6:Number = (_local3 * (1 - _local5)); var _local7:SoundTransform = new SoundTransform(); _local7.volume = _local6; if (_arg1 == 0){ chnMusicChannel0.soundTransform = _local7; } else { chnMusicChannel1.soundTransform = _local7; }; _local7 = new SoundTransform(); if (_local5 == 1){ if (_arg1 == 0){ if (_arg2 == true){ intTransitionCounterTotal = Math.round((intTransitionCounterTotal / 2)); intTransitionCounterCurrent = 0; intMode = 5; chnMusicChannel0.stop(); chnMusicChannel1 = arrChannelData[1].sndMusic.play(0, 1); _local7.volume = 0; chnMusicChannel1.soundTransform = _local7; chnMusicChannel1.addEventListener(Event.SOUND_COMPLETE, Channel1Complete); } else { chnMusicChannel0.stop(); intMode = 0; }; } else { if (_arg1 == 1){ if (_arg2 == true){ intTransitionCounterTotal = Math.round((intTransitionCounterTotal / 2)); intTransitionCounterCurrent = 0; intMode = 1; chnMusicChannel1.stop(); chnMusicChannel0 = arrChannelData[0].sndMusic.play(0, 1); _local7.volume = 0; chnMusicChannel0.soundTransform = _local7; chnMusicChannel0.addEventListener(Event.SOUND_COMPLETE, Channel0Complete); } else { chnMusicChannel1.stop(); intMode = 0; }; }; }; }; } public function Run(_arg1:Event):void{ if (blnMusicOn == false){ return; }; switch (intMode){ case 1: if ((arrChannelData[0].strTransitionEffect == "FadeOutFadeIn")){ FadeIn(0); }; break; case 4: if ((arrChannelData[1].strTransitionEffect == "FadeOutFadeIn")){ FadeOut(0, true); }; break; case 5: if ((arrChannelData[1].strTransitionEffect == "FadeOutFadeIn")){ FadeIn(1); }; break; case 8: if ((arrChannelData[0].strTransitionEffect == "FadeOutFadeIn")){ FadeOut(1, true); }; break; }; } private function FadeIn(_arg1:int):void{ var _local2:Number = (numMasterVolume * arrChannelData[_arg1].dblVolume); if (intTransitionCounterTotal == 0){ if (_arg1 == 0){ intMode = 2; } else { intMode = 6; }; return; }; intTransitionCounterCurrent++; var _local3:Number = (intTransitionCounterCurrent / intTransitionCounterTotal); if (_local3 > 1){ _local3 = 1; }; var _local4:Number = (_local2 * _local3); if (_local3 == 1){ if (_arg1 == 0){ intMode = 2; } else { intMode = 6; }; }; var _local5:SoundTransform = new SoundTransform(); _local5.volume = _local4; if (_arg1 == 0){ chnMusicChannel0.soundTransform = _local5; } else { chnMusicChannel1.soundTransform = _local5; }; } public function PlayMusic(_arg1:Sound, _arg2:Number=1, _arg3:Boolean=true, _arg4:String="%%%", _arg5:int=-1):void{ if (_arg2 < 0){ _arg2 = 0; } else { if (_arg2 > 1){ _arg2 = 1; }; }; if (_arg4 == "%%%"){ _arg4 = strDefaultTransition; }; if (_arg5 == -1){ _arg5 = intDefaultTransitionTime; }; if (_arg5 < 0){ _arg5 = 0; }; if (_arg5 == 0){ _arg4 = "None"; }; if (_arg4 != "FadeOutFadeIn"){ _arg4 = strDefaultTransition; }; if (blnMusicOn == false){ arrChannelData[0].sndMusic = _arg1; arrChannelData[0].dblVolume = _arg2; arrChannelData[0].blnLoop = _arg3; return; }; var _local6:SoundTransform = new SoundTransform(); switch (intMode){ case 0: chnMusicChannel0 = _arg1.play(0, 1); _local6.volume = 0; chnMusicChannel0.soundTransform = _local6; chnMusicChannel0.addEventListener(Event.SOUND_COMPLETE, Channel0Complete); intMode = 1; arrChannelData[0].sndMusic = _arg1; arrChannelData[0].dblVolume = _arg2; arrChannelData[0].blnLoop = _arg3; arrChannelData[0].strTransitionEffect = _arg4; arrChannelData[0].intTransitionTime = _arg5; intTransitionCounterTotal = _arg5; intTransitionCounterCurrent = 0; break; case 2: intMode = 4; arrChannelData[1].sndMusic = _arg1; arrChannelData[1].dblVolume = _arg2; arrChannelData[1].blnLoop = _arg3; arrChannelData[1].strTransitionEffect = _arg4; arrChannelData[1].intTransitionTime = _arg5; intTransitionCounterTotal = _arg5; intTransitionCounterCurrent = 0; break; case 6: intMode = 8; arrChannelData[0].sndMusic = _arg1; arrChannelData[0].dblVolume = _arg2; arrChannelData[0].blnLoop = _arg3; arrChannelData[0].strTransitionEffect = _arg4; arrChannelData[0].intTransitionTime = _arg5; intTransitionCounterTotal = _arg5; intTransitionCounterCurrent = 0; break; }; } private function RestartMusic():void{ if (arrChannelData[0].sndMusic == null){ return; }; var _local1:SoundTransform = new SoundTransform(); chnMusicChannel0 = arrChannelData[0].sndMusic.play(0, 1); _local1.volume = (numMasterVolume * arrChannelData[0].dblVolume); chnMusicChannel0.soundTransform = _local1; chnMusicChannel0.addEventListener(Event.SOUND_COMPLETE, Channel0Complete); } public function get musicOn():Boolean{ return (blnMusicOn); } } }//package
Section 51
//PauseScreen (PauseScreen) package { import flash.display.*; import flash.events.*; public class PauseScreen extends MovieClip { public var continue_btn:MovieClip; public var moreGames_btn:MovieClip; public var mainRef:Main; public var menu_btn:MovieClip; public function destroy():void{ stage.removeChild(this); } public function Setup(_arg1:Main):void{ mainRef = _arg1; continue_btn.addEventListener(MouseEvent.MOUSE_OVER, mainRef.MouseOver); continue_btn.addEventListener(MouseEvent.MOUSE_OUT, mainRef.MouseOut); continue_btn.addEventListener(MouseEvent.MOUSE_UP, mainRef.unPause); menu_btn.addEventListener(MouseEvent.MOUSE_OVER, mainRef.MouseOver); menu_btn.addEventListener(MouseEvent.MOUSE_OUT, mainRef.MouseOut); menu_btn.addEventListener(MouseEvent.MOUSE_UP, mainRef.gotoMainMenu); moreGames_btn.addEventListener(MouseEvent.MOUSE_OVER, mainRef.MouseOver); moreGames_btn.addEventListener(MouseEvent.MOUSE_OUT, mainRef.MouseOut); moreGames_btn.addEventListener(MouseEvent.MOUSE_UP, mainRef.gotoMoreGames); } } }//package
Section 52
//PauseScreenOverlay (PauseScreenOverlay) package { public dynamic class PauseScreenOverlay extends PauseScreen { } }//package
Section 53
//Pickup (Pickup) package { import flash.media.*; public dynamic class Pickup extends Sound { } }//package
Section 54
//Pickups (Pickups) package { import flash.display.*; import flash.events.*; public class Pickups extends MovieClip { private var yMultiplier:Number; private var diceRoll:Number; private var xOffset:Number; private var initialY:Number; var mainRef:Main; private var pickupType:int; public function motion(){ if (diceRoll == 0){ if (this.x < 660){ this.x = (this.x + 4); this.y = ((Math.sin((x / xOffset)) * yMultiplier) + initialY); HitTest(); } else { this.removeEventListener(Event.ENTER_FRAME, motion); mainRef.game_mc.activePickups.splice(0, 1); mainRef.removeMC(this); }; } else { if (diceRoll == 1){ if (this.x > -60){ this.x = (this.x - 4); this.y = ((Math.sin((x / xOffset)) * yMultiplier) + initialY); HitTest(); } else { this.removeEventListener(Event.ENTER_FRAME, motion); mainRef.game_mc.activePickups.splice(0, 1); mainRef.removeMC(this); }; }; }; } private function HitTest():void{ if ((((Math.abs((this.x - mainRef.game_mc.hero_mc.x)) <= (this.width / 2))) && ((Math.abs((this.y - mainRef.game_mc.hero_mc.y)) <= (this.height / 2))))){ mainRef.turnOnPower(pickupType); mainRef.addSparkle(this.x, this.y); mainRef.game_mc.activePickups.splice(0, 1); mainRef.removeMC(this); mainRef.sPlayer.PlaySound(new Pickup(), 0.1); }; } private function RandNum(_arg1:Number, _arg2:Number):Number{ return (Math.round((((Math.random() * ((_arg2 - _arg1) + 0.8)) + _arg1) - 0.4))); } public function Setup(_arg1:Main, _arg2:int):void{ mainRef = _arg1; pickupType = (_arg2 + 1); diceRoll = RandNum(0, 1); if (diceRoll == 0){ this.x = (0 - RandNum(20, 60)); } else { if (diceRoll == 1){ this.x = RandNum(620, 660); }; }; initialY = RandNum(200, 350); this.scaleX = 0.75; this.scaleY = 0.75; xOffset = RandNum(50, 100); yMultiplier = RandNum(50, 200); } } }//package
Section 55
//PickupSparkle (PickupSparkle) package { import flash.display.*; public dynamic class PickupSparkle extends MovieClip { } }//package
Section 56
//Preloader (Preloader) package { import flash.display.*; import flash.events.*; import flash.net.*; import CPMStar.*; public class Preloader extends MovieClip { public var continue_btn:MovieClip; public var heroLogo:MovieClip; private var CPMStarPoolID:int;// = 1052 private var CPMStarSubPoolID:int;// = 13 private var sponsorLoader:URLLoader; public var mainRef:Main; private var ad:DisplayObject; public var adBox:MovieClip; private var frame:Number; public var agLogo:MovieClip; private var sponsorURL:URLRequest; public var preloader:LoadingBar; private function MouseOut(_arg1:MouseEvent):void{ _arg1.target.gotoAndStop(1); } public function Setup(_arg1:Main):void{ mainRef = _arg1; if (adBox != null){ ad = AdLoader.LoadAd(CPMStarPoolID, CPMStarSubPoolID); adBox.addChild(ad); }; mainRef.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onRootLoaderProgress); mainRef.loaderInfo.addEventListener(Event.COMPLETE, onRootLoaderComplete); } private function animationCheck(_arg1:Event):void{ if (this.currentFrame == 3){ agLogo.addEventListener(MouseEvent.MOUSE_UP, mainRef.gotoMoreGames); } else { if (this.currentFrame == 179){ agLogo.removeEventListener(MouseEvent.MOUSE_UP, mainRef.gotoMoreGames); } else { if (this.currentFrame == 182){ heroLogo.addEventListener(MouseEvent.MOUSE_UP, mainRef.loadHeroWebsite); } else { if (this.currentFrame == this.totalFrames){ heroLogo.removeEventListener(MouseEvent.MOUSE_UP, mainRef.loadHeroWebsite); gotoMenu(); }; }; }; }; } private function onRootLoaderProgress(_arg1:ProgressEvent):void{ frame = int(((mainRef.loaderInfo.bytesLoaded / mainRef.loaderInfo.bytesTotal) * 100)); if (frame < 100){ frame = int(((mainRef.loaderInfo.bytesLoaded / mainRef.loaderInfo.bytesTotal) * 100)); preloader.gotoAndStop(frame); }; } private function playAnimation(_arg1:MouseEvent):void{ if (mainRef.objUrlLocking.GetLocked() == false){ removeChild(adBox); mainRef.removePreloader(continue_btn); removeChild(preloader); gotoAndPlay(2); this.addEventListener(Event.ENTER_FRAME, animationCheck); } else { mainRef.gotoAndStop("locked"); }; } private function MouseOver(_arg1:MouseEvent):void{ _arg1.target.gotoAndStop(2); } private function gotoMenu():void{ mainRef.removePreloader(this); mainRef.gotoAndStop("load"); } private function onRootLoaderComplete(_arg1:Event):void{ preloader.gotoAndStop(frame); continue_btn = new ContinueBTN(); continue_btn.x = 300; continue_btn.y = 356; mainRef.addChild(continue_btn); continue_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver); continue_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut); continue_btn.addEventListener(MouseEvent.MOUSE_UP, playAnimation); } } }//package
Section 57
//ScreenEffects (ScreenEffects) package { import flash.display.*; import flash.events.*; class ScreenEffects { private var blnShakeMode:Boolean; private var intShakeStart:Number; private var intShakeDuration:Number; private var arrScreenEffects:Array; private var mainRef:Main; private var vecScreenCoords:LineVector; private var intShakeCounter:Number; private var stageRef:Stage; private var vecPreScreenCoords:LineVector; function ScreenEffects(_arg1:Main, _arg2:Stage):void{ intShakeDuration = 0; mainRef = _arg1; stageRef = _arg2; mainRef.addEventListener(Event.ENTER_FRAME, Run); arrScreenEffects = new Array(); intShakeDuration = 0; intShakeCounter = 0; intShakeStart = 0; ShakeSetup(); } private function RandNum(_arg1:Number, _arg2:Number):Number{ return ((Math.round((Math.random() * (_arg2 - _arg1))) + _arg1)); } public function Off():void{ blnShakeMode = false; HaltShaking(); } public function FLASH():void{ var sFlashMC:MovieClip; try { sFlashMC = new MovieClip(); sFlashMC.x = -40; sFlashMC.y = -40; sFlashMC.graphics.beginFill(0xFFFFFF, 1); sFlashMC.graphics.drawRect(0, 0, (stageRef.width + 80), (stageRef.height + 80)); mainRef.addChild(sFlashMC); arrScreenEffects.push(sFlashMC); } catch(e:Error) { trace("FLASH(); Error in ScreenEffects.as"); }; } public function DeleteMainRefEventListener():void{ mainRef.removeEventListener(Event.ENTER_FRAME, Run); } private function MoveWorld(_arg1:LineVector):void{ _arg1.x = Math.round(_arg1.x); _arg1.y = Math.round(_arg1.y); mainRef.x = (mainRef.x + _arg1.x); mainRef.y = (mainRef.y + _arg1.y); } public function HaltShaking():void{ var _local1:Number; var _local2:Number; var _local3:LineVector; if (((!((mainRef.x == vecPreScreenCoords.x))) || (!((mainRef.y == vecPreScreenCoords.y))))){ intShakeDuration = 0; _local1 = (vecPreScreenCoords.x - mainRef.x); _local2 = (vecPreScreenCoords.y - mainRef.y); mainRef.x = vecPreScreenCoords.x; mainRef.y = vecPreScreenCoords.y; _local3 = new LineVector(); _local3.x = _local1; _local3.y = _local2; MoveWorld(vecPreScreenCoords); }; } public function SHAKE(_arg1:Number):void{ if (intShakeDuration == 0){ intShakeDuration = _arg1; intShakeStart = _arg1; intShakeCounter = 3; vecPreScreenCoords.x = mainRef.x; vecPreScreenCoords.y = mainRef.y; }; } private function FadeFlashMCs():void{ var _local1:Number = 0; while (_local1 < arrScreenEffects.length) { if (arrScreenEffects[_local1].alpha <= 0){ KillMe(arrScreenEffects[_local1]); arrScreenEffects.splice(_local1, 1); _local1--; } else { arrScreenEffects[_local1].alpha = (arrScreenEffects[_local1].alpha - 0.1); }; _local1++; }; } private function Run(_arg1:Event):void{ ManageShaking(); FadeFlashMCs(); } public function KillMe(_arg1:MovieClip):void{ var flashSucks:MovieClip; var i:Number; var effectName = _arg1; try { flashSucks = effectName; i = 0; while (i < arrScreenEffects.length) { if (arrScreenEffects[i] == flashSucks){ mainRef.removeChild(flashSucks); }; break; i = (i + 1); }; } catch(e:Error) { trace("KillMe(); Error in ScreenEffects.as"); }; } public function ShakeSetup():void{ intShakeDuration = 0; blnShakeMode = true; arrScreenEffects = new Array(); vecScreenCoords = (vecPreScreenCoords = new LineVector()); vecScreenCoords.x = (vecPreScreenCoords.x = mainRef.x); vecScreenCoords.y = (vecPreScreenCoords.y = mainRef.y); HaltShaking(); } private function ManageShaking():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:LineVector; if (intShakeDuration > 0){ intShakeDuration--; if (intShakeDuration == 0){ HaltShaking(); } else { intShakeCounter--; if (intShakeCounter == 0){ intShakeCounter = 3; _local1 = (intShakeDuration / intShakeStart); _local2 = 2; if (intShakeStart > 45){ _local2 = 4; }; _local3 = (vecPreScreenCoords.x + (RandNum((-1 * _local2), _local2) * _local1)); _local4 = (vecPreScreenCoords.y + (RandNum((-1 * _local2), _local2) * _local1)); _local5 = (_local3 - mainRef.x); _local6 = (_local4 - mainRef.y); mainRef.x = _local3; mainRef.y = _local4; _local7 = new LineVector(); _local7.x = _local5; _local7.y = _local6; MoveWorld(_local7); }; }; }; } public function On():void{ blnShakeMode = true; } } }//package
Section 58
//Shatter (Shatter) package { import flash.media.*; public dynamic class Shatter extends Sound { } }//package
Section 59
//ShockWave (ShockWave) package { import flash.display.*; import flash.events.*; public class ShockWave extends MovieClip { private var ActiveEnemies:Array; var mainRef:Main; private var distanceToMeteor; private function expand(_arg1:Event):void{ this.scaleX = (this.scaleX * 1.5); this.scaleY = this.scaleX; this.alpha = (this.alpha * 1); if (this.width >= 1200){ this.removeEventListener(Event.ENTER_FRAME, expand); mainRef.game_mc.removeChild(this); }; HitTest(); } public function HitTest():void{ var _local1:int; ActiveEnemies = mainRef.game_mc.getActiveEnemies(); if (ActiveEnemies.length > 0){ _local1 = 0; while (_local1 < ActiveEnemies.length) { distanceToMeteor = Math.sqrt(Math.abs((((this.x - ActiveEnemies[_local1].x) * (this.x - ActiveEnemies[_local1].x)) + ((this.y - ActiveEnemies[_local1].y) * (this.y - ActiveEnemies[_local1].y))))); if ((((((distanceToMeteor <= (this.width / 4))) && ((ActiveEnemies[_local1].blnShattered == false)))) && ((ActiveEnemies[_local1].blnDead == false)))){ ActiveEnemies[_local1].shatter(); }; _local1++; }; }; } public function Setup(_arg1:Main):void{ mainRef = _arg1; ActiveEnemies = mainRef.game_mc.getActiveEnemies(); this.addEventListener(Event.ENTER_FRAME, expand); } } }//package
Section 60
//Shockwave (Shockwave) package { import flash.media.*; public dynamic class Shockwave extends Sound { } }//package
Section 61
//ShockWaveIcon (ShockWaveIcon) package { import flash.display.*; public dynamic class ShockWaveIcon extends MovieClip { public function ShockWaveIcon(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 62
//ShockWavePickup (ShockWavePickup) package { public dynamic class ShockWavePickup extends Pickups { } }//package
Section 63
//ShockWavePower (ShockWavePower) package { public dynamic class ShockWavePower extends ShockWave { } }//package
Section 64
//SoundPlayer (SoundPlayer) package { import flash.events.*; import flash.media.*; public class SoundPlayer { private var numMasterVolume:Number; private var blnSoundOn:Boolean; var arrChannelOriginalVolume:Array; var chnSoundChannel1:SoundChannel; var chnSoundChannel2:SoundChannel; var chnSoundChannel3:SoundChannel; var chnSoundChannel4:SoundChannel; var chnSoundChannel5:SoundChannel; var chnSoundChannel6:SoundChannel; var chnSoundChannel7:SoundChannel; var arrChannelInUse:Array; public function SoundPlayer(){ blnSoundOn = true; numMasterVolume = 1; arrChannelInUse = new Array(false, false, false, false, false, false, false, false); arrChannelOriginalVolume = new Array(1, 1, 1, 1, 1, 1, 1, 1); } public function StopAllSounds():void{ if (arrChannelInUse[1]){ chnSoundChannel1.stop(); }; if (arrChannelInUse[2]){ chnSoundChannel2.stop(); }; if (arrChannelInUse[3]){ chnSoundChannel3.stop(); }; if (arrChannelInUse[4]){ chnSoundChannel4.stop(); }; if (arrChannelInUse[5]){ chnSoundChannel5.stop(); }; if (arrChannelInUse[6]){ chnSoundChannel6.stop(); }; if (arrChannelInUse[7]){ chnSoundChannel7.stop(); }; var _local1:int; while (_local1 < arrChannelInUse.length) { arrChannelInUse[_local1] = false; _local1++; }; } public function Channel1Complete(_arg1:Event):void{ arrChannelInUse[1] = false; } public function Channel2Complete(_arg1:Event):void{ arrChannelInUse[2] = false; } public function Channel3Complete(_arg1:Event):void{ arrChannelInUse[3] = false; } public function Channel5Complete(_arg1:Event):void{ arrChannelInUse[5] = false; } public function Channel6Complete(_arg1:Event):void{ arrChannelInUse[6] = false; } public function get soundOn():Boolean{ return (blnSoundOn); } public function StopSoundLoop():void{ arrChannelInUse[7] = false; chnSoundChannel7.stop(); } public function set soundOn(_arg1:Boolean):void{ blnSoundOn = _arg1; if (_arg1 == false){ StopAllSounds(); }; } public function PlaySoundLoop(_arg1:Sound, _arg2:Number=1, _arg3:Number=0):void{ if (arrChannelInUse[7] == true){ return; }; if (_arg2 > 1){ _arg2 = 1; } else { if (_arg2 < 0){ _arg2 = 0; }; }; if (_arg3 > 1){ _arg3 = 1; } else { if (_arg3 < -1){ _arg3 = 1; }; }; arrChannelInUse[7] = true; var _local4:SoundTransform = new SoundTransform(); chnSoundChannel7 = _arg1.play(0, 99999); _local4.volume = (_arg2 * numMasterVolume); _local4.pan = _arg3; chnSoundChannel7.soundTransform = _local4; } public function PlaySound(_arg1:Sound, _arg2:Number=1, _arg3:Number=0):void{ if (blnSoundOn == false){ return; }; var _local4 = -1; var _local5:Number = 1; while (_local5 < 7) { if (arrChannelInUse[_local5] == false){ _local4 = _local5; break; }; _local5++; }; if (_local4 == -1){ return; }; if (_arg2 > 1){ _arg2 = 1; } else { if (_arg2 < 0){ _arg2 = 0; }; }; if (_arg3 > 1){ _arg3 = 1; } else { if (_arg3 < -1){ _arg3 = 1; }; }; arrChannelInUse[_local4] = true; arrChannelOriginalVolume[_local4] = _arg2; var _local6:SoundTransform = new SoundTransform(); switch (_local4){ case 1: chnSoundChannel1 = _arg1.play(0, 1); _local6.volume = (_arg2 * numMasterVolume); _local6.pan = _arg3; chnSoundChannel1.soundTransform = _local6; chnSoundChannel1.addEventListener(Event.SOUND_COMPLETE, Channel1Complete); break; case 2: chnSoundChannel2 = _arg1.play(0, 1); _local6.volume = (_arg2 * numMasterVolume); _local6.pan = _arg3; chnSoundChannel2.soundTransform = _local6; chnSoundChannel2.addEventListener(Event.SOUND_COMPLETE, Channel2Complete); break; case 3: chnSoundChannel3 = _arg1.play(0, 1); _local6.volume = (_arg2 * numMasterVolume); _local6.pan = _arg3; chnSoundChannel3.soundTransform = _local6; chnSoundChannel3.addEventListener(Event.SOUND_COMPLETE, Channel3Complete); break; case 4: chnSoundChannel4 = _arg1.play(0, 1); _local6.volume = (_arg2 * numMasterVolume); _local6.pan = _arg3; chnSoundChannel4.soundTransform = _local6; chnSoundChannel4.addEventListener(Event.SOUND_COMPLETE, Channel4Complete); break; case 5: chnSoundChannel5 = _arg1.play(0, 1); _local6.volume = (_arg2 * numMasterVolume); _local6.pan = _arg3; chnSoundChannel5.soundTransform = _local6; chnSoundChannel5.addEventListener(Event.SOUND_COMPLETE, Channel5Complete); break; case 6: chnSoundChannel6 = _arg1.play(0, 1); _local6.volume = (_arg2 * numMasterVolume); _local6.pan = _arg3; chnSoundChannel6.soundTransform = _local6; chnSoundChannel6.addEventListener(Event.SOUND_COMPLETE, Channel6Complete); break; }; } public function get masterVolume():Number{ return (numMasterVolume); } public function Channel4Complete(_arg1:Event):void{ arrChannelInUse[4] = false; } public function set masterVolume(_arg1:Number):void{ var _local2:SoundTransform; if (_arg1 > 1){ _arg1 = 1; } else { if (_arg1 < 0){ _arg1 = 0; }; }; numMasterVolume = _arg1; if (arrChannelInUse[1]){ _local2 = new SoundTransform(); _local2.volume = (arrChannelOriginalVolume[1] * numMasterVolume); chnSoundChannel1.soundTransform = _local2; }; if (arrChannelInUse[2]){ _local2 = new SoundTransform(); _local2.volume = (arrChannelOriginalVolume[2] * numMasterVolume); chnSoundChannel2.soundTransform = _local2; }; if (arrChannelInUse[3]){ _local2 = new SoundTransform(); _local2.volume = (arrChannelOriginalVolume[3] * numMasterVolume); chnSoundChannel3.soundTransform = _local2; }; if (arrChannelInUse[4]){ _local2 = new SoundTransform(); _local2.volume = (arrChannelOriginalVolume[4] * numMasterVolume); chnSoundChannel4.soundTransform = _local2; }; if (arrChannelInUse[5]){ _local2 = new SoundTransform(); _local2.volume = (arrChannelOriginalVolume[5] * numMasterVolume); chnSoundChannel5.soundTransform = _local2; }; if (arrChannelInUse[6]){ _local2 = new SoundTransform(); _local2.volume = (arrChannelOriginalVolume[6] * numMasterVolume); chnSoundChannel6.soundTransform = _local2; }; if (arrChannelInUse[7]){ _local2 = new SoundTransform(); _local2.volume = (arrChannelOriginalVolume[7] * numMasterVolume); chnSoundChannel7.soundTransform = _local2; }; } } }//package
Section 65
//SuperSpeed (SuperSpeed) package { import flash.media.*; public dynamic class SuperSpeed extends Sound { } }//package
Section 66
//SuperSpeedPickup (SuperSpeedPickup) package { public dynamic class SuperSpeedPickup extends Pickups { } }//package
Section 67
//UrlLocking (UrlLocking) package { import flash.display.*; import flash.events.*; import flash.net.*; import flash.system.*; public class UrlLocking { private var stgRef:Stage; private var arrDomains:Array; private var blnAllowAllSites:Boolean; private var blnLoadedXML:Boolean; private var arrAdFreeDomains:Array; private var lodUrlLoader:URLLoader; private var blnShowNoAdsEver:Boolean; private var blnExceptionFound:Boolean; private var blnXMLException:Boolean; public function UrlLocking(_arg1:Stage, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean=true):void{ stgRef = _arg1; blnXMLException = _arg4; blnAllowAllSites = _arg2; blnShowNoAdsEver = _arg3; arrDomains = new Array(); arrAdFreeDomains = new Array(); blnLoadedXML = false; blnExceptionFound = false; if (blnXMLException == true){ if (Capabilities.playerType == "External"){ SearchForXMLException(); } else { blnLoadedXML = true; }; }; } public function AddAllowableDomain(_arg1:String):void{ arrDomains.push(_arg1); } private function XmlListener(_arg1:Event):void{ var _local2:XML = new XML(lodUrlLoader.data); if (_local2.name() == "GAMEEXCEPTIONS"){ if (_local2.children()[0].name() == "GAMEALLOWURLACCESS"){ if (_local2.children()[0].attribute("ALLOWACCESS").toString() == "True"){ blnLoadedXML = true; blnExceptionFound = true; } else { blnLoadedXML = true; blnExceptionFound = false; }; } else { blnLoadedXML = true; blnExceptionFound = false; }; } else { blnLoadedXML = true; blnExceptionFound = false; }; } public function GetShowAds():Boolean{ if (blnShowNoAdsEver == true){ return (false); }; var _local1:String = stgRef.loaderInfo.url; var _local2:Number = 0; while (_local2 < arrAdFreeDomains.length) { if (_local1.indexOf(arrAdFreeDomains[_local2]) != -1){ return (false); }; _local2++; }; return (true); } public function GetLocked():Boolean{ var _local1:String; var _local2:Number; if (blnAllowAllSites == true){ return (false); }; if ((((blnXMLException == true)) && ((blnLoadedXML == false)))){ trace("WARNING: Have not finished loading XML URL Exception yet."); }; if (blnExceptionFound == true){ return (false); }; _local1 = stgRef.loaderInfo.url; _local2 = 0; while (_local2 < arrDomains.length) { if (_local1.indexOf(arrDomains[_local2]) != -1){ return (false); }; _local2++; }; return (true); } public function AddAdFreeDomain(_arg1:String):void{ arrAdFreeDomains.push(_arg1); } private function XmlFail(_arg1:Event):void{ blnLoadedXML = true; blnExceptionFound = false; } private function SearchForXMLException():void{ var _local1:URLRequest = new URLRequest("AllowGameURLAccess.xml"); lodUrlLoader = new URLLoader(); lodUrlLoader.addEventListener(Event.COMPLETE, XmlListener); lodUrlLoader.addEventListener(IOErrorEvent.IO_ERROR, XmlFail); lodUrlLoader.load(_local1); } } }//package

Library Items

Symbol 1 GraphicUsed by:9
Symbol 2 ShapeTweeningUsed by:9
Symbol 3 GraphicUsed by:9
Symbol 4 FontUsed by:5 32 104 108 112 116 121 123 124 126 128 132 135 137 139 141 164 167 341 356 357 358
Symbol 5 TextUses:4Used by:9
Symbol 6 GraphicUsed by:9
Symbol 7 FontUsed by:8 183 184 185 186 188 189
Symbol 8 TextUses:7Used by:9
Symbol 9 MovieClip {LoadingBar}Uses:1 2 3 5 6 8Used by:30
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:30
Symbol 12 GraphicUsed by:27
Symbol 13 GraphicUsed by:27
Symbol 14 GraphicUsed by:27
Symbol 15 SoundUsed by:27
Symbol 16 SoundUsed by:27
Symbol 17 GraphicUsed by:27
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:27
Symbol 20 SoundUsed by:27
Symbol 21 SoundUsed by:27
Symbol 22 SoundUsed by:27
Symbol 23 GraphicUsed by:24
Symbol 24 ButtonUses:23Used by:27
Symbol 25 SoundUsed by:27
Symbol 26 SoundUsed by:27
Symbol 27 MovieClip {THGFOLTG_fla.ag_intro_mc_74}Uses:12 13 14 15 16 17 19 20 21 22 24 25 26Used by:30
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:28Used by:30
Symbol 30 MovieClip {Intro}Uses:9 11 27 29
Symbol 31 GraphicUsed by:34
Symbol 32 TextUses:4Used by:34
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClip {ContinueBTN}Uses:31 32 33Used by:Timeline
Symbol 35 GraphicUsed by:55
Symbol 36 GraphicUsed by:41
Symbol 37 GraphicUsed by:41
Symbol 38 GraphicUsed by:41
Symbol 39 GraphicUsed by:41
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClip {THGFOLTG_fla.City_2}Uses:36 37 38 39 40Used by:55 89
Symbol 42 GraphicUsed by:55 76
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:43Used by:55 76
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:45Used by:55 76
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClipUses:47Used by:55 76
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:55 76
Symbol 51 GraphicUsed by:55
Symbol 52 GraphicUsed by:55
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:55 68
Symbol 55 MovieClipUses:35 41 42 44 46 48 50 51 52 54Used by:Timeline
Symbol 56 GraphicUsed by:68
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:57Used by:68
Symbol 59 GraphicUsed by:68
Symbol 60 ShapeTweeningUsed by:68
Symbol 61 ShapeTweeningUsed by:68
Symbol 62 GraphicUsed by:68
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:63Used by:68
Symbol 65 GraphicUsed by:68
Symbol 66 ShapeTweeningUsed by:68
Symbol 67 ShapeTweeningUsed by:68
Symbol 68 MovieClipUses:56 54 58 59 60 61 62 64 65 66 67Used by:89
Symbol 69 GraphicUsed by:76
Symbol 70 ShapeTweeningUsed by:76
Symbol 71 ShapeTweeningUsed by:76
Symbol 72 GraphicUsed by:76
Symbol 73 GraphicUsed by:76
Symbol 74 ShapeTweeningUsed by:76
Symbol 75 ShapeTweeningUsed by:76
Symbol 76 MovieClipUses:42 44 46 48 50 69 70 71 72 73 74 75Used by:89
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:77Used by:89
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:79Used by:89
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:89
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:83Used by:89
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClipUses:85Used by:89
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:89
Symbol 89 MovieClipUses:68 41 76 78 80 82 84 86 88Used by:220  Timeline
Symbol 90 GraphicUsed by:98
Symbol 91 GraphicUsed by:98
Symbol 92 GraphicUsed by:98
Symbol 93 GraphicUsed by:98
Symbol 94 GraphicUsed by:98
Symbol 95 GraphicUsed by:98
Symbol 96 GraphicUsed by:98
Symbol 97 GraphicUsed by:98
Symbol 98 MovieClipUses:90 91 92 93 94 95 96 97Used by:100
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClipUses:98 99Used by:220
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:220
Symbol 103 GraphicUsed by:106 122 134 136 138 140 142
Symbol 104 TextUses:4Used by:106
Symbol 105 GraphicUsed by:106 122 134 136 138 140 142
Symbol 106 MovieClip {THGFOLTG_fla.PlayGameBTN_23}Uses:103 104 105Used by:219 220
Symbol 107 GraphicUsed by:110
Symbol 108 TextUses:4Used by:110
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClip {THGFOLTG_fla.CreditsBTN_24}Uses:107 108 109Used by:220
Symbol 111 GraphicUsed by:114
Symbol 112 TextUses:4Used by:114
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClip {THGFOLTG_fla.MoreGamesBTN_25}Uses:111 112 113Used by:220
Symbol 115 GraphicUsed by:118
Symbol 116 TextUses:4Used by:118
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClip {THGFOLTG_fla.SettingsBTN_26}Uses:115 116 117Used by:220
Symbol 119 FontUsed by:120 124 129 130 131
Symbol 120 TextUses:119Used by:220
Symbol 121 TextUses:4Used by:122
Symbol 122 MovieClip {THGFOLTG_fla.BackBTN_27}Uses:103 121 105Used by:220
Symbol 123 TextUses:4Used by:220
Symbol 124 TextUses:119 4Used by:125
Symbol 125 MovieClipUses:124Used by:220
Symbol 126 TextUses:4Used by:127
Symbol 127 MovieClipUses:126Used by:220
Symbol 128 TextUses:4Used by:220
Symbol 129 TextUses:119Used by:220
Symbol 130 TextUses:119Used by:220
Symbol 131 TextUses:119Used by:220
Symbol 132 TextUses:4Used by:134
Symbol 133 GraphicUsed by:134 136 138 140 142
Symbol 134 MovieClip {THGFOLTG_fla.HighBTN_30}Uses:103 132 105 133Used by:220
Symbol 135 TextUses:4Used by:136
Symbol 136 MovieClip {THGFOLTG_fla.MedBTN_31}Uses:103 135 105 133Used by:220
Symbol 137 TextUses:4Used by:138
Symbol 138 MovieClip {THGFOLTG_fla.LowBTN_32}Uses:103 137 105 133Used by:220
Symbol 139 TextUses:4Used by:140
Symbol 140 MovieClip {THGFOLTG_fla.OnBTN_33}Uses:103 139 105 133Used by:220
Symbol 141 TextUses:4Used by:142
Symbol 142 MovieClip {THGFOLTG_fla.OffBTN_34}Uses:103 141 105 133Used by:220
Symbol 143 MovieClip {Graveyard}Used by:220
Symbol 144 MovieClipUsed by:220
Symbol 145 GraphicUsed by:153
Symbol 146 GraphicUsed by:153
Symbol 147 GraphicUsed by:153
Symbol 148 GraphicUsed by:153
Symbol 149 GraphicUsed by:153
Symbol 150 GraphicUsed by:153
Symbol 151 GraphicUsed by:153
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClipUses:145 146 147 148 149 150 151 152Used by:160
Symbol 154 GraphicUsed by:160
Symbol 155 GraphicUsed by:160
Symbol 156 BitmapUsed by:157
Symbol 157 GraphicUses:156Used by:158
Symbol 158 MovieClipUses:157Used by:160
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClip {Hero_sm}Uses:153 154 155 158 159Used by:220
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClipUses:161Used by:220
Symbol 163 GraphicUsed by:220
Symbol 164 TextUses:4Used by:220
Symbol 165 FontUsed by:166 168
Symbol 166 EditableTextUses:165Used by:220
Symbol 167 TextUses:4Used by:220
Symbol 168 EditableTextUses:165Used by:220
Symbol 169 GraphicUsed by:174 219
Symbol 170 GraphicUsed by:174
Symbol 171 GraphicUsed by:174 219
Symbol 172 GraphicUsed by:174 219
Symbol 173 GraphicUsed by:174 219
Symbol 174 MovieClip {ShockWaveIcon}Uses:169 170 171 172 173Used by:220
Symbol 175 ShapeTweeningUsed by:179
Symbol 176 GraphicUsed by:179
Symbol 177 ShapeTweeningUsed by:179
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClip {THGFOLTG_fla.Tip_42}Uses:175 176 177 178Used by:220
Symbol 180 GraphicUsed by:191
Symbol 181 GraphicUsed by:182
Symbol 182 MovieClipUses:181Used by:191
Symbol 183 TextUses:7Used by:191
Symbol 184 EditableTextUses:7Used by:191
Symbol 185 TextUses:7Used by:187
Symbol 186 TextUses:7Used by:187
Symbol 187 MovieClip {THGFOLTG_fla.GameOverMainMenu_45}Uses:185 186Used by:191
Symbol 188 TextUses:7Used by:190
Symbol 189 TextUses:7Used by:190
Symbol 190 MovieClip {THGFOLTG_fla.GameOverMoreGames_46}Uses:188 189Used by:191
Symbol 191 MovieClipUses:180 182 183 184 187 190Used by:220
Symbol 192 GraphicUsed by:220
Symbol 193 ShapeTweeningUsed by:219
Symbol 194 GraphicUsed by:219
Symbol 195 ShapeTweeningUsed by:219
Symbol 196 GraphicUsed by:219
Symbol 197 ShapeTweeningUsed by:219
Symbol 198 GraphicUsed by:219
Symbol 199 ShapeTweeningUsed by:219
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200Used by:219 337
Symbol 202 GraphicUsed by:219
Symbol 203 ShapeTweeningUsed by:219
Symbol 204 GraphicUsed by:219
Symbol 205 ShapeTweeningUsed by:219
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClipUses:206Used by:219 336
Symbol 208 GraphicUsed by:219
Symbol 209 ShapeTweeningUsed by:219
Symbol 210 GraphicUsed by:219
Symbol 211 ShapeTweeningUsed by:219
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClipUses:212Used by:219 338
Symbol 214 GraphicUsed by:219
Symbol 215 ShapeTweeningUsed by:219
Symbol 216 GraphicUsed by:219
Symbol 217 ShapeTweeningUsed by:219
Symbol 218 GraphicUsed by:219
Symbol 219 MovieClip {THGFOLTG_fla.Tutorial_47}Uses:106 193 194 195 196 197 198 199 201 169 171 202 203 204 205 207 172 208 209 210 211 213 173 214 215 216 217 218Used by:220
Symbol 220 MovieClip {GAME}Uses:89 100 102 106 110 114 118 120 122 123 125 127 128 129 130 131 134 136 138 140 142 143 144 160 162 163 164 166 167 168 174 179 191 192 219Used by:Timeline
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClipUses:221Used by:223
Symbol 223 MovieClip {PickupSparkle}Uses:222Used by:Timeline
Symbol 224 GraphicUsed by:232
Symbol 225 GraphicUsed by:230
Symbol 226 GraphicUsed by:230
Symbol 227 GraphicUsed by:230
Symbol 228 GraphicUsed by:230
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClipUses:225 226 227 228 229Used by:232
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClip {meteorImpact}Uses:224 230 231Used by:265 302 325 335  Timeline
Symbol 233 GraphicUsed by:265 325
Symbol 234 ShapeTweeningUsed by:265
Symbol 235 GraphicUsed by:265
Symbol 236 GraphicUsed by:265
Symbol 237 GraphicUsed by:265
Symbol 238 GraphicUsed by:265
Symbol 239 GraphicUsed by:265
Symbol 240 GraphicUsed by:265
Symbol 241 GraphicUsed by:265
Symbol 242 GraphicUsed by:265 325
Symbol 243 GraphicUsed by:265
Symbol 244 GraphicUsed by:265
Symbol 245 GraphicUsed by:265
Symbol 246 GraphicUsed by:265 325
Symbol 247 GraphicUsed by:265 325 335
Symbol 248 ShapeTweeningUsed by:265
Symbol 249 ShapeTweeningUsed by:265
Symbol 250 ShapeTweeningUsed by:265
Symbol 251 ShapeTweeningUsed by:265
Symbol 252 ShapeTweeningUsed by:265
Symbol 253 ShapeTweeningUsed by:265
Symbol 254 ShapeTweeningUsed by:265
Symbol 255 ShapeTweeningUsed by:265
Symbol 256 ShapeTweeningUsed by:265
Symbol 257 ShapeTweeningUsed by:265
Symbol 258 ShapeTweeningUsed by:265
Symbol 259 ShapeTweeningUsed by:265
Symbol 260 ShapeTweeningUsed by:265
Symbol 261 ShapeTweeningUsed by:265
Symbol 262 ShapeTweeningUsed by:265
Symbol 263 ShapeTweeningUsed by:265
Symbol 264 GraphicUsed by:265
Symbol 265 MovieClip {meteorA}Uses:233 234 235 236 237 238 239 240 232 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264Used by:Timeline
Symbol 266 GraphicUsed by:302 335
Symbol 267 ShapeTweeningUsed by:302
Symbol 268 GraphicUsed by:302 325 335
Symbol 269 GraphicUsed by:302 335
Symbol 270 GraphicUsed by:302
Symbol 271 GraphicUsed by:302 335
Symbol 272 GraphicUsed by:302
Symbol 273 GraphicUsed by:302
Symbol 274 GraphicUsed by:302
Symbol 275 GraphicUsed by:302
Symbol 276 GraphicUsed by:302
Symbol 277 GraphicUsed by:302
Symbol 278 GraphicUsed by:302
Symbol 279 GraphicUsed by:302 335
Symbol 280 GraphicUsed by:302
Symbol 281 ShapeTweeningUsed by:302
Symbol 282 ShapeTweeningUsed by:302
Symbol 283 ShapeTweeningUsed by:302
Symbol 284 ShapeTweeningUsed by:302
Symbol 285 ShapeTweeningUsed by:302
Symbol 286 ShapeTweeningUsed by:302
Symbol 287 ShapeTweeningUsed by:302
Symbol 288 ShapeTweeningUsed by:302
Symbol 289 ShapeTweeningUsed by:302
Symbol 290 ShapeTweeningUsed by:302
Symbol 291 ShapeTweeningUsed by:302
Symbol 292 ShapeTweeningUsed by:302
Symbol 293 ShapeTweeningUsed by:302
Symbol 294 ShapeTweeningUsed by:302
Symbol 295 ShapeTweeningUsed by:302
Symbol 296 ShapeTweeningUsed by:302
Symbol 297 ShapeTweeningUsed by:302
Symbol 298 ShapeTweeningUsed by:302
Symbol 299 ShapeTweeningUsed by:302
Symbol 300 ShapeTweeningUsed by:302
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClip {meteorB}Uses:266 267 268 269 270 271 272 273 232 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301Used by:Timeline
Symbol 303 GraphicUsed by:314
Symbol 304 GraphicUsed by:307
Symbol 305 GraphicUsed by:307 310 313
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClip {THGFOLTG_fla.PauseContinue_59}Uses:304 305 306Used by:314
Symbol 308 GraphicUsed by:310
Symbol 309 GraphicUsed by:310
Symbol 310 MovieClip {THGFOLTG_fla.PauseMainMenu_60}Uses:308 305 309Used by:314
Symbol 311 GraphicUsed by:313
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClip {THGFOLTG_fla.PauseMoreGames_61}Uses:311 305 312Used by:314
Symbol 314 MovieClip {PauseScreenOverlay}Uses:303 307 310 313Used by:Timeline
Symbol 315 ShapeTweeningUsed by:325
Symbol 316 GraphicUsed by:325
Symbol 317 GraphicUsed by:325
Symbol 318 GraphicUsed by:325
Symbol 319 GraphicUsed by:325
Symbol 320 GraphicUsed by:325
Symbol 321 GraphicUsed by:325
Symbol 322 GraphicUsed by:325
Symbol 323 GraphicUsed by:325
Symbol 324 GraphicUsed by:325
Symbol 325 MovieClip {BOSSmeteorA}Uses:233 315 268 316 317 318 319 320 232 321 242 322 323 324 246 247Used by:Timeline
Symbol 326 ShapeTweeningUsed by:335
Symbol 327 GraphicUsed by:335
Symbol 328 GraphicUsed by:335
Symbol 329 GraphicUsed by:335
Symbol 330 GraphicUsed by:335
Symbol 331 GraphicUsed by:335
Symbol 332 GraphicUsed by:335
Symbol 333 GraphicUsed by:335
Symbol 334 GraphicUsed by:335
Symbol 335 MovieClip {BOSSmeteorB}Uses:266 326 268 269 327 271 328 329 232 330 331 332 333 334 279 247Used by:Timeline
Symbol 336 MovieClip {LaserBeamsPickup}Uses:207Used by:Timeline
Symbol 337 MovieClip {ShockWavePickup}Uses:201Used by:Timeline
Symbol 338 MovieClip {SuperSpeedPickup}Uses:213Used by:Timeline
Symbol 339 GraphicUsed by:340
Symbol 340 MovieClip {ShockWavePower}Uses:339Used by:Timeline
Symbol 341 TextUses:4Used by:352
Symbol 342 Sound {MenuMusic}Used by:352
Symbol 343 Sound {MainMusic}Used by:352
Symbol 344 Sound {Button}Used by:352
Symbol 345 Sound {Pickup}Used by:352
Symbol 346 Sound {SuperSpeed}Used by:352
Symbol 347 Sound {Laser}Used by:352
Symbol 348 Sound {Impact}Used by:352
Symbol 349 Sound {Fire}Used by:352
Symbol 350 Sound {Shatter}Used by:352
Symbol 351 Sound {Shockwave}Used by:352
Symbol 352 MovieClip {THGFOLTG_fla.SoundBuffer_68}Uses:341 342 343 344 345 346 347 348 349 350 351Used by:Timeline
Symbol 353 GraphicUsed by:354
Symbol 354 MovieClip {LaserImpact}Uses:353Used by:Timeline
Symbol 355 GraphicUsed by:Timeline
Symbol 356 TextUses:4Used by:Timeline
Symbol 357 TextUses:4Used by:Timeline
Symbol 358 EditableTextUses:4Used by:359
Symbol 359 MovieClipUses:358Used by:Timeline

Instance Names

"bg"Frame 1Symbol 55 MovieClip
"bg"Frame 2Symbol 89 MovieClip
"game_mc"Frame 2Symbol 220 MovieClip {GAME}
"bg"Frame 15Symbol 89 MovieClip
"siteLock_btn"Frame 15Symbol 359 MovieClip
"preloader"Symbol 30 MovieClip {Intro} Frame 1Symbol 9 MovieClip {LoadingBar}
"adBox"Symbol 30 MovieClip {Intro} Frame 1Symbol 11 MovieClip
"agLogo"Symbol 30 MovieClip {Intro} Frame 2Symbol 27 MovieClip {THGFOLTG_fla.ag_intro_mc_74}
"heroLogo"Symbol 30 MovieClip {Intro} Frame 181Symbol 29 MovieClip
"skyline"Symbol 55 MovieClip Frame 1Symbol 41 MovieClip {THGFOLTG_fla.City_2}
"sky"Symbol 89 MovieClip Frame 1Symbol 68 MovieClip
"skyline"Symbol 89 MovieClip Frame 1Symbol 41 MovieClip {THGFOLTG_fla.City_2}
"ground"Symbol 89 MovieClip Frame 1Symbol 76 MovieClip
"cape"Symbol 160 MovieClip {Hero_sm} Frame 1Symbol 153 MovieClip
"motionblur_mc"Symbol 160 MovieClip {Hero_sm} Frame 3Symbol 158 MovieClip
"score_dt"Symbol 191 MovieClip Frame 1Symbol 184 EditableText
"menu_btn"Symbol 191 MovieClip Frame 1Symbol 187 MovieClip {THGFOLTG_fla.GameOverMainMenu_45}
"moreGames_btn"Symbol 191 MovieClip Frame 1Symbol 190 MovieClip {THGFOLTG_fla.GameOverMoreGames_46}
"skip_btn"Symbol 219 MovieClip {THGFOLTG_fla.Tutorial_47} Frame 1Symbol 106 MovieClip {THGFOLTG_fla.PlayGameBTN_23}
"city"Symbol 220 MovieClip {GAME} Frame 1Symbol 89 MovieClip
"start_btn"Symbol 220 MovieClip {GAME} Frame 1Symbol 106 MovieClip {THGFOLTG_fla.PlayGameBTN_23}
"credits_btn"Symbol 220 MovieClip {GAME} Frame 1Symbol 110 MovieClip {THGFOLTG_fla.CreditsBTN_24}
"moregames_btn"Symbol 220 MovieClip {GAME} Frame 1Symbol 114 MovieClip {THGFOLTG_fla.MoreGamesBTN_25}
"settings_btn"Symbol 220 MovieClip {GAME} Frame 1Symbol 118 MovieClip {THGFOLTG_fla.SettingsBTN_26}
"back_btn"Symbol 220 MovieClip {GAME} Frame 2Symbol 122 MovieClip {THGFOLTG_fla.BackBTN_27}
"heroCredits_mc"Symbol 220 MovieClip {GAME} Frame 2Symbol 125 MovieClip
"poly_btn"Symbol 220 MovieClip {GAME} Frame 2Symbol 127 MovieClip
"graphicsHIGH_btn"Symbol 220 MovieClip {GAME} Frame 3Symbol 134 MovieClip {THGFOLTG_fla.HighBTN_30}
"graphicsMED_btn"Symbol 220 MovieClip {GAME} Frame 3Symbol 136 MovieClip {THGFOLTG_fla.MedBTN_31}
"graphicsLOW_btn"Symbol 220 MovieClip {GAME} Frame 3Symbol 138 MovieClip {THGFOLTG_fla.LowBTN_32}
"musicON_btn"Symbol 220 MovieClip {GAME} Frame 3Symbol 140 MovieClip {THGFOLTG_fla.OnBTN_33}
"musicOFF_btn"Symbol 220 MovieClip {GAME} Frame 3Symbol 142 MovieClip {THGFOLTG_fla.OffBTN_34}
"soundON_btn"Symbol 220 MovieClip {GAME} Frame 3Symbol 140 MovieClip {THGFOLTG_fla.OnBTN_33}
"soundOFF_btn"Symbol 220 MovieClip {GAME} Frame 3Symbol 142 MovieClip {THGFOLTG_fla.OffBTN_34}
"graveyard"Symbol 220 MovieClip {GAME} Frame 4Symbol 143 MovieClip {Graveyard}
"meteorZone_mc"Symbol 220 MovieClip {GAME} Frame 4Symbol 144 MovieClip
"hero_mc"Symbol 220 MovieClip {GAME} Frame 4Symbol 160 MovieClip {Hero_sm}
"Cursor"Symbol 220 MovieClip {GAME} Frame 4Symbol 162 MovieClip
"health_dt"Symbol 220 MovieClip {GAME} Frame 4Symbol 166 EditableText
"score_dt"Symbol 220 MovieClip {GAME} Frame 4Symbol 168 EditableText
"powerupIcon1"Symbol 220 MovieClip {GAME} Frame 4Symbol 174 MovieClip {ShockWaveIcon}
"powerupIcon2"Symbol 220 MovieClip {GAME} Frame 4Symbol 174 MovieClip {ShockWaveIcon}
"powerupIcon3"Symbol 220 MovieClip {GAME} Frame 4Symbol 174 MovieClip {ShockWaveIcon}
"gameOver_mc"Symbol 220 MovieClip {GAME} Frame 5Symbol 191 MovieClip
"tutorial_mc"Symbol 220 MovieClip {GAME} Frame 6Symbol 219 MovieClip {THGFOLTG_fla.Tutorial_47}
"continue_btn"Symbol 314 MovieClip {PauseScreenOverlay} Frame 1Symbol 307 MovieClip {THGFOLTG_fla.PauseContinue_59}
"menu_btn"Symbol 314 MovieClip {PauseScreenOverlay} Frame 1Symbol 310 MovieClip {THGFOLTG_fla.PauseMainMenu_60}
"moreGames_btn"Symbol 314 MovieClip {PauseScreenOverlay} Frame 1Symbol 313 MovieClip {THGFOLTG_fla.PauseMoreGames_61}
"fire"Symbol 325 MovieClip {BOSSmeteorA} Frame 11Symbol 232 MovieClip {meteorImpact}
"sponsorURL_dt"Symbol 359 MovieClip Frame 1Symbol 358 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.

Labels

"main"Frame 1
"game"Frame 2
"load"Frame 3
"locked"Frame 15




https://swfchan.com/54/267446/info.shtml
Created: 1/6 -2026 11:14:32 Last modified: 1/6 -2026 11:14:32 Server time: 01/06 -2026 17:39:50