Section 1
//basicSphere (basicSphere.basicSphere)
package basicSphere {
import enemy.*;
public class basicSphere extends enemy {
public function basicSphere(){
this.myMoveMode = followMove;
this.life = 10;
this.hardness = 8;
this.turnSpeed = ((Math.random() * 0.0003) + 0.0015);
this.speed = (0.15 + (Math.random() * 0.05));
this.deg = (((Math.random() * Math.PI) * 2) - Math.PI);
this.sizeX = 20;
this.sizeY = 20;
moneyArray.push(uint(0));
this.animateMe = animate;
this.sheetX = 0;
this.sheetY = 0;
this.sheetWidth = 29;
this.sheetHeight = 30;
this.maxSheetOffset = 2;
this.animDelay = 100;
this.explosionType = 1;
}
}
}//package basicSphere
Section 2
//bgElement (bgElement.bgElement)
package bgElement {
import flash.display.*;
public class bgElement extends Shape {
private var types:Array;
public var speedY:Number;
public var dead:Boolean;// = false
public var sheetY:uint;
public var sheetOffsetNow:uint;// = 0
public var sheetWidth:uint;
public var timeDiff:uint;// = 0
public var sheetX:uint;
public var sheetHeight:uint;
public var speedX:Number;
public function bgElement(){
dead = false;
sheetOffsetNow = 0;
types = new Array([1005, 315, 216, 140], [1221, 315, 280, 165], [1317, 480, 183, 58]);
timeDiff = 0;
super();
}
public function setType(_arg1:uint){
sheetX = types[_arg1][0];
sheetY = types[_arg1][1];
sheetWidth = types[_arg1][2];
sheetHeight = types[_arg1][3];
}
public function moveMe(){
this.x = (this.x + (speedX * timeDiff));
this.y = (this.y + (speedY * timeDiff));
checkBounds();
}
private function checkBounds(){
if (this.x < (-(sheetWidth) / 2)){
this.dead = true;
};
}
}
}//package bgElement
Section 3
//bouncer (bouncer.bouncer)
package bouncer {
import enemy.*;
public class bouncer extends enemy {
public function bouncer(){
this.myMoveMode = bounceMove;
this.life = 20;
this.hardness = 40;
this.score = 20;
this.turnSpeed = 0;
this.speed = (0.17 + (Math.random() * 0.05));
this.deg = (((Math.random() * Math.PI) * 2) - Math.PI);
this.sizeX = 34;
this.sizeY = 34;
moneyArray.push(uint(1));
if (Math.random() > 0.97){
moneyArray.push(uint(4));
};
this.animateMe = animate;
this.sheetX = 0;
this.sheetY = 80;
this.sheetWidth = 40;
this.sheetHeight = 40;
this.maxSheetOffset = 8;
this.animDelay = 50;
this.explosionType = 1;
}
}
}//package bouncer
Section 4
//bullet (bullet.bullet)
package bullet {
import flash.display.*;
public class bullet extends Shape {
public var speedY:Number;
public var dead:Boolean;// = false
public var sheetY:uint;
public var timeDiff:Number;// = 0
public var animDelay:uint;
public var sheetOffsetNow:uint;// = 0
private var animDelayNow:int;// = 0
public var sheetWidth:uint;
private var nowFrame:uint;// = 0
public var maxSheetOffset:uint;
public var sheetX:uint;
public var sheetHeight:uint;
public var damage:uint;
public var speedX:Number;
public var sizeX:uint;
public var sizeY:uint;
public function bullet(){
dead = false;
sheetOffsetNow = 0;
animDelayNow = 0;
nowFrame = 0;
timeDiff = 0;
super();
}
public function animateMe(){
animDelayNow = (animDelayNow - timeDiff);
if (animDelayNow <= 0){
animDelayNow = animDelay;
if (nowFrame < maxSheetOffset){
nowFrame++;
} else {
nowFrame = 0;
};
sheetOffsetNow = (nowFrame * sheetWidth);
};
}
public function moveMe(){
this.x = (this.x + (speedX * timeDiff));
this.y = (this.y + (speedY * timeDiff));
checkBounds();
}
private function checkBounds(){
if (this.x < 0){
this.dead = true;
} else {
if (this.x > 680){
this.dead = true;
};
};
if (this.y < 0){
this.dead = true;
} else {
if (this.y > 550){
this.dead = true;
};
};
}
}
}//package bullet
Section 5
//bulletEnemyBig (bulletEnemyBig.bulletEnemyBig)
package bulletEnemyBig {
import bullet.*;
public class bulletEnemyBig extends bullet {
public function bulletEnemyBig(){
damage = 150;
sizeX = 20;
sizeY = 20;
sheetX = 231;
sheetY = 0;
sheetWidth = 26;
sheetHeight = 26;
maxSheetOffset = 3;
animDelay = 50;
}
}
}//package bulletEnemyBig
Section 6
//bulletEnemyMedium (bulletEnemyMedium.bulletEnemyMedium)
package bulletEnemyMedium {
import bullet.*;
public class bulletEnemyMedium extends bullet {
public function bulletEnemyMedium(){
damage = 110;
sizeX = 14;
sizeY = 14;
sheetX = 167;
sheetY = 0;
sheetWidth = 16;
sheetHeight = 16;
maxSheetOffset = 3;
animDelay = 50;
}
}
}//package bulletEnemyMedium
Section 7
//bulletEnemySmall (bulletEnemySmall.bulletEnemySmall)
package bulletEnemySmall {
import bullet.*;
public class bulletEnemySmall extends bullet {
public function bulletEnemySmall(){
damage = 65;
sizeX = 8;
sizeY = 8;
sheetX = 127;
sheetY = 0;
sheetWidth = 10;
sheetHeight = 10;
maxSheetOffset = 3;
animDelay = 40;
}
}
}//package bulletEnemySmall
Section 8
//bulletPlayerBerserk (bulletPlayerBerserk.bulletPlayerBerserk)
package bulletPlayerBerserk {
import bullet.*;
public class bulletPlayerBerserk extends bullet {
public function bulletPlayerBerserk(){
damage = 15;
sizeX = 13;
sizeY = 13;
sheetX = 107;
sheetY = 10;
sheetWidth = 16;
sheetHeight = 16;
maxSheetOffset = 2;
animDelay = 200;
}
}
}//package bulletPlayerBerserk
Section 9
//bulletPlayerMedium (bulletPlayerMedium.bulletPlayerMedium)
package bulletPlayerMedium {
import bullet.*;
public class bulletPlayerMedium extends bullet {
public function bulletPlayerMedium(){
damage = 20;
sizeX = 14;
sizeY = 14;
sheetX = 343;
sheetY = 0;
sheetWidth = 16;
sheetHeight = 16;
maxSheetOffset = 3;
animDelay = 40;
}
}
}//package bulletPlayerMedium
Section 10
//bulletPlayerSmall (bulletPlayerSmall.bulletPlayerSmall)
package bulletPlayerSmall {
import bullet.*;
public class bulletPlayerSmall extends bullet {
public function bulletPlayerSmall(){
damage = 10;
sizeX = 8;
sizeY = 8;
sheetX = 87;
sheetY = 0;
sheetWidth = 10;
sheetHeight = 10;
maxSheetOffset = 3;
animDelay = 40;
}
}
}//package bulletPlayerSmall
Section 11
//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 12
//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 13
//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 14
//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 15
//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 16
//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 17
//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 18
//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 19
//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 20
//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 21
//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 22
//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.net.*;
import flash.errors.*;
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 23
//effect (effect.effect)
package effect {
import flash.display.*;
public class effect extends Shape {
public var animDelay:uint;
public var dead:Boolean;// = false
private var animDelayNow:int;// = 0
public var timeDiff:Number;// = 0
public var sheetOffsetNow:uint;// = 0
public var sheetWidth:uint;
private var nowFrame:int;// = -1
public var maxSheetOffset:uint;
public var sheetX:uint;
public var sheetHeight:uint;
public var sheetY:uint;
public function effect(){
dead = false;
sheetOffsetNow = 0;
animDelayNow = 0;
nowFrame = -1;
timeDiff = 0;
super();
}
public function animateMe(){
animDelayNow = (animDelayNow - timeDiff);
if (animDelayNow <= 0){
animDelayNow = animDelay;
if (nowFrame < maxSheetOffset){
nowFrame++;
} else {
dead = true;
};
sheetOffsetNow = (nowFrame * sheetWidth);
};
}
}
}//package effect
Section 24
//effectBoomBig (effectBoomBig.effectBoomBig)
package effectBoomBig {
import effect.*;
public class effectBoomBig extends effect {
public function effectBoomBig(){
this.sheetX = 0;
this.sheetY = 200;
this.sheetWidth = 115;
this.sheetHeight = 115;
this.maxSheetOffset = 12;
this.animDelay = 30;
}
}
}//package effectBoomBig
Section 25
//effectBoomMed (effectBoomMed.effectBoomMed)
package effectBoomMed {
import effect.*;
public class effectBoomMed extends effect {
public function effectBoomMed(){
this.sheetX = 0;
this.sheetY = 120;
this.sheetWidth = 80;
this.sheetHeight = 80;
this.maxSheetOffset = 12;
this.animDelay = 30;
}
}
}//package effectBoomMed
Section 26
//effectBulletSplash (effectBulletSplash.effectBulletSplash)
package effectBulletSplash {
import effect.*;
public class effectBulletSplash extends effect {
public function effectBulletSplash(){
this.sheetX = 0;
this.sheetY = 315;
this.sheetWidth = 50;
this.sheetHeight = 50;
this.maxSheetOffset = 5;
this.animDelay = 50;
}
}
}//package effectBulletSplash
Section 27
//effectSpawn (effectSpawn.effectSpawn)
package effectSpawn {
import effect.*;
public class effectSpawn extends effect {
public function effectSpawn(){
this.sheetX = 501;
this.sheetY = 0;
this.sheetWidth = 80;
this.sheetHeight = 80;
this.maxSheetOffset = 5;
this.animDelay = 30;
}
}
}//package effectSpawn
Section 28
//enemy (enemy.enemy)
package enemy {
import flash.display.*;
public class enemy extends Sprite {
public var myShotOffset:int;// = 0
public var animDelay:uint;
public var deg:Number;// = 0
public var life:int;
public var shoot:Function;
public var degOffsetTarget:Number;// = 0
public var myShotArray:Array;
private var nowFrame:uint;// = 0
public var degOffset:Number;// = 0
public var moveMe:Function;
public var speed:Number;
public var sheetHeight:uint;
public var dead:Boolean;// = false
public var animateMe:Function;
public var myShotDelay:int;// = 20
public var sizeX:uint;// = 10
public var boss:Boolean;// = false
public var sizeY:uint;// = 10
private var animDelayNow:int;// = 0
public var dad:MovieClip;
public var acc:Number;// = 0.0004
public var moneyArray:Array;
public var score:uint;// = 10
public var timeDiff:Number;// = 0
public var sheetOffsetNow:uint;// = 0
public var sheetWidth:uint;
public var sizeX2:uint;// = 5
public var sizeY2:uint;// = 5
public var hardness:uint;
public var moveTarget:Sprite;
public var turnSpeed:Number;
public var maxSheetOffset:uint;
private var numb:int;// = 500
public var sheetX:uint;
public var sheetY:uint;
public var myMoveMode:Function;
public var explosionType:uint;// = 0
public var speedX:Number;// = 0
public var speedY:Number;// = 0
public function enemy(){
score = 10;
dead = false;
speedX = 0;
speedY = 0;
deg = 0;
degOffset = 0;
degOffsetTarget = 0;
acc = 0.0004;
sizeX = 10;
sizeX2 = 5;
sizeY = 10;
sizeY2 = 5;
sheetOffsetNow = 0;
animDelayNow = 0;
nowFrame = 0;
explosionType = 0;
boss = false;
timeDiff = 0;
moveMe = startMove;
animateMe = nullAnim;
shoot = nullShoot;
numb = 500;
myShotOffset = 0;
myShotDelay = 20;
myShotArray = new Array();
moneyArray = new Array();
super();
this.sizeX2 = (this.sizeX / 2);
this.sizeY2 = (this.sizeY / 2);
}
public function nullMove(){
}
public function swingMove(){
var _local1:Array;
_local1 = speedFromAngle(speed, pointAngle(this.x, this.y, moveTarget.x, moveTarget.y));
if (speedX < _local1[0]){
speedX = (speedX + (acc * timeDiff));
} else {
speedX = (speedX - (acc * timeDiff));
};
if (speedY < _local1[1]){
speedY = (speedY + (acc * timeDiff));
} else {
speedY = (speedY - (acc * timeDiff));
};
this.x = (this.x + (speedX * timeDiff));
this.y = (this.y + (speedY * timeDiff));
stayBounds();
}
public function followMove(){
var _local1:Array;
this.deg = (this.deg + rotateToAngle(deg, (pointAngle(this.x, this.y, moveTarget.x, moveTarget.y) + degOffset), (turnSpeed * timeDiff)));
this.deg = fixAngle(this.deg);
_local1 = speedFromAngle(speed, deg);
speedX = (_local1[0] * timeDiff);
speedY = (_local1[1] * timeDiff);
this.x = (this.x + speedX);
this.y = (this.y + speedY);
stayBounds();
}
private function speedFromAngle(_arg1:Number, _arg2:Number){
return ([(_arg1 * Math.cos(_arg2)), (_arg1 * Math.sin(_arg2))]);
}
private function pointAngle(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Number{
return (Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)));
}
private function rotateToAngle(_arg1:Number, _arg2:Number, _arg3:Number):Number{
var _local4:Number;
var _local5:Number;
if (_arg2 < _arg1){
_local4 = -(_arg3);
} else {
_local4 = _arg3;
};
_local5 = (_arg2 - _arg1);
if (Math.abs(_local5) > Math.PI){
_local4 = -(_local4);
};
if ((((Math.abs(_local5) < _arg3)) || ((Math.abs(_local5) > ((2 * Math.PI) - _arg3))))){
_local4 = _local5;
};
return (_local4);
}
public function nullAnim(){
}
public function startMove(){
var _local1:Array;
numb = (numb - timeDiff);
if (numb < 0){
if (this.myMoveMode != swingMove){
_local1 = speedFromAngle(speed, pointAngle(this.x, this.y, moveTarget.x, moveTarget.y));
speedX = _local1[0];
speedY = _local1[1];
};
this.moveMe = myMoveMode;
};
}
public function doShoot(){
if (myShotDelay > 0){
myShotDelay--;
return;
};
if (myShotOffset >= myShotArray.length){
myShotOffset = 0;
};
while (myShotDelay == 0) {
myShotDelay = myShotArray[myShotOffset][0];
dad.enemyShoot(myShotArray[myShotOffset][1], myShotArray[myShotOffset][2], myShotArray[myShotOffset][3], myShotArray[myShotOffset][4], this.x, this.y, myShotArray[myShotOffset][5], myShotArray[myShotOffset][6]);
myShotOffset++;
};
}
private function radToDeg(_arg1:Number):uint{
return (((_arg1 * 180) / Math.PI));
}
public function pointDistance(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Number{
return (Math.sqrt((Math.pow((_arg3 - _arg1), 2) + Math.pow((_arg4 - _arg2), 2))));
}
private function fixAngle(_arg1:Number):Number{
if (_arg1 > Math.PI){
_arg1 = (_arg1 - (2 * Math.PI));
};
if (_arg1 < -(Math.PI)){
_arg1 = (_arg1 + (2 * Math.PI));
};
return (_arg1);
}
public function bounceMove(){
if (this.x < this.sizeX2){
this.x = this.sizeX2;
speedX = -(speedX);
} else {
if (this.x > (680 - this.sizeX2)){
this.x = (680 - this.sizeX2);
speedX = -(speedX);
};
};
if (this.y < this.sizeY2){
this.y = this.sizeY2;
speedY = -(speedY);
} else {
if (this.y > (550 - this.sizeY2)){
this.y = (550 - this.sizeY2);
speedY = -(speedY);
};
};
this.x = (this.x + (speedX * timeDiff));
this.y = (this.y + (speedY * timeDiff));
}
private function stayBounds(){
if (this.x < this.sizeX2){
this.x = this.sizeX2;
} else {
if (this.x > (680 - this.sizeX2)){
this.x = (680 - this.sizeX2);
};
};
if (this.y < this.sizeY2){
this.y = this.sizeY2;
} else {
if (this.y > (550 - this.sizeY2)){
this.y = (550 - this.sizeY2);
};
};
}
public function animate(){
animDelayNow = (animDelayNow - timeDiff);
if (animDelayNow <= 0){
animDelayNow = animDelay;
if (nowFrame < maxSheetOffset){
nowFrame++;
} else {
nowFrame = 0;
};
sheetOffsetNow = (nowFrame * sheetWidth);
};
}
public function nullShoot(){
}
}
}//package enemy
Section 29
//eyeTower (eyeTower.eyeTower)
package eyeTower {
import enemy.*;
public class eyeTower extends enemy {
public function eyeTower(){
this.myMoveMode = nullMove;
this.life = 100;
this.hardness = 100;
this.score = 130;
this.sizeX = 38;
this.sizeY = 54;
this.sizeX2 = (this.sizeX / 2);
this.sizeY2 = (this.sizeY / 2);
moneyArray.push(uint(3));
moneyArray.push(uint(0));
moneyArray.push(uint(0));
moneyArray.push(uint(0));
moneyArray.push(uint(0));
this.animateMe = animate;
this.sheetX = 990;
this.sheetY = 0;
this.sheetWidth = 48;
this.sheetHeight = 58;
this.maxSheetOffset = 2;
this.animDelay = 100;
this.explosionType = 2;
this.shoot = doShoot;
this.myShotArray.push([8, 0, 1, 0.25, true, 0, -10]);
}
}
}//package eyeTower
Section 30
//hunter (hunter.hunter)
package hunter {
import enemy.*;
public class hunter extends enemy {
public function hunter(){
var _local1:int;
super();
this.myMoveMode = hunterMove;
this.life = 40;
this.hardness = 160;
this.score = 200;
this.turnSpeed = ((Math.random() * 0.0003) + 0.003);
this.speed = (0.18 + (Math.random() * 0.03));
this.deg = (((Math.random() * Math.PI) * 2) - Math.PI);
this.sizeX = 45;
this.sizeY = 45;
moneyArray.push(uint(1));
moneyArray.push(uint(1));
moneyArray.push(uint(1));
if (Math.random() > 0.7){
moneyArray.push(uint(4));
};
this.animateMe = animate;
this.sheetX = 1080;
this.sheetY = 61;
this.sheetWidth = 50;
this.sheetHeight = 50;
this.maxSheetOffset = 2;
this.animDelay = 80;
this.explosionType = 1;
if (Math.random() > 0.5){
_local1 = -1;
} else {
_local1 = 1;
};
this.degOffsetTarget = ((_local1 * Math.PI) / 2);
this.shoot = doShoot;
this.myShotDelay = 4;
this.myShotArray.push([1, 0, 0, 0.25, true, 0, 0]);
this.myShotArray.push([1, 0, 0, 0.25, true, 0, 0]);
this.myShotArray.push([1, 0, 0, 0.25, true, 0, 0]);
this.myShotArray.push([1, 0, 0, 0.25, true, 0, 0]);
this.myShotArray.push([15, 0, 0, 0.25, true, 0, 0]);
}
public function hunterMove(){
if (pointDistance(this.x, this.y, moveTarget.x, moveTarget.y) < 300){
degOffset = degOffsetTarget;
} else {
degOffset = 0;
};
followMove();
}
}
}//package hunter
Section 31
//money (money.money)
package money {
import flash.display.*;
public class money extends Shape {
public var soundIndex:uint;// = 0
public var sizeY:uint;
public var dead:Boolean;// = false
public var sheetY:uint;
private var types:Array;
public var speedY:Number;
public var sheetOffsetNow:uint;// = 0
public var life:int;// = 6000
public var valu:uint;// = 10
public var sheetWidth:uint;
public var timeDiff:Number;// = 0
public var sheetX:uint;
public var sheetHeight:uint;
public var speedX:Number;
public var sizeX:uint;
public function money(){
dead = false;
life = 6000;
valu = 10;
soundIndex = 0;
sheetOffsetNow = 0;
types = new Array([30, 60, 60, 1440, 60, 16, 16], [70, 60, 60, 1440, 76, 20, 20], [200, 60, 60, 1440, 96, 30, 15], [1000, 80, 80, 1440, 30, 30, 30], [2000, 80, 80, 1440, 0, 30, 30]);
timeDiff = 0;
super();
speedX = ((Math.random() * 0.03) - 0.02);
speedY = ((Math.random() * 0.03) - 0.02);
}
public function moveMe(){
life = (life - timeDiff);
if (life < 2500){
sheetOffsetNow = (sheetOffsetNow + sheetWidth);
if (sheetOffsetNow > sheetWidth){
sheetOffsetNow = 0;
};
if (life <= 0){
dead = true;
};
};
this.x = (this.x + (speedX * timeDiff));
this.y = (this.y + (speedY * timeDiff));
checkBounds();
}
private function checkBounds(){
if (this.x < 0){
this.dead = true;
} else {
if (this.x > 680){
this.dead = true;
};
};
if (this.y < 0){
this.dead = true;
} else {
if (this.y > 550){
this.dead = true;
};
};
}
public function setValu(_arg1:uint){
soundIndex = _arg1;
valu = types[_arg1][0];
sizeX = types[_arg1][1];
sizeY = types[_arg1][2];
sheetX = types[_arg1][3];
sheetY = types[_arg1][4];
sheetWidth = types[_arg1][5];
sheetHeight = types[_arg1][6];
}
}
}//package money
Section 32
//orange (orange.orange)
package orange {
import enemy.*;
public class orange extends enemy {
public function orange(){
this.myMoveMode = followMove;
this.life = 50;
this.hardness = 60;
this.score = 60;
this.turnSpeed = ((Math.random() * 0.0003) + 0.002);
this.speed = (0.02 + (Math.random() * 0.03));
this.deg = (((Math.random() * Math.PI) * 2) - Math.PI);
this.sizeX = 46;
this.sizeY = 46;
moneyArray.push(uint(2));
if (Math.random() > 0.95){
moneyArray.push(uint(4));
};
this.animateMe = animate;
this.sheetX = 0;
this.sheetY = 30;
this.sheetWidth = 50;
this.sheetHeight = 50;
this.maxSheetOffset = 9;
this.animDelay = 50;
this.explosionType = 2;
this.shoot = doShoot;
this.myShotArray.push([0, ((Math.random() / 4) - 0.125), 0, 0.25, true, 0, 0]);
this.myShotArray.push([0, ((Math.random() / 4) - 0.125), 0, 0.27, true, 0, 0]);
this.myShotArray.push([0, ((Math.random() / 4) - 0.125), 0, 0.23, true, 0, 0]);
this.myShotArray.push([60, ((Math.random() / 4) - 0.125), 0, 0.24, true, 0, 0]);
}
}
}//package orange
Section 33
//ropeBoss (ropeBoss.ropeBoss)
package ropeBoss {
import enemy.*;
public class ropeBoss extends enemy {
public var currentMode:uint;// = 0
public var tempMoveMode:Function;
private var fakeTimer:int;// = 50
public var aiSwitch:int;// = 5000
private var fakeLife:int;// = 10000
public var shootArray1:Array;
public var shootArray2:Array;
public var shootArray3:Array;
public var shootArray4:Array;
public function ropeBoss(){
aiSwitch = 5000;
currentMode = 0;
tempMoveMode = followMove;
fakeLife = 10000;
fakeTimer = 50;
super();
this.myMoveMode = ropeMove;
this.life = 127000;
this.score = 1000000;
this.hardness = 100000;
this.turnSpeed = ((Math.random() * 0.0003) + 0.002);
this.speed = (0.02 + (Math.random() * 0.03));
this.deg = (((Math.random() * Math.PI) * 2) - Math.PI);
this.sizeX = 138;
this.sizeY = 130;
this.sizeX2 = (this.sizeX / 2);
this.sizeY2 = (this.sizeY / 2);
moneyArray.push(uint(0));
moneyArray.push(uint(1));
moneyArray.push(uint(2));
moneyArray.push(uint(3));
moneyArray.push(uint(4));
shootArray1 = new Array();
shootArray1.push([0, ((Math.random() / 4) - 0.125), 1, 0.35, true, 0, 40]);
shootArray1.push([0, ((Math.random() / 4) - 0.125), 2, 0.37, true, 0, 40]);
shootArray1.push([0, ((Math.random() / 4) - 0.125), 2, 0.33, true, 0, 40]);
shootArray1.push([0, ((Math.random() / 4) - 0.125), 1, 0.34, true, 0, 40]);
shootArray1.push([0, 0.4, 2, 0.3, true, 0, 40]);
shootArray1.push([0, -0.4, 2, 0.3, true, 0, 40]);
shootArray1.push([0, 0.6, 2, 0.3, true, 0, 40]);
shootArray1.push([4, -0.6, 2, 0.3, true, 0, 40]);
shootArray1.push([0, 0.4, 2, 0.3, true, 0, 40]);
shootArray1.push([0, -0.4, 2, 0.3, true, 0, 40]);
shootArray1.push([0, 0.6, 2, 0.3, true, 0, 40]);
shootArray1.push([4, -0.6, 2, 0.3, true, 0, 40]);
shootArray2 = new Array();
shootArray2.push([0, 0, 2, 0.2, true, 20, 0]);
shootArray2.push([0, 0, 2, 0.2, true, -20, 0]);
shootArray2.push([0, 0.1, 2, 0.25, true, 20, 0]);
shootArray2.push([0, -0.1, 2, 0.25, true, -20, 0]);
shootArray2.push([0, 0.2, 2, 0.3, true, 20, 0]);
shootArray2.push([1, -0.2, 2, 0.3, true, -20, 0]);
shootArray3 = new Array();
shootArray3.push([0, -3, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -2.5, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -2, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -1.5, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -1, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -0.5, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 0, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 0.5, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 1, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 1.5, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 2, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 2.5, 1, 0.3, false, 0, 40]);
shootArray3.push([1, 3, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -2.75, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -2.25, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -1.75, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -1.25, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -0.75, 1, 0.3, false, 0, 40]);
shootArray3.push([0, -0.25, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 0.25, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 0.75, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 1.25, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 1.75, 1, 0.3, false, 0, 40]);
shootArray3.push([0, 2.25, 1, 0.3, false, 0, 40]);
shootArray3.push([5, 2.75, 1, 0.3, false, 0, 40]);
shootArray4 = new Array();
shootArray4.push([0, -3, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -2.5, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -2, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -1.5, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -1, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -0.5, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 0, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 0.5, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 1, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 1.5, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 2, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 2.5, 1, 0.4, false, 0, 40]);
shootArray4.push([1, 3, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -2.75, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -2.25, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -1.75, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -1.25, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -0.75, 1, 0.4, false, 0, 40]);
shootArray4.push([0, -0.25, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 0.25, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 0.75, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 1.25, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 1.75, 1, 0.4, false, 0, 40]);
shootArray4.push([0, 2.25, 1, 0.4, false, 0, 40]);
shootArray4.push([1, 2.75, 1, 0.4, false, 0, 40]);
this.sheetX = 0;
this.sheetY = 365;
this.sheetWidth = 144;
this.sheetHeight = 132;
this.maxSheetOffset = 0;
this.animDelay = 500;
this.explosionType = 2;
this.boss = true;
this.shoot = doShoot;
this.myShotArray = shootArray2;
}
public function ropeMove(){
var _local1:uint;
if (life <= 100000){
life = 100000;
this.sheetX = 145;
tempMoveMode = followMove;
this.speed = 0.05;
aiSwitch = 2000;
this.shoot = nullShoot;
fakeLife = (fakeLife - timeDiff);
fakeTimer = (fakeTimer - timeDiff);
if (fakeTimer <= 0){
fakeTimer = uint((55 + (Math.random() * 50)));
dad.addEffectAt((1 + Math.round(Math.random())), ((this.x + (Math.random() * this.sizeX)) - (this.sizeX / 2)), ((this.y + (Math.random() * this.sizeY)) - (this.sizeY / 2)));
dad.sBox.playSound([1, 2, 3, 4]);
};
if (fakeLife <= 0){
dad.bossKilled = true;
dad.currentSpawnTime = 2000;
life = 0;
dead = true;
};
};
aiSwitch = (aiSwitch - timeDiff);
if (aiSwitch < 0){
myShotDelay = 10;
aiSwitch = (2000 + Math.round((Math.random() * 3000)));
currentMode = Math.round((Math.random() * 5));
if (currentMode == 0){
tempMoveMode = bounceMove;
this.speedX = (0.1 + (Math.random() * 0.3));
this.speedY = (0.1 + (Math.random() * 0.3));
this.speed = 0.6;
this.myShotArray = shootArray1;
} else {
if (currentMode == 1){
tempMoveMode = followMove;
this.speedX = 0;
this.speedY = 0;
this.speed = 0.13;
this.myShotArray = shootArray3;
_local1 = 0;
while (_local1 < 20) {
dad.addEnemyAt(0, this.x, this.y, this);
_local1++;
};
} else {
if (currentMode == 2){
tempMoveMode = swingMove;
this.speedX = 0;
this.speedY = 0;
this.speed = 0.65;
this.acc = 0.0002;
this.myShotArray = shootArray1;
} else {
if (currentMode == 3){
this.myShotArray = shootArray2;
tempMoveMode = nullMove;
_local1 = 0;
while (_local1 < 50) {
dad.addEnemyAt(0, this.x, this.y, this);
_local1++;
};
} else {
if (currentMode >= 4){
tempMoveMode = bounceMove;
this.speedX = (0.02 + (Math.random() * 0.03));
this.speedY = (0.02 + (Math.random() * 0.03));
this.myShotArray = shootArray4;
};
};
};
};
};
};
dad.topHud.bossHealthBarContainer.bossHealthBar.width = (((life - 100000) / 27000) * 400);
tempMoveMode();
}
}
}//package ropeBoss
Section 34
//ropeServant (ropeServant.ropeServant)
package ropeServant {
import enemy.*;
public class ropeServant extends enemy {
public function ropeServant(){
this.myMoveMode = ropeServantMove;
this.life = 10;
this.hardness = 8;
this.score = 2;
this.turnSpeed = ((Math.random() * 0.0018) + 0.0025);
this.speed = (0.25 + (Math.random() * 0.18));
this.deg = (((Math.random() * Math.PI) * 2) - Math.PI);
this.sizeX = 12;
this.sizeY = 12;
this.degOffset = (Math.PI / 1.75);
this.animateMe = animate;
this.sheetX = 560;
this.sheetY = 80;
this.sheetWidth = 15;
this.sheetHeight = 15;
this.maxSheetOffset = 2;
this.animDelay = 100;
this.explosionType = 1;
}
public function ropeServantMove(){
if ((Math.abs((this.x - moveTarget.x)) + Math.abs((this.y - moveTarget.y))) > 200){
this.degOffset = 0;
} else {
this.degOffset = 1.57;
};
followMove();
}
}
}//package ropeServant
Section 35
//armorScore_62 (shootG04ARMOR_fla.armorScore_62)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class armorScore_62 extends MovieClip {
public var sBox:MovieClip;
public var b2menuButton:SimpleButton;
public var scoreText:TextField;
public function armorScore_62(){
addFrameScript(0, frame1, 10, frame11, 11, frame12, 12, frame13, 43, frame44, 44, frame45, 46, frame47, 48, frame49, 50, frame51, 53, frame54, 57, frame58);
}
function frame12(){
sBox.playSound([1, 2, 3, 4]);
}
function frame1(){
sBox = MovieClip(parent).soundBox;
b2menuButton.addEventListener(MouseEvent.CLICK, b2menu, false, 0, true);
scoreText.text = (String(MovieClip(parent).tenant.gameScore) + " pts");
}
function frame13(){
sBox.playSound([1, 2, 3, 4]);
}
public function b2menu(_arg1:MouseEvent){
MovieClip(parent).gotoAndStop(6);
b2menuButton.removeEventListener(MouseEvent.CLICK, b2menu);
}
function frame11(){
sBox.playSound([1, 2, 3, 4]);
}
function frame44(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame45(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame47(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame49(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame51(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame54(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame58(){
sBox.playSound([9, 10, 11, 12, 13]);
stop();
}
}
}//package shootG04ARMOR_fla
Section 36
//berserkBar_73 (shootG04ARMOR_fla.berserkBar_73)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class berserkBar_73 extends MovieClip {
public function berserkBar_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shootG04ARMOR_fla
Section 37
//bossHealthBarContainer_69 (shootG04ARMOR_fla.bossHealthBarContainer_69)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class bossHealthBarContainer_69 extends MovieClip {
public var bossHealthBar:MovieClip;
}
}//package shootG04ARMOR_fla
Section 38
//dump_1 (shootG04ARMOR_fla.dump_1)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class dump_1 extends MovieClip {
public function dump_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shootG04ARMOR_fla
Section 39
//eraseWarning_9 (shootG04ARMOR_fla.eraseWarning_9)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class eraseWarning_9 extends MovieClip {
public var okButton:SimpleButton;
public var cancelButton:SimpleButton;
}
}//package shootG04ARMOR_fla
Section 40
//game_55 (shootG04ARMOR_fla.game_55)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import enemy.*;
import flash.media.*;
import bullet.*;
import bgElement.*;
import money.*;
import effect.*;
import bulletPlayerSmall.*;
import bulletEnemySmall.*;
import bulletEnemyBig.*;
import bulletPlayerMedium.*;
import bulletEnemyMedium.*;
import bulletPlayerBerserk.*;
import effectBoomMed.*;
import effectBoomBig.*;
import effectSpawn.*;
import effectBulletSplash.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import ropeServant.*;
import basicSphere.*;
import swingBot.*;
import eyeTower.*;
import hunter.*;
import bouncer.*;
import orange.*;
import ropeBoss.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class game_55 extends MovieClip {
public var coins:Array;
public var currentHard:int;
public var myShotPattern:Array;
public var spawnTimerChangePercent:uint;
public var heroLife:Number;
public var dClickTimer:Timer;
public var enemies:Array;
public var myShotTimer:Timer;
public var battleType:uint;
public var minHardInc:uint;
public var bDialog:beginDialog;
public var minLevel:uint;
public var enemiesBitmapData:BitmapData;
public var killCount:int;
public var bossKilled:Boolean;
public var mouseCursor:MouseCursor;
public var minHard:uint;
public var sBox:MovieClip;
public var gameOverType:uint;
public var bgElements:Array;
public var myBullets:Array;
public var heroSpeed:Number;
public var maxHard:uint;
public var sloMoPower:Number;
public var hzNowY:uint;
public var hzNowX:uint;
public var myShotDelay:int;
public var maxLevel:uint;
public var timeDiff:uint;
public var damageTaken:Number;
public var heroSizeX:uint;
public var enemySpecies:Array;
public var heroSizeY:uint;
public var mouseHidden:Boolean;
public var heroMaxBerserk:uint;
public var tenant:MovieClip;
public var spawnSession:int;
public var sameAreaPercent:uint;
public var winTimer:Timer;
public var targetDist:uint;
public var heroMoney:int;
public var targetX:int;
public var targetY:int;
public var availableFields:Array;
public var enemiesBitmap:Bitmap;
public var maxHardInc:uint;
public var myShotOffset:uint;
public var gameOverTimer:Timer;
public var field:Array;
public var heroHeal:Number;
public var spawnSession2:int;
public var enemyBullets:Array;
public var spawnTime:uint;
public var berserk:Boolean;
public var bossBattleBool:Boolean;
public var sameEnemyPercent:uint;
public var heroMaxLife:uint;
public var spawnPause:Boolean;
public var timed:int;
public var effects:Array;
public var gameBegun:Boolean;
public var candClick:Boolean;
public var targetOffsetY:int;
public var myBulletTypes:Array;
public var topHud:tHud;
public var targetOffsetX:int;
public var currentEnemyType:uint;
public var cBitmap:catBitmap;
public var currentAreaY:uint;
public var currentSpawnTime:int;
public var effectTypes:Array;
public var sloMo:Boolean;
public var currentLevel:uint;
public var target:Target;
public var heroCurrentShotPattern:uint;
public var prevTime:uint;
public var currentArea:Array;
public var myHud:hud;
public var gamePaused:Boolean;
public var enemyShotTimer:Timer;
public var heroBerserkHeal:Number;
public var myShotPatterns:Array;
public var heroBerserk:Number;
public var pauseDown:Boolean;
public var enemyTypes:Array;
public var gameOver:Boolean;
public var bossTimer:int;
public var gameScore:uint;
public var enemyBulletTypes:Array;
public var mouseIsDown:Boolean;
public var hero:Hero;
public function game_55(){
addFrameScript(0, frame1);
}
public function gameOverFunction(_arg1:Event){
stopEngine();
Mouse.show();
gameOverTimer.removeEventListener(TimerEvent.TIMER, gameOverFunction);
gameOverTimer.stop();
trace(gameOverType, "GOT");
if (gameOverType == 0){
tenant.so.data.money = (tenant.so.data.money + heroMoney);
MovieClip(parent).gotoAndStop(30);
} else {
if (gameOverType == 1){
MovieClip(parent).statSubmit("Level", tenant.so.data.levelCompleted);
MovieClip(parent).statSubmit("LastLevel", (tenant.currentStage + 1));
MovieClip(parent).statSubmit("LastLevelDamageTaken", damageTaken);
MovieClip(parent).statSubmit("LastLevelGun", heroCurrentShotPattern);
tenant.so.data.money = (tenant.so.data.money + (heroMoney * 1.5));
MovieClip(parent).gotoAndStop(35);
} else {
if (gameOverType == 2){
MovieClip(parent).statSubmit("Level", tenant.so.data.levelCompleted);
MovieClip(parent).statSubmit("LastLevel", (tenant.currentStage + 1));
MovieClip(parent).statSubmit("LastLevelDamageTaken", damageTaken);
MovieClip(parent).statSubmit("LastLevelGun", heroCurrentShotPattern);
tenant.so.data.money = (tenant.so.data.money + (heroMoney * 1.5));
MovieClip(parent).gotoAndStop(40);
} else {
if (gameOverType == 3){
tenant.so.data.money = (tenant.so.data.money + (heroMoney * 1.5));
tenant.gameScore = gameScore;
MovieClip(parent).gotoAndStop(50);
};
};
};
};
}
public function addEnemyAt(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Sprite):enemy{
var _local5:enemy;
_local5 = new (enemySpecies[_arg1]);
_local5.x = _arg2;
_local5.y = _arg3;
_local5.moveTarget = _arg4;
enemies.push(_local5);
return (_local5);
}
public function resetTimers(){
myShotTimer.delay = 100;
enemyShotTimer.delay = 101;
}
public function addEnemies(){
var _local1:uint;
var _local2:enemy;
var _local3:Array;
bossTimer = (bossTimer - timeDiff);
spawnSession = (spawnSession - timeDiff);
if ((((currentSpawnTime > 0)) || (gameOver))){
currentSpawnTime = (currentSpawnTime - timeDiff);
return;
};
if (currentHard > maxHard){
spawnSession = 22000;
spawnPause = true;
};
if (spawnSession < 0){
spawnTime = 20;
if (spawnSession2 < 0){
spawnSession = 22000;
spawnSession2 = 2200;
spawnPause = true;
};
spawnSession2 = (spawnSession2 - timeDiff);
};
if (spawnPause){
if (currentHard <= minHard){
if (currentLevel < maxLevel){
currentLevel++;
};
currentHard = 0;
spawnPause = false;
spawnTime = (20 + uint((Math.random() * 300)));
minHard = (minHard + minHardInc);
maxHard = (maxHard + maxHardInc);
sameAreaPercent = (60 + uint((Math.random() * 40)));
sameEnemyPercent = (30 + uint((Math.random() * 70)));
currentEnemyType = (minLevel + Math.round((Math.random() * (currentLevel - minLevel))));
} else {
return;
};
};
if (((!(chance(sameAreaPercent))) || ((currentHard <= minHard)))){
currentArea = availableFields[uint(((Math.random() * availableFields.length) - 1))];
};
if (!chance(sameEnemyPercent)){
currentEnemyType = (minLevel + Math.round((Math.random() * (currentLevel - minLevel))));
};
currentSpawnTime = spawnTime;
_local2 = new (enemyTypes[currentEnemyType]);
if (((_local2.boss) && ((bossTimer > 0)))){
trace("BOSS");
currentEnemyType = Math.floor((Math.random() * currentLevel));
return;
};
if (_local2.boss){
topHud.bossHealthBarContainer.visible = true;
sBox.playMusic(3);
};
_local2.dad = MovieClip(this);
_local2.moveTarget = hero;
_local2.timeDiff = timeDiff;
currentHard = (currentHard + _local2.hardness);
_local2.x = ((currentArea[0] * 136) + (Math.random() * 136));
_local2.y = ((currentArea[1] * 110) + (Math.random() * 110));
if (pointDistance(_local2.x, _local2.y, hero.x, hero.y) < (((_local2.sizeX + heroSizeX) >> 1) + 200)){
_local3 = speedFromAngle((((_local2.sizeX + heroSizeX) >> 1) + 200), pointAngle(hero.x, hero.y, _local2.y, _local2.y));
_local2.x = (hero.x + _local3[0]);
_local2.y = (hero.y + _local3[1]);
spawnStayBounds(_local2);
};
enemies.push(_local2);
addEffectAt(0, _local2.x, _local2.y);
if (_local2.boss){
bossTimer = 500000;
_local1 = 0;
while (_local1 < 5) {
addEffectAt(0, ((_local2.x + (Math.random() * _local2.sizeX)) - (_local2.sizeX / 2)), ((_local2.y + (Math.random() * _local2.sizeY)) - (_local2.sizeY / 2)));
_local1++;
};
};
sBox.playSound([5]);
}
public function spawnStayBounds(_arg1:enemy){
if (_arg1.x < 0){
_arg1.x = (_arg1.x + 680);
} else {
if (_arg1.x > 680){
_arg1.x = (_arg1.x - 680);
};
};
if (_arg1.y < 0){
_arg1.y = (_arg1.y + 550);
} else {
if (_arg1.y > 550){
_arg1.y = (_arg1.y - 550);
};
};
}
public function startBerserk(_arg1:MouseEvent=null){
if (((!(berserk)) && ((heroBerserk == heroMaxBerserk)))){
berserk = true;
sBox.playSound([16]);
shotToCoin();
myShotPattern = myShotPatterns[0];
};
}
public function keyDownHandler(_arg1:KeyboardEvent){
trace("keydown");
if (_arg1.keyCode == 32){
if (sloMoPower > 500){
if (!sloMo){
sloMo = true;
myShotTimer.delay = 300;
enemyShotTimer.delay = 502;
};
};
return;
};
if ((((_arg1.keyCode == 17)) || ((_arg1.keyCode == 80)))){
trace(gameBegun);
if (gameBegun){
if (((!(gamePaused)) && (!(pauseDown)))){
pauseDown = true;
pauseGame();
} else {
unPauseGame();
};
};
return;
};
}
function frame1(){
targetDist = 35;
heroSpeed = 0.8;
gamePaused = false;
pauseDown = false;
sloMo = false;
sloMoPower = 1000;
topHud = new tHud();
addChild(topHud);
target = new Target();
addChild(target);
target.x = 340;
target.y = 290;
hero = new Hero();
addChild(hero);
hero.x = 340;
hero.y = 290;
myHud = new hud();
addChild(myHud);
mouseCursor = new MouseCursor();
addChild(mouseCursor);
mouseCursor.x = 340;
mouseCursor.y = 290;
bDialog = new beginDialog();
addChild(bDialog);
bDialog.x = 340;
bDialog.y = 290;
mouseHidden = false;
gameBegun = false;
dClickTimer = new Timer(200);
candClick = false;
heroSizeX = 20;
heroSizeY = 20;
heroMaxLife = 1000;
heroHeal = 0.5;
heroLife = heroMaxLife;
heroMoney = 0;
heroBerserk = 0;
heroMaxBerserk = 1000;
heroBerserkHeal = 10;
berserk = false;
heroCurrentShotPattern = 1;
gameOver = false;
gameOverType = 0;
tenant = MovieClip(parent).tenant;
timed = 1000000;
killCount = 100000;
bossBattleBool = false;
bossKilled = false;
winTimer = new Timer(1001);
winTimer.start();
mouseIsDown = false;
timeDiff = 0;
prevTime = 0;
targetX = mouseX;
targetY = mouseY;
targetOffsetX = 10;
targetOffsetY = 0;
hzNowX = 0;
hzNowY = 0;
minHard = 0;
maxHard = 20;
minHardInc = 5;
maxHardInc = 30;
currentHard = 0;
currentLevel = 0;
minLevel = 0;
maxLevel = 10;
spawnTime = 1000;
spawnSession = 8000;
spawnSession2 = 2200;
spawnPause = false;
currentSpawnTime = spawnTime;
sameAreaPercent = 50;
sameEnemyPercent = 50;
spawnTimerChangePercent = 20;
currentArea = new Array([0, 0]);
currentAreaY = 4;
currentEnemyType = 0;
bossTimer = 0;
gameScore = 0;
battleType = 0;
damageTaken = 0;
enemiesBitmap = new Bitmap();
enemiesBitmapData = new BitmapData(680, 550, true, 0);
enemiesBitmap.bitmapData = enemiesBitmapData;
addChildAt(enemiesBitmap, 1);
cBitmap = new catBitmap(0, 0);
enemies = new Array();
enemyTypes = new Array();
enemyTypes.push(Class(basicSphere));
enemyTypes.push(Class(basicSphere));
enemyTypes.push(Class(basicSphere));
enemyTypes.push(Class(bouncer));
enemyTypes.push(Class(swingBot));
enemyTypes.push(Class(basicSphere));
enemyTypes.push(Class(basicSphere));
enemyTypes.push(Class(basicSphere));
enemyTypes.push(Class(bouncer));
enemyTypes.push(Class(bouncer));
enemyTypes.push(Class(hunter));
enemyTypes.push(Class(orange));
enemyTypes.push(Class(orange));
enemyTypes.push(Class(orange));
enemyTypes.push(Class(eyeTower));
enemyTypes.push(Class(swingBot));
enemyTypes.push(Class(swingBot));
enemyTypes.push(Class(swingBot));
enemyTypes.push(Class(swingBot));
enemyTypes.push(Class(hunter));
enemyTypes.push(Class(hunter));
enemyTypes.push(Class(eyeTower));
enemyTypes.push(Class(basicSphere));
enemyTypes.push(Class(basicSphere));
enemyTypes.push(Class(hunter));
enemyTypes.push(Class(ropeBoss));
enemySpecies = new Array();
enemySpecies.push(Class(ropeServant));
myBullets = new Array();
myShotTimer = new Timer(100);
myShotTimer.start();
myShotDelay = 0;
myShotOffset = 0;
myBulletTypes = new Array();
myBulletTypes.push(bulletPlayerSmall);
myBulletTypes.push(bulletPlayerBerserk);
myBulletTypes.push(bulletPlayerMedium);
myShotPatterns = new Array();
myShotPatterns.push([[0, -3.14, 1, 0.3], [0, -3, 1, 0.3], [0, -2.86, 1, 0.3], [0, -2.72, 1, 0.3], [0, -2.58, 1, 0.3], [0, -2.44, 1, 0.3], [0, -2.3, 1, 0.3], [0, -2.16, 1, 0.3], [0, -2.02, 1, 0.3], [0, -1.88, 1, 0.3], [0, -1.74, 1, 0.3], [0, -1.6, 1, 0.3], [0, -1.46, 1, 0.3], [0, -1.32, 1, 0.3], [0, -1.18, 1, 0.3], [0, -1.04, 1, 0.3], [0, -0.9, 1, 0.3], [0, -0.76, 1, 0.3], [0, -0.62, 1, 0.3], [0, -0.48, 1, 0.3], [0, -0.34, 1, 0.3], [0, -0.2, 1, 0.3], [0, -0.06, 1, 0.3], [0, 0.08, 1, 0.3], [0, 0.22, 1, 0.3], [0, 0.36, 1, 0.3], [0, 0.52, 1, 0.3], [0, 0.66, 1, 0.3], [0, 0.82, 1, 0.3], [0, 0.98, 1, 0.3], [0, 1.12, 1, 0.3], [0, 1.26, 1, 0.3], [0, 1.42, 1, 0.3], [0, 1.56, 1, 0.3], [0, 1.72, 1, 0.3], [0, 1.86, 1, 0.3], [0, 1.92, 1, 0.3], [0, 2.06, 1, 0.3], [0, 2.22, 1, 0.3], [0, 2.36, 1, 0.3], [0, 2.52, 1, 0.3], [0, 2.66, 1, 0.3], [0, 2.82, 1, 0.3], [0, 2.96, 1, 0.3], [1, 3.12, 1, 0.3]]);
myShotPatterns.push([[0, 0.04, 0, 0.3], [2, -0.04, 0, 0.3]]);
myShotPatterns.push([[0, 0.14, 0, 0.3], [0, 0, 0, 0.4], [2, -0.14, 0, 0.3]]);
myShotPatterns.push([[0, 0.1, 0, 0.4], [1, -0.1, 0, 0.4]]);
myShotPatterns.push([[1, 0.1, 0, 0.35], [0, 0, 0, 0.5], [0, -0.1, 0, 0.35]]);
myShotPatterns.push([[1, 0.15, 0, 0.4], [0, 0, 2, 0.5], [0, -0.15, 0, 0.4]]);
myShotPatterns.push([[1, 0.2, 0, 0.4], [0, 0.1, 2, 0.5], [0, 0, 1, 0.8], [0, -0.1, 2, 0.5], [0, -0.2, 0, 0.4]]);
myShotPattern = new Array();
setNormalShot();
enemyShotTimer = new Timer(101);
enemyShotTimer.start();
enemyBullets = new Array();
enemyBulletTypes = new Array();
enemyBulletTypes.push(Class(bulletEnemySmall));
enemyBulletTypes.push(Class(bulletEnemyMedium));
enemyBulletTypes.push(Class(bulletEnemyBig));
effects = new Array();
effectTypes = new Array();
effectTypes.push(Class(effectSpawn));
effectTypes.push(Class(effectBoomMed));
effectTypes.push(Class(effectBoomBig));
effectTypes.push(Class(effectBulletSplash));
bgElements = new Array();
coins = new Array();
sBox = MovieClip(parent).soundBox;
setup();
pauseGame();
topHud.visible = false;
addEventListener(Event.ENTER_FRAME, everyFrame, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_DOWN, handleMouseDown, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, handleMouseUp, false, 0, true);
dClickTimer.addEventListener(TimerEvent.TIMER, dClickOff, false, 0, true);
myShotTimer.addEventListener(TimerEvent.TIMER, playerShoot, false, 0, true);
enemyShotTimer.addEventListener(TimerEvent.TIMER, enemyShootCycle, false, 0, true);
winTimer.addEventListener(TimerEvent.TIMER, checkWin, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler, false, 0, true);
myHud.buttonMute.addEventListener(MouseEvent.CLICK, switchMute, false, 0, true);
gameOverTimer = new Timer(6000);
}
public function setNormalShot(){
myShotPattern = myShotPatterns[heroCurrentShotPattern];
}
public function setup(){
heroMaxLife = tenant.heroMaxLifeArray[tenant.so.data.heroMaxLifeLevel];
heroHeal = tenant.heroHealArray[tenant.so.data.heroHealLevel];
heroMaxBerserk = tenant.heroMaxBerserkArray[tenant.so.data.heroMaxBerserkLevel];
heroBerserkHeal = tenant.heroBerserkHealArray[tenant.so.data.heroBerserkHealLevel];
heroCurrentShotPattern = tenant.so.data.heroCurrentShotPattern;
trace("REALLY SHOT", heroCurrentShotPattern);
setNormalShot();
trace(heroMaxLife);
minHard = tenant.minHard;
maxHard = tenant.maxHard;
minHardInc = tenant.minHardInc;
maxHardInc = tenant.maxHardInc;
minLevel = tenant.minimumLevel;
maxLevel = tenant.maximumLevel;
currentLevel = tenant.currentLevel;
timed = tenant.timed;
killCount = tenant.killCount;
bossBattleBool = tenant.bossBattle;
battleType = tenant.battleType;
heroLife = heroMaxLife;
if (battleType == 0){
topHud.gotoAndStop(1);
} else {
if (battleType == 1){
topHud.gotoAndStop(2);
} else {
if (battleType == 2){
topHud.gotoAndStop(3);
} else {
if (battleType == 3){
topHud.gotoAndStop(4);
};
};
};
};
currentEnemyType = minLevel;
trace(heroMaxBerserk, heroBerserkHeal);
}
public function die(){
var _local1:MovieClip;
if (gameOver){
return;
};
heroLife = 0;
updateHud();
gameOver = true;
sloMo = true;
winTimer.stop();
trace(topHud);
if (gameOverType != 3){
gameOverType = 0;
};
_local1 = new bloodScreen();
addChild(_local1);
sBox.fadeMusic();
stage.frameRate = 30;
gameOverTimer.addEventListener(TimerEvent.TIMER, gameOverFunction, false, 0, true);
gameOverTimer.start();
}
public function keyUpHandler(_arg1:KeyboardEvent){
if (_arg1.keyCode == 32){
sloMo = false;
resetTimers();
return;
};
if ((((_arg1.keyCode == 17)) || ((_arg1.keyCode == 80)))){
pauseDown = false;
};
}
public function coinsHitPlayer(){
var _local1:money;
var _local2:uint;
_local2 = 0;
while (_local2 < coins.length) {
_local1 = coins[_local2];
if (boxHitBox(hero.x, hero.y, _local1.x, _local1.y, heroSizeX, heroSizeY, _local1.sizeX, _local1.sizeY)){
heroMoney = (heroMoney + _local1.valu);
sBox.playSound([(_local1.soundIndex + 9)]);
_local1.dead = true;
};
_local2++;
};
}
public function unPauseGame(){
gamePaused = false;
dClickTimer.start();
myShotTimer.start();
enemyShotTimer.start();
Mouse.hide();
mouseHidden = true;
}
public function speedFromAngle(_arg1:Number, _arg2:Number){
return ([(_arg1 * Math.cos(_arg2)), (_arg1 * Math.sin(_arg2))]);
}
public function addBg(){
var _local1:bgElement;
if ((((Math.random() < 0.8)) || ((bgElements.length > 3)))){
return;
};
_local1 = new bgElement();
_local1.setType(Math.round((Math.random() * 2)));
_local1.speedX = (-0.1 + (Math.random() * -0.1));
_local1.speedY = 0;
_local1.x = (680 + _local1.sheetWidth);
_local1.y = (Math.random() * 550);
bgElements.push(_local1);
}
public function enemiesHitPlayer(){
var _local1:enemy;
var _local2:uint;
_local2 = 0;
while (_local2 < enemies.length) {
_local1 = enemies[_local2];
if (!_local1.dead){
if (boxHitBox(hero.x, hero.y, _local1.x, _local1.y, heroSizeX, heroSizeY, _local1.sizeX, _local1.sizeY)){
_local1.life = (_local1.life - (0.2 * timeDiff));
if (!berserk){
if (_local1.life > 100){
heroLife = (heroLife - (0.4 * timeDiff));
damageTaken = (damageTaken + (0.4 * timeDiff));
} else {
heroLife = (heroLife - (2 * timeDiff));
damageTaken = (damageTaken + (0.2 * timeDiff));
};
};
sBox.playSound([14]);
};
};
_local2++;
};
}
public function radToDeg(_arg1:Number):uint{
return (((_arg1 * 180) / Math.PI));
}
public function handleMouseUp(_arg1:MouseEvent){
mouseIsDown = false;
}
public function pauseGame(){
gamePaused = true;
dClickTimer.stop();
myShotTimer.stop();
enemyShotTimer.stop();
Mouse.show();
}
public function boxHitBox(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):Boolean{
var _local9:uint;
var _local10:uint;
var _local11:int;
var _local12:int;
var _local13:uint;
var _local14:uint;
_local9 = ((_arg5 + _arg7) >> 1);
_local10 = ((_arg6 + _arg8) >> 1);
_local11 = int((_arg1 - _arg3));
_local12 = int((_arg2 - _arg4));
_local13 = ((_local11 < 0)) ? -(_local11) : _local11;
_local14 = ((_local12 < 0)) ? -(_local12) : _local12;
if ((((_local13 < _local9)) && ((_local14 < _local10)))){
return (true);
};
return (false);
}
public function everyFrame(_arg1:Event){
var _local2:Number;
var _local3:Array;
var _local4:Number;
var _local5:Array;
if (gamePaused){
return;
};
getTimeDiff();
if (sloMo){
sloMoPower = (sloMoPower - (timeDiff * 0.08));
if ((((sloMoPower <= 0)) && (!(gameOver)))){
sloMoPower = 0;
sloMo = false;
resetTimers();
};
timeDiff = (timeDiff * 0.3);
} else {
if (sloMoPower < 1000){
sloMoPower = (sloMoPower + (timeDiff * 0.02));
if (sloMoPower > 1000){
sloMoPower = 1000;
};
};
};
setField(hero.x, hero.y);
addEnemies();
moveEnemies();
playerBulletsHitEnemy();
enemiesHitPlayer();
coinsHitPlayer();
enemyBulletsHitPlayer();
mouseCursor.x = mouseX;
mouseCursor.y = mouseY;
mouseCursor.rotation = (mouseCursor.rotation + (timeDiff * 0.05));
target.rotation = (target.rotation + (timeDiff * 0.05));
if (pointDistance(hero.x, hero.y, mouseX, mouseY) < (timeDiff * heroSpeed)){
hero.x = mouseX;
hero.y = mouseY;
} else {
_local2 = pointAngle(hero.x, hero.y, mouseX, mouseY);
_local3 = speedFromAngle((heroSpeed * timeDiff), _local2);
hero.x = (hero.x + _local3[0]);
hero.y = (hero.y + _local3[1]);
};
if (hero.x > 680){
hero.x = 680;
} else {
if (hero.x < 0){
hero.x = 0;
};
};
if (hero.y > 550){
hero.y = 550;
} else {
if (hero.y < 0){
hero.y = 0;
};
};
if (mouseIsDown){
targetX = (hero.x + targetOffsetX);
targetY = (hero.y + targetOffsetY);
} else {
if (pointDistance(targetX, targetY, hero.x, hero.y) > (targetDist + 1)){
_local4 = pointAngle(hero.x, hero.y, targetX, targetY);
_local5 = speedFromAngle(targetDist, _local4);
targetX = (hero.x + _local5[0]);
targetY = (hero.y + _local5[1]);
};
targetOffsetX = (targetX - hero.x);
targetOffsetY = (targetY - hero.y);
};
target.x = targetX;
target.y = targetY;
}
public function moveEnemies(){
var _local1:bgElement;
var _local2:uint;
var _local3:money;
var _local4:enemy;
var _local5:uint;
var _local6:effect;
var _local7:bullet;
enemiesBitmapData.dispose();
enemiesBitmapData = new BitmapData(680, 550, true, 0);
enemiesBitmapData.lock();
_local2 = 0;
while (_local2 < bgElements.length) {
_local1 = bgElements[_local2];
_local1.timeDiff = timeDiff;
_local1.moveMe();
enemiesBitmapData.copyPixels(cBitmap, new Rectangle((_local1.sheetX + _local1.sheetOffsetNow), _local1.sheetY, _local1.sheetWidth, _local1.sheetHeight), new Point((_local1.x - uint((_local1.sheetWidth / 2))), (_local1.y - uint((_local1.sheetHeight / 2)))), null, null, true);
if (_local1.dead){
bgElements.splice(_local2, 1);
_local2--;
};
_local2++;
};
_local2 = 0;
while (_local2 < coins.length) {
_local3 = coins[_local2];
_local3.timeDiff = timeDiff;
_local3.moveMe();
enemiesBitmapData.copyPixels(cBitmap, new Rectangle((_local3.sheetX + _local3.sheetOffsetNow), _local3.sheetY, _local3.sheetWidth, _local3.sheetHeight), new Point((_local3.x - uint((_local3.sheetWidth / 2))), (_local3.y - uint((_local3.sheetHeight / 2)))), null, null, true);
if (_local3.dead){
coins.splice(_local2, 1);
_local2--;
};
_local2++;
};
_local2 = 0;
while (_local2 < enemies.length) {
_local4 = enemies[_local2];
_local4.timeDiff = timeDiff;
_local4.moveMe();
_local4.animateMe();
enemiesBitmapData.copyPixels(cBitmap, new Rectangle((_local4.sheetX + _local4.sheetOffsetNow), _local4.sheetY, _local4.sheetWidth, _local4.sheetHeight), new Point((_local4.x - uint((_local4.sheetWidth / 2))), (_local4.y - uint((_local4.sheetHeight / 2)))), null, null, true);
if (_local4.life <= 0){
_local4.dead = true;
addCoins(_local4);
enemies.splice(_local2, 1);
currentHard = (currentHard - _local4.hardness);
gameScore = (gameScore + _local4.score);
addEffectAt(_local4.explosionType, _local4.x, _local4.y);
sBox.playSound([1, 2, 3, 4]);
killCount--;
if (_local4.boss){
_local5 = 0;
while (_local5 < 8) {
addEffectAt((1 + Math.round(Math.random())), ((_local4.x + ((Math.random() * _local4.sizeX) * 2)) - _local4.sizeX), ((_local4.y + ((Math.random() * _local4.sizeY) * 2)) - _local4.sizeY));
sBox.playSound([1, 2, 3, 4]);
_local5++;
};
};
_local2--;
};
_local2++;
};
_local2 = 0;
while (_local2 < effects.length) {
_local6 = effects[_local2];
_local6.timeDiff = timeDiff;
_local6.animateMe();
enemiesBitmapData.copyPixels(cBitmap, new Rectangle((_local6.sheetX + _local6.sheetOffsetNow), _local6.sheetY, _local6.sheetWidth, _local6.sheetHeight), new Point((_local6.x - uint((_local6.sheetWidth / 2))), (_local6.y - uint((_local6.sheetHeight / 2)))), null, null, true);
if (_local6.dead){
effects.splice(_local2, 1);
_local2--;
};
_local2++;
};
_local2 = 0;
while (_local2 < myBullets.length) {
_local7 = myBullets[_local2];
_local7.timeDiff = timeDiff;
_local7.moveMe();
_local7.animateMe();
enemiesBitmapData.copyPixels(cBitmap, new Rectangle((_local7.sheetX + _local7.sheetOffsetNow), _local7.sheetY, _local7.sheetWidth, _local7.sheetHeight), new Point((_local7.x - uint((_local7.sheetWidth / 2))), (_local7.y - uint((_local7.sheetHeight / 2)))), null, null, true);
if (_local7.dead){
myBullets.splice(_local2, 1);
_local2--;
};
_local2++;
};
_local2 = 0;
while (_local2 < enemyBullets.length) {
_local7 = enemyBullets[_local2];
_local7.timeDiff = timeDiff;
_local7.moveMe();
_local7.animateMe();
enemiesBitmapData.copyPixels(cBitmap, new Rectangle((_local7.sheetX + _local7.sheetOffsetNow), _local7.sheetY, _local7.sheetWidth, _local7.sheetHeight), new Point((_local7.x - uint((_local7.sheetWidth / 2))), (_local7.y - uint((_local7.sheetHeight / 2)))), null, null, true);
if (_local7.dead){
enemyBullets.splice(_local2, 1);
_local2--;
};
_local2++;
};
enemiesBitmapData.unlock();
enemiesBitmap.bitmapData = enemiesBitmapData;
}
public function stopEngine(){
removeEventListener(Event.ENTER_FRAME, everyFrame);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, handleMouseDown);
stage.removeEventListener(MouseEvent.MOUSE_UP, handleMouseUp);
dClickTimer.removeEventListener(TimerEvent.TIMER, dClickOff);
myShotTimer.removeEventListener(TimerEvent.TIMER, playerShoot);
enemyShotTimer.removeEventListener(TimerEvent.TIMER, enemyShootCycle);
winTimer.removeEventListener(TimerEvent.TIMER, checkWin);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
myHud.buttonMute.addEventListener(MouseEvent.CLICK, switchMute);
}
public function pointAngle(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Number{
return (Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)));
}
public function rotateToAngle(_arg1:Number, _arg2:Number, _arg3:Number):Number{
var _local4:Number;
var _local5:Number;
if (_arg2 < _arg1){
_local4 = -(_arg3);
} else {
_local4 = _arg3;
};
_local5 = (_arg2 - _arg1);
if (Math.abs(_local5) > Math.PI){
_local4 = -(_local4);
};
if ((((Math.abs(_local5) < _arg3)) || ((Math.abs(_local5) > ((2 * Math.PI) - _arg3))))){
_local4 = _local5;
};
return (_local4);
}
public function chance(_arg1:uint):Boolean{
if ((Math.random() * 100) < _arg1){
return (true);
};
return (false);
}
public function shotToCoin(){
var _local1:money;
var _local2:bullet;
var _local3:uint;
_local3 = 0;
while (_local3 < enemyBullets.length) {
_local2 = enemyBullets[_local3];
_local1 = new money();
_local1.setValu(Math.round((Math.random() * 2)));
_local1.x = _local2.x;
_local1.y = _local2.y;
_local1.speedX = _local2.speedX;
_local1.speedY = _local2.speedY;
coins.push(_local1);
enemyBullets.splice(_local3, 1);
_local3--;
_local3++;
};
}
public function switchMute(_arg1:MouseEvent){
sBox.switchSound();
}
public function updateHud(){
if (gamePaused){
return;
};
addBg();
if ((((heroLife < heroMaxLife)) && (!(gameOver)))){
heroLife = (heroLife + heroHeal);
if (heroLife > heroMaxLife){
heroLife = heroMaxLife;
};
};
if (!berserk){
if (heroBerserk < heroMaxBerserk){
heroBerserk = (heroBerserk + heroBerserkHeal);
myHud.berserkBar.gotoAndStop(3);
if (heroBerserk >= heroMaxBerserk){
heroBerserk = heroMaxBerserk;
myHud.berserkBar.gotoAndStop(1);
};
};
} else {
if (heroBerserk > 0){
heroBerserk = (heroBerserk - 200);
shotToCoin();
myHud.berserkBar.gotoAndStop(2);
} else {
heroBerserk = 0;
berserk = false;
setNormalShot();
};
};
if (!mouseHidden){
if (mouseY < 550){
Mouse.hide();
mouseHidden = true;
};
} else {
if (mouseY >= 550){
Mouse.show();
mouseHidden = false;
};
};
myHud.moneyText.text = String(heroMoney);
myHud.healthBar.width = ((150 * heroLife) / heroMaxLife);
myHud.berserkBar.width = ((150 * heroBerserk) / heroMaxBerserk);
myHud.slomoBar.width = ((150 * sloMoPower) / 1000);
myHud.scoreText.text = String(gameScore);
if (heroLife <= 0){
die();
};
}
public function playerBulletsHitEnemy(){
var _local1:bullet;
var _local2:enemy;
var _local3:uint;
var _local4:uint;
_local3 = 0;
while (_local3 < myBullets.length) {
_local1 = myBullets[_local3];
_local4 = 0;
while (_local4 < enemies.length) {
_local2 = enemies[_local4];
if (((!(_local1.dead)) && (!(_local2.dead)))){
if (boxHitBox(_local1.x, _local1.y, _local2.x, _local2.y, _local1.sizeX, _local1.sizeY, _local2.sizeX, _local2.sizeY)){
_local2.life = (_local2.life - _local1.damage);
_local1.dead = true;
addEffectAt(3, _local1.x, _local1.y);
sBox.playSound([6]);
};
};
_local4++;
};
_local3++;
};
}
public function dClickOff(_arg1:Event){
candClick = false;
dClickTimer.stop();
}
public function addEffectAt(_arg1:uint, _arg2:uint, _arg3:uint){
var _local4:effect;
_local4 = new (effectTypes[_arg1]);
_local4.x = _arg2;
_local4.y = _arg3;
effects.push(_local4);
}
public function handleMouseDown(_arg1:MouseEvent){
if (candClick){
if (!gamePaused){
startBerserk();
};
} else {
dClickTimer.start();
candClick = true;
};
mouseIsDown = true;
if (!gamePaused){
Mouse.hide();
mouseHidden = true;
};
}
public function enemyShoot(_arg1:Number, _arg2:uint, _arg3:Number, _arg4:Boolean=false, _arg5:int=0, _arg6:int=0, _arg7:int=0, _arg8:int=0){
var _local9:bullet;
var _local10:Array;
_local9 = new (enemyBulletTypes[_arg2]);
_arg5 = (_arg5 + _arg7);
_arg6 = (_arg6 + _arg8);
_local9.x = _arg5;
_local9.y = _arg6;
if (_arg4){
_arg1 = fixAngle((pointAngle(_arg5, _arg6, hero.x, hero.y) + _arg1));
};
_local10 = speedFromAngle(_arg3, _arg1);
_local9.speedX = _local10[0];
_local9.speedY = _local10[1];
enemyBullets.push(_local9);
sBox.playSound([7, 8]);
}
public function pointDistance(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Number{
return (Math.sqrt((Math.pow((_arg3 - _arg1), 2) + Math.pow((_arg4 - _arg2), 2))));
}
public function enemyShootCycle(_arg1:TimerEvent=null){
var _local2:uint;
_local2 = 0;
while (_local2 < enemies.length) {
enemies[_local2].shoot();
_local2++;
};
}
public function checkWin(_arg1:TimerEvent=null){
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
if (((gameOver) || (gamePaused))){
return;
};
topHud.visible = true;
if (battleType == 0){
timed = (timed - 1001);
topHud.timedText.text = String(Math.round((timed / 1000)));
if (timed <= 0){
trace("win timed");
topHud.timedText.text = String("0");
if (tenant.currentStage == tenant.so.data.levelCompleted){
tenant.so.data.levelCompleted++;
};
gameOver = true;
sloMo = true;
winTimer.stop();
gameOverType = 1;
_local2 = new lightScreen();
addChild(_local2);
sBox.fadeMusic();
stage.frameRate = 30;
gameOverTimer.addEventListener(TimerEvent.TIMER, gameOverFunction, false, 0, true);
gameOverTimer.delay = 3000;
gameOverTimer.start();
};
} else {
if (battleType == 1){
topHud.killText.text = String(killCount);
if (killCount <= 0){
topHud.killText.text = String("0");
trace("win kill");
if (tenant.currentStage == tenant.so.data.levelCompleted){
tenant.so.data.levelCompleted++;
};
gameOver = true;
sloMo = true;
winTimer.stop();
gameOverType = 1;
_local3 = new lightScreen();
addChild(_local3);
sBox.fadeMusic();
stage.frameRate = 30;
gameOverTimer.addEventListener(TimerEvent.TIMER, gameOverFunction, false, 0, true);
gameOverTimer.delay = 3000;
gameOverTimer.start();
};
} else {
if (battleType == 2){
if (bossKilled){
trace("win boss");
if (tenant.currentStage == tenant.so.data.levelCompleted){
tenant.so.data.levelCompleted++;
};
gameOver = true;
sloMo = true;
winTimer.stop();
gameOverType = 2;
_local4 = new lightScreen();
addChild(_local4);
sBox.fadeMusic();
stage.frameRate = 30;
gameOverTimer.addEventListener(TimerEvent.TIMER, gameOverFunction, false, 0, true);
gameOverTimer.delay = 2000;
gameOverTimer.start();
};
} else {
if (battleType == 3){
gameOverType = 3;
};
};
};
};
}
public function enemyBulletsHitPlayer(){
var _local1:bullet;
var _local2:uint;
if (berserk){
return;
};
_local2 = 0;
while (_local2 < enemyBullets.length) {
_local1 = enemyBullets[_local2];
if (boxHitBox(_local1.x, _local1.y, hero.x, hero.y, _local1.sizeX, _local1.sizeY, heroSizeX, heroSizeY)){
if (!berserk){
heroLife = (heroLife - _local1.damage);
damageTaken = (damageTaken + _local1.damage);
};
_local1.dead = true;
addEffectAt(3, _local1.x, _local1.y);
sBox.playSound([15]);
};
_local2++;
};
}
public function playerShoot(_arg1:TimerEvent){
var _local2:Number;
var _local3:bullet;
var _local4:Array;
updateHud();
while (myShotDelay <= 0) {
myShotDelay = myShotPattern[myShotOffset][0];
_local2 = myShotPattern[myShotOffset][1];
_local3 = new (myBulletTypes[myShotPattern[myShotOffset][2]]);
_local3.x = hero.x;
_local3.y = hero.y;
_local2 = fixAngle((pointAngle(hero.x, hero.y, target.x, target.y) + _local2));
_local4 = speedFromAngle(myShotPattern[myShotOffset][3], _local2);
_local3.speedX = _local4[0];
_local3.speedY = _local4[1];
myBullets.push(_local3);
myShotOffset++;
if (myShotOffset >= myShotPattern.length){
myShotOffset = 0;
};
};
myShotDelay--;
if (myShotDelay == 0){
sBox.playSound([0]);
};
}
public function fixAngle(_arg1:Number):Number{
if (_arg1 > Math.PI){
_arg1 = (_arg1 - (2 * Math.PI));
};
if (_arg1 < -(Math.PI)){
_arg1 = (_arg1 + (2 * Math.PI));
};
return (_arg1);
}
public function setField(_arg1:uint, _arg2:uint){
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
_local3 = Math.floor((_arg1 / 136));
_local4 = Math.floor((_arg2 / 110));
_local5 = Math.floor((mouseX / 136));
_local6 = Math.floor((mouseY / 110));
if ((((hzNowX == _local3)) && ((hzNowY == _local4)))){
return;
};
field = new Array();
_local7 = 0;
while (_local7 < 5) {
field.push(new Array());
_local10 = 0;
while (_local10 < 5) {
field[_local7].push(uint(0));
_local10++;
};
_local7++;
};
_local7 = -1;
while (_local7 <= 1) {
_local10 = -1;
while (_local10 <= 1) {
_local8 = (_local3 + _local7);
_local9 = (_local4 + _local10);
_local8 = ((_local8 < 0)) ? 0 : _local8;
_local8 = ((_local8 > 4)) ? 4 : _local8;
_local9 = ((_local9 < 0)) ? 0 : _local9;
_local9 = ((_local9 > 4)) ? 4 : _local9;
field[_local8][_local9] = uint(100);
_local10++;
};
_local7++;
};
availableFields = new Array();
_local7 = 0;
while (_local7 < 5) {
_local10 = 0;
while (_local10 < 5) {
if (field[_local7][_local10] != 100){
availableFields.push([uint(_local7), uint(_local10)]);
};
_local10++;
};
_local7++;
};
hzNowX = _local3;
hzNowY = _local4;
}
public function addCoins(_arg1:enemy){
var _local2:Array;
var _local3:money;
var _local4:uint;
var _local5:uint;
var _local6:uint;
_local2 = _arg1.moneyArray;
_local4 = (_arg1.x - (uint(_arg1.sizeX) >> 1));
_local5 = (_arg1.y - (uint(_arg1.sizeY) >> 1));
_local6 = 0;
while (_local6 < _local2.length) {
_local3 = new money();
_local3.setValu(_local2[_local6]);
_local3.x = (_local4 + uint((Math.random() * _arg1.sizeX)));
_local3.y = (_local5 + uint((Math.random() * _arg1.sizeY)));
coins.push(_local3);
_local6++;
};
}
public function getTimeDiff(){
timeDiff = (getTimer() - prevTime);
prevTime = getTimer();
if (timeDiff > 75){
timeDiff = 75;
};
}
}
}//package shootG04ARMOR_fla
Section 41
//gameCompleterScreen_61 (shootG04ARMOR_fla.gameCompleterScreen_61)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class gameCompleterScreen_61 extends MovieClip {
public var sBox:MovieClip;
public var b2menuButton:SimpleButton;
public function gameCompleterScreen_61(){
addFrameScript(0, frame1, 10, frame11, 11, frame12, 12, frame13, 78, frame79, 91, frame92, 984, frame985);
}
function frame79(){
MovieClip(parent).soundBox.playMusic(2);
}
function frame12(){
sBox.playSound([1, 2, 3, 4]);
}
function frame985(){
stop();
}
function frame1(){
sBox = MovieClip(parent).soundBox;
b2menuButton.addEventListener(MouseEvent.CLICK, b2menu, false, 0, true);
b2menuButton.visible = false;
}
function frame13(){
sBox.playSound([1, 2, 3, 4]);
}
public function b2menu(_arg1:MouseEvent){
MovieClip(parent).gotoAndStop(6);
b2menuButton.removeEventListener(MouseEvent.CLICK, b2menu);
}
function frame92(){
b2menuButton.visible = true;
}
function frame11(){
sBox.playSound([1, 2, 3, 4]);
}
}
}//package shootG04ARMOR_fla
Section 42
//gameOverScreen_56 (shootG04ARMOR_fla.gameOverScreen_56)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class gameOverScreen_56 extends MovieClip {
public var sBox:MovieClip;
public var b2menuButton:SimpleButton;
public function gameOverScreen_56(){
addFrameScript(0, frame1, 22, frame23, 64, frame65);
}
function frame65(){
stop();
}
function frame1(){
sBox = MovieClip(parent).soundBox;
b2menuButton.addEventListener(MouseEvent.CLICK, b2menu, false, 0, true);
}
function frame23(){
sBox.playSound([1, 2, 3, 4]);
}
public function b2menu(_arg1:MouseEvent){
MovieClip(parent).gotoAndStop(6);
b2menuButton.removeEventListener(MouseEvent.CLICK, b2menu);
}
}
}//package shootG04ARMOR_fla
Section 43
//icons_19 (shootG04ARMOR_fla.icons_19)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class icons_19 extends MovieClip {
public function icons_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shootG04ARMOR_fla
Section 44
//infoBubble_51 (shootG04ARMOR_fla.infoBubble_51)
package shootG04ARMOR_fla {
import flash.display.*;
import flash.text.*;
public dynamic class infoBubble_51 extends MovieClip {
public var bubblePrice:TextField;
public var bubbleText:TextField;
}
}//package shootG04ARMOR_fla
Section 45
//level10button_48 (shootG04ARMOR_fla.level10button_48)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level10button_48 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level10button_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 46
//level13button_32 (shootG04ARMOR_fla.level13button_32)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level13button_32 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level13button_32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 47
//level1button_17 (shootG04ARMOR_fla.level1button_17)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level1button_17 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level1button_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
locked = false;
completed = false;
id = 0;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 48
//level2button_20 (shootG04ARMOR_fla.level2button_20)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level2button_20 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level2button_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 49
//level3button_34 (shootG04ARMOR_fla.level3button_34)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level3button_34 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level3button_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 50
//level4button_36 (shootG04ARMOR_fla.level4button_36)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level4button_36 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level4button_36(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 51
//level5button_38 (shootG04ARMOR_fla.level5button_38)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level5button_38 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level5button_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 52
//level6button_40 (shootG04ARMOR_fla.level6button_40)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level6button_40 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level6button_40(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 53
//level7button_42 (shootG04ARMOR_fla.level7button_42)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level7button_42 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level7button_42(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 54
//level8button_44 (shootG04ARMOR_fla.level8button_44)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level8button_44 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level8button_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 55
//level9button_46 (shootG04ARMOR_fla.level9button_46)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class level9button_46 extends MovieClip {
public var icons:MovieClip;
public var locked:Boolean;
public var id:uint;
public var completed:Boolean;
public function level9button_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
id = 1;
}
public function setup(){
if (locked){
icons.gotoAndStop(2);
} else {
if (completed){
icons.gotoAndStop(3);
};
};
}
}
}//package shootG04ARMOR_fla
Section 56
//levelBubble_53 (shootG04ARMOR_fla.levelBubble_53)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class levelBubble_53 extends MovieClip {
public function levelBubble_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shootG04ARMOR_fla
Section 57
//levelCompleterScreen_59 (shootG04ARMOR_fla.levelCompleterScreen_59)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class levelCompleterScreen_59 extends MovieClip {
public var sBox:MovieClip;
public var b2menuButton:SimpleButton;
public function levelCompleterScreen_59(){
addFrameScript(0, frame1, 10, frame11, 11, frame12, 12, frame13, 43, frame44, 44, frame45, 46, frame47, 48, frame49, 50, frame51, 53, frame54, 57, frame58);
}
function frame12(){
sBox.playSound([1, 2, 3, 4]);
}
function frame1(){
sBox = MovieClip(parent).soundBox;
b2menuButton.addEventListener(MouseEvent.CLICK, b2menu, false, 0, true);
}
function frame13(){
sBox.playSound([1, 2, 3, 4]);
}
public function b2menu(_arg1:MouseEvent){
MovieClip(parent).gotoAndStop(6);
b2menuButton.removeEventListener(MouseEvent.CLICK, b2menu);
}
function frame11(){
sBox.playSound([1, 2, 3, 4]);
}
function frame44(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame45(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame47(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame49(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame51(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame54(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame58(){
sBox.playSound([9, 10, 11, 12, 13]);
stop();
}
}
}//package shootG04ARMOR_fla
Section 58
//levelCompleterScreenMochi_63 (shootG04ARMOR_fla.levelCompleterScreenMochi_63)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class levelCompleterScreenMochi_63 extends MovieClip {
public var sBox:MovieClip;
public function levelCompleterScreenMochi_63(){
addFrameScript(0, frame1, 10, frame11, 11, frame12, 12, frame13, 43, frame44, 44, frame45, 46, frame47, 48, frame49, 50, frame51, 53, frame54, 57, frame58);
}
function frame12(){
sBox.playSound([1, 2, 3, 4]);
}
function frame1(){
sBox = MovieClip(parent).soundBox;
}
function frame13(){
sBox.playSound([1, 2, 3, 4]);
}
function frame11(){
sBox.playSound([1, 2, 3, 4]);
}
function frame44(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame45(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame47(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame49(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame51(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame54(){
sBox.playSound([9, 10, 11, 12, 13]);
}
function frame58(){
sBox.playSound([9, 10, 11, 12, 13]);
stop();
}
}
}//package shootG04ARMOR_fla
Section 59
//mainmenugui_16 (shootG04ARMOR_fla.mainmenugui_16)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mainmenugui_16 extends MovieClip {
public var moneyText:TextField;
public var myWep:uint;
public var levelButtonArray:Array;
public var level7button:MovieClip;
public var wepPrices:Array;
public var sBox:MovieClip;
public var hpButton:SimpleButton;
public var level4button:MovieClip;
public var buttonMute:SimpleButton;
public var berserkHealBar:MovieClip;
public var berserkBar:MovieClip;
public var myWeapons:Array;
public var level1button:MovieClip;
public var level9button:MovieClip;
public var tenant:MovieClip;
public var wb1:MovieClip;
public var wb2:MovieClip;
public var wb4:MovieClip;
public var wb5:MovieClip;
public var wb6:MovieClip;
public var wb3:MovieClip;
public var infoBubble:MovieClip;
public var level11button:MovieClip;
public var level6button:MovieClip;
public var maxHpBar:MovieClip;
public var berserkButton:SimpleButton;
public var wepStrings:Array;
public var mmButton:SimpleButton;
public var healBar:MovieClip;
public var levelBubble:MovieClip;
public var level3button:MovieClip;
public var healButton:SimpleButton;
public var level8button:MovieClip;
public var wepButtonArray:Array;
public var level10button:MovieClip;
public var level5button:MovieClip;
public var level2button:MovieClip;
public var berserkHealButton:SimpleButton;
public function mainmenugui_16(){
addFrameScript(0, frame1);
}
public function berserkHealButtonClick(_arg1:MouseEvent){
var _local2:Boolean;
var _local3:uint;
_local2 = false;
trace(tenant.so.data.heroBerserkHealLevel);
if (tenant.so.data.heroBerserkHealLevel < 3){
_local3 = tenant.heroBerserkHealPrices[(tenant.so.data.heroBerserkHealLevel + 1)];
if (tenant.so.data.money >= _local3){
tenant.so.data.money = (tenant.so.data.money - _local3);
tenant.so.data.heroBerserkHealLevel++;
updateGui();
berserkHealButtonOver();
sBox.playMenuSound(0);
};
} else {
berserkHealButtonOver();
};
}
public function level4over(_arg1:MouseEvent){
levelBubble.gotoAndStop(4);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[3].x;
levelBubble.y = levelButtonArray[3].y;
}
public function level8over(_arg1:MouseEvent){
levelBubble.gotoAndStop(8);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[7].x;
levelBubble.y = levelButtonArray[7].y;
}
public function hpButtonOver(_arg1:MouseEvent=null){
infoBubble.x = (hpButton.x - 150);
infoBubble.y = hpButton.y;
infoBubble.bubbleText.text = String("Increase your maximum health points so you have more reserves in a mayhem");
if (tenant.so.data.heroMaxLifeLevel < 3){
infoBubble.bubblePrice.text = String(tenant.heroMaxLifePrices[(tenant.so.data.heroMaxLifeLevel + 1)]);
} else {
infoBubble.bubblePrice.text = "MAXED";
};
infoBubble.visible = true;
}
public function healButtonClick(_arg1:MouseEvent){
var _local2:Boolean;
var _local3:uint;
_local2 = false;
trace(tenant.so.data.heroHealLevel);
if (tenant.so.data.heroHealLevel < 3){
_local3 = tenant.heroHealPrices[(tenant.so.data.heroHealLevel + 1)];
if (tenant.so.data.money >= _local3){
tenant.so.data.money = (tenant.so.data.money - _local3);
tenant.so.data.heroHealLevel++;
updateGui();
healButtonOver();
sBox.playMenuSound(0);
};
} else {
healButtonOver();
};
}
function frame1(){
tenant = MovieClip(parent).tenant;
myWeapons = tenant.so.data.myWeapons;
myWep = tenant.so.data.heroCurrentShotPattern;
sBox = MovieClip(parent).soundBox;
levelButtonArray = new Array();
levelButtonArray.push(level1button);
levelButtonArray.push(level2button);
levelButtonArray.push(level3button);
levelButtonArray.push(level4button);
levelButtonArray.push(level5button);
levelButtonArray.push(level6button);
levelButtonArray.push(level7button);
levelButtonArray.push(level8button);
levelButtonArray.push(level9button);
levelButtonArray.push(level10button);
levelButtonArray.push(level11button);
wepButtonArray = new Array();
wepButtonArray.push(wb1);
wb1.id = 0;
wb1.addEventListener(MouseEvent.CLICK, wepClick1, false, 0, true);
wb1.addEventListener(MouseEvent.MOUSE_OVER, wepOver1, false, 0, true);
wb1.addEventListener(MouseEvent.MOUSE_OUT, wepOut1, false, 0, true);
wepButtonArray.push(wb2);
wb2.id = 1;
wb2.addEventListener(MouseEvent.CLICK, wepClick2, false, 0, true);
wb2.addEventListener(MouseEvent.MOUSE_OVER, wepOver2, false, 0, true);
wb2.addEventListener(MouseEvent.MOUSE_OUT, wepOut2, false, 0, true);
wepButtonArray.push(wb3);
wb3.id = 2;
wb3.addEventListener(MouseEvent.CLICK, wepClick3, false, 0, true);
wb3.addEventListener(MouseEvent.MOUSE_OVER, wepOver3, false, 0, true);
wb3.addEventListener(MouseEvent.MOUSE_OUT, wepOut3, false, 0, true);
wepButtonArray.push(wb4);
wb4.id = 3;
wb4.addEventListener(MouseEvent.CLICK, wepClick4, false, 0, true);
wb4.addEventListener(MouseEvent.MOUSE_OVER, wepOver4, false, 0, true);
wb4.addEventListener(MouseEvent.MOUSE_OUT, wepOut4, false, 0, true);
wepButtonArray.push(wb5);
wb5.id = 4;
wb5.addEventListener(MouseEvent.CLICK, wepClick5, false, 0, true);
wb5.addEventListener(MouseEvent.MOUSE_OVER, wepOver5, false, 0, true);
wb5.addEventListener(MouseEvent.MOUSE_OUT, wepOut5, false, 0, true);
wepButtonArray.push(wb6);
wb6.id = 5;
wb6.addEventListener(MouseEvent.CLICK, wepClick6, false, 0, true);
wb6.addEventListener(MouseEvent.MOUSE_OVER, wepOver6, false, 0, true);
wb6.addEventListener(MouseEvent.MOUSE_OUT, wepOut6, false, 0, true);
wepPrices = new Array(0, 0, 1500, 4000, 20000, 100000, 240000);
wepStrings = new Array("", "Your Sturdy (Lame) Default gun. This won't protect your skull for too long.", "A modified PewPew with 3 - way shot. Slow and clumsy, but hey. It's Cheap.", "2-way super-fast shot. Give them hell with this Spray Gun!", "A shredding 3-way Minigun. Don't really have to aim with this one. It's a luck you have unlimited ammo.", "All hail the big old Meteor Gun! Just like the 3-way Minigun but with some Big Fat Bullets.", "There's just no fun it this game anymore when you buy the BFG 100K. It just simply tears EVERYTHING apart. That is guaranteed.");
infoBubble.visible = false;
updateGui();
level1button.addEventListener(MouseEvent.CLICK, level1, false, 0, true);
level1button.addEventListener(MouseEvent.MOUSE_OVER, level1over, false, 0, true);
level1button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level2button.addEventListener(MouseEvent.CLICK, level2, false, 0, true);
level2button.addEventListener(MouseEvent.MOUSE_OVER, level2over, false, 0, true);
level2button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level3button.addEventListener(MouseEvent.CLICK, level3, false, 0, true);
level3button.addEventListener(MouseEvent.MOUSE_OVER, level3over, false, 0, true);
level3button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level4button.addEventListener(MouseEvent.CLICK, level4, false, 0, true);
level4button.addEventListener(MouseEvent.MOUSE_OVER, level4over, false, 0, true);
level4button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level5button.addEventListener(MouseEvent.CLICK, level5, false, 0, true);
level5button.addEventListener(MouseEvent.MOUSE_OVER, level5over, false, 0, true);
level5button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level6button.addEventListener(MouseEvent.CLICK, level6, false, 0, true);
level6button.addEventListener(MouseEvent.MOUSE_OVER, level6over, false, 0, true);
level6button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level7button.addEventListener(MouseEvent.CLICK, level7, false, 0, true);
level7button.addEventListener(MouseEvent.MOUSE_OVER, level7over, false, 0, true);
level7button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level8button.addEventListener(MouseEvent.CLICK, level8, false, 0, true);
level8button.addEventListener(MouseEvent.MOUSE_OVER, level8over, false, 0, true);
level8button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level9button.addEventListener(MouseEvent.CLICK, level9, false, 0, true);
level9button.addEventListener(MouseEvent.MOUSE_OVER, level9over, false, 0, true);
level9button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level10button.addEventListener(MouseEvent.CLICK, level10, false, 0, true);
level10button.addEventListener(MouseEvent.MOUSE_OVER, level10over, false, 0, true);
level10button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
level11button.addEventListener(MouseEvent.CLICK, level11, false, 0, true);
level11button.addEventListener(MouseEvent.MOUSE_OVER, level11over, false, 0, true);
level11button.addEventListener(MouseEvent.MOUSE_OUT, levelOut, false, 0, true);
mmButton.addEventListener(MouseEvent.CLICK, toMain, false, 0, true);
hpButton.addEventListener(MouseEvent.CLICK, hpButtonClick, false, 0, true);
hpButton.addEventListener(MouseEvent.MOUSE_OVER, hpButtonOver, false, 0, true);
hpButton.addEventListener(MouseEvent.MOUSE_OUT, buttonOut, false, 0, true);
healButton.addEventListener(MouseEvent.CLICK, healButtonClick, false, 0, true);
healButton.addEventListener(MouseEvent.MOUSE_OVER, healButtonOver, false, 0, true);
healButton.addEventListener(MouseEvent.MOUSE_OUT, buttonOut, false, 0, true);
berserkButton.addEventListener(MouseEvent.CLICK, berserkButtonClick, false, 0, true);
berserkButton.addEventListener(MouseEvent.MOUSE_OVER, berserkButtonOver, false, 0, true);
berserkButton.addEventListener(MouseEvent.MOUSE_OUT, buttonOut, false, 0, true);
berserkHealButton.addEventListener(MouseEvent.CLICK, berserkHealButtonClick, false, 0, true);
berserkHealButton.addEventListener(MouseEvent.MOUSE_OVER, berserkHealButtonOver, false, 0, true);
berserkHealButton.addEventListener(MouseEvent.MOUSE_OUT, buttonOut, false, 0, true);
buttonMute.addEventListener(MouseEvent.CLICK, muteSound, false, 0, true);
}
public function muteSound(_arg1:MouseEvent){
MovieClip(parent).soundBox.switchSound();
}
public function level3over(_arg1:MouseEvent){
levelBubble.gotoAndStop(3);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[2].x;
levelBubble.y = levelButtonArray[2].y;
}
public function level7over(_arg1:MouseEvent){
levelBubble.gotoAndStop(7);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[6].x;
levelBubble.y = levelButtonArray[6].y;
}
public function wepOut(_arg1:MovieClip){
trace("out", _arg1.x);
infoBubble.visible = false;
}
public function level10(_arg1:MouseEvent){
var e = _arg1;
if (!level10button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 50;
maxHard = 200;
minHardInc = 5;
maxHardInc = 20;
maximumLevel = 25;
minimumLevel = 22;
currentLevel = 22;
timed = 60000;
killCount = 150;
battleType = 2;
currentStage = 9;
currentSong = 100;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function level11(_arg1:MouseEvent){
var e = _arg1;
if (!level11button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 40;
maxHard = 120;
minHardInc = 8;
maxHardInc = 30;
maximumLevel = 24;
minimumLevel = 1;
currentLevel = 1;
timed = 60000;
killCount = 200;
battleType = 3;
currentSong = Math.round((Math.random() * 2));
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function buttonOut(_arg1:MouseEvent){
infoBubble.visible = false;
infoBubble.x = -200;
}
public function toMain(_arg1:MouseEvent){
tenant.seeIfNewGame();
MovieClip(parent).gotoAndStop(5);
}
public function berserkHealButtonOver(_arg1:MouseEvent=null){
infoBubble.x = (berserkHealButton.x - 150);
infoBubble.y = berserkHealButton.y;
infoBubble.bubbleText.text = String("Speed up the recharge rate of your Allmighty Berserk Mode! (Remember, double-click to use it in-game)");
if (tenant.so.data.heroBerserkHealLevel < 3){
infoBubble.bubblePrice.text = String(tenant.heroBerserkHealPrices[(tenant.so.data.heroBerserkHealLevel + 1)]);
} else {
infoBubble.bubblePrice.text = "MAXED";
};
infoBubble.visible = true;
}
public function level6over(_arg1:MouseEvent){
levelBubble.gotoAndStop(6);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[5].x;
levelBubble.y = levelButtonArray[5].y;
}
public function level2over(_arg1:MouseEvent){
levelBubble.gotoAndStop(2);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[1].x;
levelBubble.y = levelButtonArray[1].y;
}
public function wepOut2(_arg1:MouseEvent){
wepOut(wb2);
}
public function wepOut5(_arg1:MouseEvent){
wepOut(wb5);
}
public function wepOut1(_arg1:MouseEvent){
wepOut(wb1);
}
public function level1(_arg1:MouseEvent){
var e = _arg1;
if (!level1button.locked){
trace("level1 start");
var _local3 = tenant;
with (_local3) {
minHard = 0;
maxHard = 60;
minHardInc = 2;
maxHardInc = 5;
maximumLevel = 2;
minimumLevel = 0;
currentLevel = 2;
timed = 60000;
killCount = 100;
battleType = 1;
currentStage = 0;
currentSong = 0;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function wepOut3(_arg1:MouseEvent){
wepOut(wb3);
}
public function wepOut4(_arg1:MouseEvent){
wepOut(wb4);
}
public function wepOut6(_arg1:MouseEvent){
wepOut(wb6);
}
public function level7(_arg1:MouseEvent){
var e = _arg1;
if (!level7button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 40;
maxHard = 300;
minHardInc = 7;
maxHardInc = 15;
maximumLevel = 11;
minimumLevel = 11;
currentLevel = 11;
timed = 60000;
killCount = 300;
battleType = 1;
currentStage = 6;
currentSong = 0;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function level2(_arg1:MouseEvent){
var e = _arg1;
if (!level2button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 10;
maxHard = 70;
minHardInc = 2;
maxHardInc = 7;
maximumLevel = 5;
minimumLevel = 0;
currentLevel = 3;
timed = 60000;
killCount = 150;
battleType = 0;
currentStage = 1;
currentSong = 1;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function level3(_arg1:MouseEvent){
var e = _arg1;
if (!level3button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 20;
maxHard = 80;
minHardInc = 4;
maxHardInc = 10;
maximumLevel = 3;
minimumLevel = 3;
currentLevel = 3;
timed = 60000;
killCount = 200;
battleType = 1;
currentStage = 2;
currentSong = 2;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function level5(_arg1:MouseEvent){
var e = _arg1;
if (!level5button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 40;
maxHard = 200;
minHardInc = 4;
maxHardInc = 15;
maximumLevel = 13;
minimumLevel = 5;
currentLevel = 8;
timed = 60000;
killCount = 200;
battleType = 1;
currentStage = 4;
currentSong = 1;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function level8(_arg1:MouseEvent){
var e = _arg1;
if (!level8button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 20;
maxHard = 550;
minHardInc = 4;
maxHardInc = 60;
maximumLevel = 23;
minimumLevel = 18;
currentLevel = 18;
timed = 180000;
killCount = 200;
battleType = 0;
currentStage = 7;
currentSong = 1;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function level9(_arg1:MouseEvent){
var e = _arg1;
if (!level9button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 100;
maxHard = 500;
minHardInc = 4;
maxHardInc = 40;
maximumLevel = 24;
minimumLevel = 1;
currentLevel = 20;
timed = 60000;
killCount = 500;
battleType = 1;
currentStage = 8;
currentSong = 2;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function healButtonOver(_arg1:MouseEvent=null){
infoBubble.x = (healButton.x - 150);
infoBubble.y = healButton.y;
infoBubble.bubbleText.text = String("Heal faster after injured! This is very important when facing waves of hard enemies.");
if (tenant.so.data.heroHealLevel < 3){
infoBubble.bubblePrice.text = String(tenant.heroHealPrices[(tenant.so.data.heroHealLevel + 1)]);
} else {
infoBubble.bubblePrice.text = "MAXED";
};
infoBubble.visible = true;
}
public function level4(_arg1:MouseEvent){
var e = _arg1;
if (!level4button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 20;
maxHard = 100;
minHardInc = 2;
maxHardInc = 4;
maximumLevel = 5;
minimumLevel = 0;
currentLevel = 5;
timed = 90000;
killCount = 200;
battleType = 0;
currentStage = 3;
currentSong = 0;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function levelOut(_arg1:MouseEvent){
levelBubble.visible = false;
}
public function wepClick(_arg1:MovieClip){
if (tenant.so.data.myWeapons[(_arg1.id + 1)] == 0){
if (wepPrices[(_arg1.id + 1)] <= tenant.so.data.money){
tenant.so.data.money = (tenant.so.data.money - wepPrices[(_arg1.id + 1)]);
tenant.so.data.myWeapons[(_arg1.id + 1)] = 1;
updateGui();
};
};
if (tenant.so.data.myWeapons[(_arg1.id + 1)] == 1){
tenant.so.data.heroCurrentShotPattern = (_arg1.id + 1);
trace("CURRENTSHOT", tenant.so.data.heroCurrentShotPattern);
updateGui();
sBox.playMenuSound(1);
};
}
public function wepOver(_arg1:MovieClip){
trace("over", _arg1.x);
infoBubble.visible = true;
infoBubble.bubbleText.text = wepStrings[(_arg1.id + 1)];
infoBubble.x = _arg1.x;
infoBubble.y = (_arg1.y + 40);
if (_arg1.currentFrame == 4){
infoBubble.bubblePrice.text = String(wepPrices[(_arg1.id + 1)]);
} else {
if (_arg1.currentFrame == 3){
infoBubble.bubblePrice.text = String("OWNED");
} else {
if (_arg1.currentFrame == 2){
infoBubble.bubblePrice.text = String("EQUIPPED");
};
};
};
}
public function hpButtonClick(_arg1:MouseEvent){
var _local2:Boolean;
var _local3:uint;
_local2 = false;
trace(tenant.so.data.heroMaxLifeLevel);
if (tenant.so.data.heroMaxLifeLevel < 3){
_local3 = tenant.heroMaxLifePrices[(tenant.so.data.heroMaxLifeLevel + 1)];
if (tenant.so.data.money >= _local3){
tenant.so.data.money = (tenant.so.data.money - _local3);
tenant.so.data.heroMaxLifeLevel++;
updateGui();
hpButtonOver();
sBox.playMenuSound(0);
};
} else {
hpButtonOver();
};
}
public function level6(_arg1:MouseEvent){
var e = _arg1;
if (!level6button.locked){
trace("level2 start");
var _local3 = tenant;
with (_local3) {
minHard = 30;
maxHard = 140;
minHardInc = 7;
maxHardInc = 10;
maximumLevel = 18;
minimumLevel = 14;
currentLevel = 14;
timed = 90000;
killCount = 200;
battleType = 0;
currentStage = 5;
currentSong = 2;
};
MovieClip(parent).gotoAndStop(25);
trace(tenant.maximumLevel, tenant.currentLevel);
};
}
public function level11over(_arg1:MouseEvent){
levelBubble.gotoAndStop(11);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[10].x;
levelBubble.y = levelButtonArray[10].y;
}
public function level1over(_arg1:MouseEvent){
levelBubble.gotoAndStop(1);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[0].x;
levelBubble.y = levelButtonArray[0].y;
}
public function level9over(_arg1:MouseEvent){
levelBubble.gotoAndStop(9);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[8].x;
levelBubble.y = levelButtonArray[8].y;
}
public function wepOver2(_arg1:MouseEvent){
wepOver(wb2);
}
public function wepOver4(_arg1:MouseEvent){
wepOver(wb4);
}
public function wepOver5(_arg1:MouseEvent){
wepOver(wb5);
}
public function wepOver6(_arg1:MouseEvent){
wepOver(wb6);
}
public function wepOver1(_arg1:MouseEvent){
wepOver(wb1);
}
public function level5over(_arg1:MouseEvent){
levelBubble.gotoAndStop(5);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[4].x;
levelBubble.y = levelButtonArray[4].y;
}
public function wepClick3(_arg1:MouseEvent){
wepClick(wb3);
}
public function wepClick5(_arg1:MouseEvent){
wepClick(wb5);
}
public function wepClick6(_arg1:MouseEvent){
wepClick(wb6);
}
public function wepClick1(_arg1:MouseEvent){
wepClick(wb1);
}
public function wepClick2(_arg1:MouseEvent){
wepClick(wb2);
}
public function wepClick4(_arg1:MouseEvent){
wepClick(wb4);
}
public function updateGui(){
var _local1:uint;
var _local2:uint;
moneyText.text = String(tenant.so.data.money);
_local1 = tenant.so.data.levelCompleted;
_local2 = 0;
while (_local2 < levelButtonArray.length) {
if (_local1 > _local2){
levelButtonArray[_local2].completed = true;
} else {
levelButtonArray[_local2].completed = false;
};
if (_local1 < _local2){
levelButtonArray[_local2].locked = true;
} else {
levelButtonArray[_local2].locked = false;
};
levelButtonArray[_local2].setup();
_local2++;
};
myWeapons = tenant.so.data.myWeapons;
trace(myWeapons[0]);
myWep = tenant.so.data.heroCurrentShotPattern;
trace("mywep", myWep);
_local2 = 0;
while (_local2 < wepButtonArray.length) {
if (_local2 == (myWep - 1)){
wepButtonArray[_local2].gotoAndStop(2);
} else {
if (myWeapons[(_local2 + 1)] == 1){
wepButtonArray[_local2].gotoAndStop(3);
} else {
wepButtonArray[_local2].gotoAndStop(4);
};
};
_local2++;
};
maxHpBar.gotoAndStop((tenant.so.data.heroMaxLifeLevel + 1));
healBar.gotoAndStop((tenant.so.data.heroHealLevel + 1));
berserkBar.gotoAndStop((tenant.so.data.heroMaxBerserkLevel + 1));
berserkHealBar.gotoAndStop((tenant.so.data.heroBerserkHealLevel + 1));
}
public function wepOver3(_arg1:MouseEvent){
wepOver(wb3);
}
public function berserkButtonOver(_arg1:MouseEvent=null){
infoBubble.x = (berserkButton.x - 150);
infoBubble.y = berserkButton.y;
infoBubble.bubbleText.text = String("When you double-click, you go berserk. You are invincible and deal an insane ammount of damage. But for how long?");
if (tenant.so.data.heroMaxBerserkLevel < 3){
infoBubble.bubblePrice.text = String(tenant.heroMaxBerserkPrices[(tenant.so.data.heroMaxBerserkLevel + 1)]);
} else {
infoBubble.bubblePrice.text = "MAXED";
};
infoBubble.visible = true;
}
public function level10over(_arg1:MouseEvent){
levelBubble.gotoAndStop(10);
levelBubble.visible = true;
levelBubble.x = levelButtonArray[9].x;
levelBubble.y = levelButtonArray[9].y;
}
public function berserkButtonClick(_arg1:MouseEvent){
var _local2:Boolean;
var _local3:uint;
_local2 = false;
trace(tenant.so.data.heroMaxBerserkLevel);
if (tenant.so.data.heroMaxBerserkLevel < 3){
_local3 = tenant.heroMaxBerserkPrices[(tenant.so.data.heroMaxBerserkLevel + 1)];
if (tenant.so.data.money >= _local3){
tenant.so.data.money = (tenant.so.data.money - _local3);
tenant.so.data.heroMaxBerserkLevel++;
updateGui();
berserkButtonOver();
sBox.playMenuSound(0);
};
} else {
berserkButtonOver();
};
}
}
}//package shootG04ARMOR_fla
Section 60
//MainTimeline (shootG04ARMOR_fla.MainTimeline)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var myMenu:ContextMenu;
public var loadText:TextField;
public var soundBox:MovieClip;
public var tenant:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 4, frame5, 5, frame6, 24, frame25, 29, frame30, 34, frame35, 39, frame40, 49, frame50, 50, frame51);
}
function frame6(){
stage.frameRate = 30;
soundBox.stopMusic();
stop();
}
function frame1(){
stop();
myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
this.contextMenu = myMenu;
addEventListener(Event.ENTER_FRAME, preloader);
}
function frame25(){
stop();
stage.frameRate = 72;
tenant.flushNow();
}
public function preloader(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:int;
_local2 = stage.loaderInfo.bytesTotal;
_local3 = stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 * 100) / _local2);
loadText.text = (String(_local4) + "%");
if (_local3 >= _local2){
removeEventListener(Event.ENTER_FRAME, preloader);
gotoAndPlay(2);
};
}
public function scoreSubmit(_arg1:uint){
}
function frame2(){
if (this.root.loaderInfo.url.indexOf("armorgames.com") == -1){
stop();
};
}
function frame5(){
soundBox.stopMusic();
stop();
stage.frameRate = 30;
}
function frame30(){
stage.frameRate = 30;
tenant.flushNow();
soundBox.stopMusic();
}
function frame35(){
stop();
tenant.flushNow();
soundBox.stopMusic();
}
function frame40(){
stop();
stage.frameRate = 30;
tenant.flushNow();
soundBox.stopMusic();
}
public function statSubmit(_arg1:String, _arg2:int){
}
function frame51(){
gotoAndStop(6);
}
function frame50(){
stop();
stage.frameRate = 30;
tenant.flushNow();
soundBox.stopMusic();
trace(tenant.gameScore, "SCORE SUBMIT");
}
}
}//package shootG04ARMOR_fla
Section 61
//newGameMenu_3 (shootG04ARMOR_fla.newGameMenu_3)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class newGameMenu_3 extends MovieClip {
public var zeroButton:SimpleButton;
public var eraseWarning:MovieClip;
public var jinButton:SimpleButton;
public var continueDisabled:MovieClip;
public var newGameButton:SimpleButton;
public var grBigButton:SimpleButton;
public var tenant:MovieClip;
public var continueGameButton:SimpleButton;
public var grButton:SimpleButton;
public function newGameMenu_3(){
addFrameScript(0, frame1);
}
public function goGr(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.gamereclaim.com/"), "_blank");
}
public function goJin(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://jinnjuice.newgrounds.com/"), "_blank");
}
function frame1(){
tenant = MovieClip(parent).tenant;
eraseWarning.visible = false;
if (tenant.newGame){
continueGameButton.visible = false;
continueDisabled.visible = true;
trace("BAZ");
} else {
continueGameButton.visible = true;
continueDisabled.visible = false;
};
newGameButton.addEventListener(MouseEvent.CLICK, newGameButtonHandle, false, 0, true);
continueGameButton.addEventListener(MouseEvent.CLICK, continueGameButtonHandle, false, 0, true);
eraseWarning.okButton.addEventListener(MouseEvent.CLICK, eraseHandle, false, 0, true);
eraseWarning.cancelButton.addEventListener(MouseEvent.CLICK, cancelHandle, false, 0, true);
zeroButton.addEventListener(MouseEvent.CLICK, goZero, false, 0, true);
jinButton.addEventListener(MouseEvent.CLICK, goJin, false, 0, true);
grButton.addEventListener(MouseEvent.CLICK, goGr, false, 0, true);
grBigButton.addEventListener(MouseEvent.CLICK, goGr, false, 0, true);
}
public function eraseHandle(_arg1:MouseEvent){
tenant.resetVars();
MovieClip(parent).gotoAndStop(6);
}
public function goZero(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://zero-resurrected.newgrounds.com/"), "_blank");
}
public function cancelHandle(_arg1:MouseEvent){
eraseWarning.visible = false;
}
public function newGameButtonHandle(_arg1:MouseEvent){
trace(tenant.newGame);
if (!tenant.newGame){
eraseWarning.visible = true;
} else {
tenant.resetVars();
MovieClip(parent).gotoAndStop(6);
};
}
public function continueGameButtonHandle(_arg1:MouseEvent){
if (!tenant.newGame){
MovieClip(parent).gotoAndStop(6);
};
}
}
}//package shootG04ARMOR_fla
Section 62
//slomoBar_74 (shootG04ARMOR_fla.slomoBar_74)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class slomoBar_74 extends MovieClip {
public function slomoBar_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shootG04ARMOR_fla
Section 63
//soundBox_15 (shootG04ARMOR_fla.soundBox_15)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class soundBox_15 extends MovieClip {
public var musicArray;
public var menuSoundArray:Array;
public var sc:SoundChannel;
public var soundOn:Boolean;
public var soundsArray:Array;
public var musicFadeTimer:Timer;
public var currentBgs:SoundChannel;
public var clearSoundsTimer:Timer;
public function soundBox_15(){
addFrameScript(0, frame1);
}
public function clearSounds(_arg1:Event){
var _local2:uint;
_local2 = 0;
while (_local2 < soundsArray.length) {
soundsArray[_local2][1] = true;
_local2++;
};
}
public function fadeMusicBot(_arg1:TimerEvent){
var _local2:SoundTransform;
if (sc != null){
_local2 = new SoundTransform();
_local2.volume = (sc.soundTransform.volume - 0.025);
sc.soundTransform = _local2;
if (_local2.volume <= 0){
stopMusic();
};
};
}
public function fadeMusic(){
if (sc != null){
musicFadeTimer.start();
};
}
public function playSound(_arg1:Array){
var _local2:uint;
if (!soundOn){
return;
};
_local2 = Math.floor((Math.random() * _arg1.length));
if (soundsArray[_arg1[_local2]][1]){
soundsArray[_arg1[_local2]][0].play();
soundsArray[_arg1[_local2]][1] = false;
};
}
public function playMenuSound(_arg1:uint){
if (!soundOn){
return;
};
menuSoundArray[_arg1].play();
}
public function stopMusic(){
if (sc != null){
sc.stop();
musicFadeTimer.stop();
};
}
public function startBg(){
}
public function playMusic(_arg1:uint){
var _local2:SoundTransform;
musicFadeTimer.stop();
if (!soundOn){
return;
};
if (sc != null){
sc.stop();
};
if (_arg1 == 100){
return;
};
sc = musicArray[_arg1][0].play(0, 3);
_local2 = new SoundTransform();
_local2.volume = musicArray[_arg1][1];
sc.soundTransform = _local2;
}
function frame1(){
soundOn = true;
soundsArray = new Array();
menuSoundArray = new Array();
clearSoundsTimer = new Timer(100);
clearSoundsTimer.start();
musicFadeTimer = new Timer(100);
musicFadeTimer.addEventListener(TimerEvent.TIMER, fadeMusicBot);
soundsArray.push([new soundPlayerShoot(), true]);
soundsArray.push([new boom1(), true]);
soundsArray.push([new boom2(), true]);
soundsArray.push([new boom3(), true]);
soundsArray.push([new boom4(), true]);
soundsArray.push([new spawn1(), true]);
soundsArray.push([new hit(), true]);
soundsArray.push([new laser1(), true]);
soundsArray.push([new laser2(), true]);
soundsArray.push([new coin1(), true]);
soundsArray.push([new coin2(), true]);
soundsArray.push([new coin3(), true]);
soundsArray.push([new coin4(), true]);
soundsArray.push([new coin5(), true]);
soundsArray.push([new heroHitEnemy(), true]);
soundsArray.push([new heroHitEnemyBullet(), true]);
soundsArray.push([new slamUp(), true]);
menuSoundArray.push(new upgradeHigh());
menuSoundArray.push(new switchMotor());
musicArray = new Array();
musicArray.push([new musicHero(), Number(0.8)]);
musicArray.push([new musicTrap(), Number(0.6)]);
musicArray.push([new musicTru(), Number(0.4)]);
musicArray.push([new musicHot(), Number(1)]);
clearSoundsTimer.addEventListener(TimerEvent.TIMER, clearSounds);
}
public function switchSound(_arg1:MouseEvent=null){
if (soundOn){
soundOn = false;
stopMusic();
} else {
soundOn = true;
playSound([13]);
};
}
public function stopBg(){
}
}
}//package shootG04ARMOR_fla
Section 64
//tenant_2 (shootG04ARMOR_fla.tenant_2)
package shootG04ARMOR_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class tenant_2 extends MovieClip {
public var heroHealPrices:Array;
public var currentStage:uint;
public var heroMaxLifePrices:Array;
public var battleType:uint;
public var heroMaxBerserkPrices:Array;
public var currentSong:uint;
public var heroBerserkHealPrices:Array;
public var minimumLevel:uint;
public var timed:int;
public var maximumLevel:uint;
public var minHardInc:uint;
public var minHard:uint;
public var so:SharedObject;
public var killCount:int;
public var heroBerserkHealArray:Array;
public var maxHard:uint;
public var heroHealArray:Array;
public var heroMaxBerserkArray:Array;
public var currentLevel:uint;
public var bossBattle:Boolean;
public var newGame:Boolean;
public var gameScore:uint;
public var heroMaxLifeArray:Array;
public var maxHardInc:uint;
public function tenant_2(){
addFrameScript(0, frame1);
}
public function resetVars(){
so.data.heroMaxLifeLevel = new uint(0);
so.data.heroHealLevel = new uint(0);
so.data.heroMaxBerserkLevel = new uint(0);
so.data.heroBerserkHealLevel = new uint(0);
so.data.heroCurrentShotPattern = new uint(1);
so.data.money = new int(0);
so.data.myWeapons = new Array(1, 1, 0, 0, 0, 0, 0);
so.data.levelCompleted = 0;
minHard = 0;
maxHard = 30;
minHardInc = 5;
maxHardInc = 20;
currentLevel = 1;
maximumLevel = 3;
minimumLevel = 0;
timed = 1000000;
killCount = 100;
bossBattle = false;
battleType = 0;
so.flush();
}
public function flushNow(){
so.flush();
}
public function seeIfNewGame(){
if (so.data.heroMaxLifeLevel == undefined){
newGame = true;
resetVars();
} else {
newGame = false;
};
}
function frame1(){
so = SharedObject.getLocal("gamereclaim");
newGame = false;
currentSong = 0;
minHard = 0;
maxHard = 30;
minHardInc = 5;
maxHardInc = 20;
maximumLevel = 3;
currentLevel = 1;
minimumLevel = 0;
currentStage = 0;
gameScore = 0;
timed = 1000000;
killCount = 100000;
bossBattle = false;
battleType = 0;
heroMaxLifeArray = new Array(500, 800, 1240, 1450, 3000);
heroMaxLifePrices = new Array(0, 10000, 20000, 50000);
heroHealArray = new Array(0.05, 0.1, 0.3, 1.2);
heroHealPrices = new Array(0, 10000, 30000, 70000);
heroMaxBerserkArray = new Array(500, 1000, 1250, 1500, 3000);
heroMaxBerserkPrices = new Array(0, 20000, 40000, 80000);
heroBerserkHealArray = new Array(2, 4, 7, 10);
heroBerserkHealPrices = new Array(0, 30000, 70000, 100000);
seeIfNewGame();
}
}
}//package shootG04ARMOR_fla
Section 65
//upgradeBar_22 (shootG04ARMOR_fla.upgradeBar_22)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class upgradeBar_22 extends MovieClip {
public function upgradeBar_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shootG04ARMOR_fla
Section 66
//weaponButton_24 (shootG04ARMOR_fla.weaponButton_24)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class weaponButton_24 extends MovieClip {
public var id:uint;
public var bButton:SimpleButton;
public var cButton:SimpleButton;
public function weaponButton_24(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
cButton.visible = true;
bButton.visible = false;
stop();
}
function frame1(){
id = 0;
}
function frame4(){
cButton.visible = false;
bButton.visible = true;
}
function frame2(){
stop();
cButton.visible = false;
bButton.visible = false;
}
}
}//package shootG04ARMOR_fla
Section 67
//weaponButton2_27 (shootG04ARMOR_fla.weaponButton2_27)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class weaponButton2_27 extends MovieClip {
public var id:uint;
public var bButton:SimpleButton;
public var cButton:SimpleButton;
public function weaponButton2_27(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
cButton.visible = true;
bButton.visible = false;
stop();
}
function frame1(){
id = 0;
}
function frame4(){
cButton.visible = false;
bButton.visible = true;
}
function frame2(){
stop();
cButton.visible = false;
bButton.visible = false;
}
}
}//package shootG04ARMOR_fla
Section 68
//weaponButton3_28 (shootG04ARMOR_fla.weaponButton3_28)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class weaponButton3_28 extends MovieClip {
public var id:uint;
public var bButton:SimpleButton;
public var cButton:SimpleButton;
public function weaponButton3_28(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
cButton.visible = true;
bButton.visible = false;
stop();
}
function frame1(){
id = 0;
}
function frame4(){
cButton.visible = false;
bButton.visible = true;
}
function frame2(){
stop();
cButton.visible = false;
bButton.visible = false;
}
}
}//package shootG04ARMOR_fla
Section 69
//weaponButton4_29 (shootG04ARMOR_fla.weaponButton4_29)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class weaponButton4_29 extends MovieClip {
public var id:uint;
public var bButton:SimpleButton;
public var cButton:SimpleButton;
public function weaponButton4_29(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
cButton.visible = true;
bButton.visible = false;
stop();
}
function frame1(){
id = 0;
}
function frame4(){
cButton.visible = false;
bButton.visible = true;
}
function frame2(){
stop();
cButton.visible = false;
bButton.visible = false;
}
}
}//package shootG04ARMOR_fla
Section 70
//weaponButton5_30 (shootG04ARMOR_fla.weaponButton5_30)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class weaponButton5_30 extends MovieClip {
public var id:uint;
public var bButton:SimpleButton;
public var cButton:SimpleButton;
public function weaponButton5_30(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
cButton.visible = true;
bButton.visible = false;
stop();
}
function frame1(){
id = 0;
}
function frame4(){
cButton.visible = false;
bButton.visible = true;
}
function frame2(){
stop();
cButton.visible = false;
bButton.visible = false;
}
}
}//package shootG04ARMOR_fla
Section 71
//weaponButton6_31 (shootG04ARMOR_fla.weaponButton6_31)
package shootG04ARMOR_fla {
import flash.display.*;
public dynamic class weaponButton6_31 extends MovieClip {
public var id:uint;
public var bButton:SimpleButton;
public var cButton:SimpleButton;
public function weaponButton6_31(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
cButton.visible = true;
bButton.visible = false;
stop();
}
function frame1(){
id = 0;
}
function frame4(){
cButton.visible = false;
bButton.visible = true;
}
function frame2(){
stop();
cButton.visible = false;
bButton.visible = false;
}
}
}//package shootG04ARMOR_fla
Section 72
//swingBot (swingBot.swingBot)
package swingBot {
import enemy.*;
public class swingBot extends enemy {
public function swingBot(){
this.myMoveMode = swingMove;
this.life = 30;
this.hardness = 20;
this.score = 35;
this.acc = 0.00015;
this.speed = (0.25 + (Math.random() * 0.05));
this.deg = (((Math.random() * Math.PI) * 2) - Math.PI);
this.sizeX = 22;
this.sizeY = 25;
this.speedX = 0;
this.speedY = 0;
moneyArray.push(uint(0));
moneyArray.push(uint(0));
this.animateMe = animate;
this.sheetX = 364;
this.sheetY = 80;
this.sheetWidth = 24;
this.sheetHeight = 30;
this.maxSheetOffset = 7;
this.animDelay = 50;
this.explosionType = 1;
}
}
}//package swingBot
Section 73
//beginDialog (beginDialog)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class beginDialog extends MovieClip {
public var beginButton:SimpleButton;
public function beginDialog(){
addFrameScript(0, frame1);
}
public function beginGame(_arg1:MouseEvent){
MovieClip(parent.parent).soundBox.playMusic(MovieClip(parent.parent).tenant.currentSong);
MovieClip(parent).unPauseGame();
MovieClip(parent).gameBegun = true;
MovieClip(parent).bDialog = null;
beginButton.removeEventListener(MouseEvent.MOUSE_OVER, beginGame);
MovieClip(parent).removeChild(this);
}
function frame1(){
beginButton.addEventListener(MouseEvent.MOUSE_OVER, beginGame, false, 0, true);
}
}
}//package
Section 74
//bloodScreen (bloodScreen)
package {
import flash.display.*;
public dynamic class bloodScreen extends MovieClip {
public function bloodScreen(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 75
//boom1 (boom1)
package {
import flash.media.*;
public dynamic class boom1 extends Sound {
}
}//package
Section 76
//boom2 (boom2)
package {
import flash.media.*;
public dynamic class boom2 extends Sound {
}
}//package
Section 77
//boom3 (boom3)
package {
import flash.media.*;
public dynamic class boom3 extends Sound {
}
}//package
Section 78
//boom4 (boom4)
package {
import flash.media.*;
public dynamic class boom4 extends Sound {
}
}//package
Section 79
//catBitmap (catBitmap)
package {
import flash.display.*;
public dynamic class catBitmap extends BitmapData {
public function catBitmap(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 80
//coin1 (coin1)
package {
import flash.media.*;
public dynamic class coin1 extends Sound {
}
}//package
Section 81
//coin2 (coin2)
package {
import flash.media.*;
public dynamic class coin2 extends Sound {
}
}//package
Section 82
//coin3 (coin3)
package {
import flash.media.*;
public dynamic class coin3 extends Sound {
}
}//package
Section 83
//coin4 (coin4)
package {
import flash.media.*;
public dynamic class coin4 extends Sound {
}
}//package
Section 84
//coin5 (coin5)
package {
import flash.media.*;
public dynamic class coin5 extends Sound {
}
}//package
Section 85
//Hero (Hero)
package {
import flash.display.*;
public dynamic class Hero extends Sprite {
}
}//package
Section 86
//heroHitEnemy (heroHitEnemy)
package {
import flash.media.*;
public dynamic class heroHitEnemy extends Sound {
}
}//package
Section 87
//heroHitEnemyBullet (heroHitEnemyBullet)
package {
import flash.media.*;
public dynamic class heroHitEnemyBullet extends Sound {
}
}//package
Section 88
//hit (hit)
package {
import flash.media.*;
public dynamic class hit extends Sound {
}
}//package
Section 89
//hud (hud)
package {
import flash.display.*;
import flash.text.*;
public dynamic class hud extends MovieClip {
public var moneyText:TextField;
public var healthBar:MovieClip;
public var buttonMute:SimpleButton;
public var berserkBar:MovieClip;
public var slomoBar:MovieClip;
public var scoreText:TextField;
}
}//package
Section 90
//laser1 (laser1)
package {
import flash.media.*;
public dynamic class laser1 extends Sound {
}
}//package
Section 91
//laser2 (laser2)
package {
import flash.media.*;
public dynamic class laser2 extends Sound {
}
}//package
Section 92
//lightScreen (lightScreen)
package {
import flash.display.*;
public dynamic class lightScreen extends MovieClip {
public function lightScreen(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 93
//MouseCursor (MouseCursor)
package {
import flash.display.*;
public dynamic class MouseCursor extends Sprite {
}
}//package
Section 94
//musicHero (musicHero)
package {
import flash.media.*;
public dynamic class musicHero extends Sound {
}
}//package
Section 95
//musicHot (musicHot)
package {
import flash.media.*;
public dynamic class musicHot extends Sound {
}
}//package
Section 96
//musicTrap (musicTrap)
package {
import flash.media.*;
public dynamic class musicTrap extends Sound {
}
}//package
Section 97
//musicTru (musicTru)
package {
import flash.media.*;
public dynamic class musicTru extends Sound {
}
}//package
Section 98
//slamUp (slamUp)
package {
import flash.media.*;
public dynamic class slamUp extends Sound {
}
}//package
Section 99
//soundPlayerShoot (soundPlayerShoot)
package {
import flash.media.*;
public dynamic class soundPlayerShoot extends Sound {
}
}//package
Section 100
//spawn1 (spawn1)
package {
import flash.media.*;
public dynamic class spawn1 extends Sound {
}
}//package
Section 101
//switchMotor (switchMotor)
package {
import flash.media.*;
public dynamic class switchMotor extends Sound {
}
}//package
Section 102
//Target (Target)
package {
import flash.display.*;
public dynamic class Target extends Sprite {
}
}//package
Section 103
//tHud (tHud)
package {
import flash.display.*;
import flash.text.*;
public dynamic class tHud extends MovieClip {
public var timedText:TextField;
public var bossHealthBarContainer:MovieClip;
public var killText:TextField;
public function tHud(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
bossHealthBarContainer.visible = false;
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 104
//upgradeHigh (upgradeHigh)
package {
import flash.media.*;
public dynamic class upgradeHigh extends Sound {
}
}//package