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

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

metal-arena.swf

This is the info page for
Flash #122150

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


Text
454587634 VBD

L 2

L 3

L 4

L5

0

0

0

0

Metal :

0

Start

Start

Survival

Survival

Sound

Sound

By: Matakukos
Music by dj-nate

Continue

Continue

H

H

M

M

L

L

Quality :

Main Menu

Main Menu

Game Over

Score:

Metal:

0

0

Lose Survival

Killed:

Time:

0

0

ActionScript [AS3]

Section 1
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent) package com.kongregate.as3.client.events { import flash.events.*; public class KongregateEvent extends Event { public static const COMPLETE:String = "component_api_available"; public function KongregateEvent(_arg1:String){ super(_arg1); } } }//package com.kongregate.as3.client.events
Section 2
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService) package com.kongregate.as3.client.services { import flash.events.*; public class AbstractShadowService extends EventDispatcher { protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{ trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4)); } } }//package com.kongregate.as3.client.services
Section 3
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow) package com.kongregate.as3.client.services { public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices { private var mode:String; public function HighScoreServiceShadow(){ mode = ""; } public function submit(_arg1:Number, _arg2:String=null):void{ alert("IHighScoreServices", "submit", arguments); } public function connect():Boolean{ alert("IKongregateServices", "connect"); return (true); } public function requestList(_arg1:Function):void{ alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]")); _arg1({success:false}); } public function setMode(_arg1:String):void{ alert("IHighScoreServices", "setMode", arguments); this.mode = _arg1; } } }//package com.kongregate.as3.client.services
Section 4
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices) package com.kongregate.as3.client.services { public interface IHighScoreServices { function setMode(_arg1:String):void; function submit(_arg1:Number, _arg2:String=null):void; function requestList(_arg1:Function):void; } }//package com.kongregate.as3.client.services
Section 5
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices) package com.kongregate.as3.client.services { import flash.events.*; public interface IKongregateServices extends IEventDispatcher { function getPlayerInfo(_arg1:Function):void; function connect(_arg1:Number=-1):Boolean; } }//package com.kongregate.as3.client.services
Section 6
//IStatServices (com.kongregate.as3.client.services.IStatServices) package com.kongregate.as3.client.services { public interface IStatServices { function submitArray(_arg1:Array):void; function submit(_arg1:String, _arg2:Number):void; } }//package com.kongregate.as3.client.services
Section 7
//IUserServices (com.kongregate.as3.client.services.IUserServices) package com.kongregate.as3.client.services { public interface IUserServices { function getName():String; function getPlayerInfo(_arg1:Function):void; } }//package com.kongregate.as3.client.services
Section 8
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow) package com.kongregate.as3.client.services { public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices { public function getName():String{ alert("IKongregateServices", "getName"); return ("Guest"); } public function connect(_arg1:Number=-1):Boolean{ alert("IKongregateServices", "connect", arguments); return (true); } public function getPlayerInfo(_arg1:Function):void{ alert("IKongregateServices", "getPlayerInfo"); _arg1(new Object()); } } }//package com.kongregate.as3.client.services
Section 9
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow) package com.kongregate.as3.client.services { public class StatServiceShadow extends AbstractShadowService implements IStatServices { public function submitArray(_arg1:Array):void{ alert("IStatServices", "submitArray", arguments); } public function submit(_arg1:String, _arg2:Number):void{ alert("IStatServices", "submitStat", arguments); } } }//package com.kongregate.as3.client.services
Section 10
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow) package com.kongregate.as3.client.services { public class UserServiceShadow extends AbstractShadowService implements IUserServices { public function getName():String{ alert("UserService", "getName"); return ("Guest"); } public function getPlayerInfo(_arg1:Function):void{ alert("UserService", "getPlayerInfo"); _arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""}); } } }//package com.kongregate.as3.client.services
Section 11
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap) package com.kongregate.as3.client { import flash.events.*; import flash.display.*; public interface IAPIBootstrap { function init(_arg1:Event=null, _arg2:Stage=null):void; function hideLog():void; function showLog(_arg1:int=0):void; } }//package com.kongregate.as3.client
Section 12
//KongregateAPI (com.kongregate.as3.client.KongregateAPI) package com.kongregate.as3.client { import flash.events.*; import flash.display.*; import com.kongregate.as3.client.services.*; import com.kongregate.as3.client.events.*; import flash.system.*; import flash.utils.*; import flash.errors.*; import flash.net.*; public class KongregateAPI extends Sprite { private const VERSION:Number = 1; private var loader:Loader; private var loadedDomain:ApplicationDomain; private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices"; private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices"; private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices"; private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices"; private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf"; private static var _connected:Boolean; private static var kUser:IUserServices; private static var _loaded:Boolean; private static var kServices:IKongregateServices; private static var kScores:IHighScoreServices; private static var mInstance:KongregateAPI; private static var kStats:IStatServices; private static var kAPI:IAPIBootstrap; public function KongregateAPI(){ if (mInstance != null){ throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access.")); }; mInstance = this; this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); } public function get loaded():Boolean{ return (_loaded); } public function get connected():Boolean{ return (_connected); } private function alertConnected(_arg1:TimerEvent=null):void{ var _local2:KongregateEvent; var _local3:Boolean; _local2 = new KongregateEvent(KongregateEvent.COMPLETE); _local3 = this.dispatchEvent(_local2); } private function init(_arg1:Event):void{ var _local2:Object; var _local3:String; var _local4:URLRequest; var _local5:LoaderContext; this.removeEventListener(Event.ADDED_TO_STAGE, init); _loaded = false; _connected = false; _local2 = LoaderInfo(root.loaderInfo).parameters; _local3 = _local2.api_path; if (_local3 == null){ trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded."); createShadowServices(); return; }; Security.allowDomain("*.kongregate.com"); Security.allowDomain("kongregatetrunk.com"); _local4 = new URLRequest(_local3); _local5 = new LoaderContext(false); _local5.applicationDomain = ApplicationDomain.currentDomain; _local5.securityDomain = SecurityDomain.currentDomain; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); loader.load(_local4, _local5); } public function get api():IAPIBootstrap{ return (kAPI); } private function loadComplete(_arg1:Event):void{ getServices(); } public function get scores():IHighScoreServices{ return (kScores); } private function ioErrorHandler(_arg1:IOErrorEvent):void{ throw (new IOError(("API file not found. " + _arg1))); } public function get services():IKongregateServices{ return (kServices); } public function get stats():IStatServices{ return (kStats); } private function createShadowServices():void{ var _local1:Timer; trace(">>> Kongregate Shadow Services instantiated for local development.."); kServices = new KongregateServiceShadow(); kScores = new HighScoreServiceShadow(); kStats = new StatServiceShadow(); kUser = new UserServiceShadow(); _local1 = new Timer(200, 1); _local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected); _local1.start(); _connected = true; } public function get user():IUserServices{ return (kUser); } private function getServices():void{ var _local1:ApplicationDomain; var _local2:*; var _local3:*; var _local4:*; var _local5:*; _local1 = ApplicationDomain.currentDomain; kAPI = IAPIBootstrap(loader.getChildAt(0)); this.addChild(loader); _local2 = _local1.getDefinition(CLASS_SERVICES); trace(_local2); kServices = _local2.getInstance(); _local3 = _local1.getDefinition(CLASS_SCORES); kScores = _local3.getInstance(); _local4 = _local1.getDefinition(CLASS_STATS); kStats = _local4.getInstance(); _local5 = _local1.getDefinition(CLASS_USER); kUser = _local5.getInstance(); kServices.connect(VERSION); _loaded = true; _connected = true; alertConnected(); } public static function getInstance():KongregateAPI{ if (!mInstance){ throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it.")); }; return (mInstance); } } }//package com.kongregate.as3.client
Section 13
//ButtonContinue_4 (Test_fla.ButtonContinue_4) package Test_fla { import flash.display.*; public dynamic class ButtonContinue_4 extends MovieClip { public function ButtonContinue_4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Test_fla
Section 14
//ButtonMainMenu_2 (Test_fla.ButtonMainMenu_2) package Test_fla { import flash.display.*; public dynamic class ButtonMainMenu_2 extends MovieClip { public function ButtonMainMenu_2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Test_fla
Section 15
//ButtonSound_5 (Test_fla.ButtonSound_5) package Test_fla { import flash.display.*; public dynamic class ButtonSound_5 extends MovieClip { public function ButtonSound_5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Test_fla
Section 16
//ButtonStart_10 (Test_fla.ButtonStart_10) package Test_fla { import flash.display.*; public dynamic class ButtonStart_10 extends MovieClip { public function ButtonStart_10(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Test_fla
Section 17
//ButtonSurvival_11 (Test_fla.ButtonSurvival_11) package Test_fla { import flash.display.*; public dynamic class ButtonSurvival_11 extends MovieClip { public function ButtonSurvival_11(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Test_fla
Section 18
//Q1_6 (Test_fla.Q1_6) package Test_fla { import flash.display.*; public dynamic class Q1_6 extends MovieClip { public function Q1_6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Test_fla
Section 19
//Q2_7 (Test_fla.Q2_7) package Test_fla { import flash.display.*; public dynamic class Q2_7 extends MovieClip { public function Q2_7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Test_fla
Section 20
//Q3_8 (Test_fla.Q3_8) package Test_fla { import flash.display.*; public dynamic class Q3_8 extends MovieClip { public function Q3_8(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Test_fla
Section 21
//Bala (Bala) package { import flash.events.*; import flash.display.*; public class Bala extends MovieClip { public var bspeed; var tipe; public var damage; var killed;// = false public var atraves; public var bmtimer;// = 0 public function Bala(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){ bmtimer = 0; killed = false; super(); stop(); x = _arg1; y = _arg2; bspeed = _arg3; damage = _arg4; atraves = _arg8; tipe = _arg7; gotoAndStop(_arg7); rotation = (((Juego.main.canon.rotation + Math.floor((Math.random() * _arg5))) - (_arg5 / 2)) + _arg6); if (rotation > 180){ y = (y + (63 * Math.cos(((Math.PI / 180) * rotation)))); x = (x - (63 * Math.sin(((Math.PI / 180) * rotation)))); } else { y = (y - (63 * Math.cos(((Math.PI / 180) * rotation)))); x = (x + (63 * Math.sin(((Math.PI / 180) * rotation)))); }; addEventListener(Event.ENTER_FRAME, MBala); } public function kill(){ if (killed == false){ killed = true; removeEventListener(Event.ENTER_FRAME, MBala); Juego.main.removeChild(this); }; } public function MBala(_arg1:Event):void{ var _local2:int; if (rotation > 180){ y = (y + (bspeed * Math.cos(((Math.PI / 180) * rotation)))); x = (x - (bspeed * Math.sin(((Math.PI / 180) * rotation)))); } else { y = (y - (bspeed * Math.cos(((Math.PI / 180) * rotation)))); x = (x + (bspeed * Math.sin(((Math.PI / 180) * rotation)))); }; if (tipe == 4){ } else { if (bmtimer < 50){ bmtimer = (bmtimer + 1); } else { kill(); }; if (y < 56){ kill(); }; if (y > 442){ kill(); }; if (x < 60){ kill(); }; if (x > 635){ kill(); }; }; _local2 = 0; while (_local2 < Enemy.list.length) { if (this.hitTestObject(Enemy.list[_local2])){ Enemy.list[_local2].tocado(damage); if (atraves == 0){ kill(); }; break; }; _local2++; }; } } }//package
Section 22
//Barra (Barra) package { import flash.display.*; public class Barra extends MovieClip { public function Barra(){ x = 10; y = 3; gotoAndStop(100); } } }//package
Section 23
//Canon (Canon) package { import flash.display.*; public class Canon extends MovieClip { public var myRadians; public var myDegrees; public function CanonControl():void{ x = Juego.main.player.x; y = Juego.main.player.y; myRadians = Math.atan2((root.mouseY - Juego.main.player.y), (root.mouseX - Juego.main.player.x)); myDegrees = Math.round(((myRadians * 180) / Math.PI)); this.rotation = (myDegrees + 90); } } }//package
Section 24
//CWeapon (CWeapon) package { import flash.display.*; public class CWeapon extends MovieClip { public function CWeapon(){ x = 196; y = 22; stop(); } } }//package
Section 25
//Enemy (Enemy) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class Enemy extends MovieClip { var life;// = 50 var variation; public var myRadians; public var tipe; public var xChange; var speed; public var shootTimer:Timer; public var xMove; public var boss; public var yChange; var atak; var puntos; public var myDegrees; public var yMove; var isdispar; public static var list:Array = []; public function Enemy(_arg1, _arg2, _arg3){ life = 50; super(); tipe = _arg3; boss = 0; switch (_arg3){ case 1: life = 50; speed = 1; puntos = 50; atak = 2; gotoAndPlay(1); boss = false; break; case 2: life = 250; speed = 0.4; gotoAndStop(26); puntos = 100; atak = 5; isdispar = Math.floor((Math.random() * 5)); if (isdispar == 3){ initShootingInterval(); }; break; case 3: life = 500; speed = 0.6; gotoAndStop(37); puntos = 250; atak = 10; break; case 4: life = 30; speed = 2; gotoAndStop(48); puntos = 200; atak = 30; break; case 5: life = 2000; speed = 0.3; gotoAndStop(60); puntos = 1300; atak = 0.5; initShootingInterval(); boss = 1; break; case 6: life = 40; speed = (Math.floor((Math.random() * 2)) + 1); gotoAndPlay(71); puntos = 30; atak = 3; break; case 7: life = 300; speed = 0.7; gotoAndStop(100); puntos = 300; atak = 15; initShootingInterval(); break; case 8: life = 3500; speed = 0.1; gotoAndStop(112); puntos = 2300; atak = 15; initShootingInterval(); break; }; list.push(this); x = _arg1; y = _arg2; addEventListener(Event.ENTER_FRAME, MEne); } public function shoot(_arg1:Event){ var _local2:*; if (Juego.main.gpause == 0){ if (tipe == 7){ variation = 30; } else { if (tipe == 8){ variation = 50; } else { variation = 10; }; }; _local2 = new EnemyBullet(x, y, variation); Juego.main.addChild(_local2); }; } public function tocado(_arg1){ var _local2:impact; life = (life - _arg1); _local2 = new impact(); if (Juego.main.sonido == 1){ _local2.play(); }; switch (tipe){ case 1: gotoAndPlay(16); break; case 2: gotoAndPlay(27); break; case 3: gotoAndPlay(38); break; case 4: gotoAndPlay(49); break; case 5: gotoAndPlay(61); break; case 6: gotoAndPlay(89); break; case 7: gotoAndPlay(100); break; case 8: gotoAndPlay(113); break; }; } public function MEne(_arg1:Event):void{ if (Juego.main.gpause == 0){ myRadians = Math.atan2((Juego.main.player.y - y), (Juego.main.player.x - x)); myDegrees = Math.round(((myRadians * 180) / Math.PI)); rotation = (myDegrees + 90); if (rotation > 180){ y = (y + (speed * Math.cos(((Math.PI / 180) * rotation)))); x = (x - (speed * Math.sin(((Math.PI / 180) * rotation)))); } else { y = (y - (speed * Math.cos(((Math.PI / 180) * rotation)))); x = (x + (speed * Math.sin(((Math.PI / 180) * rotation)))); }; switch (tipe){ case 1: if (currentFrame == 15){ gotoAndPlay(1); }; if (currentFrame == 25){ gotoAndPlay(1); }; break; case 2: if (currentFrame == 36){ gotoAndStop(26); }; break; case 3: if (currentFrame == 47){ gotoAndStop(37); }; break; case 4: if (currentFrame == 59){ gotoAndStop(48); }; break; case 5: if (currentFrame == 70){ gotoAndStop(60); }; break; case 6: if (currentFrame == 88){ gotoAndPlay(71); }; if (currentFrame == 99){ gotoAndPlay(71); }; break; case 7: if (currentFrame == 111){ gotoAndStop(100); }; break; case 8: if (currentFrame == 123){ gotoAndStop(112); }; break; }; if (life <= 0){ kill(); }; } else { stop(); }; } public function kill(){ var _local1:*; var _local2:sexplosion1; var _local3:int; Juego.main.player.score = (Juego.main.player.score + puntos); Juego.main.ekilled = (Juego.main.ekilled + 1); _local1 = new Explosion1(x, y); Juego.main.addChild(_local1); _local2 = new sexplosion1(); if (Juego.main.sonido == 1){ _local2.play(); }; removeEventListener(Event.ENTER_FRAME, MEne); if (tipe == 5){ shootTimer.stop(); shootTimer.removeEventListener("timer", shoot); }; if (tipe == 7){ shootTimer.stop(); shootTimer.removeEventListener("timer", shoot); }; if ((((isdispar == 3)) && ((tipe == 2)))){ shootTimer.stop(); shootTimer.removeEventListener("timer", shoot); }; Juego.main.removeChild(this); _local3 = 0; while (_local3 < list.length) { if (list[_local3] == this){ list.splice(_local3, 1); }; _local3++; }; } public function initShootingInterval(){ var _local1:int; _local1 = (Math.floor((Math.random() * 3)) + 2000); if (tipe == 5){ _local1 = (Math.floor((Math.random() * 3)) + 500); }; if (tipe == 7){ _local1 = (Math.floor((Math.random() * 3)) + 1000); }; shootTimer = new Timer(_local1, 0); shootTimer.addEventListener("timer", shoot); shootTimer.start(); } public static function damageAll(){ var _local1:*; var _local2:int; _local1 = new snuke(); if (Juego.main.sonido == 1){ _local1.play(); }; _local2 = (Enemy.list.length - 1); while (_local2 >= 0) { Enemy.list[_local2].tocado(100); _local2--; }; } public static function killAll(){ var _local1:int; _local1 = (Enemy.list.length - 1); while (_local1 >= 0) { Enemy.list[_local1].kill(); _local1--; }; } } }//package
Section 26
//EnemyBullet (EnemyBullet) package { import flash.events.*; import flash.display.*; import flash.text.*; public class EnemyBullet extends MovieClip { public var variation; public var myRadians; public var speed; var ebtimer;// = 0 public var myDegrees; public function EnemyBullet(_arg1, _arg2, _arg3){ var _local4:*; ebtimer = 0; super(); x = _arg1; y = _arg2; speed = 4; variation = (Math.floor((Math.random() * _arg3)) - (_arg3 / 2)); _local4 = new gun3(); if (Juego.main.sonido == 1){ _local4.play(); }; myRadians = Math.atan2((Juego.main.player.y - y), (Juego.main.player.x - x)); myDegrees = Math.round(((myRadians * 180) / Math.PI)); rotation = ((myDegrees + 90) + variation); addEventListener(Event.ENTER_FRAME, enterFrame); } public function kill(){ removeEventListener(Event.ENTER_FRAME, enterFrame); Juego.main.removeChild(this); } public function enterFrame(_arg1:Event){ var _local2:impact; if (Juego.main.gpause == 0){ if (this.hitTestObject(Juego.main.player)){ _local2 = new impact(); if (Juego.main.sonido == 1){ _local2.play(); }; Juego.main.mylife = (Juego.main.mylife - 5); kill(); }; if (rotation > 180){ y = (y + (speed * Math.cos(((Math.PI / 180) * rotation)))); x = (x - (speed * Math.sin(((Math.PI / 180) * rotation)))); } else { y = (y - (speed * Math.cos(((Math.PI / 180) * rotation)))); x = (x + (speed * Math.sin(((Math.PI / 180) * rotation)))); }; ebtimer++; if (ebtimer > 150){ kill(); }; }; } } }//package
Section 27
//Explosion1 (Explosion1) package { import flash.events.*; import flash.display.*; public class Explosion1 extends MovieClip { public var pu:PowerUp; var manx:Manxa; var aleator; public function Explosion1(_arg1, _arg2){ x = _arg1; y = _arg2; addEventListener(Event.ENTER_FRAME, enterFrame); } public function enterFrame(_arg1:Event){ if (currentFrame == totalFrames){ stop(); aleator = Math.floor((Math.random() * 9)); if (aleator == 5){ pu = new PowerUp(x, y, (Math.floor((Math.random() * 10)) + 1)); Juego.main.addChild(pu); Juego.main.setChildIndex(pu, 2); } else { manx = new Manxa(x, y); Juego.main.addChild(manx); Juego.main.setChildIndex(manx, 1); }; removeEventListener(Event.ENTER_FRAME, enterFrame); Juego.main.removeChild(this); }; } } }//package
Section 28
//Fondo1 (Fondo1) package { import flash.display.*; public class Fondo1 extends MovieClip { public function Fondo1(){ x = 0; y = 0; } } }//package
Section 29
//GameOverMenu (GameOverMenu) package { import flash.events.*; import flash.display.*; import flash.text.*; public class GameOverMenu extends MovieClip { public var scoret:TextField; public var timet:TextField; public var menu:MainMenu; public var modot:TextField; public var killedt:TextField; public var metalt:TextField; public var bmenu:MovieClip; public function GameOverMenu(){ addFrameScript(0, frame1); x = 350; y = 250; } public function onClickHandler7(_arg1:MouseEvent){ Juego.main.removeChild(Juego.main.fondo); Juego.main.gpause = 1; Juego.main.creado = 0; Juego.main.menu.x = 0; Juego.main.removeChild(this); } public function onRollOverHandler7(_arg1:MouseEvent){ bmenu.gotoAndStop(2); } function frame1(){ bmenu.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler7); bmenu.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler7); bmenu.addEventListener(MouseEvent.CLICK, onClickHandler7); bmenu.buttonMode = true; bmenu.useHandCursor = true; } public function onRollOutHandler7(_arg1:MouseEvent){ bmenu.gotoAndStop(1); } } }//package
Section 30
//gun1 (gun1) package { import flash.media.*; public dynamic class gun1 extends Sound { } }//package
Section 31
//gun2 (gun2) package { import flash.media.*; public dynamic class gun2 extends Sound { } }//package
Section 32
//gun3 (gun3) package { import flash.media.*; public dynamic class gun3 extends Sound { } }//package
Section 33
//impact (impact) package { import flash.media.*; public dynamic class impact extends Sound { } }//package
Section 34
//Juego (Juego) package { import flash.events.*; import flash.display.*; import com.kongregate.as3.client.*; import flash.media.*; import flash.utils.*; import flash.text.*; import flash.ui.*; public class Juego extends MovieClip { public var inicio;// = 0 var fondo:Fondo1; var bar:Barra; public var creado;// = 0 public var ekilled;// = 0 public var numrondas; var numgen; public var gameTimer2:Timer; public var musik:SoundChannel; public var cwep:CWeapon; public var mir:Mirilla; var menu:MainMenu; public var gameTimer:Timer; public var enemy:Enemy; public var startg;// = 0 public var gom:GameOverMenu; var scorett; public var mylife;// = 100 public var modo; public var canon:Canon; public var music1; var zona; public var lai;// = 1 public var tiempo;// = 0 public var mun:Municion; var metaltt; var timere;// = 10 var kongregate:KongregateAPI; public var player:Player; public var sonido;// = 1 public var gpause;// = 0 public static var main; public static var rondas:Array = [0, 2, 1, 60, 4, 1, 100, 6, 1, 80, 7, 1, 100, 5, 1, 0, 2, 2, 150, 5, 1, 0, 3, 2, 150, 10, 1, 150, 10, 1, 0, 5, 2, 200, 15, 1, 0, 2, 2, 150, 1, 1, 50, 1, 2, 50, 1, 4, 50, 5, 1, 0, 5, 2, 100, 1, 3, 150, 10, 1, 0, 3, 2, 150, 8, 2, 150, 7, 2, 0, 1, 3, 175, 2, 3, 250, 2, 3, 0, 4, 4, 250, 4, 3, 350, 5, 1, 0, 4, 3, 150, 2, 2, 0, 2, 3, 0, 1, 4, 350, 5, 1, 0, 10, 2, 500, 1, 5, 350, 4, 1, 100, 10, 1, 250, 20, 1, 200, 5, 6, 100, 20, 6, 150, 4, 2, 200, 5, 1, 0, 5, 6, 150, 5, 4, 130, 5, 1, 150, 4, 3, 300, 10, 1, 50, 10, 6, 100]; public function Juego(){ mylife = 100; timere = 10; numrondas = (rondas.length - 1); lai = 1; startg = 0; sonido = 1; gpause = 0; creado = 0; inicio = 0; tiempo = 0; ekilled = 0; kongregate = new KongregateAPI(); super(); main = this; this.addChild(kongregate); music1 = new music(); musik = music1.play(); menu = new MainMenu(); addChild(menu); musik.addEventListener(Event.SOUND_COMPLETE, PlayAgain); addEventListener(Event.ENTER_FRAME, Jugar); } function GameOver(_arg1){ Juego.main.removeChild(Juego.main.player); Juego.main.removeChild(Juego.main.canon); Juego.main.removeChild(Juego.main.mir); Juego.main.removeChild(Juego.main.bar); Juego.main.removeChild(Juego.main.mun); Juego.main.removeChild(Juego.main.cwep); gom = new GameOverMenu(); addChild(gom); scorett = ((player.score * 5) + (mylife * 10)); metaltt = player.score; gom.scoret.text = scorett; gom.metalt.text = metaltt; tiempo = Math.round(tiempo); gom.timet.text = tiempo; gom.killedt.text = ekilled; kongregate.stats.submit("Killed", ekilled); kongregate.stats.submit("Time", tiempo); kongregate.stats.submit("Score", scorett); kongregate.stats.submit("Metal", metaltt); kongregate.stats.submit("Win", _arg1); if (modo == 1){ kongregate.scores.setMode("Survival"); kongregate.scores.submit(scorett); } else { kongregate.scores.setMode("Normal"); kongregate.scores.submit(scorett); }; Juego.main.resetgame(); if (mylife > 0){ if (modo == 1){ gom.modot.text = "Win Survival"; } else { gom.modot.text = "Win Normal"; }; } else { if (modo == 1){ gom.modot.text = "Lose Survival"; } else { gom.modot.text = "Lose Normal"; }; }; Juego.main.gpause = 1; Juego.main.creado = 0; Juego.main.lai = 1; Juego.main.mylife = 100; timere = 10; Mouse.show(); } public function onTick(_arg1:TimerEvent):void{ var i:int; var event = _arg1; if (gpause == 0){ player.Controla(); bar.gotoAndStop(mylife); canon.CanonControl(); Mouse.hide(); mir.x = mouseX; mir.y = mouseY; mun.puntos.text = player.score; try { i = 0; while (i < Enemy.list.length) { if (Enemy.list[i].boss == 1){ } else { if (player.hitTestObject(Enemy.list[i])){ mylife = (mylife - Enemy.list[i].atak); Enemy.list[i].kill(); }; }; i = (i + 1); }; } catch(e:IOErrorEvent) { }; } else { Mouse.show(); }; } function onMouse_Down(_arg1:Event):void{ player.shooting = true; } private function PlayAgain(_arg1:Event):void{ musik.stop(); musik.removeEventListener(Event.SOUND_COMPLETE, PlayAgain); musik = music1.play(0, 0); musik.addEventListener(Event.SOUND_COMPLETE, PlayAgain); } public function Jugar(_arg1:Event):void{ if ((((startg == 1)) && ((creado == 0)))){ gpause = 0; menu.x = 1000; player = new Player(); addChild(player); canon = new Canon(); addChild(canon); mir = new Mirilla(); addChild(mir); bar = new Barra(); addChild(bar); mun = new Municion(); addChild(mun); cwep = new CWeapon(); addChild(cwep); fondo = new Fondo1(); addChild(fondo); setChildIndex(fondo, 0); numrondas = (rondas.length - 1); if (inicio == 0){ Key.initialize(stage); stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouse_Down); stage.addEventListener(MouseEvent.MOUSE_UP, onMouse_Up); }; gameTimer = new Timer(25); gameTimer.addEventListener(TimerEvent.TIMER, onTick); gameTimer.start(); gameTimer2 = new Timer(50); gameTimer2.addEventListener(TimerEvent.TIMER, EnGen); gameTimer2.start(); startg = 0; creado = 1; }; } public function resetgame(){ gameTimer.removeEventListener(TimerEvent.TIMER, onTick); gameTimer2.removeEventListener(TimerEvent.TIMER, EnGen); Enemy.killAll(); tiempo = 0; ekilled = 0; } function EnGen(_arg1:Event):void{ var _local2:int; if (gpause == 0){ if (mylife < 1){ GameOver(0); }; tiempo = (tiempo + 0.1); if (lai < numrondas){ if (timere == 0){ numgen = rondas[lai]; _local2 = 0; while (_local2 < numgen) { zona = (Math.floor((Math.random() * 4)) + 1); switch (zona){ case 1: enemy = new Enemy((Math.floor((Math.random() * 180)) + 261), 20, rondas[(lai + 1)]); break; case 2: enemy = new Enemy((Math.floor((Math.random() * 180)) + 261), 490, rondas[(lai + 1)]); break; case 3: enemy = new Enemy(700, (Math.floor((Math.random() * 80)) + 219), rondas[(lai + 1)]); break; case 4: enemy = new Enemy(30, (Math.floor((Math.random() * 80)) + 219), rondas[(lai + 1)]); break; }; addChild(enemy); _local2++; }; timere = rondas[(lai + 2)]; lai = (lai + 3); setChildIndex(mir, (numChildren - 1)); } else { timere--; if ((((((Enemy.list.length <= 1)) && ((lai > 2)))) && ((timere > 50)))){ timere = 50; }; }; } else { GameOver(1); }; }; } function onMouse_Up(_arg1:Event):void{ player.shooting = false; } } }//package
Section 35
//Key (Key) package { import flash.events.*; import flash.display.*; public class Key { private static var initialized:Boolean = false; private static var keysDown:Object = new Object(); public static function initialize(_arg1:Stage){ if (!initialized){ _arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); _arg1.addEventListener(KeyboardEvent.KEY_UP, keyReleased); _arg1.addEventListener(Event.DEACTIVATE, clearKeys); initialized = true; }; } private static function clearKeys(_arg1:Event):void{ keysDown = new Object(); } public static function isDown(_arg1:uint):Boolean{ return (Boolean((_arg1 in keysDown))); } private static function keyPressed(_arg1:KeyboardEvent):void{ keysDown[_arg1.keyCode] = true; } private static function keyReleased(_arg1:KeyboardEvent):void{ if ((_arg1.keyCode in keysDown)){ delete keysDown[_arg1.keyCode]; }; } } }//package
Section 36
//MainMenu (MainMenu) package { import flash.events.*; import flash.display.*; import flash.text.*; public class MainMenu extends MovieClip { public var sound:MovieClip; public var survival:MovieClip; public var empezar:MovieClip; public function MainMenu(){ addFrameScript(0, frame1); x = 0; y = 0; } public function onRollOutHandler2(_arg1:MouseEvent){ survival.gotoAndStop(1); } public function onClickHandler(_arg1:MouseEvent){ Juego.main.startg = 1; Juego.rondas = [0, 2, 1, 60, 4, 1, 100, 6, 1, 80, 7, 1, 100, 5, 1, 0, 2, 2, 150, 5, 1, 0, 3, 2, 150, 10, 1, 150, 10, 1, 0, 5, 2, 200, 15, 1, 0, 2, 2, 150, 1, 1, 50, 1, 2, 50, 1, 4, 50, 5, 1, 0, 5, 2, 100, 1, 3, 150, 10, 1, 0, 3, 2, 150, 8, 2, 150, 7, 2, 0, 1, 3, 175, 2, 3, 250, 2, 3, 0, 4, 4, 250, 4, 3, 350, 5, 1, 0, 4, 3, 150, 2, 2, 0, 2, 3, 0, 1, 4, 350, 5, 1, 0, 10, 2, 500, 1, 5, 350, 4, 1, 100, 10, 1, 250, 20, 1, 200, 5, 6, 100, 20, 6, 150, 4, 2, 200, 5, 1, 0, 5, 6, 150, 5, 4, 130, 5, 1, 150, 4, 3, 300, 10, 1, 50, 10, 6, 100, 10, 3, 200, 20, 6, 200, 10, 1, 0, 10, 4, 150, 5, 2, 200, 30, 6, 250, 2, 7, 0, 3, 1, 250, 5, 7, 300, 5, 7, 250, 20, 6, 200, 10, 1, 0, 4, 7, 250, 30, 1, 300, 10, 7, 250, 1, 8, 600, 30, 6, 200, 30, 1, 0, 20, 6, 0, 5, 4, 500, 10, 2, 150, 10, 3, 350, 25, 6, 200, 6, 7, 0, 10, 6, 300, 5, 7, 350, 50, 1, 300, 50, 6, 350, 1, 9, 700, 10, 1, 500, 0, 1, 0]; Juego.main.modo = 2; } public function onClickHandler2(_arg1:MouseEvent){ Juego.main.startg = 1; Juego.rondas = [0, 3, 1, 50, 5, 1, 75, 7, 1, 100, 15, 1, 100, 20, 1, 100, 35, 1, 150, 20, 1, 100, 25, 1, 100, 30, 6, 150, 50, 1, 250, 50, 6, 250, 130, 6, 300, 170, 6, 500, 100, 1, 100, 100, 6, 500, 0, 1, 0]; Juego.main.modo = 1; } public function onClickHandler3(_arg1:MouseEvent){ if (Juego.main.sonido == 1){ Juego.main.musik.stop(); Juego.main.sonido = 0; } else { Juego.main.musik = Juego.main.music1.play(); Juego.main.sonido = 1; }; } public function onRollOutHandler(_arg1:MouseEvent){ empezar.gotoAndStop(1); } public function onRollOverHandler2(_arg1:MouseEvent){ survival.gotoAndStop(2); } public function onRollOverHandler3(_arg1:MouseEvent){ sound.gotoAndStop(2); } function frame1(){ empezar.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler); empezar.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler); empezar.addEventListener(MouseEvent.CLICK, onClickHandler); survival.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler2); survival.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler2); survival.addEventListener(MouseEvent.CLICK, onClickHandler2); sound.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler3); sound.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler3); sound.addEventListener(MouseEvent.CLICK, onClickHandler3); empezar.buttonMode = true; empezar.useHandCursor = true; survival.buttonMode = true; survival.useHandCursor = true; sound.buttonMode = true; sound.useHandCursor = true; } public function onRollOutHandler3(_arg1:MouseEvent){ sound.gotoAndStop(1); } public function onRollOverHandler(_arg1:MouseEvent){ empezar.gotoAndStop(2); } } }//package
Section 37
//Manxa (Manxa) package { import flash.events.*; import flash.display.*; public class Manxa extends MovieClip { var borrad;// = false var timer;// = 500 public function Manxa(_arg1, _arg2){ borrad = false; timer = 500; super(); gotoAndStop((Math.floor((Math.random() * 3)) + 1)); x = _arg1; y = _arg2; addEventListener(Event.ENTER_FRAME, borrado); } public function borrar(){ if (borrad == false){ removeEventListener(Event.ENTER_FRAME, borrado); Juego.main.removeChild(this); borrad = true; }; } public function borrado(_arg1:Event){ if (Juego.main.creado == 0){ borrar(); }; if (timer < 0){ if (alpha == 0){ borrar(); } else { alpha = (alpha - 0.01); }; } else { timer--; }; } } }//package
Section 38
//Mirilla (Mirilla) package { import flash.display.*; public class Mirilla extends MovieClip { } }//package
Section 39
//Municion (Municion) package { import flash.display.*; import flash.text.*; public class Municion extends MovieClip { public var balas2:TextField; public var balas3:TextField; public var balas4:TextField; public var balas5:TextField; public var puntos:TextField; public function Municion(){ x = 460; y = 10; gotoAndStop(100); balas2.text = "0"; balas3.text = "0"; } } }//package
Section 40
//music (music) package { import flash.media.*; public dynamic class music extends Sound { } }//package
Section 41
//Nuke (Nuke) package { import flash.events.*; import flash.display.*; public class Nuke extends MovieClip { public function Nuke(_arg1, _arg2){ addFrameScript(59, frame60); x = _arg1; y = _arg2; addEventListener(Event.ENTER_FRAME, enterFrame); } public function enterFrame(_arg1:Event){ if (currentFrame == totalFrames){ stop(); removeEventListener(Event.ENTER_FRAME, enterFrame); Juego.main.removeChild(this); }; } function frame60(){ stop(); } } }//package
Section 42
//PauseMenu (PauseMenu) package { import flash.events.*; import flash.display.*; public class PauseMenu extends MovieClip { public var fondo:Fondo1; public var bar:Barra; public var sound:MovieClip; public var cwep:CWeapon; public var mir:Mirilla; public var menu:MainMenu; public var empezar:MovieClip; public var enemy:Enemy; public var canon:Canon; public var bmenu:MovieClip; public var mun:Municion; public var q1:MovieClip; public var q2:MovieClip; public var player:Player; public var q3:MovieClip; public function PauseMenu(){ addFrameScript(0, frame1); x = 451; y = 100; } public function onRollOutHandler6(_arg1:MouseEvent){ q3.gotoAndStop(1); } public function onRollOutHandler4(_arg1:MouseEvent){ q1.gotoAndStop(1); } public function onClickHandler(_arg1:MouseEvent){ Juego.main.gpause = 0; Juego.main.removeChild(this); } public function onClickHandler3(_arg1:MouseEvent){ if (Juego.main.sonido == 1){ Juego.main.musik.stop(); Juego.main.sonido = 0; } else { Juego.main.musik = Juego.main.music1.play(); Juego.main.sonido = 1; }; } public function onClickHandler4(_arg1:MouseEvent){ stage.quality = "high"; } public function onClickHandler6(_arg1:MouseEvent){ stage.quality = "low"; } public function onClickHandler7(_arg1:MouseEvent){ Juego.main.resetgame(); Juego.main.lai = 1; Juego.main.mylife = 100; Juego.main.removeChild(Juego.main.player); Juego.main.removeChild(Juego.main.canon); Juego.main.removeChild(Juego.main.mir); Juego.main.removeChild(Juego.main.bar); Juego.main.removeChild(Juego.main.mun); Juego.main.removeChild(Juego.main.cwep); Juego.main.removeChild(Juego.main.fondo); Juego.main.gpause = 1; Juego.main.creado = 0; Juego.main.timere = 10; Juego.main.menu.x = 0; Juego.main.removeChild(this); } public function onRollOverHandler5(_arg1:MouseEvent){ q2.gotoAndStop(2); } public function onRollOverHandler6(_arg1:MouseEvent){ q3.gotoAndStop(2); } public function onRollOutHandler(_arg1:MouseEvent){ empezar.gotoAndStop(1); } public function onClickHandler5(_arg1:MouseEvent){ stage.quality = "medium"; } public function onRollOverHandler7(_arg1:MouseEvent){ bmenu.gotoAndStop(2); } public function onRollOverHandler3(_arg1:MouseEvent){ sound.gotoAndStop(2); } function frame1(){ empezar.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler); empezar.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler); empezar.addEventListener(MouseEvent.CLICK, onClickHandler); sound.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler3); sound.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler3); sound.addEventListener(MouseEvent.CLICK, onClickHandler3); q1.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler4); q1.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler4); q1.addEventListener(MouseEvent.CLICK, onClickHandler4); q2.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler5); q2.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler5); q2.addEventListener(MouseEvent.CLICK, onClickHandler5); q3.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler6); q3.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler6); q3.addEventListener(MouseEvent.CLICK, onClickHandler6); bmenu.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler7); bmenu.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler7); bmenu.addEventListener(MouseEvent.CLICK, onClickHandler7); empezar.buttonMode = true; empezar.useHandCursor = true; sound.buttonMode = true; sound.useHandCursor = true; q1.buttonMode = true; q1.useHandCursor = true; q2.buttonMode = true; q2.useHandCursor = true; q3.buttonMode = true; q3.useHandCursor = true; bmenu.buttonMode = true; bmenu.useHandCursor = true; } public function onRollOutHandler3(_arg1:MouseEvent){ sound.gotoAndStop(1); } public function onRollOverHandler(_arg1:MouseEvent){ empezar.gotoAndStop(2); } public function onRollOverHandler4(_arg1:MouseEvent){ q1.gotoAndStop(2); } public function onRollOutHandler5(_arg1:MouseEvent){ q2.gotoAndStop(1); } public function onRollOutHandler7(_arg1:MouseEvent){ bmenu.gotoAndStop(1); } } }//package
Section 43
//Player (Player) package { import flash.display.*; public class Player extends MovieClip { public var weapon;// = 1 public var btimer;// = 0 public var bala:Bala; public var speed; public var shooting;// = false public var paus:PauseMenu; public var municion2;// = 0 public var score;// = 0 public var municion3;// = 0 public var municion5;// = 0 public var municion4;// = 0 public var srate;// = 3 public function Player(){ shooting = false; btimer = 0; srate = 3; weapon = 1; municion2 = 0; municion3 = 0; municion4 = 0; municion5 = 0; score = 0; super(); x = 300; y = 150; speed = 3; this.stop(); } public function Controla(){ var _local1:gun1; var _local2:gun2; var _local3:gun3; var _local4:gun1; var _local5:gun3; if (Key.isDown(49)){ weapon = 1; Juego.main.cwep.gotoAndStop(1); }; if (Key.isDown(50)){ if (municion2 > 0){ weapon = 2; Juego.main.cwep.gotoAndStop(2); }; }; if (Key.isDown(51)){ if (municion3 > 0){ weapon = 3; Juego.main.cwep.gotoAndStop(3); }; }; if (Key.isDown(52)){ if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(4); }; }; if (Key.isDown(53)){ if (municion5 > 0){ weapon = 5; Juego.main.cwep.gotoAndStop(5); }; }; if (((Key.isDown(80)) || (Key.isDown(112)))){ if (Juego.main.gpause == 0){ Juego.main.gpause = 1; paus = new PauseMenu(); Juego.main.addChild(paus); }; }; if (y < 76){ y = 76; }; if (y > 400){ y = 400; }; if (x < 80){ x = 80; }; if (x > 605){ x = 605; }; if (((Key.isDown(39)) || (Key.isDown(68)))){ x = (x + speed); this.play(); if (((Key.isDown(38)) || (Key.isDown(87)))){ y = (y - speed); if (this.rotation == 45){ } else { if (this.rotation < 45){ this.rotation = (this.rotation + 3); } else { this.rotation = (this.rotation - 3); }; }; } else { if (((Key.isDown(40)) || (Key.isDown(83)))){ y = (y + speed); if (this.rotation == 135){ } else { if (this.rotation < 135){ this.rotation = (this.rotation + 3); } else { this.rotation = (this.rotation - 3); }; }; } else { if (this.rotation == 90){ } else { if (this.rotation < 90){ this.rotation = (this.rotation + 3); } else { this.rotation = (this.rotation - 3); }; }; }; }; } else { if (((Key.isDown(37)) || (Key.isDown(65)))){ x = (x - speed); this.play(); if (((Key.isDown(38)) || (Key.isDown(87)))){ y = (y - speed); if (this.rotation == -45){ } else { if (this.rotation < -45){ this.rotation = (this.rotation + 3); } else { this.rotation = (this.rotation - 3); }; }; } else { if (((Key.isDown(40)) || (Key.isDown(83)))){ y = (y + speed); if (this.rotation == -135){ } else { if (this.rotation < -135){ this.rotation = (this.rotation + 3); } else { if (this.rotation > 45){ this.rotation = (this.rotation + 3); } else { this.rotation = (this.rotation - 3); }; }; }; } else { if (this.rotation == -90){ } else { if (this.rotation < -90){ this.rotation = (this.rotation + 3); } else { this.rotation = (this.rotation - 3); }; }; }; }; } else { if (((Key.isDown(38)) || (Key.isDown(87)))){ y = (y - speed); this.play(); if (this.rotation == 0){ } else { if (this.rotation < 0){ this.rotation = (this.rotation + 3); } else { this.rotation = (this.rotation - 3); }; }; } else { if (((Key.isDown(40)) || (Key.isDown(83)))){ y = (y + speed); this.play(); if (this.rotation == 180){ } else { if (this.rotation < 180){ if (this.rotation < 0){ this.rotation = (this.rotation - 3); } else { this.rotation = (this.rotation + 3); }; } else { this.rotation = (this.rotation - 3); }; }; } else { this.stop(); }; }; }; }; if (shooting == true){ if (btimer == 0){ switch (weapon){ case 1: bala = new Bala(Juego.main.player.x, Juego.main.player.y, 20, 20, 10, 0, 1, 0); Juego.main.addChild(bala); btimer = 3; _local1 = new gun1(); if (Juego.main.sonido == 1){ _local1.play(); }; break; case 2: if (municion2 > 0){ municion2--; Juego.main.mun.balas2.text = municion2; bala = new Bala(Juego.main.player.x, Juego.main.player.y, 20, 20, 1, -7, 1, 0); Juego.main.addChild(bala); bala = new Bala(Juego.main.player.x, Juego.main.player.y, 20, 20, 1, -4, 1, 0); Juego.main.addChild(bala); bala = new Bala(Juego.main.player.x, Juego.main.player.y, 20, 20, 1, 0, 1, 0); Juego.main.addChild(bala); bala = new Bala(Juego.main.player.x, Juego.main.player.y, 20, 20, 1, 4, 1, 0); Juego.main.addChild(bala); bala = new Bala(Juego.main.player.x, Juego.main.player.y, 20, 20, 1, 7, 1, 0); Juego.main.addChild(bala); btimer = 10; _local2 = new gun2(); if (Juego.main.sonido == 1){ _local2.play(); }; break; } else { if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(4); break; } else { if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(4); break; } else { if (municion3 > 0){ weapon = 3; Juego.main.cwep.gotoAndStop(3); break; } else { if (municion2 > 0){ weapon = 2; Juego.main.cwep.gotoAndStop(2); break; } else { weapon = 1; Juego.main.cwep.gotoAndStop(1); break; }; }; }; }; }; case 3: if (municion3 > 0){ municion3--; Juego.main.mun.balas3.text = municion3; bala = new Bala(Juego.main.player.x, Juego.main.player.y, 15, 50, 1, 0, 2, 0); Juego.main.addChild(bala); btimer = 4; _local3 = new gun3(); if (Juego.main.sonido == 1){ _local3.play(); }; break; } else { if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(4); break; } else { if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(4); break; } else { if (municion3 > 0){ weapon = 3; Juego.main.cwep.gotoAndStop(3); break; } else { if (municion2 > 0){ weapon = 2; Juego.main.cwep.gotoAndStop(2); break; } else { weapon = 1; Juego.main.cwep.gotoAndStop(1); break; }; }; }; }; }; case 4: if (municion4 > 0){ municion4--; Juego.main.mun.balas4.text = municion4; bala = new Bala(Juego.main.player.x, Juego.main.player.y, 25, 50, 1, 0, 3, 1); Juego.main.addChild(bala); btimer = 10; _local4 = new gun1(); if (Juego.main.sonido == 1){ _local4.play(); }; break; } else { if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(5); break; } else { if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(4); break; } else { if (municion3 > 0){ weapon = 3; Juego.main.cwep.gotoAndStop(3); break; } else { if (municion2 > 0){ weapon = 2; Juego.main.cwep.gotoAndStop(2); break; } else { weapon = 1; Juego.main.cwep.gotoAndStop(1); break; }; }; }; }; }; case 5: if (municion5 > 0){ municion5--; Juego.main.mun.balas5.text = municion5; bala = new Bala(Juego.main.player.x, Juego.main.player.y, 0, 300, 1, 0, 4, 0); Juego.main.addChild(bala); Juego.main.setChildIndex(bala, 3); btimer = 4; _local5 = new gun3(); if (Juego.main.sonido == 1){ _local5.play(); }; break; } else { if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(4); break; } else { if (municion4 > 0){ weapon = 4; Juego.main.cwep.gotoAndStop(4); break; } else { if (municion3 > 0){ weapon = 3; Juego.main.cwep.gotoAndStop(3); break; } else { if (municion2 > 0){ weapon = 2; Juego.main.cwep.gotoAndStop(2); break; } else { weapon = 1; Juego.main.cwep.gotoAndStop(1); break; }; }; }; }; }; }; } else { btimer = (btimer - 1); }; } else { if (btimer == 0){ } else { btimer = (btimer - 1); }; }; } } }//package
Section 44
//PowerUp (PowerUp) package { import flash.events.*; import flash.display.*; public class PowerUp extends MovieClip { var tipo; var nuke:Nuke; var putimer;// = 0 public function PowerUp(_arg1, _arg2, _arg3){ putimer = 0; super(); tipo = _arg3; x = _arg1; y = _arg2; switch (tipo){ case 2: gotoAndStop(1); break; case 3: gotoAndStop(2); break; case 4: gotoAndStop(3); break; case 5: gotoAndStop(4); break; case 6: gotoAndStop(5); break; default: gotoAndStop(6); break; }; addEventListener(Event.ENTER_FRAME, Pup); } public function Pup(_arg1:Event):void{ var _local2:spowerup; if (Juego.main.creado == 0){ removeEventListener(Event.ENTER_FRAME, Pup); Juego.main.removeChild(this); }; if (putimer > 500){ removeEventListener(Event.ENTER_FRAME, Pup); Juego.main.removeChild(this); } else { putimer++; }; if (Juego.main.player.hitTestObject(this)){ _local2 = new spowerup(); if (Juego.main.sonido == 1){ _local2.play(); }; switch (tipo){ case 2: Juego.main.player.municion2 = (Juego.main.player.municion2 + 50); Juego.main.mun.balas2.text = Juego.main.player.municion2; Juego.main.player.weapon = 2; Juego.main.cwep.gotoAndStop(2); break; case 3: Juego.main.player.municion3 = (Juego.main.player.municion3 + 50); Juego.main.mun.balas3.text = Juego.main.player.municion3; Juego.main.player.weapon = 3; Juego.main.cwep.gotoAndStop(3); break; case 4: Juego.main.player.municion4 = (Juego.main.player.municion4 + 15); Juego.main.mun.balas4.text = Juego.main.player.municion4; Juego.main.player.weapon = 4; Juego.main.cwep.gotoAndStop(4); break; case 5: Juego.main.player.municion5 = (Juego.main.player.municion5 + 7); Juego.main.mun.balas5.text = Juego.main.player.municion5; break; case 6: nuke = new Nuke(x, y); Juego.main.addChild(nuke); Enemy.damageAll(); break; default: if (Juego.main.mylife < 85){ Juego.main.mylife = (Juego.main.mylife + 15); break; } else { Juego.main.mylife = 100; break; }; }; removeEventListener(Event.ENTER_FRAME, Pup); Juego.main.removeChild(this); }; } } }//package
Section 45
//sexplosion1 (sexplosion1) package { import flash.media.*; public dynamic class sexplosion1 extends Sound { } }//package
Section 46
//snuke (snuke) package { import flash.media.*; public dynamic class snuke extends Sound { } }//package
Section 47
//spowerup (spowerup) package { import flash.media.*; public dynamic class spowerup extends Sound { } }//package

Library Items

Symbol 1 Sound {spowerup}
Symbol 2 Sound {snuke}
Symbol 3 Sound {sexplosion1}
Symbol 4 Sound {music}
Symbol 5 Sound {impact}
Symbol 6 Sound {gun3}
Symbol 7 Sound {gun2}
Symbol 8 Sound {gun1}
Symbol 9 GraphicUsed by:47
Symbol 10 GraphicUsed by:47
Symbol 11 GraphicUsed by:47
Symbol 12 GraphicUsed by:47
Symbol 13 GraphicUsed by:47
Symbol 14 GraphicUsed by:47
Symbol 15 GraphicUsed by:47
Symbol 16 GraphicUsed by:47
Symbol 17 GraphicUsed by:47
Symbol 18 GraphicUsed by:47
Symbol 19 GraphicUsed by:47
Symbol 20 GraphicUsed by:47
Symbol 21 GraphicUsed by:47
Symbol 22 GraphicUsed by:47
Symbol 23 GraphicUsed by:47
Symbol 24 GraphicUsed by:47
Symbol 25 GraphicUsed by:47
Symbol 26 GraphicUsed by:47
Symbol 27 GraphicUsed by:47
Symbol 28 GraphicUsed by:47
Symbol 29 GraphicUsed by:47
Symbol 30 GraphicUsed by:47
Symbol 31 GraphicUsed by:47
Symbol 32 GraphicUsed by:47
Symbol 33 GraphicUsed by:47
Symbol 34 GraphicUsed by:47
Symbol 35 GraphicUsed by:47
Symbol 36 GraphicUsed by:47
Symbol 37 GraphicUsed by:47
Symbol 38 GraphicUsed by:47
Symbol 39 GraphicUsed by:47
Symbol 40 GraphicUsed by:47
Symbol 41 GraphicUsed by:47
Symbol 42 GraphicUsed by:47
Symbol 43 GraphicUsed by:47
Symbol 44 GraphicUsed by:47
Symbol 45 GraphicUsed by:47
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClip {Nuke}Uses:9 10 11 12 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 41 42 43 44 45 46
Symbol 48 GraphicUsed by:67
Symbol 49 GraphicUsed by:53 60 67
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:67
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClipUses:52 49Used by:67
Symbol 54 GraphicUsed by:57
Symbol 55 FontUsed by:56 131 132 133 134 136 181 182 183 186 187
Symbol 56 TextUses:55Used by:57
Symbol 57 MovieClipUses:54 56Used by:67
Symbol 58 GraphicUsed by:60
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:58 59 49Used by:67
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:67
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:63Used by:67
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:65Used by:67
Symbol 67 MovieClip {Enemy}Uses:48 49 51 53 57 60 62 64 66
Symbol 68 GraphicUsed by:71
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClipUses:69Used by:71 84
Symbol 71 MovieClip {Mirilla}Uses:68 70
Symbol 72 GraphicUsed by:76
Symbol 73 GraphicUsed by:76
Symbol 74 GraphicUsed by:76
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClip {Player}Uses:72 73 74 75
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClip {Canon}Uses:77
Symbol 79 GraphicUsed by:84
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:80Used by:84 138
Symbol 82 GraphicUsed by:84
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClip {Bala}Uses:79 81 82 83 70
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:99
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:99
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:99
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:99
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:99
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:99
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:99
Symbol 99 MovieClip {Explosion1}Uses:86 88 90 92 94 96 98
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClip {Fondo1}Uses:100
Symbol 102 GraphicUsed by:107
Symbol 103 GraphicUsed by:107
Symbol 104 ShapeTweeningUsed by:107
Symbol 105 GraphicUsed by:107
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClip {Barra}Uses:102 103 104 105 106
Symbol 108 GraphicUsed by:111
Symbol 109 GraphicUsed by:111
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClip {Manxa}Uses:108 109 110
Symbol 112 GraphicUsed by:117
Symbol 113 GraphicUsed by:117
Symbol 114 GraphicUsed by:117
Symbol 115 GraphicUsed by:117
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClip {CWeapon}Uses:112 113 114 115 116
Symbol 118 GraphicUsed by:129
Symbol 119 FontUsed by:120 122 124 126 135
Symbol 120 TextUses:119Used by:129
Symbol 121 GraphicUsed by:129
Symbol 122 TextUses:119Used by:129
Symbol 123 GraphicUsed by:129
Symbol 124 TextUses:119Used by:129
Symbol 125 GraphicUsed by:129
Symbol 126 TextUses:119Used by:129
Symbol 127 GraphicUsed by:129
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClip {PowerUp}Uses:118 120 121 122 123 124 125 126 127 128
Symbol 130 GraphicUsed by:137
Symbol 131 EditableTextUses:55Used by:137
Symbol 132 EditableTextUses:55Used by:137
Symbol 133 EditableTextUses:55Used by:137
Symbol 134 EditableTextUses:55Used by:137
Symbol 135 TextUses:119Used by:137
Symbol 136 EditableTextUses:55Used by:137
Symbol 137 MovieClip {Municion}Uses:130 131 132 133 134 135 136
Symbol 138 MovieClip {EnemyBullet}Uses:81
Symbol 139 BitmapUsed by:140
Symbol 140 GraphicUses:139Used by:156
Symbol 141 GraphicUsed by:146 149 160 175
Symbol 142 FontUsed by:143 145 147 148 151 153 155 158 159 162 164 166 167 169 170 172 173 174 178 179 180 184 185
Symbol 143 TextUses:142Used by:146
Symbol 144 GraphicUsed by:146 149 160 175
Symbol 145 TextUses:142Used by:146
Symbol 146 MovieClip {Test_fla.ButtonStart_10}Uses:141 143 144 145Used by:156
Symbol 147 TextUses:142Used by:149
Symbol 148 TextUses:142Used by:149
Symbol 149 MovieClip {Test_fla.ButtonSurvival_11}Uses:141 147 144 148Used by:156
Symbol 150 GraphicUsed by:154
Symbol 151 TextUses:142Used by:154
Symbol 152 GraphicUsed by:154
Symbol 153 TextUses:142Used by:154
Symbol 154 MovieClip {Test_fla.ButtonSound_5}Uses:150 151 152 153Used by:156 176
Symbol 155 TextUses:142Used by:156
Symbol 156 MovieClip {MainMenu}Uses:140 146 149 154 155
Symbol 157 GraphicUsed by:176
Symbol 158 TextUses:142Used by:160
Symbol 159 TextUses:142Used by:160
Symbol 160 MovieClip {Test_fla.ButtonContinue_4}Uses:141 158 144 159Used by:176
Symbol 161 GraphicUsed by:165 168 171
Symbol 162 TextUses:142Used by:165
Symbol 163 GraphicUsed by:165 168 171
Symbol 164 TextUses:142Used by:165
Symbol 165 MovieClip {Test_fla.Q1_6}Uses:161 162 163 164Used by:176
Symbol 166 TextUses:142Used by:168
Symbol 167 TextUses:142Used by:168
Symbol 168 MovieClip {Test_fla.Q2_7}Uses:161 166 163 167Used by:176
Symbol 169 TextUses:142Used by:171
Symbol 170 TextUses:142Used by:171
Symbol 171 MovieClip {Test_fla.Q3_8}Uses:161 169 163 170Used by:176
Symbol 172 TextUses:142Used by:176
Symbol 173 TextUses:142Used by:175
Symbol 174 TextUses:142Used by:175
Symbol 175 MovieClip {Test_fla.ButtonMainMenu_2}Uses:141 173 144 174Used by:176 188
Symbol 176 MovieClip {PauseMenu}Uses:157 160 154 165 168 171 172 175
Symbol 177 GraphicUsed by:188
Symbol 178 TextUses:142Used by:188
Symbol 179 TextUses:142Used by:188
Symbol 180 TextUses:142Used by:188
Symbol 181 EditableTextUses:55Used by:188
Symbol 182 EditableTextUses:55Used by:188
Symbol 183 EditableTextUses:55Used by:188
Symbol 184 TextUses:142Used by:188
Symbol 185 TextUses:142Used by:188
Symbol 186 EditableTextUses:55Used by:188
Symbol 187 EditableTextUses:55Used by:188
Symbol 188 MovieClip {GameOverMenu}Uses:177 178 179 180 181 182 175 183 184 185 186 187
Symbol 189 MovieClip {com.kongregate.as3.client.KongregateAPI}

Instance Names

"balas2"Symbol 137 MovieClip {Municion} Frame 1Symbol 131 EditableText
"balas3"Symbol 137 MovieClip {Municion} Frame 1Symbol 132 EditableText
"balas4"Symbol 137 MovieClip {Municion} Frame 1Symbol 133 EditableText
"balas5"Symbol 137 MovieClip {Municion} Frame 1Symbol 134 EditableText
"puntos"Symbol 137 MovieClip {Municion} Frame 1Symbol 136 EditableText
"empezar"Symbol 156 MovieClip {MainMenu} Frame 1Symbol 146 MovieClip {Test_fla.ButtonStart_10}
"survival"Symbol 156 MovieClip {MainMenu} Frame 1Symbol 149 MovieClip {Test_fla.ButtonSurvival_11}
"sound"Symbol 156 MovieClip {MainMenu} Frame 1Symbol 154 MovieClip {Test_fla.ButtonSound_5}
"empezar"Symbol 176 MovieClip {PauseMenu} Frame 1Symbol 160 MovieClip {Test_fla.ButtonContinue_4}
"sound"Symbol 176 MovieClip {PauseMenu} Frame 1Symbol 154 MovieClip {Test_fla.ButtonSound_5}
"q1"Symbol 176 MovieClip {PauseMenu} Frame 1Symbol 165 MovieClip {Test_fla.Q1_6}
"q2"Symbol 176 MovieClip {PauseMenu} Frame 1Symbol 168 MovieClip {Test_fla.Q2_7}
"q3"Symbol 176 MovieClip {PauseMenu} Frame 1Symbol 171 MovieClip {Test_fla.Q3_8}
"bmenu"Symbol 176 MovieClip {PauseMenu} Frame 1Symbol 175 MovieClip {Test_fla.ButtonMainMenu_2}
"scoret"Symbol 188 MovieClip {GameOverMenu} Frame 1Symbol 181 EditableText
"metalt"Symbol 188 MovieClip {GameOverMenu} Frame 1Symbol 182 EditableText
"bmenu"Symbol 188 MovieClip {GameOverMenu} Frame 1Symbol 175 MovieClip {Test_fla.ButtonMainMenu_2}
"modot"Symbol 188 MovieClip {GameOverMenu} Frame 1Symbol 183 EditableText
"killedt"Symbol 188 MovieClip {GameOverMenu} Frame 1Symbol 186 EditableText
"timet"Symbol 188 MovieClip {GameOverMenu} Frame 1Symbol 187 EditableText

Special Tags

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




http://swfchan.com/25/122150/info.shtml
Created: 4/3 -2019 02:29:46 Last modified: 4/3 -2019 02:29:46 Server time: 05/05 -2024 19:22:31