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

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

The Kyle Shaw Adventure.swf

This is the info page for
Flash #63971

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


Text
EVERYTHING,
BY EVERYONE.

Assets

ActionScript [AS3]

Section 1
//Car (car.Car) package car { import flash.events.*; import flash.display.*; import item.*; import flash.geom.*; public class Car extends MovieClip { var health:Number;// = 5 var jumpSpeed:Number;// = 0 private var _root:Object; public function Car(){ health = 5; jumpSpeed = 0; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; if (_root.gamePaused == false){ this.alpha = 1; if (this.getChildAt(1).hitTestObject(_root.pl_hitbox)){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 7); }; _root.mainHurt(); }; _local2 = 0; while (_local2 < _root.shotHolder.numChildren) { _local3 = _root.shotHolder.getChildAt(_local2); if (this.getChildAt(1).hitTestObject(_local3)){ if (_local3.visible == true){ health--; _local3.visible = false; if (health > 0){ _root.soundChannel = _root.snd_pow.play(); }; }; this.alpha = 0.5; }; _local2++; }; this.x = (this.x - 8); }; if (((((((this.hitTestObject(_root.hitScreenLeft)) || (this.hitTestObject(_root.hitScreenRight)))) || (this.hitTestObject(_root.hitScreenUp)))) || (this.hitTestObject(_root.hitScreenDown)))){ killMe(); }; if (health <= 0){ killMe(); }; } private function beginClass(_arg1:Event):void{ var _local2:CarCollider; var _local3:Number; _root = MovieClip(root); _local2 = new CarCollider(); _local2.y = 2; _local2.visible = false; this.addChild(_local2); _root.soundChannel = _root.snd_horn.play(); _local3 = Math.ceil((Math.random() * 5)); this.gotoAndStop(_local3); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } private function killMe():void{ afterDeath(); this.removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } private function afterDeath():void{ var _local1:*; var _local2:*; var _local3:Explosion; var _local4:*; var _local5:FreeLife; var _local6:BigHealth; var _local7:LittleHealth; if (health <= 0){ _local1 = this.localToGlobal(new Point(0, 0)); _local2 = _root.actionHolder.globalToLocal(_local1); _local3 = new Explosion(); _local4 = Math.round((Math.random() * 100)); if (_local4 == 0){ _local5 = new FreeLife(); _local5.x = (_local2.x + 8); _local5.y = (_local2.y + 20); _root.actionHolder.addChild(_local5); }; if ((((_local4 > 0)) && ((_local4 <= 15)))){ _local6 = new BigHealth(); _local6.x = (_local2.x + 8); _local6.y = (_local2.y + 20); _root.actionHolder.addChild(_local6); }; if ((((_local4 > 15)) && ((_local4 <= 35)))){ _local7 = new LittleHealth(); _local7.x = (_local2.x + 8); _local7.y = (_local2.y + 20); _root.actionHolder.addChild(_local7); }; _local3.x = (_local2.x + 8); _local3.y = (_local2.y + 20); _root.actionHolder.addChild(_local3); }; } } }//package car
Section 2
//CarCollider (car.CarCollider) package car { import flash.display.*; public class CarCollider extends MovieClip { } }//package car
Section 3
//CarSpawn (car.CarSpawn) package car { import flash.events.*; import flash.display.*; import flash.geom.*; public class CarSpawn extends Sprite { var activeSpawn:Boolean;// = true private var _root:Object; public function CarSpawn(){ activeSpawn = true; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); this.addEventListener(Event.REMOVED_FROM_STAGE, endClass); } function eFrame(_arg1:Event):void{ var _local2:*; var _local3:*; var _local4:Car; _local2 = this.localToGlobal(new Point(0, 0)); _local3 = this.globalToLocal(_local2); if (this.hitTestObject(_root.hitScreen) == true){ if ((((((this.numChildren <= 0)) && ((activeSpawn == true)))) && ((_root.gamePaused == false)))){ _local4 = new Car(); activeSpawn = false; _local4.x = (_local3.x - 16); _local4.y = _local3.y; this.addChild(_local4); }; } else { if ((((this.hitTestObject(_root.hitScreenLeft) == true)) || ((this.hitTestObject(_root.hitScreenRight) == true)))){ activeSpawn = true; }; }; } function endClass(_arg1:Event):void{ this.removeEventListener(Event.REMOVED_FROM_STAGE, endClass); this.removeEventListener(Event.ENTER_FRAME, eFrame); } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); this.graphics.beginFill(0xFF00, 0); this.graphics.drawRect(0, 0, 16, 16); } } }//package car
Section 4
//Strong (fl.transitions.easing.Strong) package fl.transitions.easing { public class Strong { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } } }//package fl.transitions.easing
Section 5
//Tween (fl.transitions.Tween) package fl.transitions { import flash.events.*; import flash.display.*; import flash.utils.*; public class Tween extends EventDispatcher { private var _position:Number;// = NAN public var prevTime:Number;// = NAN public var prevPos:Number;// = NAN public var isPlaying:Boolean;// = false public var begin:Number;// = NAN private var _fps:Number;// = NAN private var _time:Number;// = NAN public var change:Number;// = NAN private var _finish:Number;// = NAN public var looping:Boolean;// = false private var _intervalID:uint;// = 0 public var func:Function; private var _timer:Timer;// = null private var _startTime:Number;// = NAN public var prop:String;// = "" private var _duration:Number;// = NAN public var obj:Object;// = null public var useSeconds:Boolean;// = false protected static var _mc:MovieClip = new MovieClip(); public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){ isPlaying = false; obj = null; prop = ""; func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); }; begin = NaN; change = NaN; useSeconds = false; prevTime = NaN; prevPos = NaN; looping = false; _duration = NaN; _time = NaN; _fps = NaN; _position = NaN; _startTime = NaN; _intervalID = 0; _finish = NaN; _timer = null; super(); if (!arguments.length){ return; }; this.obj = _arg1; this.prop = _arg2; this.begin = _arg4; this.position = _arg4; this.duration = _arg6; this.useSeconds = _arg7; if ((_arg3 is Function)){ this.func = _arg3; }; this.finish = _arg5; this._timer = new Timer(100); this.start(); } public function continueTo(_arg1:Number, _arg2:Number):void{ this.begin = this.position; this.finish = _arg1; if (!isNaN(_arg2)){ this.duration = _arg2; }; this.start(); } public function stop():void{ this.stopEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position)); } private function fixTime():void{ if (this.useSeconds){ this._startTime = (getTimer() - (this._time * 1000)); }; } public function set FPS(_arg1:Number):void{ var _local2:Boolean; _local2 = this.isPlaying; this.stopEnterFrame(); this._fps = _arg1; if (_local2){ this.startEnterFrame(); }; } public function get finish():Number{ return ((this.begin + this.change)); } public function get duration():Number{ return (this._duration); } protected function startEnterFrame():void{ var _local1:Number; if (isNaN(this._fps)){ _mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true); } else { _local1 = (1000 / this._fps); this._timer.delay = _local1; this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true); this._timer.start(); }; this.isPlaying = true; } public function set time(_arg1:Number):void{ this.prevTime = this._time; if (_arg1 > this.duration){ if (this.looping){ this.rewind((_arg1 - this._duration)); this.update(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position)); } else { if (this.useSeconds){ this._time = this._duration; this.update(); }; this.stop(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position)); }; } else { if (_arg1 < 0){ this.rewind(); this.update(); } else { this._time = _arg1; this.update(); }; }; } protected function stopEnterFrame():void{ if (isNaN(this._fps)){ _mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame); } else { this._timer.stop(); }; this.isPlaying = false; } public function getPosition(_arg1:Number=NaN):Number{ if (isNaN(_arg1)){ _arg1 = this._time; }; return (this.func(_arg1, this.begin, this.change, this._duration)); } public function set finish(_arg1:Number):void{ this.change = (_arg1 - this.begin); } public function set duration(_arg1:Number):void{ this._duration = ((_arg1)<=0) ? Infinity : _arg1; } public function setPosition(_arg1:Number):void{ this.prevPos = this._position; if (this.prop.length){ this.obj[this.prop] = (this._position = _arg1); }; this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position)); } public function resume():void{ this.fixTime(); this.startEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position)); } public function fforward():void{ this.time = this._duration; this.fixTime(); } protected function onEnterFrame(_arg1:Event):void{ this.nextFrame(); } public function get position():Number{ return (this.getPosition(this._time)); } public function yoyo():void{ this.continueTo(this.begin, this.time); } public function nextFrame():void{ if (this.useSeconds){ this.time = ((getTimer() - this._startTime) / 1000); } else { this.time = (this._time + 1); }; } protected function timerHandler(_arg1:TimerEvent):void{ this.nextFrame(); _arg1.updateAfterEvent(); } public function get FPS():Number{ return (this._fps); } public function rewind(_arg1:Number=0):void{ this._time = _arg1; this.fixTime(); this.update(); } public function set position(_arg1:Number):void{ this.setPosition(_arg1); } public function get time():Number{ return (this._time); } private function update():void{ this.setPosition(this.getPosition(this._time)); } public function start():void{ this.rewind(); this.startEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position)); } public function prevFrame():void{ if (!this.useSeconds){ this.time = (this._time - 1); }; } } }//package fl.transitions
Section 6
//TweenEvent (fl.transitions.TweenEvent) package fl.transitions { import flash.events.*; public class TweenEvent extends Event { public var time:Number;// = NAN public var position:Number;// = NAN public static const MOTION_START:String = "motionStart"; public static const MOTION_STOP:String = "motionStop"; public static const MOTION_LOOP:String = "motionLoop"; public static const MOTION_CHANGE:String = "motionChange"; public static const MOTION_FINISH:String = "motionFinish"; public static const MOTION_RESUME:String = "motionResume"; public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){ time = NaN; position = NaN; super(_arg1, _arg4, _arg5); this.time = _arg2; this.position = _arg3; } override public function clone():Event{ return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable)); } } }//package fl.transitions
Section 7
//Frobot (frobo.Frobot) package frobo { import flash.events.*; import fl.transitions.easing.*; import flash.display.*; import item.*; import flash.geom.*; public class Frobot extends MovieClip { var left:Boolean;// = true var flyLeft:Boolean;// = true var right:Boolean;// = false var startPoint:Number; var health:Number;// = 2 var flyRight:Boolean;// = false var endPoint:Number; var onGround:Boolean;// = false var jumpSpeed:Number;// = 0 private var _root:Object; var canMove:Boolean;// = true public function Frobot(){ health = 2; jumpSpeed = 0; left = true; right = false; canMove = true; onGround = false; flyLeft = true; flyRight = false; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; if (this){ if (_root.gamePaused == false){ this.visible = true; if (this.getChildAt(1).hitTestObject(_root.pl_hitbox)){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 4); }; _root.mainHurt(); }; _local2 = 0; while (_local2 < _root.shotHolder.numChildren) { _local3 = _root.shotHolder.getChildAt(_local2); if (this.getChildAt(1).hitTestObject(_local3)){ if (_local3.visible == true){ health--; _local3.visible = false; if (health > 0){ _root.soundChannel = _root.snd_pow.play(); }; }; this.visible = false; }; _local2++; }; moving(); }; }; if (((((((((((((((this.hitTestObject(_root.hitScreenLeft)) || (this.hitTestObject(_root.hitScreenRight)))) || (this.hitTestObject(_root.hitScreenUp)))) || (this.hitTestObject(_root.hitScreenDown)))) || ((health <= 0)))) || ((_root.lvlStarting == true)))) || (!(this.parent)))) || ((_root.gameScrolling == true)))){ killMe(); }; } private function shootRight():void{ var _local1:ShotRight; var _local2:*; var _local3:*; _local1 = new ShotRight(); _local2 = this.localToGlobal(new Point(0, 0)); _local3 = _root.actionHolder.globalToLocal(_local2); _local1.x = (_local3.x + 22); _local1.y = (_local3.y + 28); _root.actionHolder.addChild(_local1); _root.soundChannel = _root.snd_roboshoot.play(); } private function moving():void{ if ((((this.x <= endPoint)) && (flyLeft))){ flyLeft = false; flyRight = true; }; if ((((this.x >= startPoint)) && (flyRight))){ flyLeft = true; flyRight = false; }; if (flyRight){ this.x = (this.x + 2); }; if (flyLeft){ this.x = (this.x - 2); }; if (((this.hitTestObject(_root.pl_enemyright)) && ((_root.mainDead == false)))){ left = true; right = false; }; if (((this.hitTestObject(_root.pl_enemyleft)) && ((_root.mainDead == false)))){ left = false; right = true; }; if (flyLeft){ if (right){ if (this.currentFrame != 5){ this.gotoAndStop(5); }; }; if (left){ if (this.currentFrame != 2){ this.gotoAndStop(2); }; }; }; if (flyRight){ if (right){ if (this.currentFrame != 4){ this.gotoAndStop(4); }; }; if (left){ if (this.currentFrame != 3){ this.gotoAndStop(3); }; }; }; if (left){ if ((((((((_root.hitScreen.currentFrame == 1)) || ((_root.hitScreen.currentFrame == 16)))) || ((_root.hitScreen.currentFrame == 61)))) || ((_root.hitScreen.currentFrame == 75)))){ shootLeft(); }; }; if (right){ if ((((((((_root.hitScreen.currentFrame == 1)) || ((_root.hitScreen.currentFrame == 16)))) || ((_root.hitScreen.currentFrame == 61)))) || ((_root.hitScreen.currentFrame == 75)))){ shootRight(); }; }; } function beginClass(_arg1:Event):void{ var _local2:FrobotCollider; _root = MovieClip(root); startPoint = this.x; endPoint = (this.x - 128); _local2 = new FrobotCollider(); _local2.visible = false; this.addChild(_local2); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } private function killMe():void{ afterDeath(); this.removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } private function shootLeft():void{ var _local1:ShotLeft; var _local2:*; var _local3:*; _local1 = new ShotLeft(); _local2 = this.localToGlobal(new Point(0, 0)); _local3 = _root.actionHolder.globalToLocal(_local2); _local1.x = (_local3.x - 13); _local1.y = (_local3.y + 28); _root.actionHolder.addChild(_local1); _root.soundChannel = _root.snd_roboshoot.play(); } private function afterDeath():void{ var _local1:*; var _local2:*; var _local3:Explosion; var _local4:*; var _local5:FreeLife; var _local6:BigHealth; var _local7:LittleHealth; if (health <= 0){ _local1 = this.localToGlobal(new Point(0, 0)); _local2 = _root.actionHolder.globalToLocal(_local1); _local3 = new Explosion(); _local4 = Math.round((Math.random() * 100)); if (_local4 == 0){ _local5 = new FreeLife(); _local5.x = (_local2.x + 8); _local5.y = (_local2.y + 20); _root.actionHolder.addChild(_local5); }; if ((((_local4 > 0)) && ((_local4 <= 10)))){ _local6 = new BigHealth(); _local6.x = (_local2.x + 8); _local6.y = (_local2.y + 20); _root.actionHolder.addChild(_local6); }; if ((((_local4 > 10)) && ((_local4 <= 25)))){ _local7 = new LittleHealth(); _local7.x = (_local2.x + 8); _local7.y = (_local2.y + 20); _root.actionHolder.addChild(_local7); }; _local3.x = (_local2.x + 8); _local3.y = (_local2.y + 20); _root.actionHolder.addChild(_local3); }; } } }//package frobo
Section 8
//FrobotCollider (frobo.FrobotCollider) package frobo { import flash.display.*; public class FrobotCollider extends MovieClip { } }//package frobo
Section 9
//FrobotSpawn (frobo.FrobotSpawn) package frobo { import flash.events.*; import flash.display.*; import flash.geom.*; public class FrobotSpawn extends Sprite { var activeSpawn:Boolean;// = true private var _root:Object; public function FrobotSpawn(){ activeSpawn = true; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); this.addEventListener(Event.REMOVED_FROM_STAGE, endClass); } function eFrame(_arg1:Event):void{ var _local2:*; var _local3:*; var _local4:Frobot; _local2 = this.localToGlobal(new Point(0, 0)); _local3 = this.globalToLocal(_local2); if (this.hitTestObject(_root.hitScreen) == true){ if ((((((this.numChildren <= 0)) && ((activeSpawn == true)))) && ((_root.gamePaused == false)))){ _local4 = new Frobot(); activeSpawn = false; _local4.x = (_local3.x - 16); _local4.y = _local3.y; this.addChild(_local4); }; } else { if ((((this.hitTestObject(_root.hitScreenLeft) == true)) || ((this.hitTestObject(_root.hitScreenRight) == true)))){ activeSpawn = true; }; }; } function endClass(_arg1:Event):void{ this.removeEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.REMOVED_FROM_STAGE, endClass); } function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); this.graphics.beginFill(0xFF00, 0); this.graphics.drawRect(0, 0, 16, 16); } } }//package frobo
Section 10
//ShotLeft (frobo.ShotLeft) package frobo { import flash.events.*; import flash.display.*; public class ShotLeft extends MovieClip { private var _root:Object; public function ShotLeft(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrameLeft(_arg1:Event):void{ if (_root.gamePaused == false){ this.x = (this.x - 4); this.y = (this.y + 4); if ((((this.hitTestObject(_root.hitScreen) == false)) || ((_root.lvlStarting == true)))){ this.visible = false; }; }; if (this.visible == false){ this.removeEventListener(Event.ENTER_FRAME, eFrameLeft); this.parent.removeChild(this); }; if (((this.hitTestObject(_root.pl_hitbox)) && ((_root.gamePaused == false)))){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 2); _root.mainHurt(); }; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrameLeft); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } } }//package frobo
Section 11
//ShotRight (frobo.ShotRight) package frobo { import flash.events.*; import flash.display.*; public class ShotRight extends MovieClip { private var _root:Object; public function ShotRight(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrameLeft(_arg1:Event):void{ if (_root.gamePaused == false){ this.x = (this.x + 4); this.y = (this.y + 4); if ((((this.hitTestObject(_root.hitScreen) == false)) || ((_root.lvlStarting == true)))){ this.visible = false; }; }; if (this.visible == false){ this.removeEventListener(Event.ENTER_FRAME, eFrameLeft); this.parent.removeChild(this); }; if (((this.hitTestObject(_root.pl_hitbox)) && ((_root.gamePaused == false)))){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 2); _root.mainHurt(); }; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrameLeft); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } } }//package frobo
Section 12
//BigHealth (item.BigHealth) package item { import flash.events.*; import flash.display.*; public class BigHealth extends MovieClip { var onGround;// = false var targetHealth;// = 0 var gainHealth;// = false private var _root:Object; var jumpSpeed;// = -6 var Jumping;// = false public function BigHealth(){ onGround = false; Jumping = false; jumpSpeed = -6; gainHealth = false; targetHealth = 0; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ if ((((onGround == false)) && ((_root.gamePaused == false)))){ jump(); }; if ((((this.hitTestObject(_root.hitScreen) == false)) || ((_root.mainDead == true)))){ killMe(); }; if (((this.hitTestObject(_root.pl_hitbox)) && ((gainHealth == false)))){ gainHealth = true; if (_root.playerHealth != 28){ targetHealth = (_root.playerHealth + 10); if (targetHealth > 28){ targetHealth = 28; }; } else { targetHealth = _root.playerHealth; }; }; if (gainHealth == true){ _root.gamePaused = true; if (_root.playerHealth < targetHealth){ if ((_root.hitScreen.currentFrame % 2) == 0){ _root.playerHealth++; _root.soundChannel = _root.snd_tick.play(); }; } else { _root.gamePaused = false; killMe(); }; }; } function jump():void{ var _local1:int; var _local2:DisplayObject; if ((((jumpSpeed < 0)) && ((onGround == false)))){ jumpSpeed = (jumpSpeed + 0.75); if (jumpSpeed > -1.5){ jumpSpeed = (jumpSpeed * -1); }; }; if ((((((jumpSpeed >= 0)) && ((jumpSpeed <= _root.jumpSpeedLimit)))) && ((onGround == false)))){ jumpSpeed = (jumpSpeed + 1); }; this.y = (this.y + jumpSpeed); _local1 = 0; while (_local1 < _root.blockHolder.numChildren) { _local2 = _root.blockHolder.getChildAt(_local1); if (this.hitTestObject(_local2)){ if (jumpSpeed > 0){ Jumping = false; this.y = (_local2.y - 7); onGround = true; jumpSpeed = 0; break; }; }; _local1++; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } function killMe():void{ this.removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } } }//package item
Section 13
//FreeLife (item.FreeLife) package item { import flash.events.*; import flash.display.*; public class FreeLife extends MovieClip { var onGround;// = false private var _root:Object; var jumpSpeed;// = -6 var Jumping;// = false public function FreeLife(){ onGround = false; Jumping = false; jumpSpeed = -6; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ if ((((onGround == false)) && ((_root.gamePaused == false)))){ jump(); }; if (((((this.hitTestObject(_root.pl_hitbox)) || ((this.hitTestObject(_root.hitScreen) == false)))) || ((_root.mainDead == true)))){ if (this.hitTestObject(_root.pl_hitbox)){ _root.soundChannel = _root.snd_freelife.play(); _root.playerLives++; }; killMe(); }; } function jump():void{ var _local1:int; var _local2:DisplayObject; if ((((jumpSpeed < 0)) && ((onGround == false)))){ jumpSpeed = (jumpSpeed + 0.75); if (jumpSpeed > -1.5){ jumpSpeed = (jumpSpeed * -1); }; }; if ((((((jumpSpeed >= 0)) && ((jumpSpeed <= _root.jumpSpeedLimit)))) && ((onGround == false)))){ jumpSpeed = (jumpSpeed + 1); }; this.y = (this.y + jumpSpeed); _local1 = 0; while (_local1 < _root.blockHolder.numChildren) { _local2 = _root.blockHolder.getChildAt(_local1); if (this.hitTestObject(_local2)){ if (jumpSpeed > 0){ Jumping = false; this.y = (_local2.y - 6); onGround = true; jumpSpeed = 0; break; }; }; _local1++; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } function killMe():void{ this.removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } } }//package item
Section 14
//LittleHealth (item.LittleHealth) package item { import flash.events.*; import flash.display.*; public class LittleHealth extends MovieClip { var onGround;// = false var targetHealth;// = 0 var gainHealth;// = false private var _root:Object; var jumpSpeed;// = -6 var Jumping;// = false public function LittleHealth(){ onGround = false; Jumping = false; jumpSpeed = -6; gainHealth = false; targetHealth = 0; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ if ((((onGround == false)) && ((_root.gamePaused == false)))){ jump(); }; if ((((this.hitTestObject(_root.hitScreen) == false)) || ((_root.mainDead == true)))){ killMe(); }; if (((this.hitTestObject(_root.pl_hitbox)) && ((gainHealth == false)))){ gainHealth = true; if (_root.playerHealth != 28){ targetHealth = (_root.playerHealth + 2); if (targetHealth > 28){ targetHealth = 28; }; } else { targetHealth = _root.playerHealth; }; }; if (gainHealth == true){ _root.gamePaused = true; if (_root.playerHealth < targetHealth){ if ((_root.hitScreen.currentFrame % 2) == 0){ _root.playerHealth++; _root.soundChannel = _root.snd_tick.play(); }; } else { _root.gamePaused = false; killMe(); }; }; } function jump():void{ var _local1:int; var _local2:DisplayObject; if ((((jumpSpeed < 0)) && ((onGround == false)))){ jumpSpeed = (jumpSpeed + 0.75); if (jumpSpeed > -1.5){ jumpSpeed = (jumpSpeed * -1); }; }; if ((((((jumpSpeed >= 0)) && ((jumpSpeed <= _root.jumpSpeedLimit)))) && ((onGround == false)))){ jumpSpeed = (jumpSpeed + 1); }; this.y = (this.y + jumpSpeed); _local1 = 0; while (_local1 < _root.blockHolder.numChildren) { _local2 = _root.blockHolder.getChildAt(_local1); if (this.hitTestObject(_local2)){ if (jumpSpeed > 0){ Jumping = false; this.y = (_local2.y - 3); onGround = true; jumpSpeed = 0; break; }; }; _local1++; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } function killMe():void{ this.removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } } }//package item
Section 15
//Assets_7 (KYLESHAW_fla.Assets_7) package KYLESHAW_fla { import flash.display.*; public dynamic class Assets_7 extends MovieClip { public function Assets_7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package KYLESHAW_fla
Section 16
//MainTimeline (KYLESHAW_fla.MainTimeline) package KYLESHAW_fla { import flash.events.*; import fl.transitions.easing.*; import fl.transitions.*; import flash.display.*; import flash.utils.*; import flash.media.*; import levels.*; import flash.net.*; import flash.text.*; import flash.geom.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var snd_boom:boomsound; public var startTimer:Timer; public var pl_health:MovieClip; public var snd_titandie:titandiesound; public var currentBackground1X; public var hurt:Boolean; public var stageBuild; public var deadChannel:SoundChannel; public var mainSpeed:Number; public var mainSlashing:Boolean; public var pl_right:playerRight; public var weapon; public var currentBackground2X; public var transMenu:SoundTransform; public var invulnerable:Boolean; public var gameScrolling:Boolean; public var mainShooting:Boolean; public var pauseMenuOpen:Boolean; public var battleMusic:Battle; public var pl_sprite:MovieClip; public var pl_left:playerLeft; public var shotTimer:Timer; public var spriteRunner:SpriteRunner; public var lvlHolder:Sprite; public var ladderHolder:Sprite; public var hurtTimer:Timer; public var mainShots:int; public var transNorm:SoundTransform; public var hitScreenLeft:MovieClip; public var mainFiring:Boolean; public var battleMusicLoop:BattleLoop; public var upKeyDown:Boolean; public var snd_horn:hornsound; public var stageCurrent:int; public var Background1:MovieClip; public var snd_pow:powsound; public var downKeyDown:Boolean; public var blockHolder:Sprite; public var snd_yell:hyahsound; public var Background2:MovieClip; public var playerHealth:Number; public var mainSlashable:Boolean; public var shootKeyDown:Boolean; public var snd_die:diesound; public var snd_tick:ticksound; public var playerLives:Number; public var jumpSpeed:Number; public var lvlStarting:Boolean; public var lvlBoss:int; public var lvlWidth:Number; public var playCredits:Boolean; public var killHolder:Sprite; public var jumpSpeedLimit:int; public var stageMusicStart:L1Intro; public var snd_failedhit:failedhitsound; public var hitScreenUp:MovieClip; public var lvlCurrent:int; public var snd_land:landsound; public var pl_hitbox:playerHitbox; public var stageMusicLoop:L1Loop; public var pl_enemyleft:MovieClip; public var Mask:MovieClip; public var musicChannel:SoundChannel; public var titleMusic2:Title2; public var mainMove:Boolean; public var titleMusic1:Title1; public var soundChannel:SoundChannel; public var snd_slash:swooshsound; public var hitScreenDown:MovieClip; public var bg1Tween; public var mainOnGround:Boolean; public var loadBar:MovieClip; public var shotHolder:Sprite; public var lvlTween; public var loadbar:MovieClip; public var mainLeft:Boolean; public var bossAlive:Boolean; public var mainJumpable:Boolean; public var hitScreenRight:MovieClip; public var mainJumping:Boolean; public var READY:MovieClip; public var actionHolder:Sprite; public var currentLevel:Array; public var masterHealth:Number; public var leftKeyDown:Boolean; public var snd_freelife:freelifesound; public var jumpKeyDown:Boolean; public var enemyHolder:Sprite; public var snd_hurt1:hurt1; public var snd_hurt2:hurt2; public var snd_hurt4:hurt4; public var creditsMusic:Credits; public var snd_hurt3:hurt3; public var pl_enemyright:MovieClip; public var mainOnLadder:Boolean; public var clicktoplay:gamePlay; public var gameLoadedAlready:Boolean; public var mainCanMove:Boolean; public var snd_shoot:shootsound; public var snd_roboshoot:roboshoot; public var gamePaused:Boolean; public var lvlVertical:Boolean; public var mainDead:Boolean; public var plTween; public var slashTimer:Timer; public var bossTime:Boolean; public var bg2Tween; public var hitScreen:MovieClip; public var invulnTimer:Timer; public var rightKeyDown:Boolean; public var mainClimbing:Boolean; public var lvlHeight:Number; public var mainFirable:Boolean; public var mainRight:Boolean; public var tileHolder:Sprite; public var gameoverMusic:GameOver; public function MainTimeline(){ addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 6, frame7, 7, frame8, 8, frame9); } public function mainShoot():void{ var _local1:shot; if (gamePaused == false){ if (mainShots < 3){ mainFiring = true; }; if ((((mainFiring == true)) && ((mainFirable == true)))){ mainShots++; _local1 = new shot(); _local1.visible = true; shotHolder.addChild(_local1); mainFiring = false; mainFirable = false; soundChannel = snd_shoot.play(); shotTimer.reset(); shotTimer.start(); }; }; } public function moveScreenDown():void{ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; _local1 = Background1.y; _local2 = (Background1.y - 224); _local3 = Background2.y; _local4 = (Background2.y - 224); _local5 = pl_hitbox.y; _local6 = (pl_hitbox.y - 232); _local7 = lvlHolder.y; _local8 = (lvlHolder.y - 224); plTween = new Tween(pl_hitbox, "y", Strong.easeInOut, _local5, _local6, 60, false); lvlTween = new Tween(lvlHolder, "y", Strong.easeInOut, _local7, _local8, 60, false); bg1Tween = new Tween(Background1, "y", Strong.easeInOut, _local1, _local2, 60, false); bg2Tween = new Tween(Background2, "y", Strong.easeInOut, _local3, _local4, 60, false); lvlTween.addEventListener(TweenEvent.MOTION_FINISH, finishScreenDown); } public function finishScreenDown(_arg1:Event):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:*; var _local6:int; pl_sprite.x = pl_hitbox.x; pl_sprite.y = pl_hitbox.y; pl_left.x = (pl_hitbox.x - 7); pl_left.y = pl_hitbox.y; pl_right.x = (pl_hitbox.x + 7); pl_right.y = pl_hitbox.y; lvlTween.removeEventListener(TweenEvent.MOTION_FINISH, finishScreenDown); _local2 = 0; while (_local2 < lvlHolder.numChildren) { _local5 = lvlHolder.getChildAt(_local2); while (_local5.numChildren > 0) { _local6 = 0; while (_local6 < _local5.numChildren) { _local5.removeChildAt(_local6); _local6++; }; }; _local2++; }; _local3 = 0; while (_local3 < enemyHolder.numChildren) { while (enemyHolder.numChildren > 0) { enemyHolder.removeChildAt(_local3); }; _local3++; }; _local4 = 0; while (_local4 < actionHolder.numChildren) { while (actionHolder.numChildren > 0) { actionHolder.removeChildAt(_local4); }; _local4++; }; lvlHeight = 0; lvlWidth = -16; stageSet(); addChild(stageBuild); lvlHolder.x = 0; lvlHolder.y = 0; gamePaused = false; gameScrolling = false; if (lvlCurrent < lvlBoss){ currentBackground1X = Background1.x; currentBackground2X = Background2.x; }; } public function nextScreenRight():void{ if (gameScrolling == false){ gamePaused = true; gameScrolling = true; lvlVertical = true; lvlCurrent++; if (lvlCurrent > 4){ enterBattle(); }; lvlWidth = (blockHolder.width - 32); stageSet(); addChild(stageBuild); moveScreenRight(); }; } public function mainInvuln():void{ invulnTimer.start(); } public function collisionDetectLeft():void{ var _local1:int; var _local2:DisplayObject; _local1 = 0; while (_local1 < blockHolder.numChildren) { _local2 = blockHolder.getChildAt(_local1); if (pl_left.hitTestObject(_local2)){ mainCanMove = false; mainMove = false; break; } else { mainCanMove = true; }; _local1++; }; } function frame4(){ musicChannel = new SoundChannel(); soundChannel = new SoundChannel(); gameLoadedAlready = false; musicChannel = titleMusic1.play(); stage.addEventListener(KeyboardEvent.KEY_DOWN, Keys1); musicChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackCompleteTitle); } function frame5(){ musicChannel = titleMusic2.play(); stage.addEventListener(KeyboardEvent.KEY_DOWN, Keys2); } function frame7(){ musicChannel = gameoverMusic.play(); stage.addEventListener(KeyboardEvent.KEY_DOWN, Keys3); } public function onPlaybackComplete(_arg1:Event){ if (lvlCurrent < lvlBoss){ musicChannel = stageMusicLoop.play(); if (pauseMenuOpen == true){ musicChannel.soundTransform = transMenu; }; } else { musicChannel = battleMusicLoop.play(); if (pauseMenuOpen == true){ musicChannel.soundTransform = transMenu; }; }; musicChannel.removeEventListener(Event.SOUND_COMPLETE, onPlaybackComplete); musicChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete); } public function scrollLeft():void{ lvlHolder.x = (lvlHolder.x + mainSpeed); actionHolder.x = (actionHolder.x + mainSpeed); enemyHolder.x = (enemyHolder.x + mainSpeed); Background1.x = (Background1.x + 1); Background2.x = (Background2.x + 2); } public function mainClimb():void{ var _local1:int; var _local2:DisplayObject; var _local3:*; _local1 = 0; while (_local1 < ladderHolder.numChildren) { _local2 = ladderHolder.getChildAt(_local1); _local3 = _local2.globalToLocal(new Point(272, 0)); if ((((_local3.x >= -18)) && ((_local3.x <= 288)))){ if (pl_hitbox.hitTestObject(_local2)){ if (mainOnLadder == false){ mainOnLadder = true; pl_hitbox.x = _local2.x; } else { pl_hitbox.y = (pl_hitbox.y - 2); }; }; }; _local1++; }; } public function nextScreenDown():void{ if (gameScrolling == false){ gamePaused = true; gameScrolling = true; lvlCurrent++; lvlHeight = 224; trace(blockHolder.width); lvlWidth = (blockHolder.width - 320); stageSet(); lvlHolder.addChild(stageBuild); moveScreenDown(); }; } public function pauseMenu(){ var _local1:PauseMenu; gamePaused = true; pauseMenuOpen = true; _local1 = new PauseMenu(); addChild(_local1); } function frame8(){ transNorm = new SoundTransform(1, 0); transMenu = new SoundTransform(0.25, 0); startMusic(); leftKeyDown = false; upKeyDown = false; rightKeyDown = false; downKeyDown = false; jumpKeyDown = false; shootKeyDown = false; stageCurrent = 1; lvlStarting = true; lvlVertical = false; lvlCurrent = 1; lvlBoss = 5; lvlWidth = -16; lvlHeight = 288; currentLevel = [("blockHolder" + lvlCurrent)]; currentBackground2X = 2880; currentBackground1X = 0; mainSpeed = 3; mainJumping = true; mainMove = false; mainOnLadder = false; mainClimbing = false; mainCanMove = true; mainRight = true; mainLeft = false; mainOnGround = false; mainShooting = false; mainFiring = false; mainFirable = true; mainJumpable = true; mainDead = false; mainSlashing = false; mainShots = 0; mainSlashable = true; jumpSpeedLimit = 8; jumpSpeed = jumpSpeedLimit; weapon = 0; hurt = false; invulnerable = false; playerHealth = 28; playerLives = 4; bossTime = false; bossAlive = true; masterHealth = 0; playCredits = false; gamePaused = false; gameScrolling = false; pauseMenuOpen = false; lvlHolder = new Sprite(); addChild(lvlHolder); blockHolder = new Sprite(); lvlHolder.addChild(blockHolder); tileHolder = new Sprite(); lvlHolder.addChild(tileHolder); ladderHolder = new Sprite(); lvlHolder.addChild(ladderHolder); killHolder = new Sprite(); lvlHolder.addChild(killHolder); spriteRunner = new SpriteRunner(); addChild(spriteRunner); actionHolder = new Sprite(); addChild(actionHolder); enemyHolder = new Sprite(); addChild(enemyHolder); shotHolder = new Sprite(); addChild(shotHolder); deadChannel = new SoundChannel(); startTimer = new Timer(1500, 1); shotTimer = new Timer(500, 1); slashTimer = new Timer(300, 1); hurtTimer = new Timer(600, 1); invulnTimer = new Timer(1800, 1); startTimer.start(); pl_sprite.visible = false; pl_hitbox.visible = false; pl_left.visible = false; pl_right.visible = false; pl_health.visible = false; pl_enemyleft.visible = false; pl_enemyright.visible = false; this.mask = Mask; MovieClip(root).setChildIndex(pl_sprite, (MovieClip(root).numChildren - 1)); stageSet(); lvlHolder.addChild(stageBuild); stage.addEventListener(Event.ENTER_FRAME, Think); pl_hitbox.addEventListener(Event.ENTER_FRAME, moveChar); stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown); stage.addEventListener(KeyboardEvent.KEY_UP, checkKeysUp); addChild(spriteRunner); } public function Keys1(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 32){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, Keys1); musicChannel.removeEventListener(Event.SOUND_COMPLETE, onPlaybackComplete); gotoAndStop("title2"); musicChannel.stop(); }; if (_arg1.keyCode == 13){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, Keys1); musicChannel.removeEventListener(Event.SOUND_COMPLETE, onPlaybackComplete); musicChannel.stop(); gotoAndStop("title2"); }; } public function Keys3(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){ }; if ((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))){ }; if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){ }; if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){ }; if (_arg1.keyCode == 32){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, Keys3); gotoAndStop("title1"); musicChannel.stop(); }; if (_arg1.keyCode == 13){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, Keys3); gotoAndStop("title1"); musicChannel.stop(); }; } public function Keys2(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){ }; if ((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))){ }; if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){ }; if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){ }; if (_arg1.keyCode == 32){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, Keys2); this.gotoAndStop("stage1"); musicChannel.stop(); }; if (_arg1.keyCode == 13){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, Keys2); this.gotoAndStop("stage1"); musicChannel.stop(); }; } public function collisionDetectRight():void{ var _local1:int; var _local2:DisplayObject; _local1 = 0; while (_local1 < blockHolder.numChildren) { _local2 = blockHolder.getChildAt(_local1); if (pl_right.hitTestObject(_local2)){ mainMove = false; mainCanMove = false; break; } else { mainCanMove = true; }; _local1++; }; } public function moveScreenRight():void{ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; _local1 = Background1.x; _local2 = (Background1.x - 72); _local3 = Background2.x; _local4 = (Background2.x - 144); _local5 = pl_hitbox.x; _local6 = (pl_hitbox.x - 0x0100); _local7 = lvlHolder.x; _local8 = (lvlHolder.x - 288); plTween = new Tween(pl_hitbox, "x", Strong.easeInOut, _local5, _local6, 60, false); lvlTween = new Tween(lvlHolder, "x", Strong.easeInOut, _local7, _local8, 60, false); bg1Tween = new Tween(Background1, "x", Strong.easeInOut, _local1, _local2, 60, false); bg2Tween = new Tween(Background2, "x", Strong.easeInOut, _local3, _local4, 60, false); lvlTween.addEventListener(TweenEvent.MOTION_FINISH, finishScreenRight); } function frame3(){ titleMusic1 = new Title1(); titleMusic2 = new Title2(); stageMusicStart = new L1Intro(); stageMusicLoop = new L1Loop(); battleMusicLoop = new BattleLoop(); battleMusic = new Battle(); gameoverMusic = new GameOver(); creditsMusic = new Credits(); snd_land = new landsound(); snd_shoot = new shootsound(); snd_slash = new swooshsound(); snd_yell = new hyahsound(); snd_pow = new powsound(); snd_boom = new boomsound(); snd_roboshoot = new roboshoot(); snd_tick = new ticksound(); snd_freelife = new freelifesound(); snd_horn = new hornsound(); snd_titandie = new titandiesound(); snd_failedhit = new failedhitsound(); snd_die = new diesound(); snd_hurt1 = new hurt1(); snd_hurt2 = new hurt2(); snd_hurt3 = new hurt3(); snd_hurt4 = new hurt4(); stage.addEventListener(MouseEvent.CLICK, mouseClick); stop(); } public function stageSet():void{ if (stageCurrent == 0){ stageBuild = new StageZero(); }; if (stageCurrent == 1){ stageBuild = new StageOne(); }; if (stageCurrent == 4){ stageBuild = new StageFour(); }; } public function moveRight():void{ pl_hitbox.x = (pl_hitbox.x + mainSpeed); pl_sprite.x = pl_hitbox.x; pl_left.x = (pl_hitbox.x - 7); pl_right.x = (pl_hitbox.x + 7); } public function moveChar(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; if ((((gamePaused == false)) && ((mainDead == false)))){ if (hurt == false){ if (leftKeyDown){ mainLeft = true; mainRight = false; mainMove = true; collisionDetectLeft(); if (mainCanMove == true){ if (mainSlashing == false){ if ((((lvlHolder.x < 0)) && ((pl_hitbox.x < 144)))){ scrollLeft(); } else { if (pl_hitbox.x < 144){ lvlHolder.x = 0; }; moveLeft(); }; } else { if ((((mainJumping == true)) && (!(gamePaused)))){ if ((((lvlHolder.x < 0)) && ((pl_hitbox.x < 144)))){ scrollLeft(); } else { if (pl_hitbox.x < 144){ lvlHolder.x = 0; }; moveLeft(); }; }; }; }; }; if (rightKeyDown){ mainRight = true; mainLeft = false; mainMove = true; collisionDetectRight(); if (mainCanMove == true){ if (mainSlashing == false){ if (((((lvlHolder.x + lvlHolder.width) > 304)) && ((pl_hitbox.x >= 144)))){ scrollRight(); } else { if (pl_hitbox.x >= 144){ lvlHolder.x = (-(lvlHolder.width) + 304); }; moveRight(); }; } else { if (mainJumping == true){ if (((((lvlHolder.x + lvlHolder.width) > 304)) && ((pl_hitbox.x >= 144)))){ scrollRight(); } else { if (pl_hitbox.x >= 144){ lvlHolder.x = (-(lvlHolder.width) + 304); }; moveRight(); }; }; }; }; }; if (((rightKeyDown) && (leftKeyDown))){ mainRight = true; mainLeft = false; mainMove = false; }; if (shootKeyDown){ if (weapon == 0){ mainShoot(); }; if (weapon == 3){ mainSlash(); }; }; if (((jumpKeyDown) || (mainJumping))){ mainJump(); }; if (upKeyDown){ mainClimb(); }; }; if (((hurt) && (mainJumping))){ mainJump(); }; if (shotTimer.running == false){ mainShooting = false; } else { mainShooting = true; }; if (slashTimer.running == false){ mainSlashing = false; } else { mainSlashing = true; mainMove = false; }; if (hurtTimer.running == false){ hurt = false; } else { hurt = true; if (mainRight){ collisionDetectLeft(); if (mainCanMove){ if ((((((lvlHolder.x - 16) + lvlHolder.width) > 288)) && ((pl_hitbox.x >= 144)))){ lvlHolder.x = (lvlHolder.x + 0.75); enemyHolder.x = (enemyHolder.x + 0.75); actionHolder.x = (actionHolder.x + 0.75); Background1.x = (Background1.x + 0.25); Background2.x = (Background2.x + 0.5); } else { pl_hitbox.x = (pl_hitbox.x - 0.75); }; }; }; if (mainLeft){ collisionDetectRight(); if (mainCanMove){ if ((((lvlHolder.x < 0)) && ((pl_hitbox.x < 144)))){ lvlHolder.x = (lvlHolder.x - 0.75); enemyHolder.x = (enemyHolder.x - 0.75); actionHolder.x = (actionHolder.x - 0.75); Background1.x = (Background1.x - 0.25); Background2.x = (Background2.x - 0.5); } else { pl_hitbox.x = (pl_hitbox.x + 0.75); }; }; }; }; _local2 = 0; while (_local2 < blockHolder.numChildren) { _local3 = blockHolder.getChildAt(_local2); if (((pl_hitbox.hitTestObject(_local3)) && ((pl_hitbox.y < _local3.y)))){ mainOnGround = true; break; }; mainOnGround = false; _local2++; }; if (mainOnGround == false){ mainJumping = true; }; }; } public function finishScreenRight(_arg1:Event):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:*; var _local6:int; pl_sprite.x = pl_hitbox.x; pl_sprite.y = pl_hitbox.y; pl_left.x = (pl_hitbox.x - 7); pl_left.y = pl_hitbox.y; pl_right.x = (pl_hitbox.x + 7); pl_right.y = pl_hitbox.y; lvlTween.removeEventListener(TweenEvent.MOTION_FINISH, finishScreenRight); _local2 = 0; while (_local2 < lvlHolder.numChildren) { _local5 = lvlHolder.getChildAt(_local2); while (_local5.numChildren > 0) { _local6 = 0; while (_local6 < _local5.numChildren) { _local5.removeChildAt(_local6); _local6++; }; }; _local2++; }; _local3 = 0; while (_local3 < enemyHolder.numChildren) { while (enemyHolder.numChildren > 0) { enemyHolder.removeChildAt(_local3); }; _local3++; }; _local4 = 0; while (_local4 < actionHolder.numChildren) { while (actionHolder.numChildren > 0) { actionHolder.removeChildAt(_local4); }; _local4++; }; lvlWidth = -16; stageSet(); addChild(stageBuild); lvlHolder.x = 0; enemyHolder.x = 0; actionHolder.x = 0; gamePaused = false; gameScrolling = false; if (lvlCurrent < lvlBoss){ currentBackground1X = Background1.x; currentBackground2X = Background2.x; }; } public function Think(_arg1:Event):void{ if (lvlStarting == true){ lvlStart(); }; if (gamePaused == false){ if (pl_hitbox.x >= 288){ pl_hitbox.x = 288; pl_sprite.x = 288; lvlVertical = false; nextScreenRight(); }; if (pl_hitbox.y > 240){ lvlVertical = true; nextScreenDown(); }; if ((((hurt == false)) && ((gamePaused == false)))){ pl_hitbox.x = Math.ceil(pl_hitbox.x); pl_hitbox.y = Math.ceil(pl_hitbox.y); Background1.x = Math.ceil(Background1.x); Background2.x = Math.ceil(Background2.x); lvlHolder.x = Math.ceil(lvlHolder.x); lvlHolder.y = Math.ceil(lvlHolder.y); }; if (invulnTimer.running == false){ invulnerable = false; } else { invulnerable = true; }; }; pl_sprite.x = pl_hitbox.x; pl_sprite.y = pl_hitbox.y; pl_left.x = (pl_hitbox.x - 7); pl_left.y = pl_hitbox.y; pl_right.x = (pl_hitbox.x + 7); pl_right.y = pl_hitbox.y; pl_enemyleft.x = pl_hitbox.x; pl_enemyleft.y = pl_hitbox.y; pl_enemyright.x = pl_hitbox.x; pl_enemyright.y = pl_hitbox.y; } public function checkKeysUp(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){ if (leftKeyDown == true){ mainMove = false; leftKeyDown = false; }; }; if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){ if (rightKeyDown == true){ mainMove = false; rightKeyDown = false; }; }; if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){ if (downKeyDown == true){ downKeyDown = false; }; }; if ((((((_arg1.keyCode == 88)) || ((_arg1.keyCode == 190)))) || ((_arg1.keyCode == 38)))){ if (jumpKeyDown == true){ jumpKeyDown = false; mainJumpable = true; }; }; if ((((((_arg1.keyCode == 90)) || ((_arg1.keyCode == 188)))) || ((_arg1.keyCode == 32)))){ if (shootKeyDown == true){ shootKeyDown = false; mainFirable = true; mainSlashable = true; }; }; } function frame1(){ NewgroundsAPI.linkAPI(this); NewgroundsAPI.connectMovie(3913); this.stop(); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING); } public function startMusic():void{ musicChannel = stageMusicStart.play(); musicChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete); } function frame9(){ musicChannel = creditsMusic.play(); } public function stopMusic():void{ musicChannel.stop(); musicChannel.removeEventListener(Event.SOUND_COMPLETE, onPlaybackComplete); } public function scrollRight():void{ lvlHolder.x = (lvlHolder.x - mainSpeed); actionHolder.x = (actionHolder.x - mainSpeed); enemyHolder.x = (enemyHolder.x - mainSpeed); Background1.x = (Background1.x - 1); Background2.x = (Background2.x - 2); } public function mainSlash():void{ if (gamePaused == false){ if ((((mainSlashing == false)) && ((mainSlashable == true)))){ slashTimer.start(); soundChannel = snd_slash.play(); mainSlashable = false; if (mainJumping){ soundChannel = snd_yell.play(); }; }; }; } public function mainJump():void{ var _local1:int; var _local2:DisplayObject; var _local3:*; if ((((((gamePaused == false)) && ((mainDead == false)))) || ((bossTime == true)))){ if (!mainJumping){ if (mainJumpable == true){ mainJumping = true; mainJumpable = false; slashTimer.reset(); jumpSpeed = -10; mainJumpable = false; pl_hitbox.y = (pl_hitbox.y + jumpSpeed); }; } else { if ((((jumpSpeed < 0)) && ((mainOnGround == false)))){ jumpSpeed = (jumpSpeed + 1); if (jumpSpeed > 0){ jumpSpeed = (jumpSpeed * -1); }; }; if ((((((((jumpSpeed >= 0)) && ((jumpSpeed <= jumpSpeedLimit)))) && ((mainOnGround == false)))) || ((((jumpKeyDown == false)) && ((jumpSpeed <= jumpSpeedLimit)))))){ jumpSpeed = (jumpSpeed + 1); }; pl_hitbox.y = (pl_hitbox.y + jumpSpeed); pl_sprite.y = pl_hitbox.y; pl_left.y = pl_hitbox.y; pl_right.y = pl_hitbox.y; _local1 = 0; while (_local1 < blockHolder.numChildren) { _local2 = blockHolder.getChildAt(_local1); _local3 = _local2.globalToLocal(new Point(272, 0)); if ((((_local3.x >= -18)) && ((_local3.x <= 288)))){ if (pl_hitbox.hitTestObject(_local2)){ if (jumpSpeed > 0){ mainJumping = false; pl_hitbox.y = (_local2.y - 11); pl_sprite.y = pl_hitbox.y; pl_left.y = pl_hitbox.y; pl_right.y = pl_hitbox.y; mainOnGround = true; soundChannel = snd_land.play(); jumpSpeed = 0; slashTimer.reset(); break; } else { pl_hitbox.y = (_local2.y + 28); pl_sprite.y = pl_hitbox.y; pl_left.y = pl_hitbox.y; pl_right.y = pl_hitbox.y; jumpSpeed = 0; }; }; }; _local1++; }; }; }; } public function mainHurt():void{ var _local1:Number; if (playerHealth <= 0){ killPlayer(); } else { if (invulnerable == false){ _local1 = Math.round((Math.random() * 3)); _local1 = Math.round((Math.random() * 3)); if (_local1 == 0){ soundChannel = snd_hurt1.play(); }; if (_local1 == 1){ soundChannel = snd_hurt2.play(); }; if (_local1 == 2){ soundChannel = snd_hurt3.play(); }; if (_local1 == 3){ soundChannel = snd_hurt4.play(); }; hurtTimer.start(); jumpSpeed = -6; mainJumping = true; mainInvuln(); }; }; } public function lvlStart():void{ if (startTimer.running == true){ pl_sprite.visible = false; gamePaused = true; pl_health.visible = false; READY.visible = true; } else { pl_sprite.visible = true; gamePaused = false; pl_health.visible = true; lvlStarting = false; READY.visible = false; jumpSpeed = 0; }; } public function lvlRestart(_arg1:Event):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:*; var _local6:int; deadChannel.removeEventListener(Event.SOUND_COMPLETE, lvlRestart); _local2 = 0; while (_local2 < lvlHolder.numChildren) { _local5 = lvlHolder.getChildAt(_local2); while (_local5.numChildren > 0) { _local6 = 0; while (_local6 < _local5.numChildren) { _local5.removeChildAt(_local6); _local6++; }; }; _local2++; }; _local3 = 0; while (_local3 < enemyHolder.numChildren) { while (enemyHolder.numChildren > 0) { enemyHolder.removeChildAt(_local3); }; _local3++; }; _local4 = 0; while (_local4 < actionHolder.numChildren) { while (actionHolder.numChildren > 0) { actionHolder.removeChildAt(_local4); }; _local4++; }; if ((((playerLives > 0)) && ((playCredits == false)))){ if (lvlCurrent == lvlBoss){ lvlCurrent = (lvlBoss - 1); }; stageSet(); addChild(stageBuild); lvlHolder.x = 0; enemyHolder.x = 0; actionHolder.x = 0; Background1.x = currentBackground1X; Background2.x = currentBackground2X; startTimer.start(); lvlStarting = true; mainDead = false; playerHealth = 28; startMusic(); pl_hitbox.x = 144; pl_hitbox.y = 164; } else { if (playCredits == false){ pl_hitbox.removeEventListener(Event.ENTER_FRAME, moveChar); stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown); stage.removeEventListener(KeyboardEvent.KEY_UP, checkKeysUp); stage.removeEventListener(Event.ENTER_FRAME, Think); this.gotoAndStop("gameover"); } else { mainJumping = false; mainJump(); pl_sprite.y = (pl_sprite.y - 64); pl_hitbox.removeEventListener(Event.ENTER_FRAME, moveChar); stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown); stage.removeEventListener(KeyboardEvent.KEY_UP, checkKeysUp); stage.removeEventListener(Event.ENTER_FRAME, Think); (gamePaused == true); this.gotoAndStop("credits"); }; }; } public function enterBattle():void{ stopMusic(); musicChannel = battleMusic.play(); musicChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete); } public function moveLeft():void{ pl_hitbox.x = (pl_hitbox.x - mainSpeed); pl_sprite.x = pl_hitbox.x; pl_left.x = (pl_hitbox.x - 7); pl_right.x = (pl_hitbox.x + 7); } public function onPlaybackCompleteTitle(_arg1:Event){ gotoAndStop("title2"); musicChannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_DOWN, Keys1); musicChannel.removeEventListener(Event.SOUND_COMPLETE, onPlaybackComplete); } public function PL_LOADING(_arg1:ProgressEvent):void{ var _local2:Number; _local2 = (_arg1.bytesLoaded / _arg1.bytesTotal); loadBar.width = ((1 - _local2) * 165); if (_local2 == 1){ this.gotoAndStop("loaded"); }; } public function mouseClick(_arg1:Event):void{ stage.removeEventListener(MouseEvent.CLICK, mouseClick); this.gotoAndStop("title1"); } public function killBoss():void{ deadChannel = snd_titandie.play(); deadChannel.addEventListener(Event.SOUND_COMPLETE, lvlRestart); playCredits = true; gamePaused = true; stopMusic(); } public function checkKeysDown(_arg1:KeyboardEvent):void{ if (gamePaused == false){ if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){ leftKeyDown = true; }; if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){ rightKeyDown = true; }; if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){ downKeyDown = true; }; if ((((((_arg1.keyCode == 88)) || ((_arg1.keyCode == 190)))) || ((_arg1.keyCode == 38)))){ jumpKeyDown = true; }; if ((((((_arg1.keyCode == 90)) || ((_arg1.keyCode == 188)))) || ((_arg1.keyCode == 32)))){ shootKeyDown = true; }; if (_arg1.keyCode == 13){ pauseMenu(); }; }; } public function killPlayer():void{ if (mainDead == false){ deadChannel = snd_die.play(); deadChannel.addEventListener(Event.SOUND_COMPLETE, lvlRestart); mainDead = true; playerHealth = 0; playerLives--; stopMusic(); }; } } }//package KYLESHAW_fla
Section 17
//NG_AD_OBJECT_3 (KYLESHAW_fla.NG_AD_OBJECT_3) package KYLESHAW_fla { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; import flash.net.*; import flash.text.*; import flash.geom.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class NG_AD_OBJECT_3 extends MovieClip { public var ng_ad:MovieClip; public var NG_Button:SimpleButton; public function NG_AD_OBJECT_3(){ addFrameScript(0, frame1); } public function loadNGSite(_arg1:Event){ NewgroundsAPI.loadNewgrounds(); } public function startAd(_arg1){ var _local2:URLLoader; _local2 = new URLLoader(new URLRequest(_arg1)); _local2.addEventListener(Event.COMPLETE, ad_Loaded); } function frame1(){ Security.allowDomain("70.87.128.99"); Security.allowInsecureDomain("70.87.128.99"); Security.allowDomain("ads.shizmoo.com"); Security.allowInsecureDomain("ads.shizmoo.com"); Security.allowDomain("www.cpmstar.com"); Security.allowInsecureDomain("www.cpmstar.com"); Security.allowDomain("server.cpmstar.com"); Security.allowInsecureDomain("server.cpmstar.com"); if (NewgroundsAPI.getAdURL()){ startAd(NewgroundsAPI.getAdURL()); }; NewgroundsAPI.addEventListener(NewgroundsAPI.ADS_APPROVED, startAd); NG_Button.addEventListener(MouseEvent.CLICK, loadNGSite); stop(); } public function ad_Loaded(_arg1:Event){ var _local2:*; var _local3:Loader; _local2 = String(_arg1.target.data); _local3 = new Loader(); _local3.load(new URLRequest(_local2)); ng_ad.addChild(_local3); } } }//package KYLESHAW_fla
Section 18
//NG_TANK_5 (KYLESHAW_fla.NG_TANK_5) package KYLESHAW_fla { import flash.events.*; import flash.display.*; public dynamic class NG_TANK_5 extends MovieClip { public var NG_Logo:SimpleButton; public function NG_TANK_5(){ addFrameScript(0, frame1); } public function loadNGSite(_arg1:Event){ NewgroundsAPI.loadNewgrounds(); } function frame1(){ NG_Logo.addEventListener(MouseEvent.CLICK, loadNGSite); } } }//package KYLESHAW_fla
Section 19
//Symbol1_54 (KYLESHAW_fla.Symbol1_54) package KYLESHAW_fla { import flash.events.*; import flash.display.*; public dynamic class Symbol1_54 extends MovieClip { public function Symbol1_54(){ addFrameScript(2500, frame2501, 2906, frame2907); } public function mouseClickCredits(_arg1:Event):void{ NewgroundsAPI.loadMySite(); } function frame2501(){ stage.addEventListener(MouseEvent.CLICK, mouseClickCredits); } function frame2907(){ this.stop(); } } }//package KYLESHAW_fla
Section 20
//Block (levels.Block) package levels { import flash.display.*; public class Block extends MovieClip { } }//package levels
Section 21
//Killer (levels.Killer) package levels { import flash.events.*; import flash.display.*; public class Killer extends Sprite { private var _root:Object; public function Killer(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ if (this.hitTestObject(_root.pl_hitbox)){ _root.killPlayer(); }; if ((((_root.gameScrolling == true)) || ((_root.mainDead == true)))){ killMe(); }; } private function beginClass(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, beginClass); addEventListener(Event.ENTER_FRAME, eFrame); _root = MovieClip(root); this.graphics.beginFill(0xFF0000, 1); this.graphics.drawRect(0, 0, 16, 16); } private function killMe():void{ this.parent.removeChild(this); removeEventListener(Event.ENTER_FRAME, eFrame); } } }//package levels
Section 22
//Ladder (levels.Ladder) package levels { import flash.events.*; import flash.display.*; public class Ladder extends Sprite { private var _root:Object; public function Ladder(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ if ((((((_root.gameScrolling == true)) && ((this == true)))) || ((_root.mainDead == true)))){ killMe(); }; } private function beginClass(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, beginClass); addEventListener(Event.ENTER_FRAME, eFrame); _root = MovieClip(root); this.graphics.beginFill(0x5F0077, 1); this.graphics.drawRect(0, 0, 16, 16); } private function killMe():void{ removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } } }//package levels
Section 23
//Pit (levels.Pit) package levels { import flash.events.*; import flash.display.*; public class Pit extends Sprite { private var _root:Object; public function Pit(){ addEventListener(Event.ADDED, beginClass); } private function eFrame(_arg1:Event):void{ if (this.hitTestObject(_root.pl_hitbox)){ _root.pl_sprite.visible = false; _root.killPlayer(); }; if ((((_root.gameScrolling == true)) || ((_root.mainDead == true)))){ killMe(); }; } private function beginClass(_arg1:Event):void{ removeEventListener(Event.ADDED, beginClass); addEventListener(Event.ENTER_FRAME, eFrame); _root = MovieClip(root); this.graphics.beginFill(0xFF0000, 1); this.graphics.drawRect(0, 0, 16, 16); this.visible = false; } private function killMe():void{ removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } } }//package levels
Section 24
//StageFour (levels.StageFour) package levels { import flash.events.*; import flash.display.*; import titan.*; import car.*; import frobo.*; import robo.*; public class StageFour extends Sprite { var C:String;// = "CAR" var H:String;// = "CHECK" var B:String;// = "BOSS" var L:String;// = "LADDER" var P:String;// = "PIT" var K:String;// = "KILL" var W:String;// = "PORTAL" var X:String;// = "MAIN" var tileArray5:Array; var tileArray2:Array; var R:String;// = "ROBOT" var tileArray4:Array; var tileArray3:Array; var tilerow:int;// = 0 var F:String;// = "FROBOT" var tileArray1:Array; var lvlArray1:Array; var lvlArray4:Array; var lvlArray5:Array; private var _root:Object; var lvlArray2:Array; var lvlArray3:Array; var lvlArray6:Array; var row:int;// = 0 public function StageFour(){ row = 0; tilerow = 0; X = "MAIN"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 3, 1, 2, 2, 2, 2, 2, 2, 3, 1, 2, 2, 2, 2, 2, 2, 2, 8, 8, 9, 7, 8, 8, 8, 8, 8, 8, 9, 7, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); super(); addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function beginClass(_arg1:Event):void{ var _local2:Array; var _local3:int; var _local4:int; var _local5:*; var _local6:Block; removeEventListener(Event.ADDED_TO_STAGE, beginClass); _root = MovieClip(root); _root.Background1.gotoAndStop("levelzero"); _root.Background2.gotoAndStop("levelzero"); _local2 = this[("lvlArray" + _root.lvlCurrent)]; _local3 = Math.ceil((_local2.length / 16)); _local4 = 0; while (_local4 < _local2.length) { if ((_local4 / _local3) == int((_local4 / _local3))){ row++; }; if (_local2[_local4] == 1){ _local5 = new Block(); _local6 = new Block(); _local5.graphics.beginFill(0xFF, 1); _local5.graphics.drawRect(0, 0, 16, 16); _local5.visible = true; _root.blockHolder.addChild(_local5); } else { if (_local2[_local4] == "MAIN"){ _local5 = _root.pl_hitbox; _root.pl_hitbox.x = ((_local4 - ((row - 1) * _local3)) * _local5.width); _root.pl_hitbox.y = ((row - 1) * _local5.height); } else { if (_local2[_local4] == "KILL"){ _local5 = new Killer(); _root.killHolder.addChild(_local5); } else { if (_local2[_local4] == "PIT"){ _local5 = new Pit(); _root.killHolder.addChild(_local5); } else { if (_local2[_local4] == "LADDER"){ _local5 = new Ladder(); _root.ladderHolder.addChild(_local5); } else { if (_local2[_local4] == "ROBOT"){ _local5 = new RobotSpawn(); _root.enemyHolder.addChild(_local5); } else { if (_local2[_local4] == "FROBOT"){ _local5 = new FrobotSpawn(); _root.enemyHolder.addChild(_local5); } else { if (_local2[_local4] == "CAR"){ _local5 = new CarSpawn(); _root.enemyHolder.addChild(_local5); } else { if (_local2[_local4] == "BOSS"){ _local5 = new TitanSpawn(); _root.enemyHolder.addChild(_local5); }; }; }; }; }; }; }; }; }; if (_local2[_local4] != 0){ _local5.x = ((_local4 - ((row - 1) * _local3)) * 16); _local5.y = ((row - 1) * 16); if (_root.lvlVertical == true){ _local5.y = (_local5.y + _root.lvlHeight); _local5.x = (_local5.x + _root.lvlWidth); } else { _local5.x = (_local5.x + _root.lvlWidth); }; }; _local4++; }; row = 0; this.parent.removeChild(this); } } }//package levels
Section 25
//StageOne (levels.StageOne) package levels { import flash.events.*; import flash.display.*; import titan.*; import car.*; import frobo.*; import robo.*; public class StageOne extends Sprite { var C:String;// = "CAR" var H:String;// = "CHECK" var B:String;// = "BOSS" var P:String;// = "PIT" var K:String;// = "KILL" var W:String;// = "PORTAL" var X:String;// = "MAIN" var tileArray5:Array; var tileArray2:Array; var R:String;// = "ROBOT" var tileArray4:Array; var tileArray3:Array; var tilerow:int;// = 0 var F:String;// = "FROBOT" var tileArray1:Array; var lvlArray1:Array; var lvlArray4:Array; var lvlArray5:Array; private var _root:Object; var lvlArray2:Array; var lvlArray3:Array; var lvlVertical:Boolean;// = false var row:int;// = 0 public function StageOne(){ lvlVertical = false; row = 0; tilerow = 0; X = "MAIN"; K = "KILL"; P = "PIT"; R = "ROBOT"; H = "CHECK"; C = "CAR"; F = "FROBOT"; B = "BOSS"; W = "PORTAL"; lvlArray1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); super(); addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function beginClass(_arg1:Event):void{ var _local2:Array; var _local3:int; var _local4:int; var _local5:Array; var _local6:int; var _local7:int; var _local8:*; var _local9:Block; var _local10:*; var _local11:*; removeEventListener(Event.ADDED_TO_STAGE, beginClass); _root = MovieClip(root); _root.Background1.gotoAndStop("levelone"); _root.Background2.gotoAndStop("levelone"); _local2 = this[("lvlArray" + _root.lvlCurrent)]; _local3 = Math.ceil((_local2.length / 16)); _local4 = 0; while (_local4 < _local2.length) { if ((_local4 / _local3) == int((_local4 / _local3))){ row++; }; if (_local2[_local4] == 1){ _local8 = new Block(); _local9 = new Block(); _local8.graphics.beginFill(0xFF, 1); _local8.graphics.drawRect(0, 0, 16, 16); _local8.visible = false; _root.blockHolder.addChild(_local8); } else { if (_local2[_local4] == "MAIN"){ _local8 = _root.pl_hitbox; _root.pl_hitbox.x = ((_local4 - ((row - 1) * _local3)) * _local8.width); _root.pl_hitbox.y = ((row - 1) * _local8.height); } else { if (_local2[_local4] == "KILL"){ _local8 = new Killer(); _root.killHolder.addChild(_local8); } else { if (_local2[_local4] == "PIT"){ _local8 = new Pit(); _root.killHolder.addChild(_local8); } else { if (_local2[_local4] == "ROBOT"){ _local8 = new RobotSpawn(); _root.enemyHolder.addChild(_local8); } else { if (_local2[_local4] == "FROBOT"){ _local8 = new FrobotSpawn(); _root.enemyHolder.addChild(_local8); } else { if (_local2[_local4] == "CAR"){ _local8 = new CarSpawn(); _root.enemyHolder.addChild(_local8); } else { if (_local2[_local4] == "BOSS"){ _local8 = new TitanSpawn(); _root.enemyHolder.addChild(_local8); }; }; }; }; }; }; }; }; if (_local2[_local4] != 0){ _local8.x = ((_local4 - ((row - 1) * _local3)) * 16); _local8.y = ((row - 1) * 16); if (lvlVertical == true){ _local8.y = (_local8.y + _root.lvlHeight); _local8.x = (_local8.x + _root.lvlWidth); } else { _local8.x = (_local8.x + _root.lvlWidth); }; }; _local4++; }; row = 0; _local5 = this[("tileArray" + _root.lvlCurrent)]; _local6 = Math.ceil((_local5.length / 16)); _local7 = 0; while (_local7 < _local5.length) { if ((_local7 / _local6) == int((_local7 / _local6))){ tilerow++; }; if (_local5[_local7] == 1){ _local11 = new Streets_1(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == 2){ _local11 = new Streets_2(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == 3){ _local11 = new Streets_3(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == 4){ _local11 = new Streets_4(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == 5){ _local11 = new Streets_5(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == 6){ _local11 = new Streets_6(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == 7){ _local11 = new Streets_7(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == 8){ _local11 = new Streets_8(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == 9){ _local11 = new Streets_9(16, 16); _local10 = new Bitmap(_local11); _root.tileHolder.addChild(_local10); } else { if (_local5[_local7] == "PORTAL"){ _local10 = new Portal(); _root.tileHolder.addChild(_local10); }; }; }; }; }; }; }; }; }; }; if (_local5[_local7] != 0){ _local10.x = ((_local7 - ((tilerow - 1) * _local6)) * 16); _local10.y = ((tilerow - 1) * 16); if (lvlVertical == true){ _local10.y = (_local10.y + _root.lvlHeight); _local10.x = (_local10.x + _root.lvlWidth); } else { _local10.x = (_local10.x + _root.lvlWidth); }; }; _local7++; }; tilerow = 0; this.parent.removeChild(this); } } }//package levels
Section 26
//StageZero (levels.StageZero) package levels { import flash.events.*; import flash.display.*; import titan.*; import car.*; import frobo.*; import robo.*; public class StageZero extends Sprite { var C:String;// = "CAR" var H:String;// = "CHECK" var B:String;// = "BOSS" var L:String;// = "LADDER" var P:String;// = "PIT" var K:String;// = "KILL" var W:String;// = "PORTAL" var X:String;// = "MAIN" var tileArray5:Array; var tileArray2:Array; var R:String;// = "ROBOT" var tileArray4:Array; var tileArray3:Array; var tilerow:int;// = 0 var F:String;// = "FROBOT" var tileArray1:Array; var lvlArray1:Array; var lvlArray4:Array; var lvlArray5:Array; private var _root:Object; var lvlArray2:Array; var lvlArray3:Array; var lvlArray6:Array; var row:int;// = 0 public function StageZero(){ row = 0; tilerow = 0; X = "MAIN"; K = "KILL"; P = "PIT"; L = "LADDER"; R = "ROBOT"; H = "CHECK"; C = "CAR"; F = "FROBOT"; B = "BOSS"; W = "PORTAL"; lvlArray1 = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0); super(); addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function beginClass(_arg1:Event):void{ var _local2:Array; var _local3:int; var _local4:int; var _local5:*; var _local6:Block; removeEventListener(Event.ADDED_TO_STAGE, beginClass); _root = MovieClip(root); _root.Background1.gotoAndStop("levelzero"); _root.Background2.gotoAndStop("levelzero"); _local2 = this[("lvlArray" + _root.lvlCurrent)]; _local3 = Math.ceil((_local2.length / 16)); _local4 = 0; while (_local4 < _local2.length) { if ((_local4 / _local3) == int((_local4 / _local3))){ row++; }; if (_local2[_local4] == 1){ _local5 = new Block(); _local6 = new Block(); _local5.graphics.beginFill(0xFF, 1); _local5.graphics.drawRect(0, 0, 16, 16); _local5.visible = true; _root.blockHolder.addChild(_local5); } else { if (_local2[_local4] == "MAIN"){ _local5 = _root.pl_hitbox; _root.pl_hitbox.x = ((_local4 - ((row - 1) * _local3)) * _local5.width); _root.pl_hitbox.y = ((row - 1) * _local5.height); } else { if (_local2[_local4] == "KILL"){ _local5 = new Killer(); _root.killHolder.addChild(_local5); } else { if (_local2[_local4] == "PIT"){ _local5 = new Pit(); _root.killHolder.addChild(_local5); } else { if (_local2[_local4] == "LADDER"){ _local5 = new Ladder(); _root.ladderHolder.addChild(_local5); } else { if (_local2[_local4] == "ROBOT"){ _local5 = new RobotSpawn(); _root.enemyHolder.addChild(_local5); } else { if (_local2[_local4] == "FROBOT"){ _local5 = new FrobotSpawn(); _root.enemyHolder.addChild(_local5); } else { if (_local2[_local4] == "CAR"){ _local5 = new CarSpawn(); _root.enemyHolder.addChild(_local5); } else { if (_local2[_local4] == "BOSS"){ _local5 = new TitanSpawn(); _root.enemyHolder.addChild(_local5); }; }; }; }; }; }; }; }; }; if (_local2[_local4] != 0){ _local5.x = ((_local4 - ((row - 1) * _local3)) * 16); _local5.y = ((row - 1) * 16); if (_root.lvlVertical == true){ _local5.y = (_local5.y + _root.lvlHeight); _local5.x = (_local5.x + _root.lvlWidth); } else { _local5.x = (_local5.x + _root.lvlWidth); }; }; _local4++; }; row = 0; this.parent.removeChild(this); } } }//package levels
Section 27
//Robot (robo.Robot) package robo { import flash.events.*; import flash.display.*; import item.*; import flash.geom.*; public class Robot extends MovieClip { var left:Boolean;// = true var right:Boolean;// = false var health:Number;// = 3 var onGround:Boolean;// = false var jumpSpeed:Number;// = 0 private var _root:Object; var canMove:Boolean;// = true public function Robot(){ health = 3; jumpSpeed = 0; left = true; right = false; canMove = true; onGround = false; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; if (this){ if (_root.gamePaused == false){ this.visible = true; if (this.getChildAt(3).hitTestObject(_root.pl_hitbox)){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 4); }; _root.mainHurt(); }; _local2 = 0; while (_local2 < _root.shotHolder.numChildren) { _local3 = _root.shotHolder.getChildAt(_local2); if (this.getChildAt(3).hitTestObject(_local3)){ if (_local3.visible == true){ health--; _local3.visible = false; if (health > 0){ _root.soundChannel = _root.snd_pow.play(); }; }; this.visible = false; }; _local2++; }; fall(); moving(); }; }; if (((((((((((((((this.hitTestObject(_root.hitScreenLeft)) || (this.hitTestObject(_root.hitScreenRight)))) || (this.hitTestObject(_root.hitScreenUp)))) || (this.hitTestObject(_root.hitScreenDown)))) || ((health <= 0)))) || ((_root.lvlStarting == true)))) || (!(this.parent)))) || ((_root.gameScrolling == true)))){ killMe(); }; } private function collisionDetectLeft():void{ var _local1:int; var _local2:DisplayObject; var _local3:DisplayObject; _local1 = 0; while (_local1 < _root.blockHolder.numChildren) { _local2 = _root.blockHolder.getChildAt(_local1); _local3 = this.getChildAt(2); if (_local3.hitTestObject(_local2)){ canMove = false; onGround = false; break; } else { canMove = true; }; _local1++; }; } private function shootRight():void{ var _local1:ShotRight; var _local2:*; var _local3:*; _local1 = new ShotRight(); _local2 = this.localToGlobal(new Point(0, 0)); _local3 = _root.actionHolder.globalToLocal(_local2); _local1.x = (_local3.x + 26); _local1.y = (_local3.y + 19); _root.actionHolder.addChild(_local1); _root.soundChannel = _root.snd_roboshoot.play(); } private function moving():void{ if (((this.hitTestObject(_root.pl_enemyright)) && ((_root.mainDead == false)))){ left = true; right = false; if (this.currentLabel != "roboLeft"){ this.gotoAndStop("roboLeft"); }; }; if (((this.hitTestObject(_root.pl_enemyleft)) && ((_root.mainDead == false)))){ left = false; right = true; if (this.currentLabel != "roboRight"){ this.gotoAndStop("roboRight"); }; }; if (left){ if ((((_root.hitScreen.currentFrame == 1)) || ((_root.hitScreen.currentFrame == 61)))){ shootLeft(); }; collisionDetectRight(); if (canMove){ this.x--; }; }; if (right){ if ((((_root.hitScreen.currentFrame == 1)) || ((_root.hitScreen.currentFrame == 61)))){ shootRight(); }; collisionDetectLeft(); if (canMove){ this.x++; }; }; } private function beginClass(_arg1:Event):void{ var _local2:RobotColliderLeft; var _local3:RobotColliderRight; var _local4:RobotCollider; _root = MovieClip(root); _local2 = new RobotColliderLeft(); _local3 = new RobotColliderRight(); _local4 = new RobotCollider(); _local2.visible = false; _local3.visible = false; _local4.visible = false; this.addChild(_local2); this.addChild(_local3); this.addChild(_local4); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } private function fall():void{ var _local1:int; var _local2:DisplayObject; var _local3:DisplayObject; if (_root.gamePaused == false){ if ((((jumpSpeed <= 8)) && ((onGround == false)))){ jumpSpeed = (jumpSpeed + 0.75); }; if (onGround == false){ this.y = (this.y + jumpSpeed); }; _local1 = 0; while (_local1 < _root.blockHolder.numChildren) { _local2 = _root.blockHolder.getChildAt(_local1); _local3 = this.getChildAt(3); if (_local3.hitTestObject(_local2)){ onGround = true; this.y = (this.y - (jumpSpeed * 1)); jumpSpeed = 0; break; } else { onGround = false; }; _local1++; }; }; } private function killMe():void{ afterDeath(); this.removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } private function collisionDetectRight():void{ var _local1:int; var _local2:DisplayObject; var _local3:DisplayObject; _local1 = 0; while (_local1 < _root.blockHolder.numChildren) { _local2 = _root.blockHolder.getChildAt(_local1); _local3 = this.getChildAt(1); if (_local3.hitTestObject(_local2)){ canMove = false; onGround = false; break; } else { canMove = true; }; _local1++; }; } private function shootLeft():void{ var _local1:ShotLeft; var _local2:*; var _local3:*; _local1 = new ShotLeft(); _local2 = this.localToGlobal(new Point(0, 0)); _local3 = _root.actionHolder.globalToLocal(_local2); _local1.x = (_local3.x - 15); _local1.y = (_local3.y + 19); _root.actionHolder.addChild(_local1); _root.soundChannel = _root.snd_roboshoot.play(); } private function afterDeath():void{ var _local1:*; var _local2:*; var _local3:Explosion; var _local4:*; var _local5:FreeLife; var _local6:BigHealth; var _local7:LittleHealth; if (health <= 0){ _local1 = this.localToGlobal(new Point(0, 0)); _local2 = _root.actionHolder.globalToLocal(_local1); _local3 = new Explosion(); _local4 = Math.round((Math.random() * 100)); if (_local4 == 0){ _local5 = new FreeLife(); _local5.x = (_local2.x + 8); _local5.y = (_local2.y + 20); _root.actionHolder.addChild(_local5); }; if ((((_local4 > 0)) && ((_local4 <= 10)))){ _local6 = new BigHealth(); _local6.x = (_local2.x + 8); _local6.y = (_local2.y + 20); _root.actionHolder.addChild(_local6); }; if ((((_local4 > 10)) && ((_local4 <= 25)))){ _local7 = new LittleHealth(); _local7.x = (_local2.x + 8); _local7.y = (_local2.y + 20); _root.actionHolder.addChild(_local7); }; _local3.x = (_local2.x + 8); _local3.y = (_local2.y + 20); _root.actionHolder.addChild(_local3); }; } } }//package robo
Section 28
//RobotCollider (robo.RobotCollider) package robo { import flash.display.*; public class RobotCollider extends MovieClip { } }//package robo
Section 29
//RobotColliderLeft (robo.RobotColliderLeft) package robo { import flash.display.*; public class RobotColliderLeft extends MovieClip { } }//package robo
Section 30
//RobotColliderRight (robo.RobotColliderRight) package robo { import flash.display.*; public class RobotColliderRight extends MovieClip { } }//package robo
Section 31
//RobotSpawn (robo.RobotSpawn) package robo { import flash.events.*; import flash.display.*; import flash.geom.*; public class RobotSpawn extends Sprite { var activeSpawn:Boolean;// = true private var _root:Object; public function RobotSpawn(){ activeSpawn = true; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); this.addEventListener(Event.REMOVED_FROM_STAGE, endClass); } function eFrame(_arg1:Event):void{ var _local2:*; var _local3:*; var _local4:Robot; _local2 = this.localToGlobal(new Point(0, 0)); _local3 = this.globalToLocal(_local2); if (this.hitTestObject(_root.hitScreen) == true){ if ((((((this.numChildren <= 0)) && ((activeSpawn == true)))) && ((_root.gamePaused == false)))){ _local4 = new Robot(); activeSpawn = false; _local4.x = _local3.x; _local4.y = _local3.y; this.addChild(_local4); }; } else { if ((((this.hitTestObject(_root.hitScreenLeft) == true)) || ((this.hitTestObject(_root.hitScreenRight) == true)))){ activeSpawn = true; }; }; } function endClass(_arg1:Event):void{ this.removeEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.REMOVED_FROM_STAGE, endClass); } function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); this.graphics.beginFill(0xFF00, 0); this.graphics.drawRect(0, 0, 16, 16); } } }//package robo
Section 32
//ShotLeft (robo.ShotLeft) package robo { import flash.events.*; import flash.display.*; public class ShotLeft extends MovieClip { private var _root:Object; public function ShotLeft(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrameLeft(_arg1:Event):void{ if (_root.gamePaused == false){ this.x = (this.x - 4); if ((((this.hitTestObject(_root.hitScreen) == false)) || ((_root.lvlStarting == true)))){ this.visible = false; }; }; if (this.visible == false){ this.removeEventListener(Event.ENTER_FRAME, eFrameLeft); this.parent.removeChild(this); }; if (((this.hitTestObject(_root.pl_hitbox)) && ((_root.gamePaused == false)))){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 2); _root.mainHurt(); }; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrameLeft); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } } }//package robo
Section 33
//ShotRight (robo.ShotRight) package robo { import flash.events.*; import flash.display.*; public class ShotRight extends MovieClip { private var _root:Object; public function ShotRight(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrameLeft(_arg1:Event):void{ if (_root.gamePaused == false){ this.x = (this.x + 4); if ((((this.hitTestObject(_root.hitScreen) == false)) || ((_root.lvlStarting == true)))){ this.visible = false; }; }; if (this.visible == false){ this.removeEventListener(Event.ENTER_FRAME, eFrameLeft); this.parent.removeChild(this); }; if (((this.hitTestObject(_root.pl_hitbox)) && ((_root.gamePaused == false)))){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 2); _root.mainHurt(); }; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrameLeft); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } } }//package robo
Section 34
//ShotLeft (titan.ShotLeft) package titan { import flash.events.*; import flash.display.*; public class ShotLeft extends MovieClip { private var _root:Object; public function ShotLeft(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrameLeft(_arg1:Event):void{ if (_root.gamePaused == false){ this.x = (this.x - 6); if (this.hitTestObject(_root.hitScreen) == false){ this.visible = false; }; }; if (_root.bossAlive == false){ this.visible = false; }; if (this.visible == false){ this.removeEventListener(Event.ENTER_FRAME, eFrameLeft); this.parent.removeChild(this); }; if (((this.hitTestObject(_root.pl_hitbox)) && ((_root.gamePaused == false)))){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 4); _root.mainHurt(); }; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrameLeft); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } } }//package titan
Section 35
//ShotRight (titan.ShotRight) package titan { import flash.events.*; import flash.display.*; public class ShotRight extends MovieClip { private var _root:Object; public function ShotRight(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrameLeft(_arg1:Event):void{ if (_root.gamePaused == false){ this.x = (this.x + 6); if (this.hitTestObject(_root.hitScreen) == false){ this.visible = false; }; }; if (_root.bossAlive == false){ this.visible = false; }; if (this.visible == false){ this.removeEventListener(Event.ENTER_FRAME, eFrameLeft); this.parent.removeChild(this); }; if (((this.hitTestObject(_root.pl_hitbox)) && ((_root.gamePaused == false)))){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 4); _root.mainHurt(); }; }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrameLeft); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } } }//package titan
Section 36
//Titan (titan.Titan) package titan { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.geom.*; public class Titan extends MovieClip { var rightPointActive:Boolean;// = true var left:Boolean;// = true var bossJumpable:Boolean;// = true var right:Boolean;// = false var leftPointActive:Boolean;// = true var midPointActive:Boolean;// = true var health:Number;// = 28 var onGround:Boolean;// = false var jumpSpeedLimit:Number;// = 8 var stopActive:Boolean;// = false var bossShoot:Boolean;// = false private var _root:Object; var bossJumping:Boolean;// = true var jumpSpeed:Number;// = 0 var bossOnGround:Boolean;// = false var invulnTimer:Timer; var canMove:Boolean;// = true var thinkNumber; var bossRun:Boolean;// = true var actionTimer:Timer; public function Titan(){ bossJumpable = true; bossJumping = true; bossOnGround = false; bossRun = true; bossShoot = false; leftPointActive = true; midPointActive = true; rightPointActive = true; stopActive = false; health = 28; jumpSpeed = 0; jumpSpeedLimit = 8; left = true; right = false; canMove = true; onGround = false; thinkNumber = Math.round((Math.random() * 3)); actionTimer = new Timer(2000, 1); invulnTimer = new Timer(1111, 1); super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; if (((this) && ((_root.mainDead == false)))){ if (_root.bossTime == true){ if (_root.mainOnGround == false){ _root.mainJump(); }; _root.mainMove = false; if (_root.masterHealth < health){ if ((_root.hitScreen.currentFrame % 2) == 0){ _root.masterHealth++; _root.soundChannel = _root.snd_tick.play(); }; } else { _root.gamePaused = false; _root.bossTime = false; }; }; if ((((_root.gamePaused == false)) && ((_root.bossTime == false)))){ _root.masterHealth = health; if (this.getChildAt(0).hitTestObject(_root.pl_hitbox)){ if (_root.invulnerable == false){ _root.playerHealth = (_root.playerHealth - 6); }; _root.mainHurt(); }; _local2 = 0; while (_local2 < _root.shotHolder.numChildren) { _local3 = _root.shotHolder.getChildAt(_local2); if (this.getChildAt(0).hitTestObject(_local3)){ if (_local3.visible == true){ _local3.visible = false; if (invulnTimer.running == false){ health = (health - 2); invulnTimer.start(); if (health > 0){ _root.soundChannel = _root.snd_pow.play(); }; } else { _root.soundChannel = _root.snd_failedhit.play(); }; }; }; _local2++; }; if (bossOnGround == false){ bossJump(); }; moving(); sprite(); }; }; if (((((((((((((((this.hitTestObject(_root.hitScreenLeft)) || (this.hitTestObject(_root.hitScreenRight)))) || (this.hitTestObject(_root.hitScreenUp)))) || (this.hitTestObject(_root.hitScreenDown)))) || ((health <= 0)))) || ((_root.lvlStarting == true)))) || (!(this.parent)))) || ((_root.gameScrolling == true)))){ killMe(); }; } function bossJump():void{ var _local1:int; var _local2:DisplayObject; if ((((_root.gamePaused == false)) && ((_root.mainDead == false)))){ if (!bossJumping){ if (bossJumpable == true){ bossJumping = true; jumpSpeed = -10; bossOnGround = false; this.y = (this.y + jumpSpeed); }; } else { if ((((jumpSpeed < 0)) && ((bossOnGround == false)))){ jumpSpeed = (jumpSpeed + 1); if (jumpSpeed > 0){ jumpSpeed = (jumpSpeed * -1); }; }; if ((((((jumpSpeed >= 0)) && ((jumpSpeed <= jumpSpeedLimit)))) && ((bossOnGround == false)))){ jumpSpeed = (jumpSpeed + 1); }; this.y = (this.y + jumpSpeed); _local1 = 0; while (_local1 < _root.blockHolder.numChildren) { _local2 = _root.blockHolder.getChildAt(_local1); if (this.getChildAt(1).hitTestObject(_local2)){ if (jumpSpeed > 0){ bossJumping = false; bossJumpable = true; this.y = 64; bossOnGround = true; jumpSpeed = 0; break; } else { jumpSpeed = 0; this.y = (this.y + 8); }; }; _local1++; }; }; }; } private function shootRight():void{ var _local1:ShotRight; var _local2:*; var _local3:*; _local1 = new ShotRight(); _local2 = this.localToGlobal(new Point(0, 0)); _local3 = _root.actionHolder.globalToLocal(_local2); _local1.x = (_local3.x + 26); _local1.y = (_local3.y + 19); _root.actionHolder.addChild(_local1); _root.soundChannel = _root.snd_roboshoot.play(); } private function moving():void{ var _local1:*; _local1 = this.localToGlobal(new Point(0, 0)); if ((((_local1.x >= 244)) && (rightPointActive))){ thinkNumber = Math.round((Math.random() * 3)); left = true; right = false; bossJumpable = true; leftPointActive = true; midPointActive = true; rightPointActive = false; if (thinkNumber >= 2){ bossJump(); }; if ((((thinkNumber == 1)) || ((thinkNumber == 3)))){ bossRun = true; } else { bossRun = false; }; }; if ((((_local1.x <= 28)) && (leftPointActive))){ thinkNumber = Math.round((Math.random() * 3)); left = false; right = true; bossJumpable = true; leftPointActive = false; midPointActive = true; rightPointActive = true; if (thinkNumber >= 2){ bossJump(); bossJumpable = false; }; if ((((thinkNumber == 1)) || ((thinkNumber == 3)))){ bossRun = true; } else { bossRun = false; }; }; if ((((((_local1.x <= 136)) && (left))) && (midPointActive))){ leftPointActive = true; midPointActive = false; rightPointActive = true; thinkNumber = Math.round((Math.random() * 3)); if ((((thinkNumber >= 2)) && ((bossOnGround == true)))){ bossJump(); }; if ((((thinkNumber == 1)) || ((thinkNumber == 3)))){ bossRun = true; } else { bossRun = false; }; }; if ((((((_local1.x >= 136)) && (right))) && (midPointActive))){ leftPointActive = true; midPointActive = false; rightPointActive = true; thinkNumber = Math.round((Math.random() * 3)); if ((((thinkNumber >= 2)) && ((bossOnGround == true)))){ bossJump(); }; if ((((thinkNumber == 1)) || ((thinkNumber == 3)))){ bossRun = true; } else { bossRun = false; }; }; if (bossRun){ run(); }; if (left){ if ((((((((((((_root.hitScreen.currentFrame == 1)) || ((_root.hitScreen.currentFrame == 7)))) || ((_root.hitScreen.currentFrame == 20)))) || ((_root.hitScreen.currentFrame == 61)))) || ((_root.hitScreen.currentFrame == 67)))) || ((_root.hitScreen.currentFrame == 80)))){ shootLeft(); }; }; if (right){ if ((((((((((((_root.hitScreen.currentFrame == 1)) || ((_root.hitScreen.currentFrame == 7)))) || ((_root.hitScreen.currentFrame == 20)))) || ((_root.hitScreen.currentFrame == 67)))) || ((_root.hitScreen.currentFrame == 70)))) || ((_root.hitScreen.currentFrame == 80)))){ shootRight(); }; }; if ((((bossRun == false)) && ((stopActive == false)))){ if (((this.hitTestObject(_root.pl_enemyright)) && ((_root.mainDead == false)))){ left = true; right = false; }; if (((this.hitTestObject(_root.pl_enemyleft)) && ((_root.mainDead == false)))){ left = false; right = true; }; stopActive = true; actionTimer.start(); }; if ((((actionTimer.running == false)) && ((stopActive == true)))){ stopActive = false; thinkNumber = Math.round((Math.random() * 3)); if ((((thinkNumber >= 2)) && ((bossOnGround == true)))){ bossJump(); }; if ((((thinkNumber == 1)) || ((thinkNumber == 3)))){ bossRun = true; } else { bossRun = false; }; }; if (bossRun == false){ if (((this.hitTestObject(_root.pl_enemyright)) && ((_root.mainDead == false)))){ left = true; right = false; }; if (((this.hitTestObject(_root.pl_enemyleft)) && ((_root.mainDead == false)))){ left = false; right = true; }; }; } private function beginClass(_arg1:Event):void{ var _local2:TitanCollider; var _local3:BossHealth; this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); this.x = (this.x - 4); this.stop(); _root = MovieClip(root); _root.gamePaused = true; _root.bossTime = true; _root.bossAlive = true; _root.masterHealth = 0; _local2 = new TitanCollider(); _local3 = new BossHealth(); _local2.visible = false; _local3.x = 0x0100; _local3.y = 24; this.addChild(_local2); _root.addChild(_local3); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } private function killMe():void{ afterDeath(); this.removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } private function run():void{ if (left){ this.x = (this.x - 3); }; if (right){ this.x = (this.x + 3); }; } private function sprite():void{ if ((((((_root.hitScreen.currentFrame > 110)) || ((_root.hitScreen.currentFrame <= 25)))) || ((((_root.hitScreen.currentFrame >= 50)) && ((_root.hitScreen.currentFrame <= 85)))))){ bossShoot = true; } else { bossShoot = false; }; if (left){ if (bossRun == false){ if (bossShoot == true){ if (this.currentLabel != "titanShootLeft"){ this.gotoAndStop("titanShootLeft"); }; } else { if (this.currentLabel != "titanStandLeft"){ this.gotoAndStop("titanStandLeft"); }; }; } else { if (this.currentLabel != "titanRunLeft"){ this.gotoAndStop("titanRunLeft"); }; }; if (bossOnGround == false){ if (this.currentLabel != "titanJumpLeft"){ this.gotoAndStop("titanJumpLeft"); }; }; }; if (right){ if (bossRun == false){ if (bossShoot == true){ if (this.currentLabel != "titanShootRight"){ this.gotoAndStop("titanShootRight"); }; } else { if (this.currentLabel != "titanStandRight"){ this.gotoAndStop("titanStandRight"); }; }; } else { if (this.currentLabel != "titanRunRight"){ this.gotoAndStop("titanRunRight"); }; }; if (bossOnGround == false){ if (this.currentLabel != "titanJumpRight"){ this.gotoAndStop("titanJumpRight"); }; }; }; if (invulnTimer.running == true){ if ((_root.hitScreen.currentFrame % 3) == 0){ this.alpha = 0.25; } else { this.alpha = 0.75; }; } else { this.alpha = 1; }; } private function shootLeft():void{ var _local1:ShotLeft; var _local2:*; var _local3:*; _local1 = new ShotLeft(); _local2 = this.localToGlobal(new Point(0, 0)); _local3 = _root.actionHolder.globalToLocal(_local2); _local1.x = (_local3.x - 15); _local1.y = (_local3.y + 19); _root.actionHolder.addChild(_local1); _root.soundChannel = _root.snd_roboshoot.play(); } private function afterDeath():void{ var _local1:*; var _local2:*; var _local3:BossDeath; _root.masterHealth = health; _root.bossAlive = false; if (health <= 0){ _local1 = this.localToGlobal(new Point(0, 0)); _local2 = _root.actionHolder.globalToLocal(_local1); _local3 = new BossDeath(); _local3.x = (_local2.x + 8); _local3.y = (_local2.y + 20); _root.actionHolder.addChild(_local3); _root.killBoss(); }; } } }//package titan
Section 37
//TitanCollider (titan.TitanCollider) package titan { import flash.display.*; public class TitanCollider extends MovieClip { } }//package titan
Section 38
//TitanSpawn (titan.TitanSpawn) package titan { import flash.events.*; import flash.display.*; import flash.geom.*; public class TitanSpawn extends Sprite { var activeSpawn:Boolean;// = true private var _root:Object; public function TitanSpawn(){ activeSpawn = true; super(); this.addEventListener(Event.ADDED_TO_STAGE, beginClass); this.addEventListener(Event.REMOVED_FROM_STAGE, endClass); } function eFrame(_arg1:Event):void{ var _local2:*; var _local3:*; var _local4:Titan; _local2 = this.localToGlobal(new Point(0, 0)); _local3 = this.globalToLocal(_local2); if (this.hitTestObject(_root.hitScreen) == true){ if ((((((this.numChildren <= 0)) && ((activeSpawn == true)))) && ((_root.gamePaused == false)))){ _local4 = new Titan(); activeSpawn = false; _local4.x = _local3.x; _local4.y = _local3.y; this.addChild(_local4); }; } else { if ((((this.hitTestObject(_root.hitScreenLeft) == true)) || ((this.hitTestObject(_root.hitScreenRight) == true)))){ activeSpawn = true; }; }; } function endClass(_arg1:Event):void{ this.removeEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.REMOVED_FROM_STAGE, endClass); } function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.addEventListener(Event.ENTER_FRAME, eFrame); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); this.graphics.beginFill(0xFF00, 0); this.graphics.drawRect(0, 0, 16, 16); } } }//package titan
Section 39
//Battle (Battle) package { import flash.media.*; public dynamic class Battle extends Sound { } }//package
Section 40
//BattleLoop (BattleLoop) package { import flash.media.*; public dynamic class BattleLoop extends Sound { } }//package
Section 41
//boomsound (boomsound) package { import flash.media.*; public dynamic class boomsound extends Sound { } }//package
Section 42
//BossDeath (BossDeath) package { import flash.display.*; public class BossDeath extends MovieClip { private var _root:Object; } }//package
Section 43
//BossHealth (BossHealth) package { import flash.events.*; import flash.display.*; public class BossHealth extends MovieClip { private var _root:Object; public function BossHealth(){ addEventListener(Event.ADDED, beginClass); } private function eFrame(_arg1:Event):void{ if (_root.masterhealth < 0){ _root.masterHealth = 0; }; this.gotoAndStop((_root.masterHealth + 1)); if (_root.lvlCurrent != _root.lvlBoss){ killMe(); }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); addEventListener(Event.ENTER_FRAME, eFrame); } private function killMe():void{ removeEventListener(Event.ENTER_FRAME, eFrame); this.parent.removeChild(this); } } }//package
Section 44
//Credits (Credits) package { import flash.media.*; public dynamic class Credits extends Sound { } }//package
Section 45
//diesound (diesound) package { import flash.media.*; public dynamic class diesound extends Sound { } }//package
Section 46
//Explosion (Explosion) package { import flash.events.*; import flash.display.*; import flash.media.*; public class Explosion extends MovieClip { var explosionChannel:SoundChannel; private var _root:Object; public function Explosion(){ explosionChannel = new SoundChannel(); super(); addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function boomDone(_arg1:Event):void{ explosionChannel.removeEventListener(Event.SOUND_COMPLETE, boomDone); this.parent.removeChild(this); } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); explosionChannel = _root.snd_boom.play(); explosionChannel.addEventListener(Event.SOUND_COMPLETE, boomDone); this.removeEventListener(Event.ADDED_TO_STAGE, beginClass); } } }//package
Section 47
//failedhitsound (failedhitsound) package { import flash.media.*; public dynamic class failedhitsound extends Sound { } }//package
Section 48
//freelifesound (freelifesound) package { import flash.media.*; public dynamic class freelifesound extends Sound { } }//package
Section 49
//gameLoading (gameLoading) package { import flash.display.*; public dynamic class gameLoading extends MovieClip { } }//package
Section 50
//GameOver (GameOver) package { import flash.media.*; public dynamic class GameOver extends Sound { } }//package
Section 51
//gamePlay (gamePlay) package { import flash.display.*; public dynamic class gamePlay extends MovieClip { } }//package
Section 52
//hornsound (hornsound) package { import flash.media.*; public dynamic class hornsound extends Sound { } }//package
Section 53
//hurt1 (hurt1) package { import flash.media.*; public dynamic class hurt1 extends Sound { } }//package
Section 54
//hurt2 (hurt2) package { import flash.media.*; public dynamic class hurt2 extends Sound { } }//package
Section 55
//hurt3 (hurt3) package { import flash.media.*; public dynamic class hurt3 extends Sound { } }//package
Section 56
//hurt4 (hurt4) package { import flash.media.*; public dynamic class hurt4 extends Sound { } }//package
Section 57
//hyahsound (hyahsound) package { import flash.media.*; public dynamic class hyahsound extends Sound { } }//package
Section 58
//L1Intro (L1Intro) package { import flash.media.*; public dynamic class L1Intro extends Sound { } }//package
Section 59
//L1Loop (L1Loop) package { import flash.media.*; public dynamic class L1Loop extends Sound { } }//package
Section 60
//landsound (landsound) package { import flash.media.*; public dynamic class landsound extends Sound { } }//package
Section 61
//Lives (Lives) package { import flash.events.*; import flash.display.*; public class Lives extends MovieClip { private var _root:Object; public function Lives(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); this.gotoAndStop(_root.playerLives); } } }//package
Section 62
//NewgroundsAPI (NewgroundsAPI) package { import flash.events.*; import flash.display.*; import flash.net.*; import flash.text.*; public class NewgroundsAPI { public static const ADS_APPROVED:Number = 3; public static const bridge:Sprite = new Sprite(); private static const STAT_NEW_VERSION:Number = 4; private static const STAT_AUTHOR_SITE:Number = 2; private static const GATEWAY_URL:String = "http://www.ngads.com/gateway.php"; private static const NEWGROUNDS_URL:String = "http://www.newgrounds.com"; private static const STAT_CUSTOM_STATS:Number = 50; private static const STAT_MOVIE_VIEWS:Number = 1; private static const STAT_NEWGROUNDS:Number = 3; public static const NEW_VERSION:Number = 2; public static const DENY_HOST:Number = 1; private static var tracker_id:Number; private static var movie_options:Object = new Object(); private static var connected:Boolean; private static var custom_events:Object = new Object(); private static var host:String; private static var linked:Boolean; private static var events:Object = new Object(); private static var debug:Boolean; private static var version:String; private static var custom_links:Object = new Object(); public static function getNewVersionURL(){ return (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + STAT_NEW_VERSION)); } private static function ReadGatewayData(_arg1:Object){ var _local2:*; var _local3:String; var _local4:*; var _local5:URLLoader; for (_local2 in _arg1) { _arg1[_local2] = unescape(_arg1[_local2]); movie_options[_local2] = _arg1[_local2]; }; if (_arg1["settings_loaded"]){ SendMessage("You have successfully connected to the Newgrounds API gateway!"); SendMessage((("Movie Identified as '" + movie_options["movie_name"]) + "'")); if (movie_options["message"]){ SendMessage(movie_options["message"]); }; if (movie_options["ad_url"]){ SendMessage("Your movie has been approved to run Flash Ads"); if (events[ADS_APPROVED]){ var _local6 = events; _local6[ADS_APPROVED](movie_options["ad_url"]); } else { onAdsApproved(movie_options["ad_url"]); }; }; if (((movie_options["movie_version"]) && (!((String(movie_options["movie_version"]) == String(version)))))){ SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!"); if (events[NEW_VERSION]){ _local6 = events; _local6[NEW_VERSION]({version:movie_options["movie_version"], real_url:getMovieURL(), redirect_url:getNewVersionURL()}); } else { onNewVersionAvailable(movie_options["movie_version"], getMovieURL(), getNewVersionURL()); }; }; if (movie_options["deny_host"]){ SendMessage("You have blocked 'localHost' in your API settings."); SendMessage("If you wish to test your movie you will need to remove this block."); if (events[DENY_HOST]){ _local6 = events; _local6[DENY_HOST]({host:host, real_url:getMovieURL(), redirect_url:getNewVersionURL()}); } else { onDenyHost(host, getMovieURL(), getNewVersionURL()); }; }; if (movie_options["request_portal_url"]){ _local3 = bridge.root.loaderInfo.url; _local4 = ((((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_local3)); _local5 = new URLLoader(new URLRequest(_local4)); }; if (events[69]){ _local6 = events; _local6[69](); }; } else { if (!movie_options["settings_loaded"]){ SendError("Could not establish connection to the API gateway."); }; }; } public static function setMovieVersion(_arg1){ if (!_arg1){ SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)"); } else { version = String(_arg1); }; } public static function loadCustomLink(_arg1:String){ if (!_arg1){ SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)"); } else { if (!custom_links[_arg1]){ SendError(("Attempted to open undefined custom link: " + _arg1)); } else { SendLink(custom_links[_arg1]); }; }; } public static function addCustomLink(_arg1:Number, _arg2:String){ if (!_arg1){ SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else { if (!_arg2){ SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else { custom_links[_arg2] = (STAT_CUSTOM_STATS + _arg1); SendMessage(((("Created custom link " + _arg1) + ": ") + _arg2)); }; }; } public static function getMovieURL(){ if (movie_options["movie_url"]){ return (movie_options["movie_url"]); }; return ("Newgrounds.com"); } public static function debugMode(){ debug = true; } public static function getAdURL(){ return (movie_options["ad_url"]); } private static function SendStat(_arg1:Number, _arg2:Boolean, _arg3=null){ var target_url:*; var XML_Loaded:Function; var x:*; var request:URLRequest; var gateway_loader:URLLoader; var stat_id = _arg1; var open_in_browser = _arg2; var extra = _arg3; if (!tracker_id){ SendError("You must call NewgroundsAPI.connectMovie() with a valid movie id before using API features!"); } else { XML_Loaded = function (_arg1:Event){ var _local2:XML; var _local3:Object; var _local4:XMLList; var _local5:XML; var _local6:*; var _local7:*; XML.ignoreWhitespace = true; _local2 = XML(_arg1.target.data); _local3 = new Object(); _local4 = _local2.children(); for each (_local5 in _local4) { _local6 = _local5.localName(); _local7 = _local5.attribute("value"); if (_local7 == Number(_local7)){ _local7 = Number(_local7); }; _local3[_local6] = _local7; }; ReadGatewayData(_local3); }; target_url = (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id) + addSeed()); if (extra){ for (x in extra) { target_url = (target_url + ((("&" + escape(x)) + "=") + escape(extra[x]))); }; }; if (debug){ target_url = (target_url + "&debug=1"); }; if (open_in_browser){ request = new URLRequest((target_url + addSeed())); navigateToURL(request, "_blank"); } else { gateway_loader = new URLLoader(new URLRequest((target_url + addSeed()))); gateway_loader.addEventListener(Event.COMPLETE, XML_Loaded); }; }; } public static function onAdsApproved(_arg1:String){ } public static function loadMySite(_arg1:Event=null){ SendLink(STAT_AUTHOR_SITE); } private static function SendMessage(_arg1:String){ trace(("[NEWGROUNDS API] :: " + _arg1)); } public static function linkAPI(_arg1){ _arg1.addChild(bridge); linked = true; } public static function loadNewgrounds(_arg1:Event=null, _arg2:String=null){ var _local3:URLRequest; var _local4:*; if (!tracker_id){ _local3 = new URLRequest(((NEWGROUNDS_URL + "/") + _arg2)); navigateToURL(_local3, "_blank"); } else { _local4 = null; if (_arg2){ _local4 = new Object(); _local4.page = _arg2; }; SendLink(STAT_NEWGROUNDS, _local4); }; } private static function SendLink(_arg1, _arg2=null){ SendStat(_arg1, true, _arg2); } public static function logCustomEvent(_arg1:String){ if (!_arg1){ SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)"); } else { if (!custom_events[_arg1]){ SendError(("Attempted to log undefined custom event: " + _arg1)); } else { SendEvent(custom_events[_arg1]); }; }; } private static function SendError(_arg1:String){ trace(("[NEWGROUNDS API ERROR] :: " + _arg1)); } public static function addCustomEvent(_arg1:Number, _arg2:String){ if (!_arg1){ SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else { if (!_arg2){ SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else { custom_events[_arg2] = (STAT_CUSTOM_STATS + _arg1); SendMessage(("Created custom event: " + _arg2)); }; }; } private static function addSeed(){ return (("&seed=" + Math.random())); } public static function addEventListener(_arg1:Number, _arg2:Function){ events[_arg1] = _arg2; } private static function SendEvent(_arg1){ SendStat(_arg1, false); } public static function onNewVersionAvailable(_arg1:String, _arg2:String, _arg3:String){ var sw:*; var sh:*; var tw:*; var th:*; var mg:*; var _root:*; var overlay:MovieClip; var overlay_x:*; var overlay_y:*; var close_x:*; var blankarea:TextField; var header:TextField; var header_format:TextFormat; var msgtext:TextField; var msgtext_format:TextFormat; var msgtext_link:TextFormat; var version = _arg1; var movie_url = _arg2; var redirect_url = _arg3; sw = bridge.stage.stageWidth; sh = bridge.stage.stageHeight; tw = 350; th = 160; mg = 20; _root = bridge.root; overlay = new MovieClip(); overlay.graphics.beginFill(0, 0.6); overlay.graphics.lineStyle(0, 0); overlay.graphics.drawRect(0, 0, sw, sh); overlay.graphics.endFill(); overlay_x = Math.round(((sw - tw) / 2)); overlay_y = Math.round(((sh - th) / 2)); overlay.graphics.beginFill(102); overlay.graphics.lineStyle(10, 0); overlay.graphics.drawRect((overlay_x - mg), (overlay_y - mg), (tw + mg), (th + mg)); overlay.graphics.endFill(); overlay.close = function (_arg1:Event){ _root.removeChild(overlay); }; close_x = new MovieClip(); close_x.graphics.beginFill(0, 0.1); close_x.graphics.lineStyle(3, 22015); close_x.graphics.drawRect(0, 0, 16, 16); close_x.graphics.endFill(); close_x.graphics.moveTo(4, 4); close_x.graphics.lineTo(13, 13); close_x.graphics.moveTo(13, 4); close_x.graphics.lineTo(4, 13); close_x.x = ((overlay_x + tw) - 26); close_x.y = (overlay_y - 10); close_x.addEventListener(MouseEvent.CLICK, overlay.close); blankarea = new TextField(); blankarea.x = (overlay_x - mg); blankarea.y = (overlay_y - mg); blankarea.width = (tw + mg); blankarea.height = (th + mg); blankarea.selectable = false; header = new TextField(); header.width = tw; header.x = overlay_x; header.y = overlay_y; header.height = 100; header.selectable = false; header_format = new TextFormat(); header_format.font = "Arial Black"; header_format.color = 0xFFFFFF; header_format.size = 20; header.defaultTextFormat = header_format; header.text = "New Version Available!"; msgtext = new TextField(); msgtext.x = overlay_x; msgtext.y = (overlay_y + 70); msgtext.width = tw; msgtext.height = 60; msgtext.selectable = false; msgtext_format = new TextFormat(); msgtext_format.font = "Arial"; msgtext_format.color = 0xFFFFFF; msgtext_format.size = 12; msgtext_format.bold = true; msgtext_link = new TextFormat(); msgtext_link.font = "Arial"; msgtext_link.color = 0xFFFF00; msgtext_link.size = 12; msgtext_link.bold = true; msgtext_link.url = redirect_url; msgtext_link.target = "_blank"; if (version){ version = ("Version " + version); } else { version = "A new version"; }; msgtext.defaultTextFormat = msgtext_format; msgtext.appendText((version + " is now available")); if (movie_url){ msgtext.appendText(" at:\n"); msgtext.defaultTextFormat = msgtext_link; msgtext.appendText(movie_url); } else { msgtext.appendText("!"); }; _root.addChild(overlay); overlay.addChild(blankarea); overlay.addChild(header); overlay.addChild(msgtext); overlay.addChild(close_x); } public static function onDenyHost(_arg1:String, _arg2:String, _arg3:String){ var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:MovieClip; var _local10:TextField; var _local11:TextField; var _local12:TextFormat; var _local13:TextField; var _local14:TextFormat; var _local15:TextFormat; _local4 = bridge.stage.stageWidth; _local5 = bridge.stage.stageHeight; _local6 = 350; _local7 = 160; _local8 = bridge.root; _local9 = new MovieClip(); _local9.graphics.beginFill(0x660000); _local9.graphics.lineStyle(20, 0); _local9.graphics.drawRect(0, 0, _local4, _local5); _local9.graphics.endFill(); _local10 = new TextField(); _local10.x = 0; _local10.y = 0; _local10.width = _local4; _local10.height = _local5; _local10.selectable = false; _local11 = new TextField(); _local11.x = Math.round(((_local4 - _local6) / 2)); _local11.y = Math.round(((_local5 - _local7) / 2.5)); _local11.width = _local6; _local11.height = 100; _local11.selectable = false; _local12 = new TextFormat(); _local12.font = "Arial Black"; _local12.color = 0xFF0000; _local12.size = 38; _local11.defaultTextFormat = _local12; _local11.text = "ERROR!"; _local13 = new TextField(); _local13.x = Math.round(((_local4 - _local6) / 2)); _local13.y = (Math.round(((_local5 - _local7) / 2.5)) + 80); _local13.width = _local6; _local13.height = 80; _local13.selectable = false; _local14 = new TextFormat(); _local14.font = "Arial"; _local14.color = 0xFFFFFF; _local14.size = 12; _local14.bold = true; _local15 = new TextFormat(); _local15.font = "Arial"; _local15.color = 0xFFFF00; _local15.size = 12; _local15.bold = true; _local15.url = _arg3; _local15.target = "_blank"; _local13.defaultTextFormat = _local14; _local13.appendText((("This movie has not been approved for use on " + _arg1) + "\n")); _local13.appendText("For an approved copy, please visit:\n"); _local13.defaultTextFormat = _local15; _local13.appendText(_arg2); _local8.addChild(_local9); _local9.addChild(_local10); _local9.addChild(_local11); _local9.addChild(_local13); } public static function connectMovie(_arg1:Number){ var _local2:String; var _local3:*; if (!_arg1){ SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)"); } else { if (!linked){ SendError("Attempted to call MewgroundsAPI.connectMovie() without first calling NewgroundsAPI.linkAPI(this)"); } else { if (!tracker_id){ SendMessage("Connecting to API gateway..."); tracker_id = _arg1; _local2 = bridge.root.loaderInfo.url; host = _local2.split("/")[2].toLowerCase(); if (host.length < 1){ host = "localhost"; }; _local3 = new Object(); SendEvent(STAT_MOVIE_VIEWS); }; }; }; } public static function isInstalled(){ return (true); } } }//package
Section 63
//PauseMenu (PauseMenu) package { import flash.events.*; import flash.display.*; public class PauseMenu extends MovieClip { private var _root:Object; public function PauseMenu(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } function checkPauseKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 13){ killMe(); }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); _root.musicChannel.soundTransform = _root.transMenu; _root.stage.addEventListener(KeyboardEvent.KEY_DOWN, checkPauseKeyDown); addChildren(); } function killMe():void{ _root.pauseMenuOpen = false; _root.gamePaused = false; _root.musicChannel.soundTransform = _root.transNorm; _root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkPauseKeyDown); this.parent.removeChild(this); } function addChildren():void{ var _local1:Lives; _local1 = new Lives(); _local1.x = 234; _local1.y = 184; this.addChild(_local1); } } }//package
Section 64
//pl_shot_left (pl_shot_left) package { import flash.display.*; public dynamic class pl_shot_left extends MovieClip { } }//package
Section 65
//pl_shot_right (pl_shot_right) package { import flash.display.*; public dynamic class pl_shot_right extends MovieClip { } }//package
Section 66
//playerHitbox (playerHitbox) package { import flash.display.*; public dynamic class playerHitbox extends MovieClip { } }//package
Section 67
//playerLeft (playerLeft) package { import flash.display.*; public dynamic class playerLeft extends MovieClip { } }//package
Section 68
//playerRight (playerRight) package { import flash.display.*; public dynamic class playerRight extends MovieClip { } }//package
Section 69
//Portal (Portal) package { import flash.display.*; public dynamic class Portal extends MovieClip { } }//package
Section 70
//powsound (powsound) package { import flash.media.*; public dynamic class powsound extends Sound { } }//package
Section 71
//roboshoot (roboshoot) package { import flash.media.*; public dynamic class roboshoot extends Sound { } }//package
Section 72
//shootsound (shootsound) package { import flash.media.*; public dynamic class shootsound extends Sound { } }//package
Section 73
//shot (shot) package { import flash.events.*; import flash.display.*; public class shot extends MovieClip { private var _root:Object; public function shot(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrameRight(_arg1:Event):void{ if (_root.gamePaused == false){ this.x = (this.x + 8); if (this.x > 288){ this.visible = false; }; }; if (this.visible == false){ _root.mainShots--; this.removeEventListener(Event.ENTER_FRAME, eFrameRight); this.parent.removeChild(this); }; } private function eFrameLeft(_arg1:Event):void{ if (_root.gamePaused == false){ this.x = (this.x - 8); if (this.x < 0){ this.visible = false; }; }; if (this.visible == false){ _root.mainShots--; this.removeEventListener(Event.ENTER_FRAME, eFrameLeft); this.parent.removeChild(this); }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); if (_root.mainLeft == true){ this.x = (_root.pl_hitbox.x - 24); this.y = (_root.pl_hitbox.y - 2); this.gotoAndStop("shotLeft"); addEventListener(Event.ENTER_FRAME, eFrameLeft); }; if (_root.mainRight == true){ this.x = (_root.pl_hitbox.x + 24); this.y = (_root.pl_hitbox.y - 2); this.gotoAndStop("shotRight"); addEventListener(Event.ENTER_FRAME, eFrameRight); }; } } }//package
Section 74
//SpriteRunner (SpriteRunner) package { import flash.events.*; import flash.display.*; public class SpriteRunner extends Sprite { private var _root:Object; public function SpriteRunner(){ addEventListener(Event.ADDED_TO_STAGE, beginClass); } private function eFrame(_arg1:Event):void{ if ((((((_root.gamePaused == false)) && ((_root.mainDead == false)))) || ((_root.bossTime == true)))){ if ((((_root.weapon == 0)) && ((_root.mainDead == false)))){ if ((((((((((_root.mainJumping == false)) && ((_root.mainLeft == true)))) && ((_root.mainMove == false)))) && ((_root.mainShooting == false)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "standNormalLeft"){ _root.pl_sprite.gotoAndStop("standNormalLeft"); }; }; if ((((((((((_root.mainJumping == false)) && ((_root.mainRight == true)))) && ((_root.mainMove == false)))) && ((_root.mainShooting == false)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "standNormalRight"){ _root.pl_sprite.gotoAndStop("standNormalRight"); }; }; if ((((((((((_root.mainJumping == false)) && ((_root.mainLeft == true)))) && ((_root.mainMove == true)))) && ((_root.mainShooting == false)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "runNormalLeft"){ _root.pl_sprite.gotoAndStop("runNormalLeft"); }; }; if ((((((((((_root.mainJumping == false)) && ((_root.mainRight == true)))) && ((_root.mainMove == true)))) && ((_root.mainShooting == false)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "runNormalRight"){ _root.pl_sprite.gotoAndStop("runNormalRight"); }; }; if ((((((((_root.mainJumping == true)) && ((_root.mainLeft == true)))) && ((_root.mainShooting == false)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "jumpNormalLeft"){ _root.pl_sprite.gotoAndStop("jumpNormalLeft"); }; }; if ((((((((_root.mainJumping == true)) && ((_root.mainRight == true)))) && ((_root.mainShooting == false)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "jumpNormalRight"){ _root.pl_sprite.gotoAndStop("jumpNormalRight"); }; }; if ((((_root.hurt == true)) && ((_root.mainLeft == true)))){ if (_root.pl_sprite.currentLabel != "hurtNormalLeft"){ _root.pl_sprite.gotoAndStop("hurtNormalLeft"); }; }; if ((((_root.hurt == true)) && ((_root.mainRight == true)))){ if (_root.pl_sprite.currentLabel != "hurtNormalRight"){ _root.pl_sprite.gotoAndStop("hurtNormalRight"); }; }; if ((((((((((_root.mainJumping == false)) && ((_root.mainLeft == true)))) && ((_root.mainShooting == true)))) && ((_root.mainMove == false)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "standLaserLeft"){ _root.pl_sprite.gotoAndStop("standLaserLeft"); }; }; if ((((((((((_root.mainJumping == false)) && ((_root.mainRight == true)))) && ((_root.mainShooting == true)))) && ((_root.mainMove == false)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "standLaserRight"){ _root.pl_sprite.gotoAndStop("standLaserRight"); }; }; if ((((((((((_root.mainJumping == false)) && ((_root.mainLeft == true)))) && ((_root.mainShooting == true)))) && ((_root.mainMove == true)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "runLaserLeft"){ _root.pl_sprite.gotoAndStop("runLaserLeft"); }; }; if ((((((((((_root.mainJumping == false)) && ((_root.mainRight == true)))) && ((_root.mainShooting == true)))) && ((_root.mainMove == true)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "runLaserRight"){ _root.pl_sprite.gotoAndStop("runLaserRight"); }; }; if ((((((((_root.mainJumping == true)) && ((_root.mainLeft == true)))) && ((_root.mainShooting == true)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "jumpLaserLeft"){ _root.pl_sprite.gotoAndStop("jumpLaserLeft"); }; }; if ((((((((_root.mainJumping == true)) && ((_root.mainRight == true)))) && ((_root.mainShooting == true)))) && ((_root.hurt == false)))){ if (_root.pl_sprite.currentLabel != "jumpLaserRight"){ _root.pl_sprite.gotoAndStop("jumpLaserRight"); }; }; }; if ((((_root.weapon == 3)) && ((_root.mainDead == false)))){ if ((((((((_root.mainJumping == false)) && ((_root.mainLeft == true)))) && ((_root.mainMove == false)))) && ((_root.mainSlashing == false)))){ if (_root.pl_sprite.currentLabel != "standDarkLeft"){ _root.pl_sprite.gotoAndStop("standDarkLeft"); }; }; if ((((((((_root.mainJumping == false)) && ((_root.mainRight == true)))) && ((_root.mainMove == false)))) && ((_root.mainSlashing == false)))){ if (_root.pl_sprite.currentLabel != "standDarkRight"){ _root.pl_sprite.gotoAndStop("standDarkRight"); }; }; if ((((((((_root.mainJumping == false)) && ((_root.mainLeft == true)))) && ((_root.mainMove == true)))) && ((_root.mainSlashing == false)))){ if (_root.pl_sprite.currentLabel != "runDarkLeft"){ _root.pl_sprite.gotoAndStop("runDarkLeft"); }; }; if ((((((((_root.mainJumping == false)) && ((_root.mainRight == true)))) && ((_root.mainMove == true)))) && ((_root.mainSlashing == false)))){ if (_root.pl_sprite.currentLabel != "runDarkRight"){ _root.pl_sprite.gotoAndStop("runDarkRight"); }; }; if ((((((_root.mainJumping == true)) && ((_root.mainLeft == true)))) && ((_root.mainSlashing == false)))){ if (_root.pl_sprite.currentLabel != "jumpDarkLeft"){ _root.pl_sprite.gotoAndStop("jumpDarkLeft"); }; }; if ((((((_root.mainJumping == true)) && ((_root.mainRight == true)))) && ((_root.mainSlashing == false)))){ if (_root.pl_sprite.currentLabel != "jumpDarkRight"){ _root.pl_sprite.gotoAndStop("jumpDarkRight"); }; }; if ((((((((_root.mainJumping == false)) && ((_root.mainLeft == true)))) && ((_root.mainSlashing == true)))) && ((_root.mainMove == false)))){ if (_root.pl_sprite.currentLabel != "standSlashLeft"){ _root.pl_sprite.gotoAndStop("standSlashLeft"); }; }; if ((((((((_root.mainJumping == false)) && ((_root.mainRight == true)))) && ((_root.mainSlashing == true)))) && ((_root.mainMove == false)))){ if (_root.pl_sprite.currentLabel != "standSlashRight"){ _root.pl_sprite.gotoAndStop("standSlashRight"); }; }; if ((((((_root.mainJumping == true)) && ((_root.mainLeft == true)))) && ((_root.mainSlashing == true)))){ if (_root.pl_sprite.currentLabel != "jumpSlashLeft"){ _root.pl_sprite.gotoAndStop("jumpSlashLeft"); }; }; if ((((((_root.mainJumping == true)) && ((_root.mainRight == true)))) && ((_root.mainSlashing == true)))){ if (_root.pl_sprite.currentLabel != "jumpSlashRight"){ _root.pl_sprite.gotoAndStop("jumpSlashRight"); }; }; }; }; if (_root.mainDead == true){ if (_root.pl_sprite.currentLabel != "death"){ _root.pl_sprite.gotoAndStop("death"); }; }; if ((((_root.invulnerable == true)) && ((_root.hurt == false)))){ if ((_root.hitScreen.currentFrame % 3) == 0){ _root.pl_sprite.alpha = 0.25; } else { _root.pl_sprite.alpha = 0.75; }; } else { _root.pl_sprite.alpha = 1; }; _root.pl_health.gotoAndStop((_root.playerHealth + 1)); if (_root.playCredits == true){ killMe(); }; } private function beginClass(_arg1:Event):void{ _root = MovieClip(root); removeEventListener(Event.ADDED_TO_STAGE, beginClass); addEventListener(Event.ENTER_FRAME, eFrame); } function killMe():void{ this.parent.removeChild(this); removeEventListener(Event.ENTER_FRAME, eFrame); } } }//package
Section 75
//Streets_1 (Streets_1) package { import flash.display.*; public dynamic class Streets_1 extends BitmapData { public function Streets_1(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 76
//Streets_2 (Streets_2) package { import flash.display.*; public dynamic class Streets_2 extends BitmapData { public function Streets_2(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 77
//Streets_3 (Streets_3) package { import flash.display.*; public dynamic class Streets_3 extends BitmapData { public function Streets_3(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 78
//Streets_4 (Streets_4) package { import flash.display.*; public dynamic class Streets_4 extends BitmapData { public function Streets_4(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 79
//Streets_5 (Streets_5) package { import flash.display.*; public dynamic class Streets_5 extends BitmapData { public function Streets_5(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 80
//Streets_6 (Streets_6) package { import flash.display.*; public dynamic class Streets_6 extends BitmapData { public function Streets_6(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 81
//Streets_7 (Streets_7) package { import flash.display.*; public dynamic class Streets_7 extends BitmapData { public function Streets_7(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 82
//Streets_8 (Streets_8) package { import flash.display.*; public dynamic class Streets_8 extends BitmapData { public function Streets_8(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 83
//Streets_9 (Streets_9) package { import flash.display.*; public dynamic class Streets_9 extends BitmapData { public function Streets_9(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 84
//swooshsound (swooshsound) package { import flash.media.*; public dynamic class swooshsound extends Sound { } }//package
Section 85
//ticksound (ticksound) package { import flash.media.*; public dynamic class ticksound extends Sound { } }//package
Section 86
//titandiesound (titandiesound) package { import flash.media.*; public dynamic class titandiesound extends Sound { } }//package
Section 87
//Title1 (Title1) package { import flash.media.*; public dynamic class Title1 extends Sound { } }//package
Section 88
//Title2 (Title2) package { import flash.media.*; public dynamic class Title2 extends Sound { } }//package

Library Items

Symbol 1 Bitmap {Streets_9}
Symbol 2 Bitmap {Streets_8}
Symbol 3 Bitmap {Streets_7}
Symbol 4 Bitmap {Streets_6}
Symbol 5 Bitmap {Streets_5}
Symbol 6 Bitmap {Streets_4}
Symbol 7 Bitmap {Streets_3}
Symbol 8 Bitmap {Streets_2}
Symbol 9 Bitmap {Streets_1}
Symbol 10 BitmapUsed by:11 40
Symbol 11 GraphicUses:10Used by:41
Symbol 12 BitmapUsed by:13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
Symbol 13 GraphicUses:12Used by:41
Symbol 14 GraphicUses:12Used by:41
Symbol 15 GraphicUses:12Used by:41
Symbol 16 GraphicUses:12Used by:41
Symbol 17 GraphicUses:12Used by:41
Symbol 18 GraphicUses:12Used by:41
Symbol 19 GraphicUses:12Used by:41
Symbol 20 GraphicUses:12Used by:41
Symbol 21 GraphicUses:12Used by:41
Symbol 22 GraphicUses:12Used by:41
Symbol 23 GraphicUses:12Used by:41
Symbol 24 GraphicUses:12Used by:41
Symbol 25 GraphicUses:12Used by:41
Symbol 26 GraphicUses:12Used by:41
Symbol 27 GraphicUses:12Used by:41
Symbol 28 GraphicUses:12Used by:41
Symbol 29 GraphicUses:12Used by:41
Symbol 30 GraphicUses:12Used by:41
Symbol 31 GraphicUses:12Used by:41
Symbol 32 GraphicUses:12Used by:41
Symbol 33 GraphicUses:12Used by:41
Symbol 34 GraphicUses:12Used by:41
Symbol 35 GraphicUses:12Used by:41
Symbol 36 GraphicUses:12Used by:41
Symbol 37 GraphicUses:12Used by:41
Symbol 38 GraphicUses:12Used by:41
Symbol 39 GraphicUses:12Used by:41
Symbol 40 GraphicUses:12 10Used by:41
Symbol 41 MovieClip {BossHealth}Uses:11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
Symbol 42 BitmapUsed by:43 45
Symbol 43 GraphicUses:42Used by:44
Symbol 44 MovieClip {titan.ShotRight}Uses:43
Symbol 45 GraphicUses:42Used by:46
Symbol 46 MovieClip {titan.ShotLeft}Uses:45
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:49
Symbol 49 MovieClipUses:48Used by:63
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:52
Symbol 52 MovieClipUses:51Used by:63
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:59
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:59
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:59
Symbol 59 MovieClipUses:54 56 58Used by:63
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:60Used by:62
Symbol 62 MovieClipUses:61Used by:63
Symbol 63 MovieClip {titan.Titan}Uses:49 52 59 62
Symbol 64 GraphicUsed by:65 82 107 158
Symbol 65 MovieClip {titan.TitanCollider}Uses:64
Symbol 66 BitmapUsed by:67 69
Symbol 67 GraphicUses:66Used by:68
Symbol 68 MovieClip {frobo.ShotRight}Uses:67
Symbol 69 GraphicUses:66Used by:70
Symbol 70 MovieClip {frobo.ShotLeft}Uses:69
Symbol 71 BitmapUsed by:72
Symbol 72 GraphicUses:71Used by:75
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:75
Symbol 75 MovieClipUses:72 74Used by:81
Symbol 76 BitmapUsed by:77
Symbol 77 GraphicUses:76Used by:80
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:80
Symbol 80 MovieClipUses:77 79Used by:81
Symbol 81 MovieClip {frobo.Frobot}Uses:75 80
Symbol 82 MovieClip {frobo.FrobotCollider}Uses:64
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:83Used by:85 94
Symbol 85 MovieClip {pl_shot_left}Uses:84
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:88
Symbol 88 MovieClip {robo.ShotRight}Uses:87
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:91
Symbol 91 MovieClip {robo.ShotLeft}Uses:90
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:94 95
Symbol 94 MovieClip {shot}Uses:84 93
Symbol 95 MovieClip {pl_shot_right}Uses:93
Symbol 96 BitmapUsed by:97
Symbol 97 GraphicUses:96Used by:102
Symbol 98 BitmapUsed by:99
Symbol 99 GraphicUses:98Used by:102
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:102
Symbol 102 MovieClipUses:97 99 101Used by:103
Symbol 103 MovieClip {robo.Robot}Uses:102
Symbol 104 GraphicUsed by:105 106 224 225
Symbol 105 MovieClip {robo.RobotColliderRight}Uses:104
Symbol 106 MovieClip {robo.RobotColliderLeft}Uses:104
Symbol 107 MovieClip {robo.RobotCollider}Uses:64
Symbol 108 BitmapUsed by:109
Symbol 109 GraphicUses:108Used by:112
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:112
Symbol 112 MovieClip {item.LittleHealth}Uses:109 111
Symbol 113 BitmapUsed by:114
Symbol 114 GraphicUses:113Used by:117
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:117
Symbol 117 MovieClip {item.BigHealth}Uses:114 116
Symbol 118 BitmapUsed by:119
Symbol 119 GraphicUses:118Used by:132 145
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:132
Symbol 122 BitmapUsed by:123
Symbol 123 GraphicUses:122Used by:132
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:132
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:132
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:128Used by:132
Symbol 130 BitmapUsed by:131
Symbol 131 GraphicUses:130Used by:132
Symbol 132 MovieClipUses:119 121 123 125 127 129 131Used by:146
Symbol 133 BitmapUsed by:134
Symbol 134 GraphicUses:133Used by:145
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:145
Symbol 137 BitmapUsed by:138
Symbol 138 GraphicUses:137Used by:145
Symbol 139 BitmapUsed by:140
Symbol 140 GraphicUses:139Used by:145
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:145
Symbol 143 BitmapUsed by:144
Symbol 144 GraphicUses:143Used by:145
Symbol 145 MovieClipUses:119 134 136 138 140 142 144Used by:146 375
Symbol 146 MovieClip {BossDeath}Uses:132 145
Symbol 147 BitmapUsed by:148
Symbol 148 GraphicUses:147Used by:157
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:157
Symbol 151 BitmapUsed by:152
Symbol 152 GraphicUses:151Used by:157
Symbol 153 BitmapUsed by:154
Symbol 154 GraphicUses:153Used by:157
Symbol 155 BitmapUsed by:156
Symbol 156 GraphicUses:155Used by:157
Symbol 157 MovieClip {car.Car}Uses:148 150 152 154 156
Symbol 158 MovieClip {car.CarCollider}Uses:64
Symbol 159 BitmapUsed by:160
Symbol 160 GraphicUses:159Used by:181
Symbol 161 BitmapUsed by:162
Symbol 162 GraphicUses:161Used by:181
Symbol 163 BitmapUsed by:164
Symbol 164 GraphicUses:163Used by:181
Symbol 165 BitmapUsed by:166
Symbol 166 GraphicUses:165Used by:181
Symbol 167 BitmapUsed by:168
Symbol 168 GraphicUses:167Used by:181
Symbol 169 BitmapUsed by:170
Symbol 170 GraphicUses:169Used by:181
Symbol 171 BitmapUsed by:172
Symbol 172 GraphicUses:171Used by:181
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:181
Symbol 175 BitmapUsed by:176
Symbol 176 GraphicUses:175Used by:181
Symbol 177 BitmapUsed by:178
Symbol 178 GraphicUses:177Used by:181
Symbol 179 BitmapUsed by:180
Symbol 180 GraphicUses:179Used by:181
Symbol 181 MovieClip {Explosion}Uses:160 162 164 166 168 170 172 174 176 178 180
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:184
Symbol 184 MovieClip {item.FreeLife}Uses:183
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:187
Symbol 187 MovieClip {PauseMenu}Uses:186
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:208
Symbol 190 BitmapUsed by:191
Symbol 191 GraphicUses:190Used by:208
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:208
Symbol 194 BitmapUsed by:195
Symbol 195 GraphicUses:194Used by:208
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:208
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:208
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:208
Symbol 202 BitmapUsed by:203
Symbol 203 GraphicUses:202Used by:208
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:208
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:208
Symbol 208 MovieClip {Lives}Uses:189 191 193 195 197 199 201 203 205 207
Symbol 209 BitmapUsed by:210
Symbol 210 GraphicUses:209Used by:223
Symbol 211 BitmapUsed by:212
Symbol 212 GraphicUses:211Used by:223
Symbol 213 BitmapUsed by:214
Symbol 214 GraphicUses:213Used by:223
Symbol 215 BitmapUsed by:216
Symbol 216 GraphicUses:215Used by:223
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:223
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:223
Symbol 221 BitmapUsed by:222
Symbol 222 GraphicUses:221Used by:223
Symbol 223 MovieClip {Portal}Uses:210 212 214 216 218 220 222
Symbol 224 MovieClip {playerRight}Uses:104Used by:Timeline
Symbol 225 MovieClip {playerLeft}Uses:104Used by:Timeline
Symbol 226 GraphicUsed by:227 347
Symbol 227 MovieClip {playerHitbox}Uses:226Used by:Timeline
Symbol 228 BitmapUsed by:229
Symbol 229 GraphicUses:228Used by:230
Symbol 230 MovieClip {gamePlay}Uses:229Used by:Timeline
Symbol 231 BitmapUsed by:232
Symbol 232 GraphicUses:231Used by:233
Symbol 233 MovieClip {gameLoading}Uses:232Used by:Timeline
Symbol 234 BitmapUsed by:235
Symbol 235 GraphicUses:234Used by:Timeline
Symbol 236 GraphicUsed by:237 252 342 578
Symbol 237 MovieClipUses:236Used by:Timeline
Symbol 238 BitmapUsed by:239
Symbol 239 GraphicUses:238Used by:Timeline
Symbol 240 GraphicUsed by:253
Symbol 241 FontUsed by:242
Symbol 242 TextUses:241Used by:246
Symbol 243 GraphicUsed by:246
Symbol 244 GraphicUsed by:246
Symbol 245 GraphicUsed by:246
Symbol 246 ButtonUses:242 243 244 245Used by:253
Symbol 247 GraphicUsed by:253
Symbol 248 GraphicUsed by:253
Symbol 249 GraphicUsed by:251
Symbol 250 GraphicUsed by:251
Symbol 251 ButtonUses:249 250Used by:252
Symbol 252 MovieClip {KYLESHAW_fla.NG_TANK_5}Uses:236 251Used by:253
Symbol 253 MovieClip {KYLESHAW_fla.NG_AD_OBJECT_3}Uses:240 246 247 248 252Used by:Timeline
Symbol 254 FontUsed by:255
Symbol 255 TextUses:254Used by:281
Symbol 256 Sound {boomsound}Used by:281
Symbol 257 Sound {diesound}Used by:281
Symbol 258 Sound {failedhitsound}Used by:281
Symbol 259 Sound {freelifesound}Used by:281
Symbol 260 Sound {hornsound}Used by:281
Symbol 261 Sound {hurt1}Used by:281
Symbol 262 Sound {hurt2}Used by:281
Symbol 263 Sound {hurt3}Used by:281
Symbol 264 Sound {hurt4}Used by:281
Symbol 265 Sound {hyahsound}Used by:281
Symbol 266 Sound {landsound}Used by:281
Symbol 267 Sound {powsound}Used by:281
Symbol 268 Sound {roboshoot}Used by:281
Symbol 269 Sound {shootsound}Used by:281
Symbol 270 Sound {swooshsound}Used by:281
Symbol 271 Sound {ticksound}Used by:281
Symbol 272 Sound {titandiesound}Used by:281
Symbol 273 Sound {BattleLoop}Used by:281
Symbol 274 Sound {Battle}Used by:281
Symbol 275 Sound {Credits}Used by:281
Symbol 276 Sound {GameOver}Used by:281
Symbol 277 Sound {Title1}Used by:281
Symbol 278 Sound {Title2}Used by:281
Symbol 279 Sound {L1Intro}Used by:281
Symbol 280 Sound {L1Loop}Used by:281
Symbol 281 MovieClip {KYLESHAW_fla.Assets_7}Uses:255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280Used by:Timeline
Symbol 282 BitmapUsed by:283
Symbol 283 GraphicUses:282Used by:284
Symbol 284 MovieClipUses:283Used by:Timeline
Symbol 285 BitmapUsed by:286 289
Symbol 286 GraphicUses:285Used by:333
Symbol 287 GraphicUsed by:333
Symbol 288 ShapeTweeningUsed by:333
Symbol 289 GraphicUses:285Used by:333
Symbol 290 BitmapUsed by:292
Symbol 291 BitmapUsed by:292 295 298 300 303
Symbol 292 GraphicUses:290 291Used by:333
Symbol 293 ShapeTweeningUsed by:333
Symbol 294 ShapeTweeningUsed by:333
Symbol 295 GraphicUses:291Used by:333
Symbol 296 ShapeTweeningUsed by:333
Symbol 297 ShapeTweeningUsed by:333
Symbol 298 GraphicUses:291Used by:333
Symbol 299 BitmapUsed by:300 303
Symbol 300 GraphicUses:299 291Used by:333
Symbol 301 ShapeTweeningUsed by:333
Symbol 302 ShapeTweeningUsed by:333
Symbol 303 GraphicUses:299 291Used by:333
Symbol 304 BitmapUsed by:305 308
Symbol 305 GraphicUses:304Used by:333
Symbol 306 ShapeTweeningUsed by:333
Symbol 307 ShapeTweeningUsed by:333
Symbol 308 GraphicUses:304Used by:333
Symbol 309 BitmapUsed by:310 313
Symbol 310 GraphicUses:309Used by:333
Symbol 311 ShapeTweeningUsed by:333
Symbol 312 ShapeTweeningUsed by:333
Symbol 313 GraphicUses:309Used by:333
Symbol 314 BitmapUsed by:315 318
Symbol 315 GraphicUses:314Used by:333
Symbol 316 ShapeTweeningUsed by:333
Symbol 317 ShapeTweeningUsed by:333
Symbol 318 GraphicUses:314Used by:333
Symbol 319 BitmapUsed by:320 323
Symbol 320 GraphicUses:319Used by:333
Symbol 321 ShapeTweeningUsed by:333
Symbol 322 ShapeTweeningUsed by:333
Symbol 323 GraphicUses:319Used by:333
Symbol 324 BitmapUsed by:325
Symbol 325 GraphicUses:324Used by:333
Symbol 326 ShapeTweeningUsed by:333
Symbol 327 ShapeTweeningUsed by:333
Symbol 328 GraphicUsed by:333
Symbol 329 BitmapUsed by:330 332
Symbol 330 GraphicUses:329Used by:333
Symbol 331 ShapeTweeningUsed by:333
Symbol 332 GraphicUses:329Used by:333
Symbol 333 MovieClipUses:286 287 288 289 292 293 294 295 296 297 298 300 301 302 303 305 306 307 308 310 311 312 313 315 316 317 318 320 321 322 323 325 326 327 328 330 331 332Used by:Timeline
Symbol 334 BitmapUsed by:335
Symbol 335 GraphicUses:334Used by:Timeline
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:338
Symbol 338 MovieClipUses:337Used by:Timeline
Symbol 339 BitmapUsed by:340 341
Symbol 340 GraphicUses:339Used by:Timeline
Symbol 341 GraphicUses:339Used by:Timeline
Symbol 342 MovieClipUses:236Used by:Timeline
Symbol 343 GraphicUsed by:350
Symbol 344 GraphicUsed by:349
Symbol 345 BitmapUsed by:346
Symbol 346 GraphicUses:345Used by:347
Symbol 347 MovieClipUses:346 226Used by:349
Symbol 348 GraphicUsed by:349
Symbol 349 MovieClipUses:344 347 348Used by:350
Symbol 350 MovieClipUses:343 349Used by:Timeline
Symbol 351 GraphicUsed by:374
Symbol 352 BitmapUsed by:353
Symbol 353 GraphicUses:352Used by:373
Symbol 354 BitmapUsed by:355
Symbol 355 GraphicUses:354Used by:360
Symbol 356 BitmapUsed by:357
Symbol 357 GraphicUses:356Used by:360
Symbol 358 BitmapUsed by:359
Symbol 359 GraphicUses:358Used by:360
Symbol 360 MovieClipUses:355 357 359Used by:373
Symbol 361 BitmapUsed by:372
Symbol 362 BitmapUsed by:372
Symbol 363 BitmapUsed by:372
Symbol 364 BitmapUsed by:372
Symbol 365 BitmapUsed by:372
Symbol 366 BitmapUsed by:372
Symbol 367 BitmapUsed by:372
Symbol 368 BitmapUsed by:372
Symbol 369 BitmapUsed by:372
Symbol 370 BitmapUsed by:372
Symbol 371 BitmapUsed by:372
Symbol 372 GraphicUses:361 362 363 364 365 366 367 368 369 370 371Used by:373
Symbol 373 MovieClipUses:353 360 372Used by:374
Symbol 374 MovieClipUses:351 373Used by:Timeline
Symbol 375 MovieClipUses:145Used by:530
Symbol 376 BitmapUsed by:377
Symbol 377 GraphicUses:376Used by:380
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:380
Symbol 380 MovieClipUses:377 379Used by:530
Symbol 381 BitmapUsed by:382
Symbol 382 GraphicUses:381Used by:385
Symbol 383 BitmapUsed by:384 453 458
Symbol 384 GraphicUses:383Used by:385
Symbol 385 MovieClipUses:382 384Used by:530
Symbol 386 BitmapUsed by:387
Symbol 387 GraphicUses:386Used by:392
Symbol 388 BitmapUsed by:389
Symbol 389 GraphicUses:388Used by:392
Symbol 390 BitmapUsed by:391
Symbol 391 GraphicUses:390Used by:392
Symbol 392 MovieClipUses:387 389 391Used by:530
Symbol 393 BitmapUsed by:394
Symbol 394 GraphicUses:393Used by:399
Symbol 395 BitmapUsed by:396
Symbol 396 GraphicUses:395Used by:399
Symbol 397 BitmapUsed by:398
Symbol 398 GraphicUses:397Used by:399
Symbol 399 MovieClipUses:394 396 398Used by:530
Symbol 400 BitmapUsed by:401
Symbol 401 GraphicUses:400Used by:404
Symbol 402 BitmapUsed by:403
Symbol 403 GraphicUses:402Used by:404
Symbol 404 MovieClipUses:401 403Used by:530
Symbol 405 BitmapUsed by:406
Symbol 406 GraphicUses:405Used by:409
Symbol 407 BitmapUsed by:408
Symbol 408 GraphicUses:407Used by:409
Symbol 409 MovieClipUses:406 408Used by:530
Symbol 410 BitmapUsed by:411
Symbol 411 GraphicUses:410Used by:414
Symbol 412 BitmapUsed by:413
Symbol 413 GraphicUses:412Used by:414
Symbol 414 MovieClipUses:411 413Used by:530
Symbol 415 BitmapUsed by:416
Symbol 416 GraphicUses:415Used by:419
Symbol 417 BitmapUsed by:418
Symbol 418 GraphicUses:417Used by:419
Symbol 419 MovieClipUses:416 418Used by:530
Symbol 420 BitmapUsed by:421
Symbol 421 GraphicUses:420Used by:422
Symbol 422 MovieClipUses:421Used by:530
Symbol 423 BitmapUsed by:424
Symbol 424 GraphicUses:423Used by:425
Symbol 425 MovieClipUses:424Used by:530
Symbol 426 BitmapUsed by:427
Symbol 427 GraphicUses:426Used by:432
Symbol 428 BitmapUsed by:429
Symbol 429 GraphicUses:428Used by:432
Symbol 430 BitmapUsed by:431
Symbol 431 GraphicUses:430Used by:432
Symbol 432 MovieClipUses:427 429 431Used by:530
Symbol 433 BitmapUsed by:434
Symbol 434 GraphicUses:433Used by:439
Symbol 435 BitmapUsed by:436
Symbol 436 GraphicUses:435Used by:439
Symbol 437 BitmapUsed by:438
Symbol 438 GraphicUses:437Used by:439
Symbol 439 MovieClipUses:434 436 438Used by:530
Symbol 440 BitmapUsed by:441
Symbol 441 GraphicUses:440Used by:444
Symbol 442 BitmapUsed by:443
Symbol 443 GraphicUses:442Used by:444
Symbol 444 MovieClipUses:441 443Used by:530
Symbol 445 BitmapUsed by:446
Symbol 446 GraphicUses:445Used by:449
Symbol 447 BitmapUsed by:448
Symbol 448 GraphicUses:447Used by:449
Symbol 449 MovieClipUses:446 448Used by:530
Symbol 450 BitmapUsed by:451
Symbol 451 GraphicUses:450Used by:454
Symbol 452 BitmapUsed by:453
Symbol 453 GraphicUses:383 452Used by:454
Symbol 454 MovieClipUses:451 453Used by:530
Symbol 455 BitmapUsed by:456
Symbol 456 GraphicUses:455Used by:459
Symbol 457 BitmapUsed by:458
Symbol 458 GraphicUses:457 383Used by:459
Symbol 459 MovieClipUses:456 458Used by:530
Symbol 460 BitmapUsed by:461
Symbol 461 GraphicUses:460Used by:468
Symbol 462 BitmapUsed by:463
Symbol 463 GraphicUses:462Used by:468
Symbol 464 BitmapUsed by:465
Symbol 465 GraphicUses:464Used by:468
Symbol 466 BitmapUsed by:467
Symbol 467 GraphicUses:466Used by:468
Symbol 468 MovieClipUses:461 463 465 467Used by:530
Symbol 469 BitmapUsed by:470
Symbol 470 GraphicUses:469Used by:475
Symbol 471 BitmapUsed by:472
Symbol 472 GraphicUses:471Used by:475
Symbol 473 BitmapUsed by:474
Symbol 474 GraphicUses:473Used by:475
Symbol 475 MovieClipUses:470 472 474Used by:530
Symbol 476 BitmapUsed by:477
Symbol 477 GraphicUses:476Used by:480
Symbol 478 BitmapUsed by:479
Symbol 479 GraphicUses:478Used by:480
Symbol 480 MovieClipUses:477 479Used by:530
Symbol 481 BitmapUsed by:482
Symbol 482 GraphicUses:481Used by:485
Symbol 483 BitmapUsed by:484
Symbol 484 GraphicUses:483Used by:485
Symbol 485 MovieClipUses:482 484Used by:530
Symbol 486 BitmapUsed by:487
Symbol 487 GraphicUses:486Used by:496
Symbol 488 BitmapUsed by:489
Symbol 489 GraphicUses:488Used by:496
Symbol 490 BitmapUsed by:491
Symbol 491 GraphicUses:490Used by:496
Symbol 492 BitmapUsed by:493
Symbol 493 GraphicUses:492Used by:496
Symbol 494 BitmapUsed by:495
Symbol 495 GraphicUses:494Used by:496
Symbol 496 MovieClipUses:487 489 491 493 495Used by:530
Symbol 497 BitmapUsed by:498
Symbol 498 GraphicUses:497Used by:507
Symbol 499 BitmapUsed by:500
Symbol 500 GraphicUses:499Used by:507
Symbol 501 BitmapUsed by:502
Symbol 502 GraphicUses:501Used by:507
Symbol 503 BitmapUsed by:504
Symbol 504 GraphicUses:503Used by:507
Symbol 505 BitmapUsed by:506
Symbol 506 GraphicUses:505Used by:507
Symbol 507 MovieClipUses:498 500 502 504 506Used by:530
Symbol 508 BitmapUsed by:509
Symbol 509 GraphicUses:508Used by:518
Symbol 510 BitmapUsed by:511
Symbol 511 GraphicUses:510Used by:518
Symbol 512 BitmapUsed by:513
Symbol 513 GraphicUses:512Used by:518
Symbol 514 BitmapUsed by:515
Symbol 515 GraphicUses:514Used by:518
Symbol 516 BitmapUsed by:517
Symbol 517 GraphicUses:516Used by:518
Symbol 518 MovieClipUses:509 511 513 515 517Used by:530
Symbol 519 BitmapUsed by:520
Symbol 520 GraphicUses:519Used by:529
Symbol 521 BitmapUsed by:522
Symbol 522 GraphicUses:521Used by:529
Symbol 523 BitmapUsed by:524
Symbol 524 GraphicUses:523Used by:529
Symbol 525 BitmapUsed by:526
Symbol 526 GraphicUses:525Used by:529
Symbol 527 BitmapUsed by:528
Symbol 528 GraphicUses:527Used by:529
Symbol 529 MovieClipUses:520 522 524 526 528Used by:530
Symbol 530 MovieClipUses:375 380 385 392 399 404 409 414 419 422 425 432 439 444 449 454 459 468 475 480 485 496 507 518 529Used by:Timeline
Symbol 531 GraphicUsed by:532 533
Symbol 532 MovieClipUses:531Used by:Timeline
Symbol 533 MovieClipUses:531Used by:Timeline
Symbol 534 BitmapUsed by:535 564
Symbol 535 GraphicUses:534Used by:565
Symbol 536 BitmapUsed by:537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564
Symbol 537 GraphicUses:536Used by:565
Symbol 538 GraphicUses:536Used by:565
Symbol 539 GraphicUses:536Used by:565
Symbol 540 GraphicUses:536Used by:565
Symbol 541 GraphicUses:536Used by:565
Symbol 542 GraphicUses:536Used by:565
Symbol 543 GraphicUses:536Used by:565
Symbol 544 GraphicUses:536Used by:565
Symbol 545 GraphicUses:536Used by:565
Symbol 546 GraphicUses:536Used by:565
Symbol 547 GraphicUses:536Used by:565
Symbol 548 GraphicUses:536Used by:565
Symbol 549 GraphicUses:536Used by:565
Symbol 550 GraphicUses:536Used by:565
Symbol 551 GraphicUses:536Used by:565
Symbol 552 GraphicUses:536Used by:565
Symbol 553 GraphicUses:536Used by:565
Symbol 554 GraphicUses:536Used by:565
Symbol 555 GraphicUses:536Used by:565
Symbol 556 GraphicUses:536Used by:565
Symbol 557 GraphicUses:536Used by:565
Symbol 558 GraphicUses:536Used by:565
Symbol 559 GraphicUses:536Used by:565
Symbol 560 GraphicUses:536Used by:565
Symbol 561 GraphicUses:536Used by:565
Symbol 562 GraphicUses:536Used by:565
Symbol 563 GraphicUses:536Used by:565
Symbol 564 GraphicUses:536 534Used by:565
Symbol 565 MovieClipUses:535 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564Used by:Timeline
Symbol 566 GraphicUsed by:567
Symbol 567 MovieClipUses:566Used by:Timeline
Symbol 568 BitmapUsed by:569
Symbol 569 GraphicUses:568Used by:570
Symbol 570 MovieClipUses:569Used by:Timeline
Symbol 571 BitmapUsed by:572
Symbol 572 GraphicUses:571Used by:578
Symbol 573 BitmapUsed by:574
Symbol 574 GraphicUses:573Used by:577
Symbol 575 BitmapUsed by:576
Symbol 576 GraphicUses:575Used by:577
Symbol 577 MovieClipUses:574 576Used by:578
Symbol 578 MovieClip {KYLESHAW_fla.Symbol1_54}Uses:236 572 577Used by:Timeline

Instance Names

"loadBar"Frame 1Symbol 237 MovieClip
"loadbar"Frame 3Symbol 284 MovieClip
"clicktoplay"Frame 3Symbol 230 MovieClip {gamePlay}
"Mask"Frame 8Symbol 342 MovieClip
"Background1"Frame 8Symbol 350 MovieClip
"Background2"Frame 8Symbol 374 MovieClip
"pl_sprite"Frame 8Symbol 530 MovieClip
"pl_enemyright"Frame 8Symbol 532 MovieClip
"pl_enemyleft"Frame 8Symbol 533 MovieClip
"pl_hitbox"Frame 8Symbol 227 MovieClip {playerHitbox}
"pl_left"Frame 8Symbol 225 MovieClip {playerLeft}
"pl_right"Frame 8Symbol 224 MovieClip {playerRight}
"pl_health"Frame 8Symbol 565 MovieClip
"hitScreen"Frame 8Symbol 567 MovieClip
"hitScreenLeft"Frame 8Symbol 567 MovieClip
"hitScreenRight"Frame 8Symbol 567 MovieClip
"hitScreenDown"Frame 8Symbol 567 MovieClip
"hitScreenUp"Frame 8Symbol 567 MovieClip
"READY"Frame 8Symbol 570 MovieClip
"NG_Logo"Symbol 252 MovieClip {KYLESHAW_fla.NG_TANK_5} Frame 1Symbol 251 Button
"NG_Button"Symbol 253 MovieClip {KYLESHAW_fla.NG_AD_OBJECT_3} Frame 1Symbol 246 Button
"ng_ad"Symbol 253 MovieClip {KYLESHAW_fla.NG_AD_OBJECT_3} Frame 1Symbol 252 MovieClip {KYLESHAW_fla.NG_TANK_5}

Special Tags

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

Labels

"loaded"Frame 3
"title1"Frame 4
"title2"Frame 5
"password"Frame 6
"gameover"Frame 7
"stage1"Frame 8
"credits"Frame 9
"titanIdle"Symbol 63 MovieClip {titan.Titan} Frame 1
"titanStandLeft"Symbol 63 MovieClip {titan.Titan} Frame 2
"titanStandRight"Symbol 63 MovieClip {titan.Titan} Frame 3
"titanRunLeft"Symbol 63 MovieClip {titan.Titan} Frame 4
"titanRunRight"Symbol 63 MovieClip {titan.Titan} Frame 5
"titanShootLeft"Symbol 63 MovieClip {titan.Titan} Frame 6
"titanShootRight"Symbol 63 MovieClip {titan.Titan} Frame 7
"titanJumpLeft"Symbol 63 MovieClip {titan.Titan} Frame 8
"titanJumpRight"Symbol 63 MovieClip {titan.Titan} Frame 9
"shotLeft"Symbol 94 MovieClip {shot} Frame 1
"shotRight"Symbol 94 MovieClip {shot} Frame 2
"roboLeft"Symbol 103 MovieClip {robo.Robot} Frame 1
"roboRight"Symbol 103 MovieClip {robo.Robot} Frame 2
"levelone"Symbol 349 MovieClip Frame 1
"levelzero"Symbol 350 MovieClip Frame 1
"levelone"Symbol 350 MovieClip Frame 2
"levelzero"Symbol 374 MovieClip Frame 1
"levelone"Symbol 374 MovieClip Frame 2
"death"Symbol 530 MovieClip Frame 1
"standNormalLeft"Symbol 530 MovieClip Frame 2
"standNormalRight"Symbol 530 MovieClip Frame 3
"runNormalLeft"Symbol 530 MovieClip Frame 4
"runNormalRight"Symbol 530 MovieClip Frame 5
"jumpNormalLeft"Symbol 530 MovieClip Frame 6
"jumpNormalRight"Symbol 530 MovieClip Frame 7
"hurtNormalLeft"Symbol 530 MovieClip Frame 8
"hurtNormalRight"Symbol 530 MovieClip Frame 9
"standLaserLeft"Symbol 530 MovieClip Frame 11
"standLaserRight"Symbol 530 MovieClip Frame 12
"runLaserLeft"Symbol 530 MovieClip Frame 13
"runLaserRight"Symbol 530 MovieClip Frame 14
"jumpLaserLeft"Symbol 530 MovieClip Frame 15
"jumpLaserRight"Symbol 530 MovieClip Frame 16
"standDarkLeft"Symbol 530 MovieClip Frame 18
"standDarkRight"Symbol 530 MovieClip Frame 19
"runDarkLeft"Symbol 530 MovieClip Frame 20
"runDarkRight"Symbol 530 MovieClip Frame 21
"jumpDarkLeft"Symbol 530 MovieClip Frame 22
"jumpDarkRight"Symbol 530 MovieClip Frame 23
"standSlashLeft"Symbol 530 MovieClip Frame 25
"standSlashRight"Symbol 530 MovieClip Frame 26
"jumpSlashLeft"Symbol 530 MovieClip Frame 27
"jumpSlashRight"Symbol 530 MovieClip Frame 28




http://swfchan.com/13/63971/info.shtml
Created: 13/4 -2019 10:08:31 Last modified: 13/4 -2019 10:08:31 Server time: 09/05 -2024 16:58:00