Section 1
//KeyPoll (bigroom.input.KeyPoll)
package bigroom.input {
import flash.utils.*;
import flash.events.*;
import flash.display.*;
public class KeyPoll {
private var states:ByteArray;
private var dispObj:DisplayObject;
public function KeyPoll(_arg1:DisplayObject){
states = new ByteArray();
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
dispObj = _arg1;
dispObj.addEventListener(KeyboardEvent.KEY_DOWN, keyDownListener, false, 0, true);
dispObj.addEventListener(KeyboardEvent.KEY_UP, keyUpListener, false, 0, true);
dispObj.addEventListener(Event.ACTIVATE, activateListener, false, 0, true);
dispObj.addEventListener(Event.DEACTIVATE, deactivateListener, false, 0, true);
}
public function isUp(_arg1:uint):Boolean{
return (((states[(_arg1 >>> 3)] & (1 << (_arg1 & 7))) == 0));
}
private function activateListener(_arg1:Event):void{
var _local2:int;
_local2 = 0;
while (_local2 < 8) {
states[_local2] = 0;
_local2++;
};
}
private function deactivateListener(_arg1:Event):void{
var _local2:int;
_local2 = 0;
while (_local2 < 8) {
states[_local2] = 0;
_local2++;
};
}
public function isDown(_arg1:uint):Boolean{
return (!(((states[(_arg1 >>> 3)] & (1 << (_arg1 & 7))) == 0)));
}
private function keyDownListener(_arg1:KeyboardEvent):void{
states[(_arg1.keyCode >>> 3)] = (states[(_arg1.keyCode >>> 3)] | (1 << (_arg1.keyCode & 7)));
}
private function keyUpListener(_arg1:KeyboardEvent):void{
states[(_arg1.keyCode >>> 3)] = (states[(_arg1.keyCode >>> 3)] & ~((1 << (_arg1.keyCode & 7))));
}
}
}//package bigroom.input
Section 2
//Boss_1 (enemies.Boss_1)
package enemies {
import flash.display.*;
public class Boss_1 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 7
private var DIST:int;// = 165
private var alive:Boolean;// = true
private var DMG:int;// = 15
private var PEAK:int;// = 15
private var HITS2:int;// = -15
public function Boss_1(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=2000, _arg4:Object=null):void{
alive = true;
MAX_VX = 7;
DMG = 15;
HITS2 = -15;
PEAK = 15;
DIST = 165;
super();
addFrameScript(0, frame1);
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
function frame1(){
stop();
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = (life / orgLife);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 3
//Boss_2 (enemies.Boss_2)
package enemies {
import flash.display.*;
public class Boss_2 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 13
private var DIST:int;// = 165
private var alive:Boolean;// = true
public var gyz:MovieClip;
private var DMG:int;// = 15
private var PEAK:int;// = 15
private var HITS2:int;// = -15
public function Boss_2(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=2000, _arg4:Object=null):void{
alive = true;
MAX_VX = 13;
DMG = 15;
HITS2 = -15;
PEAK = 15;
DIST = 165;
super();
addFrameScript(0, frame1, 4, frame5, 9, frame10);
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame5(){
stop();
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = (life / orgLife);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 4
//Boss_3 (enemies.Boss_3)
package enemies {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import hero.*;
import map.*;
import flash.geom.*;
public class Boss_3 extends MovieClip {
private var orgLife:int;// = 5000
public var hb:MovieClip;
private var inAction3:Boolean;// = false
private var hero:Zayo;
private var life:int;// = 5000
private var decisionNum:int;// = 1
private var timer:Timer;
private var mapM:MapManager;
public var e:MovieClip;
private var platform:MovieClip;
private var bomb:MovieClip;
private var bombSpeed:Number;// = 15
private var alive:Boolean;// = true
private var bombsArray:Array;
private var inAction1:Boolean;// = false
private var inAction2:Boolean;// = false
private var DMG:int;// = 20
public function Boss_3(_arg1:Zayo, _arg2:MapManager){
decisionNum = 1;
inAction1 = false;
inAction2 = false;
inAction3 = false;
bombsArray = [];
bombSpeed = 15;
DMG = 20;
life = 5000;
orgLife = 5000;
alive = true;
e = new MovieClip();
super();
addChild(e);
hero = _arg1;
mapM = _arg2;
platform = _arg2.mapClip.p;
x = 0;
timer = new Timer(500, 0);
timer.addEventListener(TimerEvent.TIMER, launchMissles, false, 0, true);
mapM.bombsHolder = mapM.enemiesHolder;
hero.enemies.push(this);
hb.visible = false;
}
public function enterFrameHandler():void{
if (alive){
update();
};
}
private function launchMissles(_arg1:TimerEvent){
if (!(hero.alive)){
return;
};
bomb = new Boss_bomb();
mapM.bombsHolder.addChild(bomb);
bomb.x = x;
bomb.y = y;
bomb.time = getTimer();
bomb.active = true;
bombsArray.push(bomb);
}
public function removeBomb(_arg1:MovieClip){
var _local2:int;
_local2 = 0;
while (_local2 < bombsArray.length) {
if (_arg1 == bombsArray[_local2]){
mapM.bombsHolder.removeChild(_arg1);
bombsArray.splice(_local2, 1);
};
_local2++;
};
}
public function die():void{
alive = false;
}
public function removeAllBombs(){
var _local1:*;
_local1 = 0;
while (_local1 < bombsArray.length) {
removeBomb(bombsArray[_local1]);
_local1++;
};
}
public function update(){
checkHeroAlive();
moveBoss();
if (bombsArray.length > 0){
moveBombs();
};
checkRockecCollisions();
if ((((hero.x > 5)) && (!(timer.running)))){
timer.start();
};
}
private function checkRockecCollisions(){
var _local1:int;
var _local2:MovieClip;
var _local3:Point;
_local1 = 0;
while (_local1 < bombsArray.length) {
_local2 = bombsArray[_local1];
_local3 = mapM.localToGlobal(new Point(_local2.x, _local2.y));
if (platform.hitTestPoint(_local3.x, _local3.y, true)){
if (_local2.currentFrame != 2){
_local2.gotoAndStop(2);
};
} else {
if (((_local2.hitTestObject(hero)) && (_local2.active))){
hero.takeDamage(DMG);
_local2.active = false;
if (_local2.currentFrame != 2){
_local2.gotoAndStop(2);
};
};
};
_local1++;
};
}
private function checkHeroAlive(){
if (x >= 4000){
hb.visible = true;
y++;
if (y >= 170){
y = 170;
};
} else {
hb.visible = false;
y--;
if (y <= 50){
y = 50;
};
};
if (!(hero.alive)){
timer.stop();
};
}
public function takeDamage(_arg1:int):Boolean{
if (x < 4000){
life = (life - 1);
} else {
life = (life - _arg1);
};
if (life < 0){
life = 0;
};
hb.hb.scaleX = (life / orgLife);
if (life <= 0){
return (true);
};
return (false);
}
private function moveBoss(){
x = (x + ((-(x) + hero.x) / 12));
}
private function moveBombs(_arg1=null){
var _local2:int;
var _local3:MovieClip;
_local2 = 0;
for (;_local2 < bombsArray.length;_local2++) {
_local3 = bombsArray[_local2];
if ((getTimer() - _local3.time) > 2000){
removeBomb(_local3);
continue;
} else {
if (_local3.x > (hero.x + 350)){
removeBomb(_local3);
continue;
};
};
if (_local3.currentFrame != 2){
_local3.y = (_local3.y + bombSpeed);
};
};
}
}
}//package enemies
Section 5
//EnemyWithLegs (enemies.EnemyWithLegs)
package enemies {
import flash.utils.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import bigroom.input.*;
public class EnemyWithLegs {
private var soundObj:Object;
private var sound:Sound;
private var MAX_VX:Number;// = 1.3
private var MAX_VY:Number;// = 25
private var DIST:Number;// = 85
private var GRAVITY:Number;// = 2
private var vx:Number;// = 3
private var vy:Number;// = 3
private var onGround:Boolean;// = true
private var DMG:Number;// = 5
private var key:KeyPoll;
private var INC_VX:Number;// = 0.2
private var PEAK:Number;// = 15
private var h:MovieClip;
private var targ:MovieClip;
private var l:MovieClip;
private var createTime:int;// = 0
private var HITS1:Number;// = 0
private var HITS2:Number;// = -17
private var JUMP_VY:Number;// = 25
private var p:MovieClip;
private var FRICTION:Number;// = 0.7
public function EnemyWithLegs(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:Object=null):void{
createTime = 0;
INC_VX = 0.2;
JUMP_VY = 25;
FRICTION = 0.7;
GRAVITY = 2;
MAX_VY = 25;
HITS1 = 0;
MAX_VX = 1.3;
DMG = 5;
HITS2 = -17;
PEAK = 15;
DIST = 85;
vx = 3;
vy = 3;
onGround = true;
super();
createTime = getTimer();
soundObj = _arg4;
this.h = _arg1;
this.p = _arg2;
targ = _arg3;
}
public function changeProperties(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
MAX_VX = _arg1;
DMG = _arg2;
HITS2 = _arg3;
PEAK = _arg4;
DIST = _arg5;
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
} else {
if (h.y > 1000){
h.y = targ.y;
if (targ.x < 600){
h.x = (targ.x + 675);
} else {
h.x = (targ.x - 675);
};
};
};
h.x = (h.x + vx);
if (!((h is Skin_7))){
h.y = (h.y + vy);
};
}
private function playFireSound():void{
var _local1:XML;
var _local2:Class;
var _local3:SoundChannel;
_local1 = describeType(h);
_local2 = (getDefinitionByName((("sounds." + _local1.@name.substr(-6, 6)) + "_fire")) as Class);
sound = (new (_local2) as Sound);
_local3 = sound.play();
_local3.soundTransform = new SoundTransform(soundObj.vol);
}
public function update():void{
if (!((h is Skin_7))){
checkBounds();
};
moveToHero();
applyMoves();
}
private function moveToHero():void{
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
return;
};
HITS1++;
if ((((h.currentLabel == "fire")) && ((HITS1 == PEAK)))){
if ((h.y - targ.y) < 50){
if ((h is Skin_11)){
doDamage(DMG, h);
} else {
doDamage(DMG);
};
};
if ((h is Skin_5)){
h.gotoAndStop("move");
};
if ((h is Skin_7)){
doDamage(DMG);
};
HITS1 = HITS2;
};
if (targ.x < h.x){
if ((h is Skin_7)){
};
h.scaleX = 1;
if (h != null){
if (h.hb != null){
h.hb.scaleX = Math.abs(h.hb.scaleX);
};
};
if (Math.abs((targ.x - h.x)) < DIST){
vx = 0;
if (((onGround) && (!((h.currentLabel == "fire"))))){
h.gotoAndStop("fire");
HITS1 = 0;
};
} else {
vx = (vx - ((vx)>-(MAX_VX)) ? INC_VX : 0);
if (((onGround) && (!((h.currentLabel == "move"))))){
h.gotoAndStop("move");
};
};
} else {
if (targ.x > h.x){
h.scaleX = -1;
if (h != null){
if (h.hb != null){
h.hb.scaleX = -(Math.abs(h.hb.scaleX));
};
};
if (Math.abs((targ.x - h.x)) < DIST){
vx = 0;
if (((onGround) && (!((h.currentLabel == "fire"))))){
h.gotoAndStop("fire");
HITS1 = 0;
};
} else {
vx = (vx + ((vx)<MAX_VX) ? INC_VX : 0);
if (((onGround) && (!((h.currentLabel == "move"))))){
h.gotoAndStop("move");
};
};
} else {
vx = (vx * FRICTION);
};
};
}
public function doDamage(_arg1:int, _arg2:MovieClip=null):void{
targ.takeDamage(_arg1, _arg2);
}
private function checkBounds():void{
var _local1:Point;
_local1 = h.parent.localToGlobal(new Point(h.x, (h.y + 20)));
while (p.hitTestPoint(_local1.x, _local1.y, true)) {
onGround = true;
h.y--;
_local1.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local1.x, (_local1.y + 1), true))){
onGround = false;
} else {
onGround = true;
};
}
}
}//package enemies
Section 6
//EnemyWithLegs2 (enemies.EnemyWithLegs2)
package enemies {
import flash.display.*;
public class EnemyWithLegs2 extends EnemyWithLegs {
public function EnemyWithLegs2(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:Object=null):void{
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package enemies
Section 7
//EnemyWithWings (enemies.EnemyWithWings)
package enemies {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import bigroom.input.*;
public class EnemyWithWings {
private var sound:Sound;
private var MAX_VX:Number;// = 1
private var MAX_VY:Number;// = 1
private var DIST:Number;// = 45
private var GRAVITY:Number;// = 2
private var vx:Number;// = 3
private var vy:Number;// = 3
private var onGround:Boolean;// = true
private var DMG:Number;// = 5
private var key:KeyPoll;
private var targ:MovieClip;
private var INC_VX:Number;// = 1
private var INC_VY:Number;// = 1
private var PEAK:Number;// = 15
private var h:MovieClip;
private var p:MovieClip;
private var HITS1:Number;// = 0
private var HITS2:Number;// = -10
private var JUMP_VY:Number;// = 25
private var soundObj:Object;
private var FRICTION:Number;// = 0.8
public function EnemyWithWings(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:Object=null):void{
INC_VX = 1;
INC_VY = 1;
JUMP_VY = 25;
FRICTION = 0.8;
GRAVITY = 2;
MAX_VX = 1;
MAX_VY = 1;
HITS1 = 0;
HITS2 = -10;
PEAK = 15;
DMG = 5;
DIST = 45;
vx = 3;
vy = 3;
onGround = true;
super();
soundObj = _arg4;
this.h = _arg1;
this.p = _arg2;
targ = _arg3;
}
public function changeProperties(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int):void{
MAX_VX = _arg1;
MAX_VY = _arg2;
DMG = _arg3;
HITS2 = _arg4;
PEAK = _arg5;
DIST = _arg6;
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
private function playFireSound():void{
var _local1:XML;
var _local2:Class;
var _local3:SoundChannel;
_local1 = describeType(h);
_local2 = (getDefinitionByName((("sounds." + _local1.@name.substr(-6, 6)) + "_fire")) as Class);
sound = (new (_local2) as Sound);
_local3 = sound.play();
_local3.soundTransform = new SoundTransform(soundObj.vol);
}
public function update():void{
moveToHero();
applyMoves();
}
private function moveToHero():void{
if (targ.x < h.x){
h.scaleX = 1;
h.hb.scaleX = Math.abs(h.hb.scaleX);
if ((((Math.abs((targ.x - h.x)) < DIST)) && ((Math.abs((targ.y - h.y)) < 150)))){
vx = 0;
if (((onGround) && (!((h.currentLabel == "fire"))))){
h.gotoAndStop("fire");
HITS1 = 0;
};
} else {
vx = (vx - ((vx)>-(MAX_VX)) ? INC_VX : 0);
if (((onGround) && (!((h.currentLabel == "move"))))){
h.gotoAndStop("move");
};
};
} else {
if (targ.x > h.x){
h.scaleX = -1;
h.hb.scaleX = -(Math.abs(h.hb.scaleX));
if ((((Math.abs((targ.x - h.x)) < DIST)) && ((Math.abs((targ.y - h.y)) < 150)))){
vx = 0;
if (((onGround) && (!((h.currentLabel == "fire"))))){
h.gotoAndStop("fire");
HITS1 = 0;
};
} else {
vx = (vx + ((vx)<MAX_VX) ? INC_VX : 0);
if (((onGround) && (!((h.currentLabel == "move"))))){
h.gotoAndStop("move");
};
};
} else {
vx = (vx * FRICTION);
};
};
if (targ.y < (h.y + DIST)){
if (Math.abs(((targ.y - h.y) + DIST)) < 1){
vy = 0;
} else {
vy = (vy - ((vy)>-(MAX_VY)) ? INC_VY : 0);
};
} else {
if (targ.y > (h.y + DIST)){
if (Math.abs(((targ.y - h.y) + DIST)) < 1){
vy = 0;
} else {
vy = (vy + ((vy)<MAX_VY) ? INC_VY : 0);
};
};
};
HITS1++;
if ((((h.currentLabel == "fire")) && ((HITS1 == PEAK)))){
if ((h.y - targ.y) < 50){
doDamage(DMG);
};
HITS1 = HITS2;
};
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
}
public function doDamage(_arg1:int):void{
targ.takeDamage(_arg1);
}
}
}//package enemies
Section 8
//Skin_1 (enemies.Skin_1)
package enemies {
import flash.display.*;
public class Skin_1 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 9
private var DIST:int;// = 55
private var alive:Boolean;// = true
private var DMG:int;// = 7
private var PEAK:int;// = 8
private var HITS2:int;// = -7
public function Skin_1(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 9;
DMG = 7;
HITS2 = -7;
PEAK = 8;
DIST = 55;
super();
addFrameScript(4, frame5);
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
function frame5(){
stop();
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 9
//Skin_10 (enemies.Skin_10)
package enemies {
import flash.display.*;
public class Skin_10 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 9
private var DIST:int;// = 45
private var alive:Boolean;// = true
private var MAX_VY:int;// = 5
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_10(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 9;
MAX_VY = 5;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 45;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithWings(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, MAX_VY, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 10
//Skin_11 (enemies.Skin_11)
package enemies {
import flash.display.*;
public class Skin_11 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 9
private var DIST:int;// = 55
private var alive:Boolean;// = true
private var DMG:int;// = 7
private var PEAK:int;// = 8
private var HITS2:int;// = -17
public function Skin_11(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 9;
DMG = 7;
HITS2 = -17;
PEAK = 8;
DIST = 55;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
if (hb != null){
if (hb.hb != null){
hb.hb.scaleX = ((life / orgLife) / 2);
};
};
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 11
//Skin_2 (enemies.Skin_2)
package enemies {
import flash.display.*;
public class Skin_2 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 11
private var DIST:int;// = 45
private var alive:Boolean;// = true
private var DMG:int;// = 4
private var PEAK:int;// = 8
private var HITS2:int;// = -6
public function Skin_2(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=60, _arg4:Object=null):void{
alive = true;
MAX_VX = 11;
DMG = 4;
HITS2 = -6;
PEAK = 8;
DIST = 45;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 12
//Skin_3 (enemies.Skin_3)
package enemies {
import flash.display.*;
public class Skin_3 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 9
private var DIST:int;// = 45
private var alive:Boolean;// = true
private var MAX_VY:int;// = 5
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_3(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 9;
MAX_VY = 5;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 45;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithWings(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, MAX_VY, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 13
//Skin_4 (enemies.Skin_4)
package enemies {
import flash.display.*;
public class Skin_4 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 11
private var DIST:int;// = 45
private var alive:Boolean;// = true
private var MAX_VY:int;// = 4
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_4(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 11;
MAX_VY = 4;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 45;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithWings(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, MAX_VY, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 14
//Skin_5 (enemies.Skin_5)
package enemies {
import flash.display.*;
public class Skin_5 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 5
private var DIST:int;// = 185
private var alive:Boolean;// = true
private var DMG:int;// = 10
private var PEAK:int;// = 19
private var HITS2:int;// = -6
public function Skin_5(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 5;
DMG = 10;
HITS2 = -6;
PEAK = 19;
DIST = 185;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs2(this, _arg1, _arg2);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 15
//Skin_6 (enemies.Skin_6)
package enemies {
import flash.display.*;
public class Skin_6 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 5
private var DIST:int;// = 85
private var alive:Boolean;// = true
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_6(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 5;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 85;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 16
//Skin_7 (enemies.Skin_7)
package enemies {
import flash.utils.*;
import flash.display.*;
public class Skin_7 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var startTime:Number;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 2
private var DIST:int;// = 150
private var alive:Boolean;// = true
private var DMG:int;// = 20
private var PEAK:int;// = 4
private var HITS2:int;// = -31
public function Skin_7(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 2;
DMG = 20;
HITS2 = -31;
PEAK = 4;
DIST = 150;
super();
addFrameScript(0, frame1);
soundObj = _arg4;
this.life = 800;
orgLife = 800;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
startTime = getTimer();
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
function frame1(){
stop();
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = (life / orgLife);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 17
//Skin_8 (enemies.Skin_8)
package enemies {
import flash.display.*;
public class Skin_8 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 9
private var DIST:int;// = 45
private var alive:Boolean;// = true
private var MAX_VY:int;// = 5
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_8(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 9;
MAX_VY = 5;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 45;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithWings(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, MAX_VY, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 18
//Skin_9 (enemies.Skin_9)
package enemies {
import flash.display.*;
public class Skin_9 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 9
private var DIST:int;// = 45
private var alive:Boolean;// = true
private var MAX_VY:int;// = 5
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_9(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 9;
MAX_VY = 5;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 45;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithWings(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, MAX_VY, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 19
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 20
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!(arguments.length)){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!(isNaN(_arg2))){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!(this.useSeconds)){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 21
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 22
//AkaW (hero.AkaW)
package hero {
import flash.display.*;
public dynamic class AkaW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function AkaW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 23
//AkaW_g (hero.AkaW_g)
package hero {
import flash.display.*;
public dynamic class AkaW_g extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function AkaW_g(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 24
//BatW (hero.BatW)
package hero {
import flash.display.*;
public dynamic class BatW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function BatW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 25
//BatW_g (hero.BatW_g)
package hero {
import flash.display.*;
public dynamic class BatW_g extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function BatW_g(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 26
//ChaingunW (hero.ChaingunW)
package hero {
import flash.display.*;
public dynamic class ChaingunW extends MovieClip {
public var easel:MovieClip;
public var chainGun:MovieClip;
}
}//package hero
Section 27
//Data (hero.Data)
package hero {
public class Data {
private var wave1:Array;
private var wave2:Array;
private var wave3:Array;
private var wave4:Array;
private var wave5:Array;
private var level1:Array;
private var level2:Array;
private var level3:Array;
private var level4:Array;
private var level5:Array;
private var items3:Array;
private var items5:Array;
private var items1:Array;
private var items2:Array;
private var items4:Array;
public function Data():void{
level1 = new Array();
level2 = new Array();
level3 = new Array();
level4 = new Array();
level5 = new Array();
wave1 = new Array();
wave2 = new Array();
wave3 = new Array();
wave4 = new Array();
wave5 = new Array();
items1 = new Array();
items2 = new Array();
items3 = new Array();
items4 = new Array();
items5 = new Array();
super();
level1 = [{x:2500, type:"endLevel"}, {x:1200, x2:550, y2:400, skin:"Skin_7", life:350, type:"spawn"}, {x:100, x2:32, y2:-10, skin:"Skin_3", life:120, type:"spawn"}, {x:300, x2:403, y2:-10, skin:"Skin_3", life:120, type:"spawn"}, {x:500, x2:132, y2:-40, skin:"Skin_3", life:120, type:"spawn"}, {x:700, x2:879, y2:100, skin:"Skin_3", life:120, type:"spawn"}, {x:900, x2:79, y2:-10, skin:"Skin_3", life:120, type:"spawn"}, {x:1100, x2:-139, y2:250, skin:"Skin_3", life:120, type:"spawn"}, {x:1300, x2:780, y2:150, skin:"Skin_3", life:120, type:"spawn"}, {x:1400, x2:29, y2:-10, skin:"Skin_3", life:120, type:"spawn"}, {x:1420, x2:-9, y2:180, skin:"Skin_3", life:120, type:"spawn"}, {x:1500, x2:179, y2:50, skin:"Skin_3", life:120, type:"spawn"}, {x:1600, x2:-9, y2:90, skin:"Skin_3", life:120, type:"spawn"}, {x:1640, x2:679, y2:10, skin:"Skin_3", life:120, type:"spawn"}, {x:1700, x2:-9, y2:60, skin:"Skin_3", life:120, type:"spawn"}, {x:2200, x2:420, y2:-10, skin:"Skin_3", life:120, type:"spawn"}, {x:100, x2:-30, y2:80, skin:"Skin_4", life:120, type:"spawn"}, {x:320, x2:680, y2:-10, skin:"Skin_4", life:120, type:"spawn"}, {x:600, x2:-132, y2:100, skin:"Skin_4", life:120, type:"spawn"}, {x:620, x2:430, y2:-20, skin:"Skin_4", life:120, type:"spawn"}, {x:750, x2:-332, y2:150, skin:"Skin_4", life:120, type:"spawn"}, {x:820, x2:-43, y2:200, skin:"Skin_4", life:120, type:"spawn"}, {x:950, x2:20, y2:-40, skin:"Skin_4", life:120, type:"spawn"}, {x:1200, x2:843, y2:-10, skin:"Skin_4", life:120, type:"spawn"}, {x:1350, x2:-102, y2:220, skin:"Skin_4", life:120, type:"spawn"}, {x:1500, x2:-43, y2:120, skin:"Skin_4", life:120, type:"spawn"}, {x:1650, x2:632, y2:-30, skin:"Skin_4", life:120, type:"spawn"}, {x:1700, x2:-143, y2:80, skin:"Skin_4", life:120, type:"spawn"}, {x:1850, x2:32, y2:-10, skin:"Skin_4", life:120, type:"spawn"}, {x:2000, x2:279, y2:-10, skin:"Skin_4", life:120, type:"spawn"}];
level2 = [{x:4470, type:"endLevel"}, {x:0, x2:169, y2:294, skin:"Skin_2", life:60, type:"spawn"}, {x:0, x2:447, y2:267, skin:"Skin_5", life:130, type:"spawn"}, {x:0, x2:577, y2:65, skin:"Skin_4", life:30, type:"spawn"}, {x:0, x2:677, y2:105, skin:"Skin_4", life:30, type:"spawn"}, {x:609, x2:1012, y2:107, skin:"Skin_4", life:30, type:"spawn"}, {x:662, x2:1037, y2:308, skin:"Skin_5", life:130, type:"spawn"}, {x:892, x2:1221, y2:310, skin:"Skin_1", life:100, type:"spawn"}, {x:896, x2:1263, y2:318, skin:"Skin_1", life:100, type:"spawn"}, {x:1436, x2:1946, y2:371, skin:"Skin_5", life:130, type:"spawn"}, {x:1635, x2:2052, y2:360, skin:"Skin_2", life:60, type:"spawn"}, {x:2172, x2:2580, y2:108, skin:"Skin_4", life:30, type:"spawn"}, {x:2143, x2:2659, y2:175, skin:"Skin_4", life:30, type:"spawn"}, {x:2123, x2:2738, y2:192, skin:"Skin_4", life:30, type:"spawn"}, {x:2724, x2:3478, y2:0x0200, skin:"Skin_2", life:60, type:"spawn"}, {x:2817, x2:3600, y2:506, skin:"Skin_5", life:130, type:"spawn"}, {x:2785, x2:3694, y2:510, skin:"Skin_2", life:60, type:"spawn"}, {x:3234, x2:3744, y2:244, skin:"Skin_4", life:30, type:"spawn"}, {x:3193, x2:3880, y2:483, skin:"Skin_5", life:130, type:"spawn"}, {x:3208, x2:4175, y2:198, skin:"Skin_4", life:30, type:"spawn"}, {x:3208, x2:4275, y2:178, skin:"Skin_4", life:30, type:"spawn"}, {x:3208, x2:4375, y2:208, skin:"Skin_4", life:30, type:"spawn"}, {x:3679, x2:4206, y2:399, skin:"Skin_5", life:130, type:"spawn"}];
level3 = [{x:15700, type:"endLevel"}, {x:-301, x2:800, y2:215, skin:"Skin_8", life:100, type:"spawn"}, {x:-194, x2:800, y2:224, skin:"Skin_8", life:100, type:"spawn"}, {x:986, x2:800, y2:282, skin:"Skin_8", life:100, type:"spawn"}, {x:0x0404, x2:800, y2:174, skin:"Skin_8", life:100, type:"spawn"}, {x:1047, x2:800, y2:236, skin:"Skin_8", life:100, type:"spawn"}, {x:1070, x2:800, y2:140, skin:"Skin_8", life:100, type:"spawn"}, {x:1189, x2:800, y2:184, skin:"Skin_8", life:100, type:"spawn"}, {x:1216, x2:800, y2:269, skin:"Skin_8", life:100, type:"spawn"}, {x:1862, x2:800, y2:297, skin:"Skin_8", life:100, type:"spawn"}, {x:1872, x2:800, y2:195, skin:"Skin_8", life:100, type:"spawn"}, {x:3226, x2:800, y2:193, skin:"Skin_8", life:100, type:"spawn"}, {x:3323, x2:800, y2:209, skin:"Skin_8", life:100, type:"spawn"}, {x:3361, x2:800, y2:287, skin:"Skin_8", life:100, type:"spawn"}, {x:3984, x2:800, y2:173, skin:"Skin_8", life:100, type:"spawn"}, {x:4000, x2:800, y2:127, skin:"Skin_8", life:100, type:"spawn"}, {x:4060, x2:800, y2:242, skin:"Skin_8", life:100, type:"spawn"}, {x:4086, x2:800, y2:91, skin:"Skin_8", life:100, type:"spawn"}, {x:4105, x2:800, y2:241, skin:"Skin_8", life:100, type:"spawn"}, {x:4128, x2:800, y2:293, skin:"Skin_8", life:100, type:"spawn"}, {x:4133, x2:800, y2:328, skin:"Skin_8", life:100, type:"spawn"}, {x:4152, x2:800, y2:141, skin:"Skin_8", life:100, type:"spawn"}, {x:4716, x2:800, y2:223, skin:"Skin_8", life:100, type:"spawn"}, {x:4996, x2:800, y2:170, skin:"Skin_8", life:100, type:"spawn"}, {x:5066, x2:800, y2:86, skin:"Skin_8", life:100, type:"spawn"}, {x:5114, x2:800, y2:312, skin:"Skin_8", life:100, type:"spawn"}, {x:5163, x2:800, y2:164, skin:"Skin_8", life:100, type:"spawn"}, {x:5267, x2:800, y2:56, skin:"Skin_8", life:100, type:"spawn"}, {x:5286, x2:800, y2:199, skin:"Skin_8", life:100, type:"spawn"}, {x:5295, x2:800, y2:346, skin:"Skin_8", life:100, type:"spawn"}, {x:5331, x2:800, y2:212, skin:"Skin_8", life:100, type:"spawn"}, {x:5613, x2:800, y2:99, skin:"Skin_8", life:100, type:"spawn"}, {x:5664, x2:800, y2:149, skin:"Skin_8", life:100, type:"spawn"}, {x:5725, x2:800, y2:263, skin:"Skin_8", life:100, type:"spawn"}, {x:5762, x2:800, y2:70, skin:"Skin_8", life:100, type:"spawn"}, {x:5786, x2:800, y2:137, skin:"Skin_8", life:100, type:"spawn"}, {x:6685, x2:800, y2:103, skin:"Skin_8", life:100, type:"spawn"}, {x:6752, x2:800, y2:270, skin:"Skin_8", life:100, type:"spawn"}, {x:6798, x2:800, y2:378, skin:"Skin_8", life:100, type:"spawn"}, {x:7340, x2:800, y2:271, skin:"Skin_8", life:100, type:"spawn"}, {x:7410, x2:800, y2:133, skin:"Skin_8", life:100, type:"spawn"}, {x:7458, x2:800, y2:319, skin:"Skin_8", life:100, type:"spawn"}, {x:7529, x2:800, y2:230, skin:"Skin_8", life:100, type:"spawn"}, {x:7592, x2:800, y2:171, skin:"Skin_8", life:100, type:"spawn"}, {x:7662, x2:800, y2:287, skin:"Skin_8", life:100, type:"spawn"}, {x:7666, x2:800, y2:344, skin:"Skin_8", life:100, type:"spawn"}, {x:8050, x2:800, y2:78, skin:"Skin_8", life:100, type:"spawn"}, {x:8130, x2:800, y2:108, skin:"Skin_8", life:100, type:"spawn"}, {x:8150, x2:800, y2:245, skin:"Skin_8", life:100, type:"spawn"}, {x:8272, x2:800, y2:264, skin:"Skin_8", life:100, type:"spawn"}, {x:9514, x2:800, y2:340, skin:"Skin_8", life:100, type:"spawn"}, {x:9527, x2:800, y2:237, skin:"Skin_8", life:100, type:"spawn"}, {x:9540, x2:800, y2:181, skin:"Skin_8", life:100, type:"spawn"}, {x:9640, x2:800, y2:383, skin:"Skin_8", life:100, type:"spawn"}, {x:9647, x2:800, y2:127, skin:"Skin_8", life:100, type:"spawn"}, {x:9694, x2:800, y2:291, skin:"Skin_8", life:100, type:"spawn"}, {x:9720, x2:800, y2:195, skin:"Skin_8", life:100, type:"spawn"}, {x:9825, x2:800, y2:156, skin:"Skin_8", life:100, type:"spawn"}, {x:9922, x2:800, y2:188, skin:"Skin_8", life:100, type:"spawn"}, {x:10314, x2:800, y2:101, skin:"Skin_8", life:100, type:"spawn"}, {x:10339, x2:800, y2:140, skin:"Skin_8", life:100, type:"spawn"}, {x:10352, x2:800, y2:192, skin:"Skin_8", life:100, type:"spawn"}, {x:11173, x2:800, y2:141, skin:"Skin_8", life:100, type:"spawn"}, {x:11220, x2:800, y2:142, skin:"Skin_8", life:100, type:"spawn"}, {x:11254, x2:800, y2:186, skin:"Skin_8", life:100, type:"spawn"}, {x:11272, x2:800, y2:135, skin:"Skin_8", life:100, type:"spawn"}, {x:11343, x2:800, y2:178, skin:"Skin_8", life:100, type:"spawn"}, {x:11374, x2:800, y2:132, skin:"Skin_8", life:100, type:"spawn"}, {x:11463, x2:800, y2:185, skin:"Skin_8", life:100, type:"spawn"}, {x:11788, x2:800, y2:67, skin:"Skin_8", life:100, type:"spawn"}, {x:11853, x2:800, y2:178, skin:"Skin_8", life:100, type:"spawn"}, {x:11860, x2:800, y2:63, skin:"Skin_8", life:100, type:"spawn"}, {x:11920, x2:800, y2:181, skin:"Skin_8", life:100, type:"spawn"}, {x:11963, x2:800, y2:184, skin:"Skin_8", life:100, type:"spawn"}, {x:11991, x2:800, y2:60, skin:"Skin_8", life:100, type:"spawn"}, {x:12067, x2:800, y2:178, skin:"Skin_8", life:100, type:"spawn"}, {x:12151, x2:800, y2:64, skin:"Skin_8", life:100, type:"spawn"}, {x:13529, x2:800, y2:64, skin:"Skin_8", life:100, type:"spawn"}, {x:13586, x2:800, y2:68, skin:"Skin_8", life:100, type:"spawn"}, {x:13645, x2:800, y2:132, skin:"Skin_8", life:100, type:"spawn"}, {x:13710, x2:800, y2:129, skin:"Skin_8", life:100, type:"spawn"}, {x:13715, x2:800, y2:67, skin:"Skin_8", life:100, type:"spawn"}, {x:13769, x2:800, y2:127, skin:"Skin_8", life:100, type:"spawn"}, {x:13791, x2:800, y2:63, skin:"Skin_8", life:100, type:"spawn"}, {x:13827, x2:800, y2:127, skin:"Skin_8", life:100, type:"spawn"}, {x:13898, x2:800, y2:67, skin:"Skin_8", life:100, type:"spawn"}, {x:13914, x2:800, y2:125, skin:"Skin_8", life:100, type:"spawn"}, {x:14588, x2:800, y2:43, skin:"Skin_8", life:100, type:"spawn"}, {x:14655, x2:800, y2:45, skin:"Skin_8", life:100, type:"spawn"}, {x:14680, x2:800, y2:105, skin:"Skin_8", life:100, type:"spawn"}, {x:-392, x2:800, y2:151, skin:"Skin_9", life:100, type:"spawn"}, {x:-347, x2:800, y2:172, skin:"Skin_9", life:100, type:"spawn"}, {x:-212, x2:800, y2:181, skin:"Skin_9", life:100, type:"spawn"}, {x:-143, x2:800, y2:191, skin:"Skin_9", life:100, type:"spawn"}, {x:7, x2:800, y2:194, skin:"Skin_9", life:100, type:"spawn"}, {x:2331, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:2531, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:2731, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:2931, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:3131, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:3331, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:3531, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:3781, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:3981, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:4181, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:4431, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:4631, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:4831, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:5031, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:5231, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:5481, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:5681, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:5881, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:8581, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:8781, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:8981, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:9381, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:9781, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:9981, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:10181, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:10331, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:10481, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:10631, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:10881, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:11031, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:11181, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:11331, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:11631, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:11731, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:12031, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:12181, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:12381, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:12481, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:12631, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:13781, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:13981, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:14181, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:14431, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:14581, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:14781, x2:800, y2:155, skin:"Skin_9", life:100, type:"spawn"}, {x:-311, x2:800, y2:203, skin:"Skin_10", life:100, type:"spawn"}, {x:-111, x2:800, y2:203, skin:"Skin_10", life:100, type:"spawn"}, {x:289, x2:800, y2:203, skin:"Skin_10", life:100, type:"spawn"}, {x:389, x2:800, y2:203, skin:"Skin_10", life:100, type:"spawn"}, {x:589, x2:800, y2:202, skin:"Skin_10", life:100, type:"spawn"}, {x:868, x2:800, y2:227, skin:"Skin_10", life:100, type:"spawn"}, {x:2653, x2:800, y2:296, skin:"Skin_10", life:100, type:"spawn"}, {x:2820, x2:800, y2:308, skin:"Skin_10", life:100, type:"spawn"}, {x:2978, x2:800, y2:311, skin:"Skin_10", life:100, type:"spawn"}, {x:3207, x2:800, y2:331, skin:"Skin_10", life:100, type:"spawn"}, {x:3387, x2:800, y2:352, skin:"Skin_10", life:100, type:"spawn"}, {x:3546, x2:800, y2:359, skin:"Skin_10", life:100, type:"spawn"}, {x:3705, x2:800, y2:357, skin:"Skin_10", life:100, type:"spawn"}, {x:4154, x2:800, y2:341, skin:"Skin_10", life:100, type:"spawn"}, {x:4304, x2:800, y2:341, skin:"Skin_10", life:100, type:"spawn"}, {x:4513, x2:800, y2:344, skin:"Skin_10", life:100, type:"spawn"}, {x:4654, x2:800, y2:340, skin:"Skin_10", life:100, type:"spawn"}, {x:4904, x2:800, y2:340, skin:"Skin_10", life:100, type:"spawn"}, {x:6333, x2:800, y2:351, skin:"Skin_10", life:100, type:"spawn"}, {x:6530, x2:800, y2:348, skin:"Skin_10", life:100, type:"spawn"}, {x:6699, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:6899, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:7049, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:7205, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:9234, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:9384, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:9634, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:9784, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:0x2700, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:10135, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:10435, x2:800, y2:355, skin:"Skin_10", life:100, type:"spawn"}, {x:12220, x2:800, y2:349, skin:"Skin_10", life:100, type:"spawn"}, {x:12480, x2:800, y2:351, skin:"Skin_10", life:100, type:"spawn"}, {x:12632, x2:800, y2:351, skin:"Skin_10", life:100, type:"spawn"}, {x:12832, x2:800, y2:351, skin:"Skin_10", life:100, type:"spawn"}, {x:12982, x2:800, y2:351, skin:"Skin_10", life:100, type:"spawn"}, {x:13182, x2:800, y2:351, skin:"Skin_10", life:100, type:"spawn"}, {x:13315, x2:800, y2:334, skin:"Skin_10", life:100, type:"spawn"}, {x:13515, x2:800, y2:334, skin:"Skin_10", life:100, type:"spawn"}, {x:13721, x2:800, y2:332, skin:"Skin_10", life:100, type:"spawn"}, {x:13926, x2:800, y2:331, skin:"Skin_10", life:100, type:"spawn"}, {x:14126, x2:800, y2:329, skin:"Skin_10", life:100, type:"spawn"}, {x:14276, x2:800, y2:327, skin:"Skin_10", life:100, type:"spawn"}, {x:14476, x2:800, y2:327, skin:"Skin_10", life:100, type:"spawn"}, {x:14626, x2:800, y2:327, skin:"Skin_10", life:100, type:"spawn"}, {x:-310, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:40, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:390, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:740, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:1090, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:1390, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:4390, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:4690, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:5090, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:5790, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:6090, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:6390, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:6990, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:7340, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:7690, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:7990, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:8290, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:8590, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:11590, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:11890, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:12240, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:12540, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:12790, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:13090, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:13340, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:13640, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:13890, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:14190, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:14440, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}, {x:14740, x2:800, y2:264, skin:"Skin_11", life:100, type:"spawn"}];
level4 = [{x:3500, type:"endLevel"}];
level5 = [{x:6260, type:"endLevel"}];
items1 = [];
items2 = [{x:405, y:0, type:"UziAmmo"}, {x:1168, y:0, type:"ShotAmmo"}, {x:1220, x2:777, y:265, type:"HealthItem"}];
items3 = [{x:402, y:290, type:"HealthItem"}, {x:1192, y:273, type:"HealthItem"}, {x:1837, y:273, type:"HealthItem"}, {x:486, y:290, type:"ShotAmmo"}, {x:286, y:290, type:"ShotAmmo"}, {x:1154, y:273, type:"ShotAmmo"}, {x:2000, y:273, type:"ShotAmmo"}, {x:1900, y:273, type:"ShotAmmo"}];
items4 = [];
items5 = [{x:613, y:295, type:"AkaAmmo"}, {x:2526, y:295, type:"HealthItem"}, {x:3203, y:294, type:"AkaAmmo"}, {x:5852, y:295, type:"HealthItem"}];
}
public function getItems(_arg1:int):Array{
return (this[("items" + _arg1)]);
}
public function getData(_arg1:int):Array{
return (this[("level" + _arg1)]);
}
public function getWave(_arg1:int):Array{
return (this[("wave" + _arg1)]);
}
}
}//package hero
Section 28
//HummerW (hero.HummerW)
package hero {
import flash.display.*;
public dynamic class HummerW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function HummerW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 29
//MoveItems (hero.MoveItems)
package hero {
import flash.display.*;
import flash.geom.*;
import bigroom.input.*;
public class MoveItems {
private var vy:Number;// = 3
private var onGround:Boolean;// = true
private var GRAVITY:Number;// = 2
private var p:MovieClip;
private var itemsArray:Array;
private var MAX_VY:Number;// = 25
private var key:KeyPoll;
public function MoveItems(_arg1:Array, _arg2:MovieClip):void{
GRAVITY = 2;
MAX_VY = 25;
vy = 3;
onGround = true;
super();
itemsArray = _arg1;
p = _arg2;
}
private function checkInput():void{
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
}
public function update():void{
if (!((Global.vars.currentLevel == 1))){
checkBounds();
};
checkInput();
applyMoves();
}
private function applyMoves():void{
var _local1:int;
var _local2:MovieClip;
_local1 = 0;
while (_local1 < itemsArray.length) {
_local2 = itemsArray[_local1];
_local2.y = (_local2.y + vy);
_local1++;
};
}
private function checkBounds():void{
var _local1:int;
var _local2:MovieClip;
var _local3:Point;
_local1 = 0;
while (_local1 < itemsArray.length) {
_local2 = itemsArray[_local1];
_local3 = _local2.parent.localToGlobal(new Point(_local2.x, (_local2.y + 20)));
while (p.hitTestPoint(_local3.x, _local3.y, true)) {
onGround = true;
_local2.y--;
_local3.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local3.x, (_local3.y + 1), true))){
onGround = false;
} else {
onGround = true;
};
_local1++;
};
}
}
}//package hero
Section 30
//MoveUpDown (hero.MoveUpDown)
package hero {
import bigroom.input.*;
import flash.display.*;
import flash.geom.*;
public class MoveUpDown {
private var notJumped:Boolean;// = true
private var vx:Number;// = 3
private var counter:Number;// = 0
private var FRICTION:Number;// = 0.6
private var vy:Number;// = 0
private var MAX_COUNT:Number;// = 7
private var falling:Boolean;// = false
private var startCounter:Number;// = 0
private var onGround:Boolean;// = true
private var MAX_VX:Number;// = 20
private var MAX_VY:Number;// = 25
private var key:KeyPoll;
private var INC_VX:Number;// = 20
private var h:Zayo;
private var l:MovieClip;
private var GRAVITY:Number;// = 2
private var p:MovieClip;
private var JUMP_VY:Number;// = 25
private var _useMouseToTurn:Boolean;// = true
public function MoveUpDown(_arg1:Zayo, _arg2:MovieClip):void{
INC_VX = 20;
JUMP_VY = 25;
FRICTION = 0.6;
GRAVITY = 2;
MAX_VX = 20;
MAX_VY = 25;
counter = 0;
MAX_COUNT = 7;
notJumped = true;
startCounter = 0;
vx = 3;
vy = 0;
onGround = true;
_useMouseToTurn = true;
falling = false;
super();
h = _arg1;
l = Zayo(h).getClip();
p = _arg2;
key = new KeyPoll(h.stage);
}
private function climb():void{
if (falling){
return;
};
if (key.isDown(87)){
h.y = (h.y - 5);
if (l.currentLabel != "up"){
l.gotoAndStop("up");
};
} else {
if (key.isDown(83)){
h.y = (h.y + 5);
if (l.currentLabel != "down"){
l.gotoAndStop("down");
};
} else {
if (l.currentLabel != "climb_stay"){
l.gotoAndStop("climb_stay");
};
};
};
}
public function update():void{
startCounter++;
if (startCounter > 10){
checkBounds();
checkInput();
applyMoves();
climb();
};
}
private function checkBounds():void{
var _local1:Point;
if (falling){
_local1 = h.parent.localToGlobal(new Point(h.x, (h.y + 20)));
while (p.hitTestPoint(_local1.x, _local1.y, true)) {
onGround = true;
h.y--;
_local1.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local1.x, (_local1.y + 1), true))){
onGround = false;
} else {
onGround = true;
h.dropTheZayo();
h.resetPersistOperations();
};
};
}
private function checkInput():void{
if (((key.isDown(65)) && ((counter < MAX_COUNT)))){
falling = true;
if (((!((l.currentLabel == "move"))) && (!(notJumped)))){
l.gotoAndStop("move");
};
vx = (vx - ((vx)>-(MAX_VX)) ? INC_VX : 0);
} else {
if (((key.isDown(68)) && ((counter < MAX_COUNT)))){
falling = true;
if (((!((l.currentLabel == "move"))) && (!(notJumped)))){
l.gotoAndStop("move");
};
vx = (vx + ((vx)<MAX_VX) ? INC_VX : 0);
} else {
vx = (vx * FRICTION);
};
};
if (falling){
if (((!((l.currentlabel == "jump"))) && (notJumped))){
notJumped = false;
l.gotoAndStop("jump");
};
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
}
}//package hero
Section 31
//MovingWithCart (hero.MovingWithCart)
package hero {
import bigroom.input.*;
import flash.display.*;
import flash.geom.*;
import flash.events.*;
public class MovingWithCart {
public var vx:Number;// = 3
private var vy:Number;// = 3
private var FRICTION:Number;// = 0.7
private var onGround:Boolean;// = true
private var MAX_VX:Number;// = 15
private var MAX_VY:Number;// = 25
private var key:KeyPoll;
private var INC_VX:Number;// = 3
private var prepareJumpBool:Boolean;// = false
private var h:Zayo;
private var l:MovieClip;
private var GRAVITY:Number;// = 2
private var p:MovieClip;
private var forceBack:Number;
private var keyIsReleased:Boolean;// = true
private var JUMP_VY:Number;// = 25
private var _useMouseToTurn:Boolean;// = true
public function MovingWithCart(_arg1:Zayo, _arg2:MovieClip):void{
INC_VX = 3;
JUMP_VY = 25;
FRICTION = 0.7;
GRAVITY = 2;
MAX_VX = 15;
MAX_VY = 25;
vx = 3;
vy = 3;
onGround = true;
_useMouseToTurn = true;
prepareJumpBool = false;
keyIsReleased = true;
super();
h = _arg1;
l = Zayo(h).getClip();
p = _arg2;
key = new KeyPoll(h.stage);
}
private function applyMoves():void{
if ((h.x + vx) < 100){
h.x = 100;
h.x = (h.x - vx);
} else {
if ((h.x + vx) > 680){
h.x = 680;
h.x = (h.x - vx);
};
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
public function update():void{
checkBounds();
checkInput();
applyMoves();
}
private function checkInput():void{
if (prepareJumpBool){
if (((((key.isDown(68)) && (!(key.isDown(65))))) && (keyIsReleased))){
vx = (vx + 2.5);
keyIsReleased = false;
};
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
return;
};
forceBack = ((h.x / h.stage.stageWidth) * 4);
if (key.isDown(65)){
if (((onGround) && (!((l.currentLabel == "back"))))){
l.gotoAndStop("back");
};
vx = -2;
} else {
if (key.isDown(68)){
if (((onGround) && (!((l.currentLabel == "move"))))){
l.gotoAndStop("move");
};
vx = (3 - forceBack);
} else {
if (((onGround) && (!((l.currentLabel == "stay"))))){
l.gotoAndStop("stay");
};
vx = -1;
};
};
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
}
private function keyboardUpEvent(_arg1:KeyboardEvent):void{
keyIsReleased = true;
}
public function prepareToJump(_arg1:Boolean){
prepareJumpBool = _arg1;
if (_arg1){
h.stage.addEventListener(KeyboardEvent.KEY_UP, keyboardUpEvent, false, 0, true);
vx = 5;
} else {
h.stage.removeEventListener(KeyboardEvent.KEY_UP, keyboardUpEvent, false);
};
}
private function checkBounds():void{
var _local1:Point;
_local1 = h.parent.localToGlobal(new Point(h.x, (h.y + 20)));
while (p.hitTestPoint(_local1.x, _local1.y, true)) {
onGround = true;
h.y--;
_local1.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local1.x, (_local1.y + 1), true))){
onGround = false;
} else {
onGround = true;
};
}
}
}//package hero
Section 32
//MovingWithLegs (hero.MovingWithLegs)
package hero {
import bigroom.input.*;
import flash.display.*;
import flash.geom.*;
public class MovingWithLegs {
private var vx:Number;// = 3
private var vy:Number;// = 3
private var FRICTION:Number;// = 0.7
private var onGround:Boolean;// = true
public var MAX_VX:Number;// = 9
private var MAX_VY:Number;// = 15
private var key:KeyPoll;
private var INC_VX:Number;// = 3
private var h:Zayo;
private var l:MovieClip;
private var GRAVITY:Number;// = 2
private var p:MovieClip;
private var JUMP_VY:Number;// = 20
private var _useMouseToTurn:Boolean;// = true
public function MovingWithLegs(_arg1:Zayo, _arg2:MovieClip):void{
INC_VX = 3;
JUMP_VY = 20;
FRICTION = 0.7;
GRAVITY = 2;
MAX_VX = 9;
MAX_VY = 15;
vx = 3;
vy = 3;
onGround = true;
_useMouseToTurn = true;
super();
h = _arg1;
l = Zayo(h).getClip();
p = _arg2;
key = new KeyPoll(h.stage);
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
};
if (h.dataNum == 1){
if ((h.x + vx) > 32800){
h.x = 32800;
h.x = (h.x - vx);
};
if (((((h.x + vx) < 10706)) && (h.mapMngr.fight_enabled_1))){
h.x = 10706;
h.x = (h.x - vx);
};
if (((((h.x + vx) < 23500)) && (h.mapMngr.fight_enabled_3))){
h.x = 23500;
h.x = (h.x - vx);
};
} else {
if (h.dataNum == 2){
if ((h.x + vx) > 4500){
h.x = 4500;
h.x = (h.x - vx);
};
} else {
if (h.dataNum == 3){
if ((h.x + vx) > 3100){
h.x = 3100;
h.x = (h.x - vx);
};
} else {
if (h.dataNum == 4){
if ((h.x + vx) > 3530){
h.x = 3530;
h.x = (h.x - vx);
};
} else {
if (h.dataNum == 5){
if ((h.x + vx) > 6300){
h.x = 6300;
h.x = (h.x - vx);
};
if ((h.x + vx) < 60){
h.x = 60;
h.x = (h.x - vx);
};
checkLevel5Boxes();
};
};
};
};
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
public function update():void{
checkBounds();
checkInput();
applyMoves();
}
private function checkInput():void{
if (key.isDown(65)){
if (((onGround) && (!((l.currentLabel == "move"))))){
l.gotoAndStop("move");
};
l.scaleX = (_useMouseToTurn) ? l.scaleX : -1;
vx = (vx - ((vx)>-(MAX_VX)) ? INC_VX : 0);
} else {
if (key.isDown(68)){
if (((onGround) && (!((l.currentLabel == "move"))))){
l.gotoAndStop("move");
};
l.scaleX = (_useMouseToTurn) ? l.scaleX : 1;
vx = (vx + ((vx)<MAX_VX) ? INC_VX : 0);
} else {
if (((onGround) && (!((l.currentLabel == "stay"))))){
l.gotoAndStop("stay");
};
vx = (vx * FRICTION);
};
};
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
if (key.isDown(87)){
if (onGround){
l.gotoAndStop("jump");
vy = -(JUMP_VY);
onGround = false;
};
};
}
private function checkBounds():void{
var _local1:Point;
_local1 = h.parent.localToGlobal(new Point(h.x, (h.y + 20)));
while (p.hitTestPoint(_local1.x, _local1.y, true)) {
onGround = true;
h.y--;
_local1.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local1.x, (_local1.y + 1), true))){
onGround = false;
} else {
onGround = true;
};
}
private function checkLevel5Boxes(){
if ((((((h.x <= 700)) && (((h.x + vx) >= 700)))) && ((h.y > 275)))){
h.x = 700;
h.x = (h.x - vx);
} else {
if ((((((h.x >= 770)) && (((h.x + vx) <= 770)))) && ((h.y > 275)))){
h.x = 772;
h.x = (h.x - vx);
} else {
if ((((((h.x < 1393)) && (((h.x + vx) > 1393)))) && ((h.y > 275)))){
h.x = 1393;
h.x = (h.x - vx);
} else {
if ((((((h.x > 1522)) && (((h.x + vx) < 1522)))) && ((h.y > 275)))){
h.x = 1524;
h.x = (h.x - vx);
} else {
if ((((((h.x < 1430)) && (((h.x + vx) > 1430)))) && ((h.y > 235)))){
h.x = 1430;
h.x = (h.x - vx);
} else {
if ((((((h.x > 1500)) && (((h.x + vx) < 1500)))) && ((h.y > 235)))){
h.x = 1502;
h.x = (h.x - vx);
} else {
if ((((((h.x < 1847)) && (((h.x + vx) > 1847)))) && ((h.y > 275)))){
h.x = 1847;
h.x = (h.x - vx);
} else {
if ((((((h.x > 1915)) && (((h.x + vx) < 1915)))) && ((h.y > 275)))){
h.x = 1917;
h.x = (h.x - vx);
} else {
if ((((((h.x < 2623)) && (((h.x + vx) > 2623)))) && ((h.y > 0xFF)))){
h.x = 2623;
h.x = (h.x - vx);
} else {
if ((((((h.x > 2750)) && (((h.x + vx) < 2750)))) && ((h.y > 0xFF)))){
h.x = 2752;
h.x = (h.x - vx);
} else {
if ((((((h.x < 2655)) && (((h.x + vx) > 2655)))) && ((h.y > 215)))){
h.x = 2655;
h.x = (h.x - vx);
} else {
if ((((((h.x > 2725)) && (((h.x + vx) < 2725)))) && ((h.y > 215)))){
h.x = 2727;
h.x = (h.x - vx);
} else {
if ((((((h.x < 3680)) && (((h.x + vx) > 3680)))) && ((h.y > 265)))){
h.x = 3680;
h.x = (h.x - vx);
} else {
if ((((((h.x > 3750)) && (((h.x + vx) < 3750)))) && ((h.y > 265)))){
h.x = 3752;
h.x = (h.x - vx);
} else {
if ((((((h.x < 4160)) && (((h.x + vx) > 4160)))) && ((h.y > 275)))){
h.x = 4160;
h.x = (h.x - vx);
} else {
if ((((((h.x > 4230)) && (((h.x + vx) < 4230)))) && ((h.y > 275)))){
h.x = 4232;
h.x = (h.x - vx);
} else {
if ((((((h.x < 4850)) && (((h.x + vx) > 4850)))) && ((h.y > 280)))){
h.x = 4850;
h.x = (h.x - vx);
} else {
if ((((((h.x > 4970)) && (((h.x + vx) < 4970)))) && ((h.y > 280)))){
h.x = 4972;
h.x = (h.x - vx);
} else {
if ((((((h.x < 4880)) && (((h.x + vx) > 4880)))) && ((h.y > 230)))){
h.x = 4880;
h.x = (h.x - vx);
} else {
if ((((((h.x > 4950)) && (((h.x + vx) < 4950)))) && ((h.y > 230)))){
h.x = 4952;
h.x = (h.x - vx);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
}
}//package hero
Section 33
//ShotgunW (hero.ShotgunW)
package hero {
import flash.display.*;
public dynamic class ShotgunW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function ShotgunW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 34
//ShotgunW_g (hero.ShotgunW_g)
package hero {
import flash.display.*;
public dynamic class ShotgunW_g extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function ShotgunW_g(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 35
//Skin_1 (hero.Skin_1)
package hero {
import flash.display.*;
public dynamic class Skin_1 extends MovieClip {
public var h:MovieClip;
public var zayo:MovieClip;
public function Skin_1(){
addFrameScript(0, frame1, 6, frame7, 12, frame13);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
}
}//package hero
Section 36
//Skin_2 (hero.Skin_2)
package hero {
import flash.display.*;
public dynamic class Skin_2 extends MovieClip {
public var h:MovieClip;
public function Skin_2(){
addFrameScript(0, frame1, 7, frame8, 14, frame15, 21, frame22);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame8(){
stop();
}
}
}//package hero
Section 37
//Skin_3 (hero.Skin_3)
package hero {
import flash.display.*;
public dynamic class Skin_3 extends MovieClip {
public var h:MovieClip;
public function Skin_3(){
addFrameScript(0, frame1, 7, frame8, 14, frame15, 21, frame22);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame8(){
stop();
}
}
}//package hero
Section 38
//Skin_4 (hero.Skin_4)
package hero {
import flash.display.*;
public dynamic class Skin_4 extends MovieClip {
public var h:MovieClip;
public function Skin_4(){
addFrameScript(0, frame1, 7, frame8, 14, frame15, 21, frame22);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame8(){
stop();
}
}
}//package hero
Section 39
//Skin_5 (hero.Skin_5)
package hero {
import flash.display.*;
public dynamic class Skin_5 extends MovieClip {
public var h:MovieClip;
public function Skin_5(){
addFrameScript(0, frame1, 7, frame8, 14, frame15, 21, frame22);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame8(){
stop();
}
}
}//package hero
Section 40
//UziW (hero.UziW)
package hero {
import flash.display.*;
public dynamic class UziW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function UziW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 41
//UziW_g (hero.UziW_g)
package hero {
import flash.display.*;
public dynamic class UziW_g extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function UziW_g(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 42
//Weapon (hero.Weapon)
package hero {
import flash.media.*;
import bigroom.input.*;
import flash.events.*;
import map.*;
import sounds.*;
import flash.geom.*;
import flash.display.*;
import flash.utils.*;
public class Weapon extends MovieClip {
private var hClip:MovieClip;
private var channel:SoundChannel;
private var hud:Hud;
private var isFiring:Boolean;// = false
private var clip:MovieClip;
private var key:KeyPoll;
private var realWeapon:Boolean;// = true
private var dieSound:Sound;
private var h:Zayo;
private var curWeapon:String;
private var drawRay:Function;
private var enemyHitPoint:Point;
private var soundObj:Object;
private var fireSound:Sound;
private var willClear:Boolean;// = true
private var frameCounter:int;// = 0
private var DMG:int;
private var mapMngr:MapManager;
private var fireCounter:Number;// = 0
private var clip2:MovieClip;
public function Weapon(_arg1:Zayo, _arg2:Boolean=true, _arg3:Object=null, _arg4:MapManager=null):void{
isFiring = false;
frameCounter = 0;
willClear = true;
realWeapon = true;
channel = new SoundChannel();
fireCounter = 0;
super();
mapMngr = _arg4;
realWeapon = _arg2;
this.soundObj = _arg3;
if (realWeapon){
h = _arg1;
h.addChild(this);
key = new KeyPoll(h.stage);
loadWeap("UziW", singleRay);
h.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
h.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false, 0, true);
} else {
h = _arg1;
h.addChild(this);
hClip = h.getClip();
key = new KeyPoll(h.stage);
loadWeap("ChaingunW", singleRay);
h.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
h.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false, 0, true);
};
}
public function activate():void{
h.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
h.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false, 0, true);
}
private function sortOnZayoBombs():void{
if ((((((h.scaleX == 1)) && ((h.mouseX > 0)))) || ((((h.scaleX == -1)) && ((h.mouseX < 0)))))){
h.enemies.sortOn("x", Array.NUMERIC);
} else {
h.enemies.sortOn("x", (Array.NUMERIC | Array.DESCENDING));
};
}
function bloodRemover(_arg1:MovieClip){
MovieClip(h.parent).removeChild(_arg1);
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
channel.soundTransform = new SoundTransform(soundObj.vol);
}
private function mouseUpHandler(_arg1:MouseEvent=null):void{
if (realWeapon){
clip.gotoAndStop("stay");
} else {
clip.chainGun.gotoAndStop("stay");
clip2.chainGun.gotoAndStop("stay");
h.getClip().zayo.gotoAndStop(1);
};
isFiring = false;
fireCounter = 0;
clearRays();
}
private function removeEnemyFromStage(_arg1:Object):void{
if (_arg1.parent){
if (_arg1.parent.contains(_arg1)){
_arg1.parent.removeChild(_arg1);
};
};
}
public function setHud(_arg1:Hud):void{
this.hud = _arg1;
}
private function fire():void{
if (mapMngr.mapNum == 1){
if (isFiring){
frameCounter++;
if (frameCounter == 2){
clearRays();
};
if (frameCounter == 3){
frameCounterReset();
sortOnZayo();
drawRay();
};
};
} else {
frameCounterReset();
sortOnZayo();
drawRay();
};
}
private function rotateWeapon():void{
var _local1:Number;
var _local2:Number;
if (!(realWeapon)){
rotateChainGun(clip, true);
rotateChainGun(clip2, false);
return;
};
_local1 = Math.atan2(h.mouseY, h.mouseX);
_local2 = (h.parent.mouseX - h.x);
h.scaleX = ((_local2)>0) ? 1 : -1;
rotation = ((_local1 * 180) / Math.PI);
}
private function fiveRays():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:*;
var _local5:int;
var _local6:int;
var _local7:*;
var _local8:MovieClip;
var _local9:Number;
var _local10:XML;
var _local11:*;
var _local12:Class;
var _local13:int;
if (mapMngr.shotAmmo <= 0){
mapMngr.shotAmmo = 0;
mouseUpHandler();
return;
};
mapMngr.shotAmmo--;
channel.stop();
fireSound = new ShotgunW();
channel = fireSound.play();
channel.soundTransform = new SoundTransform(soundObj.vol);
_local1 = (h.parent.mouseX - h.x);
_local2 = (h.parent.mouseY - h.y);
_local3 = Math.atan2(_local2, _local1);
_local4 = _local3;
_local5 = -2;
while (_local5 < 3) {
_local3 = (_local4 + ((Math.PI / 32) * _local5));
_local6 = 0;
_local7 = h.enemies.length;
while (_local6 < _local7) {
_local8 = h.enemies[_local6];
_local9 = calculateLine(_local8, _local3);
drawLine(_local3, _local9, false);
if (_local9 != 2222){
if (doDamage(_local8)){
_local10 = describeType(_local8);
if (_local10.@name.substr(-6, 6) == "Boss_1"){
h.placeKeyFromBoss(_local8);
} else {
if (_local10.@name.substr(-6, 6) == "Boss_2"){
h.boss2die();
} else {
if (_local10.@name.substr(-6, 6) == "Boss_3"){
h.boss3die();
};
};
};
if (String(_local10.@name).length == 15){
_local12 = (getDefinitionByName((("sounds." + _local10.@name.substr(-6, 6)) + "_die")) as Class);
} else {
if (String(_local10.@name).length == 16){
_local12 = (getDefinitionByName((("sounds." + _local10.@name.substr(-7, 7)) + "_die")) as Class);
};
};
dieSound = (new (_local12) as Sound);
_local11 = dieSound.play();
_local11.soundTransform = new SoundTransform(soundObj.vol);
_local8.die();
h.enemies.splice(_local6, 1);
setTimeout(removeEnemyFromStage, 3000, _local8);
};
break;
};
_local6++;
};
_local5++;
};
if (h.enemies.length == 0){
_local13 = -2;
while (_local13 < 3) {
_local3 = (_local4 + ((Math.PI / 32) * _local13));
drawLine(_local3, 2222, false);
_local13++;
};
};
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if ((((curWeapon == "UziW")) && ((mapMngr.uziAmmo <= 0)))){
hud.playInsufficient();
return;
};
if ((((curWeapon == "ShotgunW")) && ((mapMngr.shotAmmo <= 0)))){
hud.playInsufficient();
return;
};
if ((((curWeapon == "AkaW")) && ((mapMngr.akaAmmo <= 0)))){
hud.playInsufficient();
return;
};
if (realWeapon){
clip.gotoAndStop("fire");
} else {
clip.chainGun.gotoAndStop("fire");
clip2.chainGun.gotoAndStop("fire");
h.getClip().zayo.gotoAndStop(2);
};
isFiring = true;
frameCounter = 0;
if (mapMngr.mapNum != 1){
fire();
};
}
private function sortOnZayo():void{
if ((((((h.scaleX == 1)) && ((h.mouseX > 0)))) || ((((h.scaleX == -1)) && ((h.mouseX < 0)))))){
h.enemies.sortOn("x", Array.NUMERIC);
} else {
h.enemies.sortOn("x", (Array.NUMERIC | Array.DESCENDING));
};
}
private function drawLine(_arg1:Number, _arg2:Number, _arg3:Boolean):void{
var _local4:Graphics;
var _local5:Point;
var _local6:Point;
var _local7:Point;
var _local8:Point;
if (realWeapon){
_local5 = clip.localToGlobal(new Point(clip.redDot.x, clip.redDot.y));
_local6 = h.parent.globalToLocal(_local5);
} else {
_local5 = clip.chainGun.localToGlobal(new Point(clip.chainGun.redDot.x, clip.chainGun.redDot.y));
_local7 = clip2.chainGun.localToGlobal(new Point(clip2.chainGun.redDot.x, clip2.chainGun.redDot.y));
_local6 = h.parent.globalToLocal(_local5);
_local8 = h.parent.globalToLocal(_local7);
};
_local4 = MapManager(h.parent).getGraphics();
if (_arg3){
_local4.clear();
};
_local4.lineStyle(1, 12696729, 1);
_local4.moveTo(_local6.x, _local6.y);
if (realWeapon){
_local4.lineTo((h.x + (_arg2 * Math.cos(_arg1))), (h.y + (_arg2 * Math.sin(_arg1))));
} else {
_local4.lineTo((_local6.x + ((_arg2 - 135) * Math.cos(_arg1))), (_local6.y + ((_arg2 - 135) * Math.sin(_arg1))));
_local4.moveTo(_local8.x, _local8.y);
_local4.lineTo((_local8.x + ((_arg2 - 135) * Math.cos(_arg1))), (_local8.y + ((_arg2 - 135) * Math.sin(_arg1))));
};
enemyHitPoint = new Point((h.x + ((_arg2 + 0) * Math.cos(_arg1))), (h.y + ((_arg2 + 0) * Math.sin(_arg1))));
}
public function deactivate():void{
if (h != null){
h.stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false);
h.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false);
};
}
private function loadWeap(_arg1:String, _arg2:Function):void{
var _local3:Class;
curWeapon = _arg1;
if (clip != null){
removeChild(clip);
};
if ((((h.zayoNum == 4)) || ((h.zayoNum == 5)))){
_local3 = (getDefinitionByName(("hero." + _arg1)) as Class);
} else {
_local3 = (getDefinitionByName(("hero." + _arg1)) as Class);
};
if (realWeapon){
clip = (new (_local3) as MovieClip);
addChild(clip);
clip.redDot.visible = false;
} else {
clip2 = (new (_local3) as MovieClip);
h.addChild(clip2);
h.setChildIndex(clip2, 0);
clip = (new (_local3) as MovieClip);
addChild(clip);
clip.chainGun.redDot.visible = false;
clip2.chainGun.redDot.visible = false;
clip.y = (clip.y + 2);
clip2.y = (clip2.y - 2);
};
drawRay = _arg2;
}
private function clearRays():void{
var _local1:Graphics;
if (willClear){
_local1 = MapManager(h.parent).getGraphics();
_local1.clear();
willClear = false;
};
}
private function rotateChainGun(_arg1:MovieClip, _arg2:Boolean){
var _local3:*;
var _local4:Number;
var _local5:Number;
var _local6:Point;
var _local7:Point;
if (hClip.h != null){
if (hClip.h.dot != null){
if (hClip.contains(hClip.h)){
if (hClip.h.contains(hClip.h.dot)){
if (_arg2){
_local7 = MovieClip(hClip.h).localToGlobal(new Point(hClip.h.dot.x, hClip.h.dot.y));
} else {
_local7 = MovieClip(hClip.h).localToGlobal(new Point(hClip.h.dot2.x, hClip.h.dot2.y));
};
_local6 = _arg1.globalToLocal(_local7);
_arg1.easel.x = _local6.x;
_arg1.easel.y = _local6.y;
};
};
};
};
_arg1.easel.rotation = ((((-(h.parent.parent.parent.mouseX) - (stage.stageWidth / 2)) / (stage.stageWidth / 2)) * 90) + 90);
_local3 = ((_arg1.easel.rotation * Math.PI) / 180);
_arg1.chainGun.x = (_arg1.easel.x + (Math.cos(_local3) * 30));
_arg1.chainGun.y = (_arg1.easel.y + (Math.sin(_local3) * 30));
_local4 = (mouseY - _arg1.chainGun.y);
_local5 = (mouseX - _arg1.chainGun.x);
_arg1.chainGun.rotation = ((Math.atan2(_local4, _local5) * 180) / Math.PI);
}
private function checkInput():void{
if (isFiring){
return;
};
if (key.isDown(49)){
loadWeap("BatW", noRay);
hud.ammoBar.gotoAndStop("bat");
} else {
if (key.isDown(50)){
loadWeap("UziW", singleRay);
hud.ammoBar.gotoAndStop("uzi");
} else {
if (key.isDown(51)){
loadWeap("ShotgunW", fiveRays);
hud.ammoBar.gotoAndStop("shot");
} else {
if (key.isDown(52)){
loadWeap("AkaW", singleRay);
hud.ammoBar.gotoAndStop("aka");
};
};
};
};
}
function attachBlood(){
var _local1:Class;
var _local2:MovieClip;
_local1 = (getDefinitionByName(("Blood_" + int((1 + (Math.random() * 5))))) as Class);
_local2 = (new (_local1) as MovieClip);
_local2.x = enemyHitPoint.x;
_local2.y = enemyHitPoint.y;
MovieClip(h.parent).addChild(_local2);
setTimeout(bloodRemover, 500, _local2);
}
private function noRay():void{
var _local1:*;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:*;
var _local7:MovieClip;
var _local8:Number;
var _local9:XML;
var _local10:*;
var _local11:Class;
fireSound = new BatW();
_local1 = fireSound.play();
_local1.soundTransform = new SoundTransform(soundObj.vol);
_local2 = (h.parent.mouseX - h.x);
_local3 = (h.parent.mouseY - h.y);
_local4 = Math.atan2(_local3, _local2);
_local5 = 0;
_local6 = h.enemies.length;
while (_local5 < _local6) {
_local7 = h.enemies[_local5];
_local8 = calculateLine(_local7, _local4, 60);
if (_local8 != 2222){
if (doDamage(_local7)){
_local9 = describeType(_local7);
if (_local9.@name.substr(-6, 6) == "Boss_1"){
h.placeKeyFromBoss(_local7);
} else {
if (_local9.@name.substr(-6, 6) == "Boss_2"){
h.boss2die();
} else {
if (_local9.@name.substr(-6, 6) == "Boss_3"){
h.boss3die();
};
};
};
if (String(_local9.@name).length == 15){
_local11 = (getDefinitionByName((("sounds." + _local9.@name.substr(-6, 6)) + "_die")) as Class);
} else {
if (String(_local9.@name).length == 16){
_local11 = (getDefinitionByName((("sounds." + _local9.@name.substr(-7, 7)) + "_die")) as Class);
};
};
dieSound = (new (_local11) as Sound);
_local10 = dieSound.play();
_local10.soundTransform = new SoundTransform(soundObj.vol);
_local7.die();
h.enemies.splice(_local5, 1);
setTimeout(removeEnemyFromStage, 3000, _local7);
};
break;
};
_local5++;
};
}
private function singleRay():void{
var _local1:Class;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Point;
var _local6:int;
var _local7:*;
var _local8:MovieClip;
var _local9:Number;
var _local10:XML;
var _local11:*;
var _local12:Class;
if ((((curWeapon == "AkaW")) && ((mapMngr.akaAmmo <= 0)))){
mapMngr.akaAmmo = 0;
mouseUpHandler();
return;
};
if ((((curWeapon == "UziW")) && ((mapMngr.uziAmmo <= 0)))){
mapMngr.uziAmmo = 0;
mouseUpHandler();
return;
};
if (curWeapon == "AkaW"){
mapMngr.akaAmmo--;
} else {
if (curWeapon == "UziW"){
mapMngr.uziAmmo--;
};
};
channel.stop();
_local1 = (getDefinitionByName(("sounds." + curWeapon)) as Class);
if (curWeapon == "ChaingunW"){
_local1 = (getDefinitionByName(("sounds." + "UziW")) as Class);
};
fireSound = (new (_local1) as Sound);
channel = fireSound.play();
if ((((curWeapon == "AkaW")) && (!((soundObj.vol == 0))))){
channel.soundTransform = new SoundTransform(0.6);
} else {
channel.soundTransform = new SoundTransform(soundObj.vol);
};
_local2 = (h.parent.mouseX - h.x);
_local3 = (h.parent.mouseY - h.y);
_local4 = Math.atan2(_local3, _local2);
_local5 = clip.localToGlobal(new Point(clip.x, clip.y));
if (!(realWeapon)){
_local5 = clip.localToGlobal(new Point(clip.chainGun.x, clip.chainGun.y));
_local2 = (stage.mouseX - _local5.x);
_local3 = (stage.mouseY - _local5.y);
_local4 = Math.atan2(_local3, _local2);
};
_local6 = 0;
_local7 = h.enemies.length;
while (_local6 < _local7) {
_local8 = h.enemies[_local6];
_local9 = calculateLine(_local8, _local4);
drawLine(_local4, _local9, true);
if (_local9 != 2222){
if (doDamage(_local8)){
_local10 = describeType(_local8);
if (_local10.@name.substr(-6, 6) == "Boss_1"){
h.placeKeyFromBoss(_local8);
} else {
if (_local10.@name.substr(-6, 6) == "Boss_2"){
h.boss2die();
} else {
if (_local10.@name.substr(-6, 6) == "Boss_3"){
h.boss3die();
};
};
};
if (String(_local10.@name).length == 15){
_local12 = (getDefinitionByName((("sounds." + _local10.@name.substr(-6, 6)) + "_die")) as Class);
} else {
if (String(_local10.@name).length == 16){
_local12 = (getDefinitionByName((("sounds." + _local10.@name.substr(-7, 7)) + "_die")) as Class);
};
};
dieSound = (new (_local12) as Sound);
_local11 = dieSound.play();
_local11.soundTransform = new SoundTransform(soundObj.vol);
_local8.die();
h.enemies.splice(_local6, 1);
setTimeout(removeEnemyFromStage, 3000, _local8);
};
break;
};
_local6++;
};
if (h.enemies.length == 0){
drawLine(_local4, 2000, true);
};
}
public function update():void{
if (mapMngr.mapNum == 1){
fireCounter++;
fire();
if (realWeapon){
rotateWeapon();
checkInput();
} else {
rotateWeapon();
};
} else {
fireCounter++;
if (fireCounter > 3){
mouseUpHandler();
};
if (realWeapon){
rotateWeapon();
checkInput();
} else {
rotateWeapon();
};
};
}
private function calculateLine(_arg1:MovieClip, _arg2:Number, _arg3:int=0):Number{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Point;
var _local8:Point;
_local4 = (_arg1.x - h.x);
_local5 = (_arg1.y - h.y);
if (!(realWeapon)){
_local4 = (_arg1.x - ((h.x + this.x) + clip.chainGun.x));
_local5 = (_arg1.y - ((h.y + this.y) + clip.chainGun.y));
};
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
if (_arg3 == 0){
if (realWeapon){
_local8 = new Point((h.x + (Math.cos(_arg2) * _local6)), (h.y + (Math.sin(_arg2) * _local6)));
} else {
_local8 = new Point((((h.x + this.x) + clip.chainGun.x) + (Math.cos(_arg2) * _local6)), (((h.y + this.y) + clip.chainGun.y) + (Math.sin(_arg2) * _local6)));
};
} else {
_local8 = new Point((h.x + (Math.cos(_arg2) * _arg3)), (h.y + (Math.sin(_arg2) * _arg3)));
};
_local7 = h.parent.localToGlobal(_local8);
if (_arg1.hitTestPoint(_local7.x, _local7.y, true)){
return (_local6);
};
return (2222);
}
public function getRealWeapon():Boolean{
if (realWeapon){
return (true);
};
return (false);
}
private function doDamage(_arg1:Object):Boolean{
if (!((_arg1 is Boss_bomb))){
attachBlood();
return (_arg1.takeDamage(DMG));
};
mapMngr.removeBomb(_arg1);
return (false);
}
private function frameCounterReset():void{
if (curWeapon == "UziW"){
frameCounter = -2;
DMG = 20;
} else {
if (curWeapon == "ShotgunW"){
frameCounter = -9;
DMG = 25;
} else {
if (curWeapon == "AkaW"){
frameCounter = -3;
DMG = 100;
} else {
if (curWeapon == "BatW"){
frameCounter = -4;
DMG = 25;
} else {
if (curWeapon == "ChaingunW"){
frameCounter = 1;
DMG = 50;
};
};
};
};
};
willClear = true;
}
}
}//package hero
Section 43
//Zayo (hero.Zayo)
package hero {
import flash.utils.*;
import map.*;
import flash.display.*;
import sounds.*;
import flash.events.*;
import flash.media.*;
import bigroom.input.*;
public class Zayo extends MovieClip {
private var weapon:Weapon;
public var enemies:Array;
private var theKey:TheKey;
private var exitEnabled:Boolean;// = false
private var key:KeyPoll;
private var level2enabled:Boolean;// = false
private var p:MovieClip;
private var itemConstructors:Array;
private var curStalactite;
private var lastTime:int;
private var mapNum:int;
private var groundsCounter:int;// = 0
private var moveB:Object;
public var radiation:Number;// = 100
private var firstTime_StupidVar:Boolean;// = true
private var tempFunc:Function;
private var leverMC:MovieClip;
public var alive:Boolean;// = true
private var isPersistOperate:Boolean;// = false
private var stalactites:Array;
private var ammoAdd:Number;// = 40
public var life:int;// = 100
private var bridgeSound:Sound;
private var dataInst:Data;
private var eventsFunc_array:Array;
private var zayoFakeX:Number;// = 0
private var isBossLaughed:Boolean;// = false
private var testString:String;// = "aaaaaa"
private var clip:MovieClip;
private var jumpEventCounter:int;// = 0
private var stalactiteSound:Sound;
private var soundObj:Object;
public var remainTime:int;// = 120
private var itemCollected:int;// = 0
public var dataNum:int;
private var eventsFunc:Function;
private var moverItems:MoveItems;
private var firstTimeFightLevel4:Boolean;
private var itemsReal:Array;
private var lastLaugh:Number;// = 0
private var leverMC2:MovieClip;
private var leverBool:Boolean;// = false
private var data:Array;
private var items:Array;
public var mapMngr:MapManager;
public var zayoNum:int;
private var grounds:Array;
private var waveNum:int;// = 0
private var fightCounter:int;// = 0
private var kolichka:MovieClip;
private var keyIsPicked:Boolean;// = false
public function Zayo(_arg1:MapManager, _arg2:MovieClip, _arg3:Object=null, _arg4:int=100):void{
itemsReal = [];
alive = true;
eventsFunc_array = [null, eventsFunc_1, eventsFunc_2, eventsFunc_3, eventsFunc_4, eventsFunc_5];
isPersistOperate = false;
life = 100;
radiation = 100;
enemies = new Array();
remainTime = 120;
lastTime = getTimer();
ammoAdd = 40;
itemConstructors = [HealthItem, AkaAmmo, UziAmmo, ShotAmmo];
zayoFakeX = 0;
jumpEventCounter = 0;
groundsCounter = 0;
leverBool = false;
fightCounter = 0;
itemCollected = 0;
testString = "aaaaaa";
keyIsPicked = false;
exitEnabled = false;
level2enabled = false;
waveNum = 0;
isBossLaughed = false;
lastLaugh = 0;
firstTime_StupidVar = true;
super();
this.soundObj = _arg3;
mapMngr = _arg1;
mapMngr.addChild(this);
p = _arg2;
life = _arg4;
}
public function boss2die():void{
var _local1:Object;
mapMngr.level2enabled = true;
_local1 = {zx:7819, zy:100, zayoNum:4, mapNum:4, xx:-7400};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:9});
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
weapon.setVolume(_arg1);
}
public function enterFrameHandler(_arg1:Event=null):void{
if (alive){
moveB.update();
weapon.update();
checkEventsArray();
enemiesUpdate();
checkBottomDeadLine();
if ((((dataNum == 1)) || ((dataNum == 3)))){
updateZayoFakeX();
};
};
if ((((dataNum == 5)) || ((dataNum == 1)))){
moveItemsOnLevel5();
};
}
public function placeKeyFromBoss(_arg1:MovieClip):void{
theKey = new TheKey();
parent.addChild(theKey);
theKey.x = _arg1.x;
theKey.y = _arg1.y;
}
private function updateZayoFakeX(){
zayoFakeX = (zayoFakeX + 4.5);
}
public function boss3die():void{
var _local1:Object;
_local1 = {zx:0, zy:100, zayoNum:1, mapNum:1, xx:0};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:11, main:true});
}
public function gotoLevel2():void{
var _local1:*;
_local1 = {zx:0, zy:100, zayoNum:2, mapNum:2, xx:0};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:5});
}
public function gotoLevel1():void{
var _local1:Object;
_local1 = {zx:0, zy:100, zayoNum:1, mapNum:1, xx:0};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:11, main:true});
}
public function deactivate():void{
var _local1:int;
_local1 = 0;
while (_local1 < enemies.length) {
if (enemies[_local1] != null){
if (enemies[_local1].e != null){
enemies[_local1].e.stop();
};
};
_local1++;
};
weapon.deactivate();
}
private function die():void{
clip.gotoAndStop("die");
alive = false;
if (weapon.getRealWeapon()){
removeChild(weapon);
};
mapMngr.dispatchDie();
}
public function gotoLevel5():void{
var _local1:Object;
_local1 = {zx:10, zy:100, zayoNum:5, mapNum:5, xx:0};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:10});
}
private function enemiesUpdate():void{
var _local1:int;
var _local2:*;
_local1 = 0;
_local2 = enemies.length;
while (_local1 < _local2) {
if (dataNum != 5){
enemies[_local1].enterFrameHandler();
};
_local1++;
};
}
public function gotoLevel3():void{
var _local1:Object;
mapMngr.hideBackForeGround();
_local1 = {zx:50, zy:100, zayoNum:3, mapNum:3, xx:0};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:6});
}
private function checkEventsArray():void{
var _local1:*;
var _local2:Object;
checkPersistentEvents();
checkItems();
_local1 = data[0];
if ((((dataNum == 1)) || ((dataNum == 3)))){
if (zayoFakeX > _local1.x){
_local2 = data.shift();
eventsFunc(_local2);
};
} else {
if ((((this.x > _local1.x)) && ((_local1.type == "endLevel")))){
if (dataNum == 2){
if (enemies.length < 4){
_local2 = data.shift();
eventsFunc(_local2);
};
} else {
if (dataNum == 4){
_local2 = data.shift();
eventsFunc(_local2);
} else {
_local2 = data.shift();
eventsFunc(_local2);
};
};
} else {
if ((((((this.x > _local1.x)) && ((_local1.type == "Fight")))) && ((dataNum == 4)))){
if (enemies.length < 4){
_local2 = data.shift();
eventsFunc(_local2);
};
} else {
if (this.x > _local1.x){
_local2 = data.shift();
eventsFunc(_local2);
};
};
};
};
}
public function dropTheZayo():void{
moveB = null;
moveB = new MovingWithLegs(this, p);
}
public function gotoLevel4():void{
var _local1:Object;
_local1 = {zx:80, zy:0, zayoNum:4, mapNum:4, xx:0};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:7});
}
private function pumpDFunction(_arg1:Event):void{
}
public function takeDamage(_arg1:int, _arg2:MovieClip=null):void{
if (_arg2 != null){
moveB.MAX_VX = 3;
setTimeout(restoreHeroSpeed, 1500);
};
life = (life - _arg1);
if (life < 0){
life = 0;
die();
};
}
private function checkBottomDeadLine():void{
if (dataNum == 4){
if (this.y > 460){
die();
};
} else {
if (this.y > 800){
die();
};
};
}
public function setWeaponHud(_arg1:Hud):void{
weapon.setHud(_arg1);
}
public function activate():void{
var _local1:int;
weapon.activate();
_local1 = 0;
while (_local1 < enemies.length) {
enemies[_local1].e.play();
_local1++;
};
}
public function resetPersistOperations():void{
isPersistOperate = false;
}
private function stalactiteHitCheck(_arg1:Event=null):void{
if (curStalactite != null){
if (MovieClip(mapMngr.mapClip[curStalactite]).hitTestObject(this)){
curStalactite = null;
takeDamage(10);
} else {
if (stalactites.length == 0){
removeEventListener(Event.ENTER_FRAME, stalactiteHitCheck, false);
};
};
};
}
public function loadSkin(_arg1:int):void{
var _local2:Class;
zayoNum = _arg1;
_local2 = (getDefinitionByName(("hero.Skin_" + _arg1)) as Class);
clip = (new (_local2) as MovieClip);
addChild(clip);
if (_arg1 != 1){
moveB = new MovingWithLegs(this, p);
weapon = new Weapon(this, true, soundObj, mapMngr);
} else {
moveB = new MovingWithCart(this, p);
weapon = new Weapon(this, false, soundObj, mapMngr);
};
}
private function restoreHeroSpeed():void{
moveB.MAX_VX = 9;
}
private function moveItemsOnLevel5():void{
if (itemsReal.length > 0){
moverItems.update();
};
}
private function checkLeverKey(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 70){
p.gotoAndPlay(81);
leverMC.play();
leverMC2.play();
};
}
private function checkItems():void{
var _local1:int;
var _local2:*;
if (itemsReal.length > 0){
_local1 = 0;
while (_local1 < itemsReal.length) {
_local2 = itemsReal[_local1];
if (hitTestObject(_local2)){
if ((_local2 is HealthItem)){
life = (life + 35);
if (life > 100){
life = 100;
};
itemsReal.splice(_local1, 1);
mapMngr.itemsHolder.removeChild(_local2);
break;
} else {
if ((_local2 is AkaAmmo)){
mapMngr.akaAmmo = (mapMngr.akaAmmo + ammoAdd);
itemsReal.splice(_local1, 1);
mapMngr.itemsHolder.removeChild(_local2);
break;
} else {
if ((_local2 is UziAmmo)){
mapMngr.uziAmmo = (mapMngr.uziAmmo + ammoAdd);
itemsReal.splice(_local1, 1);
mapMngr.itemsHolder.removeChild(_local2);
break;
} else {
if ((_local2 is ShotAmmo)){
mapMngr.shotAmmo = (mapMngr.shotAmmo + ammoAdd);
itemsReal.splice(_local1, 1);
mapMngr.itemsHolder.removeChild(_local2);
break;
} else {
if ((_local2 is PuzzleItem)){
itemsReal.splice(_local1, 1);
mapMngr.itemsHolder.removeChild(_local2);
itemCollected++;
break;
};
};
};
};
};
};
_local1++;
};
};
}
public function loadData(_arg1:int, _arg2:Boolean=false):void{
var _local3:int;
var _local4:*;
var _local5:MovieClip;
if (_arg2){
data = dataInst.getWave(_arg1);
data.sortOn("x", Array.NUMERIC);
data.push({x:9999999});
return;
};
eventsFunc = eventsFunc_array[_arg1];
dataNum = _arg1;
dataInst = new Data();
data = dataInst.getData(_arg1);
data.sortOn("x", Array.NUMERIC);
_local3 = (data.length - 1);
while (_local3 > -1) {
if (data[_local3].x < this.x){
data.shift();
};
_local3--;
};
data.push({x:9999999});
items = dataInst.getItems(_arg1);
_local3 = 0;
while (_local3 < items.length) {
_local4 = items[_local3];
if (_local4.type == "HealthItem"){
_local5 = MovieClip(mapMngr.itemsHolder.addChild(new HealthItem()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
} else {
if (_local4.type == "AkaAmmo"){
_local5 = MovieClip(mapMngr.itemsHolder.addChild(new AkaAmmo()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
} else {
if (_local4.type == "UziAmmo"){
_local5 = MovieClip(mapMngr.itemsHolder.addChild(new UziAmmo()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
} else {
if (_local4.type == "ShotAmmo"){
_local5 = MovieClip(mapMngr.itemsHolder.addChild(new ShotAmmo()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
} else {
if (_local4.type == "PuzzleItem"){
_local5 = MovieClip(mapMngr.itemsHolder.addChild(new PuzzleItem()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
};
};
};
};
};
_local3++;
};
if ((((dataNum == 5)) || ((dataNum == 1)))){
moverItems = new MoveItems(itemsReal, p);
};
}
private function updateRemainingTime():void{
var _local1:Object;
if ((getTimer() - lastTime) > 1000){
lastTime = getTimer();
remainTime--;
if (remainTime < 0){
remainTime = 0;
_local1 = {zx:80, zy:0, zayoNum:4, mapNum:4, xx:0};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:7});
};
};
}
public function setLevel_1Vars(_arg1:Object):void{
stalactites = _arg1.stalactites;
grounds = _arg1.grounds;
leverMC = _arg1.lever;
leverMC2 = _arg1.lever2;
kolichka = _arg1.kolichka;
}
public function getClip():MovieClip{
return (clip);
}
private function checkPersistentEvents():void{
if (dataNum == 2){
if ((((((x >= 5720)) && ((x <= 5735)))) && (!(isPersistOperate)))){
moveB = null;
moveB = new MoveUpDown(this, p);
isPersistOperate = true;
} else {
if ((((((x >= 9998)) && ((x <= 10012)))) && (!(isPersistOperate)))){
moveB = null;
moveB = new MoveUpDown(this, p);
isPersistOperate = true;
} else {
if ((((((x >= 13320)) && ((x <= 13333)))) && (!(isPersistOperate)))){
moveB = null;
moveB = new MoveUpDown(this, p);
isPersistOperate = true;
};
};
};
} else {
if (dataNum == 3){
updateRemainingTime();
} else {
if (dataNum == 4){
if ((((((x >= 70)) && ((x <= 270)))) && ((y > 230)))){
die();
} else {
if ((((((x >= 290)) && ((x <= 420)))) && ((y > 240)))){
die();
} else {
if ((((((x >= 1230)) && ((x <= 1360)))) && ((y > 245)))){
die();
} else {
if ((((((x >= 1830)) && ((x <= 1970)))) && ((y > 235)))){
die();
};
};
};
};
} else {
if (dataNum == 5){
};
};
};
};
}
private function updateRadiation():void{
radiation = (radiation - 0.1);
if (radiation < 0){
radiation = 0;
die();
} else {
if (radiation > 100){
radiation = 100;
};
};
}
private function eventsFunc_1(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:*;
var _local5:*;
var _local6:Object;
var _local7:*;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if (_arg1.type == "Rotate"){
this.rotation = _arg1.angle;
} else {
if (_arg1.type == "Stalactite"){
addEventListener(Event.ENTER_FRAME, stalactiteHitCheck, false, 0, true);
curStalactite = stalactites.shift();
MovieClip(mapMngr.mapClip[curStalactite]).play();
stalactiteSound = new Stalactite();
_local4 = stalactiteSound.play();
if (soundObj.vol != 0){
_local4.soundTransform = new SoundTransform(1);
} else {
_local4.soundTransform = new SoundTransform(soundObj.vol);
};
} else {
if (_arg1.type == "Bridge"){
groundsCounter++;
grounds.shift().play();
p.gotoAndPlay((Number(groundsCounter) * 20));
bridgeSound = new Bridge_fall();
_local5 = bridgeSound.play();
if (soundObj.vol != 0){
_local5.soundTransform = new SoundTransform(0.6);
} else {
_local5.soundTransform = new SoundTransform(soundObj.vol);
};
} else {
if ((((_arg1.type == "Jump")) && ((zayoNum == 1)))){
jumpEventCounter++;
if (jumpEventCounter == 1){
moveB.prepareToJump(true);
addEventListener(Event.ENTER_FRAME, pumpDFunction, false, 0, true);
} else {
if (jumpEventCounter == 2){
moveB.prepareToJump(false);
removeEventListener(Event.ENTER_FRAME, pumpDFunction, false);
};
};
} else {
if (_arg1.type == "Lever"){
leverBool = !(leverBool);
if (leverBool){
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkLeverKey, false, 0, true);
} else {
stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkLeverKey, false);
};
} else {
if (_arg1.type == "Fight"){
mapMngr.fight_enabled_1 = true;
mapMngr.pause();
mapMngr.dispatchStart({num:0, fade:"fade"});
_local6 = {zx:11000, zy:500, zayoNum:2, mapNum:1, xx:-11000};
mapMngr.setNextMapParams(_local6);
} else {
if (_arg1.type == "Fight2"){
kolichka.parent.removeChild(kolichka);
mapMngr.pause();
mapMngr.dispatchStart({num:0, fade:"fade"});
_local6 = {zx:12500, zy:500, zayoNum:1, mapNum:1, xx:-12500};
mapMngr.setNextMapParams(_local6);
} else {
if (_arg1.type == "Fight3"){
mapMngr.fight_enabled_3 = true;
_local6 = {xx:-23600, zx:23600, zy:435, zayoNum:2, mapNum:1};
mapMngr.setNextMapParams(_local6);
mapMngr.pause();
mapMngr.dispatchStart({num:0, fade:"fade"});
} else {
if ((((_arg1.type == "intro_stalactite")) && (mapMngr.introStalactiteFirstTime))){
mapMngr.introStalactiteFirstTime = false;
} else {
if (_arg1.type == "Zatvornik"){
_local6 = {zx:24790, zy:200, zayoNum:2, mapNum:1, xx:-24690};
mapMngr.setNextMapParams(_local6);
mapMngr.pause();
mapMngr.dispatchStart({num:4});
} else {
if (_arg1.type == "endLevel"){
_local6 = {zx:0, zy:100, zayoNum:2, mapNum:2, xx:0};
mapMngr.setNextMapParams(_local6);
mapMngr.pause();
mapMngr.dispatchStart({num:5});
} else {
if (_arg1.type == "Item"){
_local7 = MovieClip(mapMngr.itemsHolder.addChild(new (itemConstructors[0])));
itemsReal.push(_local7);
_local7.x = int((Math.random() * 750));
_local7.y = -300;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
private function eventsFunc_2(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:Object;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if (_arg1.type == "endLevel"){
mapMngr.hideBackForeGround();
_local4 = {zx:50, zy:100, zayoNum:3, mapNum:3, xx:0};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:6});
};
};
};
}
private function eventsFunc_3(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:Object;
var _local5:*;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if (_arg1.type == "endLevel"){
trace("level 3 complete");
_local4 = {zx:0, zy:-100, zayoNum:4, mapNum:4, xx:0};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:7});
} else {
if (_arg1.type == "Item"){
_local5 = MovieClip(mapMngr.itemsHolder.addChild(new (itemConstructors[int((Math.random() * itemConstructors.length))])));
itemsReal.push(_local5);
_local5.x = (x + ((Math.random() * 600) - 300));
_local5.y = -300;
};
};
};
};
}
private function eventsFunc_4(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:Object;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if ((((_arg1.type == "Fight")) && (mapMngr.firstTimeFightLevel4))){
mapMngr.firstTimeFightLevel4 = false;
_local4 = {xx:-7600, zx:7600, zy:235, zayoNum:4, mapNum:4};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:8});
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if (_arg1.type == "endLevel"){
_local4 = {zx:10, zy:100, zayoNum:5, mapNum:5, xx:0};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:10});
};
};
};
};
}
private function eventsFunc_5(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:Object;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if (((!(mapMngr.returnBoss())) && ((_arg1.type == "endLevel")))){
_local4 = {zx:0, zy:100, zayoNum:1, mapNum:1, xx:0};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:11, main:true});
return;
};
};
};
}
}
}//package hero
Section 44
//Background (map.Background)
package map {
import flash.display.*;
public dynamic class Background extends MovieClip {
public function Background(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package map
Section 45
//Foreground (map.Foreground)
package map {
import flash.display.*;
public dynamic class Foreground extends MovieClip {
public function Foreground(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package map
Section 46
//Hud (map.Hud)
package map {
import flash.utils.*;
import flash.display.*;
import flash.text.*;
public class Hud extends MovieClip {
public var hb:MovieClip;
private var hero:MovieClip;
public var insufficient:MovieClip;
public var fps_txt:TextField;
private var lastTime2:int;
public var rb:MovieClip;
public var time_mc:MovieClip;
private var fpsCount2:int;
private var remainTime:Number;// = 20
private var lastTime:int;
public var ammoBar:MovieClip;
private var mapNum:Number;
private var fpsCount:int;
public var time:TextField;
private var mapMngr:MapManager;
public function Hud(_arg1:MovieClip, _arg2:Number, _arg3:MapManager=null):void{
lastTime = getTimer();
remainTime = 20;
lastTime2 = getTimer();
super();
addFrameScript(0, frame1);
mapMngr = _arg3;
hero = _arg1;
this.mapNum = _arg2;
gotoAndStop(_arg2);
}
public function enterFrameHandler():void{
updateFPS();
updateHealth();
if (mapNum != 1){
updateAmmo();
};
if (mapNum == 3){
updateRadiation();
updateTime();
};
}
private function updateTime():void{
time.text = ("time: " + hero.remainTime);
if (hero.remainTime >= 0){
time_mc.gotoAndStop(hero.remainTime);
};
}
private function updateAmmo():void{
if (ammoBar.currentLabel == "bat"){
ammoBar.ammo.text = 1000;
} else {
if (ammoBar.currentLabel == "uzi"){
ammoBar.ammo.text = mapMngr.uziAmmo;
} else {
if (ammoBar.currentLabel == "shot"){
ammoBar.ammo.text = String(mapMngr.shotAmmo);
} else {
if (ammoBar.currentLabel == "aka"){
ammoBar.ammo.text = String(mapMngr.akaAmmo);
} else {
ammoBar.ammo.text = String(1000);
};
};
};
};
}
public function playInsufficient():void{
insufficient.play();
}
function frame1(){
stop();
}
private function updateHealth():void{
hb.hb.scaleX = (hero.life / 100);
}
private function updateFPS():void{
fpsCount++;
if ((getTimer() - lastTime) > 1000){
lastTime = getTimer();
fps_txt.text = ("fps: " + fpsCount);
fpsCount = 0;
};
}
private function updateRadiation():void{
rb.rb.scaleX = (hero.radiation / 100);
}
}
}//package map
Section 47
//Level_1 (map.Level_1)
package map {
import flash.display.*;
public dynamic class Level_1 extends MovieClip {
public var p:MovieClip;
}
}//package map
Section 48
//Level_2 (map.Level_2)
package map {
import flash.display.*;
public dynamic class Level_2 extends MovieClip {
public var p:MovieClip;
}
}//package map
Section 49
//Level_3 (map.Level_3)
package map {
import flash.display.*;
public dynamic class Level_3 extends MovieClip {
public var p:MovieClip;
}
}//package map
Section 50
//Level_4 (map.Level_4)
package map {
import flash.display.*;
public dynamic class Level_4 extends MovieClip {
public var p:MovieClip;
}
}//package map
Section 51
//Level_5 (map.Level_5)
package map {
import flash.display.*;
public dynamic class Level_5 extends MovieClip {
public var p:MovieClip;
}
}//package map
Section 52
//MapManager (map.MapManager)
package map {
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import bigroom.input.*;
import windows.*;
import enemies.*;
import hero.*;
import flash.events.*;
import flash.ui.*;
import flash.geom.*;
public class MapManager extends MovieClip {
private var skyGround:MovieClip;
private var heroLife:int;// = 100
public var shadowLayer:MovieClip;
private var music:Sound;
private var mapInited:Boolean;// = false
private var winMngr:WindowManager;
private var musicBackSecond:Sound;
private var key:KeyPoll;
private var toggleEnemySide_L3:Boolean;// = true
public var level2enabled:Boolean;// = false
private var boss3:MovieClip;
private var coefFore:Number;// = 0
private var foreWidth:Number;// = 0
public var mapNum:int;// = 0
private var coefBack:Number;// = 0
private var channelBack:SoundChannel;
private var musicBack:Sound;
private var enterFrameCounter:int;
public var mapClip:MovieClip;
private var lastMapNum:int;// = 0
public var akaAmmo:uint;// = 0
private var stalactites:Array;
public var shotAmmo:uint;// = 0
private var theRoot:Sprite;
public var hud:Hud;
public var isPaused:Boolean;// = false
private var channel:SoundChannel;
private var camera:ScreenTargeter;
private var backWidth:Number;// = 0
public var bombsHolder:MovieClip;
private var isClear:Boolean;// = true
public var fight_enabled_1:Boolean;// = false
private var timer:Number;
public var fight_enabled_3:Boolean;// = false
private var backGround:MovieClip;
public var foreground:MovieClip;
public var uziAmmo:uint;// = 50
private var soundObj:Object;
public var enemiesHolder:MovieClip;
public var firstTimeFightLevel4:Boolean;// = true
private var enemy:MovieClip;
private var mapParamsObj:Object;
public var itemsHolder:MovieClip;
private var isMapParamsChanged:Boolean;// = false
private var channelBackSecond:SoundChannel;
private var zayoNum:int;// = 0
private var grounds:Array;
private var mustRestart:Boolean;// = false
public var drawingLayer:Sprite;
public var introStalactiteFirstTime:Boolean;// = true
private var lastPosition:Number;// = 0
private var hero:Zayo;
public static const END_LEVEL:String = "endLevel";
public function MapManager(_arg1:Sprite, _arg2:WindowManager=null, _arg3:MovieClip=null, _arg4:Object=null, _arg5:MovieClip=null, _arg6:MovieClip=null, _arg7:MovieClip=null):void{
mapNum = 0;
lastMapNum = 0;
zayoNum = 0;
isClear = true;
isPaused = false;
timer = getTimer();
isMapParamsChanged = false;
mapParamsObj = {};
mapInited = false;
heroLife = 100;
backWidth = 0;
foreWidth = 0;
coefBack = 0;
coefFore = 0;
bombsHolder = new MovieClip();
uziAmmo = 50;
shotAmmo = 0;
akaAmmo = 0;
channel = new SoundChannel();
channelBack = new SoundChannel();
channelBackSecond = new SoundChannel();
lastPosition = 0;
introStalactiteFirstTime = true;
fight_enabled_1 = false;
fight_enabled_3 = false;
firstTimeFightLevel4 = true;
level2enabled = false;
mustRestart = false;
toggleEnemySide_L3 = true;
super();
this.soundObj = _arg4;
theRoot = _arg1;
this.winMngr = _arg2;
key = new KeyPoll(theRoot.stage);
mapParamsObj = {zx:300, zy:200, zayoNum:1, mapNum:1};
isMapParamsChanged = true;
_arg2.setMapManager(this);
shadowLayer = _arg3;
backGround = _arg5;
foreground = _arg6;
skyGround = _arg7;
backGround.cacheAsBitmap = true;
foreground.cacheAsBitmap = true;
}
private function playThunderSound():void{
var _local1:int;
var _local2:Class;
if (Math.random() < 0.02){
_local1 = Math.floor(((Math.random() * 2) + 1));
_local2 = (getDefinitionByName(("Thunder_" + _local1)) as Class);
musicBackSecond = (new (_local2) as Sound);
channelBackSecond = musicBackSecond.play();
channelBackSecond.soundTransform = new SoundTransform((soundObj.vol * 1.2));
};
}
public function dispatchEndLevel():void{
}
public function dispatchStart(_arg1=null, _arg2:Boolean=false):void{
shadowLayer.gotoAndStop(5);
winMngr.dispatchStart(_arg1);
setTimeout(removeAll, 500);
}
public function clearAll():void{
if (this.contains(mapClip)){
removeChild(mapClip);
removeChild(drawingLayer);
};
isClear = true;
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
channel.soundTransform = new SoundTransform(soundObj.vol);
hero.setVolume(_arg1);
}
public function getGraphics():Graphics{
return (drawingLayer.graphics);
}
private function enterFrameHandler(_arg1:Event=null):void{
doGravityOnItems();
hero.enterFrameHandler();
checkEnemyPos();
if (mapNum != 1){
camera.moveToTarget();
};
if (mapNum == 5){
boss3.update();
};
hud.enterFrameHandler();
checkShortcuts();
moveBackForeGround();
if (mapNum == 1){
playThunderSound();
};
}
public function resume():void{
Global.vars.mainTimeline.addChild(Global.vars.ekran);
channel = music.play(lastPosition, 99999);
channelBack = musicBack.play(0, 99999);
channel.soundTransform = new SoundTransform(soundObj.vol);
channelBack.soundTransform = new SoundTransform((soundObj.vol * 0.4));
addEventListener(Event.ENTER_FRAME, enterFrameHandler, false, 0, true);
hero.activate();
}
public function gotoNextLevel():void{
var _local1:Class;
var _local2:Class;
stage.focus = this;
x = 0;
y = 0;
enemiesHolder = new MovieClip();
itemsHolder = new MovieClip();
isPaused = false;
mapNum++;
zayoNum++;
Global.vars.currentLevel = mapNum;
if (!(isClear)){
clearAll();
};
if (isMapParamsChanged){
if (mapParamsObj.mapNum != null){
mapNum = mapParamsObj.mapNum;
mapParamsObj.mapNum = null;
};
if (mapParamsObj.zayoNum != null){
zayoNum = mapParamsObj.zayoNum;
mapParamsObj.zayoNum = null;
};
isMapParamsChanged = false;
};
_local1 = (getDefinitionByName(("sounds.Level" + mapNum)) as Class);
music = (new (_local1) as Sound);
_local1 = (getDefinitionByName(("sounds.LevelBack" + mapNum)) as Class);
musicBack = (new (_local1) as Sound);
_local2 = (getDefinitionByName(("map.Level_" + mapNum)) as Class);
mapClip = (new (_local2) as MovieClip);
addChild(mapClip);
hero = new Zayo(this, mapClip.p, soundObj, heroLife);
if (!((mapParamsObj.zx == null))){
hero.x = mapParamsObj.zx;
} else {
hero.x = 10000;
};
if (!((mapParamsObj.zy == null))){
hero.y = mapParamsObj.zy;
} else {
hero.y = 100;
};
if (!((mapParamsObj.xx == null))){
x = mapParamsObj.xx;
} else {
x = 0;
};
if (!((mapParamsObj.xx == null))){
mapParamsObj.xx = null;
} else {
mapParamsObj.xx = null;
};
hero.loadSkin(zayoNum);
hero.loadData(mapNum);
addChild(enemiesHolder);
addChild(itemsHolder);
if (mapNum != 1){
camera = new ScreenTargeter(this);
camera.setTarget(hero);
camera.setTargetCenterY(300);
camera.xMin(0);
camera.xMax(-32050);
camera.yMax(-600);
if (mapNum == 2){
camera.yMin(800);
camera.yMax(-400);
camera.xMax(-3800);
} else {
if (mapNum == 3){
camera.yMin(120);
camera.yMax(-100);
camera.xMax(-8300);
} else {
if (mapNum == 4){
camera.yMax(50);
camera.xMax(-2800);
} else {
if (mapNum == 5){
camera.yMax(-100);
camera.xMax(-5600);
};
};
};
};
};
isClear = false;
hud = new Hud(hero, mapNum, this);
theRoot.addChild(hud);
hero.setWeaponHud(hud);
drawingLayer = new Sprite();
addChild(drawingLayer);
if (mapNum == 1){
} else {
if (mapNum == 4){
};
};
if (lastMapNum != mapNum){
heroLife = 100;
hero.life = heroLife;
lastMapNum = mapNum;
};
shadowLayer.gotoAndStop(mapNum);
backGround.gotoAndStop(mapNum);
foreground.gotoAndStop(mapNum);
skyGround.gotoAndStop(mapNum);
backWidth = backGround.width;
foreWidth = foreground.width;
coefBack = ((backWidth - stage.stageWidth) / (mapClip.width - stage.stageWidth));
coefFore = ((foreWidth - stage.stageWidth) / (mapClip.width - stage.stageWidth));
if (mapNum == 5){
boss3 = new Boss_3(hero, this);
addChild(boss3);
boss3.y = 50;
if (contains(bombsHolder)){
removeChild(bombsHolder);
};
removeBombs();
bombsHolder = new MovieClip();
addChild(bombsHolder);
};
}
public function showDie():void{
winMngr.addMe();
}
private function doGravityOnItems(){
var _local1:*;
var _local2:*;
var _local3:Point;
_local1 = 0;
while (_local1 < itemsHolder.numChildren) {
_local2 = itemsHolder.getChildAt(_local1);
_local3 = itemsHolder.localToGlobal(new Point(_local2.x, (_local2.y + (_local2.height / 2))));
if (!(mapClip.p.hitTestPoint(_local3.x, _local3.y, true))){
_local2.y = (_local2.y + 4);
};
_local1++;
};
}
private function removeBoss3(){
if (mapNum == 5){
if (contains(boss3)){
removeChild(boss3);
};
};
}
public function substract_1():void{
mapNum--;
zayoNum--;
}
private function removeAll():void{
removeBombs();
removeBoss3();
if (contains(enemiesHolder)){
removeChild(enemiesHolder);
};
if (contains(itemsHolder)){
removeChild(itemsHolder);
};
if (contains(hero)){
removeChild(hero);
};
hideBackForeGround();
channel.stop();
if (theRoot.contains(hud)){
theRoot.removeChild(hud);
};
if (theRoot.contains(this)){
theRoot.removeChild(this);
};
if (this.contains(mapClip)){
removeChild(mapClip);
};
removeEventListener(Event.ENTER_FRAME, enterFrameHandler, false);
removeEventListener(Event.ENTER_FRAME, checkShortcuts, false);
}
public function resetHeroLife():void{
hideBackForeGround();
mustRestart = false;
heroLife = 100;
akaAmmo = 0;
}
public function resetAllProperties():void{
removeBoss3();
hideBackForeGround();
shadowLayer.gotoAndStop(5);
mustRestart = false;
uziAmmo = 100;
shotAmmo = 0;
akaAmmo = 0;
heroLife = 100;
lastMapNum = 0;
mapNum = 1;
zayoNum = 1;
mapParamsObj = {};
lastPosition = 0;
isMapParamsChanged = true;
mapParamsObj = {mapNum:1, zayoNum:1, zx:10, zy:200};
if (contains(enemiesHolder)){
removeChild(enemiesHolder);
};
if (contains(itemsHolder)){
removeChild(itemsHolder);
};
if (contains(hero)){
removeChild(hero);
};
}
public function returnBoss(){
if (boss3){
return (boss3);
};
}
public function checkShortcuts(_arg1:Event=null):void{
if (((key.isDown(Keyboard.ESCAPE)) && (((getTimer() - timer) > 300)))){
SoundMixer.stopAll();
timer = getTimer();
if (isPaused){
winMngr.removePause();
if (mapNum == 1){
shadowLayer.gotoAndStop(1);
};
foreground.gotoAndStop(mapNum);
} else {
if (mapNum == 1){
shadowLayer.gotoAndStop(5);
};
foreground.gotoAndStop(1);
isPaused = true;
pause();
winMngr.showPause();
};
};
}
public function spawnEnemy(_arg1:int, _arg2:int, _arg3:Class, _arg4:int=100, _arg5:String="Skin_8"):MovieClip{
if (mapNum == 3){
return (spawnEnemyOnLevel3(_arg1, _arg2, _arg3, _arg4, _arg5));
};
enemy = new _arg3(mapClip.p, hero, _arg4, soundObj);
enemiesHolder.addChild(enemy);
enemy.x = _arg1;
enemy.y = _arg2;
return (enemy);
}
public function checkEnemyPos():void{
var _local1:int;
var _local2:*;
var _local3:MovieClip;
_local1 = 0;
_local2 = hero.enemies.length;
while (_local1 < _local2) {
_local3 = hero.enemies[_local1];
if (_local3.y >= 600){
_local3.die();
hero.enemies.splice(_local1, 1);
setTimeout(removeEnemyFromStage2, 3000, _local3);
};
_local1++;
};
}
public function setNextMapParams(_arg1:Object):void{
isMapParamsChanged = true;
mapParamsObj = _arg1;
}
public function removeBomb(_arg1:Object):void{
boss3.removeBomb(_arg1);
}
public function showInfo(_arg1:String, _arg2:String):void{
winMngr.showInfo(_arg1, _arg2);
}
public function dispatchDie():void{
winMngr.showDie(mapNum);
pause();
removeAll();
}
public function hideBackForeGround(){
shadowLayer.gotoAndStop(5);
backGround.gotoAndStop(1);
foreground.gotoAndStop(1);
skyGround.gotoAndStop(1);
shadowLayer.x = 0;
backGround.x = 0;
foreground.x = 0;
}
public function removeEnemyFromStage2(_arg1:Object):void{
if (_arg1.parent){
if (_arg1.parent.contains(_arg1)){
_arg1.parent.removeChild(_arg1);
};
};
}
public function resetLevel_1_fight():void{
var _local1:*;
if (((((fight_enabled_1) || (fight_enabled_3))) && ((mapNum == 1)))){
_local1 = {xx:0, zx:0, zy:105, zayoNum:1, mapNum:1};
setNextMapParams(_local1);
fight_enabled_1 = false;
fight_enabled_3 = false;
};
}
private function spawnEnemyOnLevel3(_arg1:int, _arg2:int, _arg3:Class, _arg4:int=100, _arg5:String="Skin_8"):MovieClip{
toggleEnemySide_L3 = !(toggleEnemySide_L3);
enemy = new _arg3(mapClip.p, hero, _arg4, soundObj);
enemiesHolder.addChild(enemy);
if ((((((_arg5 == "Skin_8")) || ((_arg5 == "Skin_9")))) || ((_arg5 == "Skin_10")))){
enemy.y = 150;
if (toggleEnemySide_L3){
enemy.x = (hero.x - 500);
} else {
enemy.x = (hero.x + 500);
};
} else {
if (_arg5 == "Skin_11"){
enemy.y = 220;
if (hero.x < 950){
enemy.x = (hero.x - 500);
if (enemy.x < 0){
enemy.x = 0;
};
} else {
if (hero.x > 1400){
enemy.x = (hero.x + 500);
if (enemy.x > 2100){
enemy.x = 2050;
};
} else {
if ((((hero.x > 950)) && ((hero.x < 1400)))){
enemy.x = 400;
};
};
};
};
};
return (enemy);
}
private function moveBackForeGround(){
backGround.x = (x * coefBack);
foreground.x = (x * coefFore);
backGround.y = (y * 0.5);
foreground.y = (y * 2);
if (foreground.y < -200){
foreground.y = -200;
};
}
private function removeBombs(){
var _local1:*;
if (mapNum == 5){
_local1 = 0;
while (_local1 < bombsHolder.numChildren) {
bombsHolder.removeChild(bombsHolder.getChildAt(_local1));
_local1++;
};
if (contains(bombsHolder)){
removeChild(bombsHolder);
};
};
}
public function pause():void{
Global.vars.mainTimeline.removeChild(Global.vars.ekran);
heroLife = hero.life;
channel.stop();
channelBack.stop();
removeEventListener(Event.ENTER_FRAME, enterFrameHandler, false);
hero.deactivate();
}
}
}//package map
Section 53
//ScreenTargeter (map.ScreenTargeter)
package map {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class ScreenTargeter extends Sprite {
private var _yMax:Number;// = NAN
private var easeCoef:Number;// = 6
private var targPoint:Point;
private var _xMin:Number;// = NAN
private var _usePoint:Boolean;// = false
private var mouseDiviserX:Number;// = 7
private var _xMax:Number;// = NAN
private var _useMouse:Boolean;// = true
private var mouseDiviserY:Number;// = 5
private var targSprite:Sprite;
private var _useYAxis:Boolean;// = true
private var targetCenterY:Number;// = 225
private var targetCenterX:Number;// = 375
private var baseSprite:Sprite;
private var _yMin:Number;// = NAN
public function ScreenTargeter(_arg1:Sprite):void{
easeCoef = 6;
_useMouse = true;
_useYAxis = true;
_usePoint = false;
mouseDiviserX = 7;
mouseDiviserY = 5;
targetCenterX = 375;
targetCenterY = 225;
_xMin = NaN;
_xMax = NaN;
_yMin = NaN;
_yMax = NaN;
super();
this.baseSprite = _arg1;
this.targSprite = new Sprite();
}
public function setMouseDivisorY(_arg1:Number):void{
mouseDiviserY = _arg1;
}
public function yMin(_arg1:Number):void{
_yMin = _arg1;
}
public function setTargetX(_arg1:Number):void{
baseSprite.x = _arg1;
}
public function yMax(_arg1:Number):void{
_yMax = _arg1;
}
public function setMouseDivisorX(_arg1:Number):void{
mouseDiviserX = _arg1;
}
public function usePoint(_arg1:Boolean):void{
_usePoint = _arg1;
}
public function setBase(_arg1:Sprite):void{
baseSprite = _arg1;
}
public function setPoint(_arg1:Point):void{
targPoint = _arg1;
}
public function deactivate():void{
removeEventListener(Event.ENTER_FRAME, moveToTarget, false);
}
public function useMouse(_arg1:Boolean):void{
_useMouse = _arg1;
}
public function useYAxis(_arg1:Boolean):void{
this._useYAxis = _arg1;
}
public function setTargetCenterX(_arg1:Number):void{
targetCenterX = _arg1;
}
public function setTargetCenterY(_arg1:Number):void{
targetCenterY = _arg1;
}
public function setTarget(_arg1:Sprite):void{
targSprite = _arg1;
}
public function setEaseCoef(_arg1:Number):void{
easeCoef = _arg1;
}
public function xMin(_arg1:Number):void{
_xMin = _arg1;
}
public function xMax(_arg1:Number):void{
_xMax = _arg1;
}
public function moveToTarget(_arg1:Event=null):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (_usePoint){
_local3 = (_useMouse) ? ((baseSprite.mouseX - targPoint.x) / mouseDiviserX) : 0;
_local4 = (targetCenterX - targPoint.x);
} else {
_local3 = (_useMouse) ? ((baseSprite.mouseX - targSprite.x) / mouseDiviserX) : 0;
_local4 = (targetCenterX - targSprite.x);
};
_local2 = (_local4 - _local3);
_local2 = (((!(isNaN(_xMin))) && ((_local2 > _xMin)))) ? _xMin : _local2;
_local2 = (((!(isNaN(_xMax))) && ((_local2 < _xMax)))) ? _xMax : _local2;
baseSprite.x = (baseSprite.x + ((_local2 - baseSprite.x) / easeCoef));
if (_useYAxis){
if (_usePoint){
_local6 = (_useMouse) ? ((baseSprite.mouseY - targPoint.y) / mouseDiviserY) : 0;
_local7 = (targetCenterY - targPoint.y);
} else {
_local6 = (_useMouse) ? ((baseSprite.mouseY - targSprite.y) / mouseDiviserY) : 0;
_local7 = (targetCenterY - targSprite.y);
};
_local5 = (_local7 - _local6);
_local5 = (((!(isNaN(_yMax))) && ((_local5 < _yMax)))) ? _yMax : _local5;
_local5 = (((!(isNaN(_yMin))) && ((_local5 > _yMin)))) ? _yMin : _local5;
baseSprite.y = (baseSprite.y + ((_local5 - baseSprite.y) / easeCoef));
};
}
public function activate():void{
addEventListener(Event.ENTER_FRAME, moveToTarget, false, 0, true);
}
}
}//package map
Section 54
//Shadows (map.Shadows)
package map {
import flash.display.*;
public dynamic class Shadows extends MovieClip {
public function Shadows(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package map
Section 55
//SkyGround (map.SkyGround)
package map {
import flash.display.*;
public dynamic class SkyGround extends MovieClip {
public function SkyGround(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package map
Section 56
//AkaW (sounds.AkaW)
package sounds {
import flash.media.*;
public dynamic class AkaW extends Sound {
}
}//package sounds
Section 57
//BatW (sounds.BatW)
package sounds {
import flash.media.*;
public dynamic class BatW extends Sound {
}
}//package sounds
Section 58
//Boss_1_die (sounds.Boss_1_die)
package sounds {
import flash.media.*;
public dynamic class Boss_1_die extends Sound {
}
}//package sounds
Section 59
//Boss_2_die (sounds.Boss_2_die)
package sounds {
import flash.media.*;
public dynamic class Boss_2_die extends Sound {
}
}//package sounds
Section 60
//Boss_3_die (sounds.Boss_3_die)
package sounds {
import flash.media.*;
public dynamic class Boss_3_die extends Sound {
}
}//package sounds
Section 61
//Boss_laugh (sounds.Boss_laugh)
package sounds {
import flash.media.*;
public dynamic class Boss_laugh extends Sound {
}
}//package sounds
Section 62
//Bridge_fall (sounds.Bridge_fall)
package sounds {
import flash.media.*;
public dynamic class Bridge_fall extends Sound {
}
}//package sounds
Section 63
//ChaingunW (sounds.ChaingunW)
package sounds {
import flash.media.*;
public dynamic class ChaingunW extends Sound {
}
}//package sounds
Section 64
//Click (sounds.Click)
package sounds {
import flash.media.*;
public dynamic class Click extends Sound {
}
}//package sounds
Section 65
//Level1 (sounds.Level1)
package sounds {
import flash.media.*;
public dynamic class Level1 extends Sound {
}
}//package sounds
Section 66
//Level2 (sounds.Level2)
package sounds {
import flash.media.*;
public dynamic class Level2 extends Sound {
}
}//package sounds
Section 67
//Level3 (sounds.Level3)
package sounds {
import flash.media.*;
public dynamic class Level3 extends Sound {
}
}//package sounds
Section 68
//Level4 (sounds.Level4)
package sounds {
import flash.media.*;
public dynamic class Level4 extends Sound {
}
}//package sounds
Section 69
//Level5 (sounds.Level5)
package sounds {
import flash.media.*;
public dynamic class Level5 extends Sound {
}
}//package sounds
Section 70
//LevelBack1 (sounds.LevelBack1)
package sounds {
import flash.media.*;
public dynamic class LevelBack1 extends Sound {
}
}//package sounds
Section 71
//LevelBack2 (sounds.LevelBack2)
package sounds {
import flash.media.*;
public dynamic class LevelBack2 extends Sound {
}
}//package sounds
Section 72
//LevelBack3 (sounds.LevelBack3)
package sounds {
import flash.media.*;
public dynamic class LevelBack3 extends Sound {
}
}//package sounds
Section 73
//LevelBack4 (sounds.LevelBack4)
package sounds {
import flash.media.*;
public dynamic class LevelBack4 extends Sound {
}
}//package sounds
Section 74
//LevelBack5 (sounds.LevelBack5)
package sounds {
import flash.media.*;
public dynamic class LevelBack5 extends Sound {
}
}//package sounds
Section 75
//Menu2 (sounds.Menu2)
package sounds {
import flash.media.*;
public dynamic class Menu2 extends Sound {
}
}//package sounds
Section 76
//Projector (sounds.Projector)
package sounds {
import flash.media.*;
public dynamic class Projector extends Sound {
}
}//package sounds
Section 77
//ShotgunW (sounds.ShotgunW)
package sounds {
import flash.media.*;
public dynamic class ShotgunW extends Sound {
}
}//package sounds
Section 78
//Skin_1_die (sounds.Skin_1_die)
package sounds {
import flash.media.*;
public dynamic class Skin_1_die extends Sound {
}
}//package sounds
Section 79
//Skin_10_die (sounds.Skin_10_die)
package sounds {
import flash.media.*;
public dynamic class Skin_10_die extends Sound {
}
}//package sounds
Section 80
//Skin_11_die (sounds.Skin_11_die)
package sounds {
import flash.media.*;
public dynamic class Skin_11_die extends Sound {
}
}//package sounds
Section 81
//Skin_2_die (sounds.Skin_2_die)
package sounds {
import flash.media.*;
public dynamic class Skin_2_die extends Sound {
}
}//package sounds
Section 82
//Skin_3_die (sounds.Skin_3_die)
package sounds {
import flash.media.*;
public dynamic class Skin_3_die extends Sound {
}
}//package sounds
Section 83
//Skin_4_die (sounds.Skin_4_die)
package sounds {
import flash.media.*;
public dynamic class Skin_4_die extends Sound {
}
}//package sounds
Section 84
//Skin_5_die (sounds.Skin_5_die)
package sounds {
import flash.media.*;
public dynamic class Skin_5_die extends Sound {
}
}//package sounds
Section 85
//Skin_6_die (sounds.Skin_6_die)
package sounds {
import flash.media.*;
public dynamic class Skin_6_die extends Sound {
}
}//package sounds
Section 86
//Skin_7_die (sounds.Skin_7_die)
package sounds {
import flash.media.*;
public dynamic class Skin_7_die extends Sound {
}
}//package sounds
Section 87
//Skin_8_die (sounds.Skin_8_die)
package sounds {
import flash.media.*;
public dynamic class Skin_8_die extends Sound {
}
}//package sounds
Section 88
//Skin_9_die (sounds.Skin_9_die)
package sounds {
import flash.media.*;
public dynamic class Skin_9_die extends Sound {
}
}//package sounds
Section 89
//Stalactite (sounds.Stalactite)
package sounds {
import flash.media.*;
public dynamic class Stalactite extends Sound {
}
}//package sounds
Section 90
//UziW (sounds.UziW)
package sounds {
import flash.media.*;
public dynamic class UziW extends Sound {
}
}//package sounds
Section 91
//Warning (sounds.Warning)
package sounds {
import flash.media.*;
public dynamic class Warning extends Sound {
}
}//package sounds
Section 92
//Cinema (windows.Cinema)
package windows {
import sounds.*;
import flash.display.*;
import flash.events.*;
import map.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
public class Cinema extends MovieClip {
private var counter:int;// = 0
private var channel:SoundChannel;
private var parentClip:Sprite;
private var sound:Sound;
private var curFunc:Function;
private var fadeOut:MovieClip;
private var soundObj:Object;
private var fade:Boolean;// = false
private var skipButton:MovieClip;
private var isSkipped:Boolean;// = false
private var fadeIn:MovieClip;
private var mapManager:MapManager;
private var cinemaNum:int;// = 0
private var cinemaClip:MovieClip;
public static const END_MOVIE:String = "endMovie";
public function Cinema(_arg1=null):void{
counter = 0;
cinemaNum = 0;
isSkipped = false;
fade = false;
super();
this.soundObj = _arg1;
fadeIn = new FadeIn();
fadeOut = new FadeOut();
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
}
public function addMe(_arg1:Sprite, _arg2:int, _arg3:MapManager, _arg4:Boolean=false):void{
this.fade = _arg4;
mapManager = _arg3;
counter = 0;
cinemaNum = _arg2;
if (cinemaNum == 3){
cinemaNum++;
};
this.parentClip = _arg1;
this.parentClip.addChild(this);
MovieClip(addChild(fadeIn)).gotoAndPlay(1);
curFunc = firstPartFunction;
addEventListener(Event.ENTER_FRAME, curFunc, false, 0, true);
}
private function secondPartFunction(_arg1:Event=null):void{
if (counter > -1){
counter++;
} else {
if (((isSkipped) || ((cinemaClip.currentFrame == (cinemaClip.totalFrames - 10))))){
MovieClip(addChild(fadeIn)).gotoAndPlay(1);
skipButton.removeEventListener(MouseEvent.MOUSE_DOWN, skipMovie, false);
removeChild(skipButton);
counter = 0;
};
};
if (counter == 10){
removeChild(fadeIn);
MovieClip(addChild(fadeOut)).gotoAndPlay(1);
dispatchEvent(new Event(Cinema.END_MOVIE));
removeChild(cinemaClip);
} else {
if (counter == 20){
removeEventListener(Event.ENTER_FRAME, curFunc, false);
removeChild(fadeOut);
cinemaClip.stop();
parentClip.removeChild(this);
};
};
}
private function firstPartFunction(_arg1:Event=null):void{
var _local2:Class;
counter++;
if ((((counter == 20)) && (fade))){
if (parentClip.contains(mapManager)){
parentClip.removeChild(mapManager.hud);
parentClip.removeChild(mapManager);
};
removeChild(fadeIn);
MovieClip(addChild(fadeOut)).gotoAndPlay(1);
dispatchEvent(new Event(Cinema.END_MOVIE));
} else {
if ((((counter == 10)) && (!(fade)))){
if (cinemaNum <= 0){
cinemaNum = 1;
};
_local2 = (getDefinitionByName(("windows.Cinema_" + cinemaNum)) as Class);
cinemaClip = (new (_local2) as MovieClip);
addChild(cinemaClip);
if (parentClip.contains(mapManager)){
parentClip.removeChild(mapManager.hud);
parentClip.removeChild(mapManager);
};
removeChild(fadeIn);
MovieClip(addChild(fadeOut)).gotoAndPlay(1);
} else {
if ((((counter == 40)) && (fade))){
removeEventListener(Event.ENTER_FRAME, curFunc, false);
removeChild(fadeOut);
parentClip.removeChild(this);
fade = false;
} else {
if (counter == 20){
removeChild(fadeOut);
skipButton = new SkipBtn();
skipButton.buttonMode = true;
addChild(skipButton);
if (cinemaNum == 1){
skipButton.visible = false;
} else {
skipButton.visible = true;
};
if (cinemaNum == 11){
skipButton.gotoAndStop(2);
};
removeEventListener(Event.ENTER_FRAME, curFunc, false);
curFunc = secondPartFunction;
addEventListener(Event.ENTER_FRAME, curFunc, false, 0, true);
skipButton.addEventListener(MouseEvent.MOUSE_DOWN, skipMovie, false, 0, true);
counter = -1;
isSkipped = false;
};
};
};
};
}
private function skipMovie(_arg1:MouseEvent=null):void{
if (cinemaNum == 11){
navigateToURL(new URLRequest("http://www.arcadebomb.com/play/zayo.html"), "_blank");
return;
};
isSkipped = true;
}
}
}//package windows
Section 93
//Cinema_1 (windows.Cinema_1)
package windows {
import flash.display.*;
public dynamic class Cinema_1 extends MovieClip {
public function Cinema_1(){
addFrameScript(165, frame166);
}
function frame166(){
stop();
}
}
}//package windows
Section 94
//Cinema_10 (windows.Cinema_10)
package windows {
import flash.display.*;
public dynamic class Cinema_10 extends MovieClip {
public function Cinema_10(){
addFrameScript(424, frame425);
}
function frame425(){
stop();
}
}
}//package windows
Section 95
//Cinema_11 (windows.Cinema_11)
package windows {
import flash.display.*;
public dynamic class Cinema_11 extends MovieClip {
public function Cinema_11(){
addFrameScript(705, frame706, 722, frame723);
}
function frame723(){
stop();
}
function frame706(){
stop();
}
}
}//package windows
Section 96
//Cinema_2 (windows.Cinema_2)
package windows {
import flash.display.*;
public dynamic class Cinema_2 extends MovieClip {
public function Cinema_2(){
addFrameScript(169, frame170);
}
function frame170(){
stop();
}
}
}//package windows
Section 97
//Cinema_4 (windows.Cinema_4)
package windows {
import flash.display.*;
public dynamic class Cinema_4 extends MovieClip {
public function Cinema_4(){
addFrameScript(195, frame196);
}
function frame196(){
stop();
}
}
}//package windows
Section 98
//Cinema_5 (windows.Cinema_5)
package windows {
import flash.display.*;
public dynamic class Cinema_5 extends MovieClip {
public function Cinema_5(){
addFrameScript(1820, frame1821);
}
function frame1821(){
stop();
}
}
}//package windows
Section 99
//Cinema_6 (windows.Cinema_6)
package windows {
import flash.display.*;
public dynamic class Cinema_6 extends MovieClip {
public function Cinema_6(){
addFrameScript(439, frame440);
}
function frame440(){
stop();
}
}
}//package windows
Section 100
//Cinema_7 (windows.Cinema_7)
package windows {
import flash.display.*;
public dynamic class Cinema_7 extends MovieClip {
public function Cinema_7(){
addFrameScript(143, frame144, 1158, frame1159);
}
function frame144(){
gotoAndPlay(250);
}
function frame1159(){
stop();
}
}
}//package windows
Section 101
//Cinema_8 (windows.Cinema_8)
package windows {
import flash.display.*;
public dynamic class Cinema_8 extends MovieClip {
public function Cinema_8(){
addFrameScript(65, frame66);
}
function frame66(){
stop();
}
}
}//package windows
Section 102
//Cinema_9 (windows.Cinema_9)
package windows {
import flash.display.*;
public dynamic class Cinema_9 extends MovieClip {
public function Cinema_9(){
addFrameScript(369, frame370);
}
function frame370(){
stop();
}
}
}//package windows
Section 103
//FadeIn (windows.FadeIn)
package windows {
import flash.display.*;
public dynamic class FadeIn extends MovieClip {
public function FadeIn(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package windows
Section 104
//FadeOut (windows.FadeOut)
package windows {
import flash.display.*;
public dynamic class FadeOut extends MovieClip {
public function FadeOut(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package windows
Section 105
//GameOverMenu (windows.GameOverMenu)
package windows {
import map.*;
import flash.events.*;
import flash.display.*;
public class GameOverMenu extends MovieClip {
public var restart_btn:MovieClip;
public var movie:MovieClip;
private var mapManager:MapManager;
public var main_btn:MovieClip;
public function GameOverMenu(_arg1:int=2, _arg2:MapManager=null):void{
addFrameScript(9, frame10);
mapManager = _arg2;
addOverOutFunc(restart_btn);
addOverOutFunc(main_btn);
addMouseDownFunc(restart_btn, restart);
addMouseDownFunc(main_btn, mainMenu);
movie.gotoAndStop(_arg1);
}
public function restart(_arg1:MouseEvent):void{
mapManager.resetHeroLife();
WindowManager(parent).dispatchRestart();
}
private function addMouseDownFunc(_arg1:MovieClip, _arg2:Function):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, _arg2, false, 0, true);
}
function frame10(){
stop();
}
private function addOverOutFunc(_arg1:MovieClip):void{
_arg1.buttonMode = true;
}
public function mainMenu(_arg1:MouseEvent):void{
WindowManager(parent).dispatchMain();
}
}
}//package windows
Section 106
//Info (windows.Info)
package windows {
import flash.display.*;
import flash.text.*;
public dynamic class Info extends MovieClip {
public var anim:MovieClip;
public var txt:TextField;
}
}//package windows
Section 107
//PauseMenu (windows.PauseMenu)
package windows {
import map.*;
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.net.*;
import flash.display.*;
public class PauseMenu extends MovieClip {
public var restart_btn:SimpleButton;
public var mute_btn:SimpleButton;
private var winMngr:WindowManager;
private var tween:Tween;
public var resume_btn:SimpleButton;
public var skulls:MovieClip;
private var mapMngr:MapManager;
public var main_btn:SimpleButton;
public function PauseMenu(_arg1:WindowManager, _arg2:MapManager=null):void{
mapMngr = _arg2;
winMngr = _arg1;
addMouseDownFunc(resume_btn, resumeDownEvent);
addMouseDownFunc(main_btn, mainDownEvent);
addMouseDownFunc(restart_btn, restartDownEvent);
addMouseDownFunc(mute_btn, muteDownEvent);
}
private function skullEase(_arg1:MouseEvent):void{
var _local2:*;
if (_arg1.currentTarget.name != "addThisGame_btn"){
_local2 = _arg1.currentTarget;
tween = new Tween(skulls, "y", Strong.easeOut, skulls.y, _local2.y, 0.5, true);
};
}
private function addMouseDownFunc(_arg1, _arg2:Function):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, _arg2, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_OVER, skullEase, false, 0, true);
}
private function mainDownEvent(_arg1:MouseEvent):void{
winMngr.pause_dispatchMain();
}
private function resumeDownEvent(_arg1:MouseEvent=null):void{
winMngr.removePause();
mapMngr.shadowLayer.gotoAndStop(mapMngr.mapNum);
mapMngr.foreground.gotoAndStop(mapMngr.mapNum);
}
private function restartDownEvent(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com/play/zayo.html"), "_blank");
}
private function muteDownEvent(_arg1:MouseEvent=null):void{
winMngr.pause_mute();
winMngr.removePause();
}
}
}//package windows
Section 108
//SkipBtn (windows.SkipBtn)
package windows {
import flash.display.*;
public dynamic class SkipBtn extends MovieClip {
public function SkipBtn(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package windows
Section 109
//StartMenu_1_ (windows.StartMenu_1_)
package windows {
import flash.display.*;
public dynamic class StartMenu_1_ extends MovieClip {
public function StartMenu_1_(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package windows
Section 110
//StartMenu_1_new (windows.StartMenu_1_new)
package windows {
import flash.events.*;
import flash.net.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import sounds.*;
import flash.display.*;
import flash.media.*;
public class StartMenu_1_new extends MovieClip {
private var newWinFunc:Function;
private var sound:Sound;
public var content_mc:MovieClip;
private var menuIsWaiting:Boolean;// = false
public var credits_btn:SimpleButton;
private var winMngr:WindowManager;
private var tween:Tween;
public var fader:MovieClip;
public var how_to_btn:SimpleButton;
public var more_btn:SimpleButton;
public var addThisGame_btn:SimpleButton;
public var arcade_btn:SimpleButton;
public var skulls:MovieClip;
public var play_btn:SimpleButton;
private var waitingNum:int;// = 1
private var quality:int;// = 1
public static const START:String = "start";
public function StartMenu_1_new(_arg1:WindowManager=null):void{
quality = 1;
menuIsWaiting = false;
waitingNum = 1;
super();
addFrameScript(0, frame1);
winMngr = _arg1;
fader.mouseEnabled = false;
addMouseDownFunc(addThisGame_btn, addThisFunc);
addMouseDownFunc(arcade_btn, arcadeFunc);
addMouseDownFunc(play_btn, startGame);
addMouseDownFunc(how_to_btn, gotoHowTo);
addMouseDownFunc(credits_btn, gotoCredits);
addMouseDownFunc(more_btn, gotoMore);
}
private function skullEase(_arg1:MouseEvent):void{
var _local2:*;
if (_arg1.currentTarget.name != "addThisGame_btn"){
_local2 = _arg1.currentTarget;
tween = new Tween(skulls, "y", Strong.easeOut, skulls.y, _local2.y, 0.5, true);
};
}
private function toggleMed(_arg1:MouseEvent):void{
toggleQual(2);
}
private function arcadeFunc(_arg1):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
private function toggleHigh(_arg1:MouseEvent):void{
toggleQual(1);
}
private function addMouseDownFunc(_arg1, _arg2:Function):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, _arg2, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_OVER, skullEase, false, 0, true);
}
private function addThisFunc(_arg1):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com/free_website_games.html"), "_blank");
}
private function checkFrame(_arg1:Event):void{
if (fader.currentFrame == fader.totalFrames){
removeEventListener(Event.ENTER_FRAME, checkFrame, false);
winMngr.removeChild(this);
dispatchEvent(new Event(StartMenu_1_new.START));
};
}
private function addOverOutFunc(_arg1:MovieClip):void{
_arg1.addEventListener(MouseEvent.MOUSE_OVER, playButton, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, stopButton, false, 0, true);
}
private function startGameFunc():void{
dispatchEvent(new Event(StartMenu_1_new.START));
}
private function gotoHowTo(_arg1):void{
if (menuIsWaiting){
content_mc.gotoAndStop(waitingNum);
menuIsWaiting = false;
};
if (content_mc.y == 0){
content_mc.gotoAndStop(1);
tween = new Tween(content_mc, "y", Strong.easeInOut, 0, 215, 1, true);
} else {
if (content_mc.y == 215){
menuIsWaiting = true;
waitingNum = 1;
tween = new Tween(content_mc, "y", Strong.easeInOut, 215, 0, 1, true);
tween.addEventListener(TweenEvent.MOTION_FINISH, gotoHowTo, false, 0, true);
};
};
}
private function gotoMore(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
function frame1(){
stop();
}
private function startGame(_arg1:MouseEvent):void{
addEventListener(Event.ENTER_FRAME, checkFrame, false, 0, true);
fader.play();
}
private function renderQualityMenu(_arg1:Event):void{
content_mc.removeEventListener(Event.RENDER, renderQualityMenu, false);
toggleQual(quality);
content_mc.high_btn.addEventListener(MouseEvent.MOUSE_DOWN, toggleHigh, false, 0, true);
content_mc.med_btn.addEventListener(MouseEvent.MOUSE_DOWN, toggleMed, false, 0, true);
content_mc.low_btn.addEventListener(MouseEvent.MOUSE_DOWN, toggleLow, false, 0, true);
content_mc.high_btn.buttonMode = true;
content_mc.med_btn.buttonMode = true;
content_mc.low_btn.buttonMode = true;
}
private function toggleLow(_arg1:MouseEvent):void{
toggleQual(3);
}
private function playButton(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.currentTarget);
_local2.play();
}
private function gotoZayo1(_arg1):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com/play/zayo.html"), "_blank");
}
private function gotoCredits(_arg1):void{
if (menuIsWaiting){
content_mc.gotoAndStop(waitingNum);
menuIsWaiting = false;
};
if (content_mc.y == 0){
content_mc.gotoAndStop(2);
tween = new Tween(content_mc, "y", Strong.easeInOut, 0, 215, 1, true);
} else {
if (content_mc.y == 215){
menuIsWaiting = true;
waitingNum = 1;
tween = new Tween(content_mc, "y", Strong.easeInOut, 215, 0, 1, true);
tween.addEventListener(TweenEvent.MOTION_FINISH, gotoCredits, false, 0, true);
};
};
}
private function playClickSound(_arg1:MouseEvent):void{
sound = new Click();
sound.play();
}
private function toggleQual(_arg1:int=1):void{
quality = _arg1;
if (quality == 1){
stage.quality = StageQuality.HIGH;
content_mc.high_btn.gotoAndStop(2);
content_mc.med_btn.gotoAndStop(1);
content_mc.low_btn.gotoAndStop(1);
} else {
if (quality == 2){
stage.quality = StageQuality.MEDIUM;
content_mc.high_btn.gotoAndStop(1);
content_mc.med_btn.gotoAndStop(2);
content_mc.low_btn.gotoAndStop(1);
} else {
stage.quality = StageQuality.LOW;
content_mc.high_btn.gotoAndStop(1);
content_mc.med_btn.gotoAndStop(1);
content_mc.low_btn.gotoAndStop(2);
};
};
}
private function gotoQuality(_arg1:MouseEvent):void{
content_mc.addEventListener(Event.RENDER, renderQualityMenu, false, 0, true);
stage.invalidate();
content_mc.gotoAndStop(3);
tween = new Tween(this, "x", Strong.easeInOut, 0, -720, 1, true);
}
private function stopButton(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.currentTarget);
if ((((_local2.currentFrame < (_local2.totalFrames - 15))) && (!((_local2.currentFrame == 1))))){
_local2.gotoAndPlay((_local2.totalFrames - 15));
};
}
private function goBack(_arg1:MouseEvent):void{
tween = new Tween(this, "x", Strong.easeInOut, this.x, 0, 1, true);
}
}
}//package windows
Section 111
//StartMenu_2 (windows.StartMenu_2)
package windows {
import flash.display.*;
public dynamic class StartMenu_2 extends MovieClip {
public function StartMenu_2(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package windows
Section 112
//StartMenu_3 (windows.StartMenu_3)
package windows {
import flash.display.*;
public dynamic class StartMenu_3 extends MovieClip {
public function StartMenu_3(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package windows
Section 113
//StartMenu_4 (windows.StartMenu_4)
package windows {
import flash.display.*;
public dynamic class StartMenu_4 extends MovieClip {
public function StartMenu_4(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package windows
Section 114
//WindowManager (windows.WindowManager)
package windows {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.events.*;
import sounds.*;
import map.*;
public class WindowManager extends Sprite {
private var pauseWin:MovieClip;
private var channel:SoundChannel;
private var music:Sound;
private var timeOutVar:int;
private var timer:Timer;
private var soundObj:Object;
public var cinemaVar:Object;
private var objectives:MovieClip;
private var showInfoSound:Sound;
private var mapManager:MapManager;
private var currentWin:MovieClip;
public var mustRestart:Boolean;// = false
private var cinemaNum:int;// = 0
private var isAttached:Boolean;// = false
private var theRoot:Sprite;
public static const MUTE:String = "mute";
public static const START:String = "start";
public static const MAIN:String = "main";
public static const RESTART:String = "restart";
public function WindowManager(_arg1:Sprite, _arg2:Object=null, _arg3:int=0):void{
currentWin = new MovieClip();
channel = new SoundChannel();
isAttached = false;
cinemaNum = 0;
mustRestart = false;
super();
this.cinemaNum = _arg3;
this.soundObj = _arg2;
theRoot = _arg1;
theRoot.addChild(this);
timer = new Timer(4000, 1);
timer.addEventListener(TimerEvent.TIMER, hideInfo, false, 0, true);
}
public function removeObjectives():void{
removeChild(objectives);
}
public function pause_dispatchMain():void{
mapManager.resetLevel_1_fight();
mapManager.isPaused = false;
if (currentWin != null){
if (contains(currentWin)){
removeChild(currentWin);
};
};
theRoot.removeChild(mapManager.hud);
theRoot.removeChild(mapManager);
removeChild(pauseWin);
theRoot.removeChild(this);
mapManager.resetAllProperties();
dispatchEvent(new Event(WindowManager.MAIN));
}
public function pause_dispatchRestart():void{
mapManager.resetLevel_1_fight();
mapManager.isPaused = false;
mapManager.resetHeroLife();
if (currentWin != null){
if (contains(currentWin)){
removeChild(currentWin);
};
};
removeChild(pauseWin);
theRoot.removeChild(this);
dispatchEvent(new Event(WindowManager.RESTART));
}
private function hideInfo(_arg1:TimerEvent=null):void{
removeChild(currentWin);
removeMe();
}
public function dispatchStart(_arg1=null):void{
cinemaVar = _arg1;
dispatchEvent(new Event(WindowManager.START));
if (_arg1.main != null){
if (_arg1.main){
mustRestart = true;
};
};
}
public function addMe():void{
theRoot.addChild(this);
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
channel.soundTransform = new SoundTransform(soundObj.vol);
}
public function attachStart():void{
if (!(isAttached)){
isAttached = true;
music = new Menu2();
channel = music.play(0, 9999);
channel.soundTransform = new SoundTransform(soundObj.vol);
};
currentWin = new StartMenu_1_new(this);
addChild(currentWin);
currentWin.gotoAndStop(1);
currentWin.addEventListener(StartMenu_1_new.START, startTheGame, false, 0, true);
}
public function dispatchRestart():void{
mapManager.resetLevel_1_fight();
if (parent.contains(this)){
removeMe();
};
if (currentWin != null){
if (contains(currentWin)){
removeChild(currentWin);
};
};
dispatchEvent(new Event(WindowManager.RESTART));
}
public function showObjectives(_arg1:int=1):void{
objectives = new Objectives();
addChild(objectives);
objectives.o.gotoAndStop(_arg1);
setTimeout(removeObjectives, 7000);
}
public function removeMe():void{
theRoot.removeChild(this);
}
private function startTheGame(_arg1:Event):void{
dispatchEvent(new Event(WindowManager.START));
channel.stop();
isAttached = false;
}
public function showDie(_arg1:int=0):void{
if (contains(currentWin)){
timer.reset();
removeChild(currentWin);
currentWin = new GameOverMenu(_arg1, mapManager);
addChild(currentWin);
} else {
currentWin = new GameOverMenu(_arg1, mapManager);
addChild(currentWin);
addMe();
};
}
public function showInfo(_arg1:String, _arg2:String):void{
var _local3:*;
showInfoSound = new Warning();
_local3 = showInfoSound.play();
_local3.soundTransform = new SoundTransform(soundObj.vol);
if (((contains(currentWin)) && ((currentWin is Info)))){
timer.reset();
hideInfo();
};
addMe();
currentWin = new Info();
addChild(currentWin);
currentWin.txt.text = _arg1;
currentWin.anim.gotoAndStop(_arg2);
timer.start();
}
public function dispatchMain():void{
removeMe();
removeChild(currentWin);
mapManager.resetAllProperties();
dispatchEvent(new Event(WindowManager.MAIN));
}
public function setMapManager(_arg1:MapManager):void{
this.mapManager = _arg1;
}
public function pause_mute():void{
dispatchEvent(new Event(WindowManager.MUTE));
}
public function removePause():void{
mapManager.isPaused = false;
mapManager.resume();
if (contains(currentWin)){
timer.start();
removeChild(pauseWin);
} else {
removeChild(pauseWin);
if (parent.contains(this)){
removeMe();
};
};
}
public function showPause():void{
mapManager.isPaused = true;
if (contains(currentWin)){
timer.stop();
pauseWin = new PauseMenu(this, mapManager);
addChild(pauseWin);
} else {
pauseWin = new PauseMenu(this, mapManager);
addChild(pauseWin);
addMe();
};
}
}
}//package windows
Section 115
//__Hero_lvl_1_258 (Zayo3TheGameFix2_fla.__Hero_lvl_1_258)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class __Hero_lvl_1_258 extends MovieClip {
public var h:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 116
//_4_2_324223_135 (Zayo3TheGameFix2_fla._4_2_324223_135)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class _4_2_324223_135 extends MovieClip {
public function _4_2_324223_135(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 117
//_4_2_456456546_133 (Zayo3TheGameFix2_fla._4_2_456456546_133)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class _4_2_456456546_133 extends MovieClip {
public function _4_2_456456546_133(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 118
//546645456_141 (Zayo3TheGameFix2_fla.546645456_141)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class 546645456_141 extends MovieClip {
public function 546645456_141(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 119
//789756465_47 (Zayo3TheGameFix2_fla.789756465_47)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class 789756465_47 extends MovieClip {
public function 789756465_47(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 120
//AllMovies_EXPORT_MC_19 (Zayo3TheGameFix2_fla.AllMovies_EXPORT_MC_19)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class AllMovies_EXPORT_MC_19 extends MovieClip {
public function AllMovies_EXPORT_MC_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 121
//AllSounds_EXPORT_MC_482 (Zayo3TheGameFix2_fla.AllSounds_EXPORT_MC_482)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class AllSounds_EXPORT_MC_482 extends MovieClip {
public function AllSounds_EXPORT_MC_482(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 122
//Bat_1_dead_504 (Zayo3TheGameFix2_fla.Bat_1_dead_504)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Bat_1_dead_504 extends MovieClip {
public function Bat_1_dead_504(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 123
//Bat_2_dead_516 (Zayo3TheGameFix2_fla.Bat_2_dead_516)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Bat_2_dead_516 extends MovieClip {
public function Bat_2_dead_516(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 124
//Bat_3_dead_511 (Zayo3TheGameFix2_fla.Bat_3_dead_511)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Bat_3_dead_511 extends MovieClip {
public function Bat_3_dead_511(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 125
//bomb_preloader_3 (Zayo3TheGameFix2_fla.bomb_preloader_3)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class bomb_preloader_3 extends MovieClip {
public var loaderbar:MovieClip;
public function bomb_preloader_3(){
addFrameScript(0, frame1, 223, frame224);
}
function frame1(){
stop();
}
function frame224(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 126
//bomb_smoker3_17 (Zayo3TheGameFix2_fla.bomb_smoker3_17)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class bomb_smoker3_17 extends MovieClip {
public var sm:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 127
//bomb_smoker4_16 (Zayo3TheGameFix2_fla.bomb_smoker4_16)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class bomb_smoker4_16 extends MovieClip {
public var sm:MovieClip;
public function bomb_smoker4_16(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 128
//bombExplosion_484 (Zayo3TheGameFix2_fla.bombExplosion_484)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class bombExplosion_484 extends MovieClip {
public function bombExplosion_484(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 129
//boss_2_move2323_212 (Zayo3TheGameFix2_fla.boss_2_move2323_212)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class boss_2_move2323_212 extends MovieClip {
public var ryka2:MovieClip;
public var ryka:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 130
//boss_hb_197 (Zayo3TheGameFix2_fla.boss_hb_197)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class boss_hb_197 extends MovieClip {
public var hb:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 131
//ChainGun_UpperPart_267 (Zayo3TheGameFix2_fla.ChainGun_UpperPart_267)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class ChainGun_UpperPart_267 extends MovieClip {
public var redDot:MovieClip;
public function ChainGun_UpperPart_267(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 132
//DeadMoviesHolder_405 (Zayo3TheGameFix2_fla.DeadMoviesHolder_405)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class DeadMoviesHolder_405 extends MovieClip {
public function DeadMoviesHolder_405(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 133
//deathzayo_264 (Zayo3TheGameFix2_fla.deathzayo_264)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class deathzayo_264 extends MovieClip {
public function deathzayo_264(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 134
//deathzayo_286 (Zayo3TheGameFix2_fla.deathzayo_286)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class deathzayo_286 extends MovieClip {
public function deathzayo_286(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 135
//derdsfdf_lvl_1_end_74 (Zayo3TheGameFix2_fla.derdsfdf_lvl_1_end_74)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class derdsfdf_lvl_1_end_74 extends MovieClip {
public function derdsfdf_lvl_1_end_74(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 136
//derdsfdflevel_4_start_129 (Zayo3TheGameFix2_fla.derdsfdflevel_4_start_129)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class derdsfdflevel_4_start_129 extends MovieClip {
public function derdsfdflevel_4_start_129(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 137
//die_skin_3_233 (Zayo3TheGameFix2_fla.die_skin_3_233)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class die_skin_3_233 extends MovieClip {
public function die_skin_3_233(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 138
//die5_431 (Zayo3TheGameFix2_fla.die5_431)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class die5_431 extends MovieClip {
public function die5_431(){
addFrameScript(78, frame79);
}
function frame79(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 139
//dog_dead_224 (Zayo3TheGameFix2_fla.dog_dead_224)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class dog_dead_224 extends MovieClip {
public function dog_dead_224(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 140
//Enemy_Health_bar_221 (Zayo3TheGameFix2_fla.Enemy_Health_bar_221)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Enemy_Health_bar_221 extends MovieClip {
public var hb:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 141
//Fade_479 (Zayo3TheGameFix2_fla.Fade_479)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Fade_479 extends MovieClip {
public function Fade_479(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 142
//Fade_493 (Zayo3TheGameFix2_fla.Fade_493)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Fade_493 extends MovieClip {
public function Fade_493(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 143
//FadeInMovie_480 (Zayo3TheGameFix2_fla.FadeInMovie_480)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class FadeInMovie_480 extends MovieClip {
public function FadeInMovie_480(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 144
//FadeOutMovie_481 (Zayo3TheGameFix2_fla.FadeOutMovie_481)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class FadeOutMovie_481 extends MovieClip {
public function FadeOutMovie_481(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 145
//fdssdffsdflevel_4_end_162 (Zayo3TheGameFix2_fla.fdssdffsdflevel_4_end_162)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class fdssdffsdflevel_4_end_162 extends MovieClip {
public function fdssdffsdflevel_4_end_162(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
gotoAndPlay(50);
}
}
}//package Zayo3TheGameFix2_fla
Section 146
//hb_523 (Zayo3TheGameFix2_fla.hb_523)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class hb_523 extends MovieClip {
public var hb:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 147
//Hero_270 (Zayo3TheGameFix2_fla.Hero_270)
package Zayo3TheGameFix2_fla {
import hero.*;
import flash.display.*;
public dynamic class Hero_270 extends MovieClip {
public var h:Skin_2;
}
}//package Zayo3TheGameFix2_fla
Section 148
//hero_jump_285 (Zayo3TheGameFix2_fla.hero_jump_285)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class hero_jump_285 extends MovieClip {
public function hero_jump_285(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 149
//hint_454 (Zayo3TheGameFix2_fla.hint_454)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class hint_454 extends MovieClip {
public function hint_454(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 150
//HUD__AmmoBar_296 (Zayo3TheGameFix2_fla.HUD__AmmoBar_296)
package Zayo3TheGameFix2_fla {
import flash.text.*;
import flash.display.*;
public dynamic class HUD__AmmoBar_296 extends MovieClip {
public var ammo:TextField;
public function HUD__AmmoBar_296(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 151
//hud_health_290 (Zayo3TheGameFix2_fla.hud_health_290)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class hud_health_290 extends MovieClip {
public var hb:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 152
//hud_radiation_301 (Zayo3TheGameFix2_fla.hud_radiation_301)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class hud_radiation_301 extends MovieClip {
public var rb:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 153
//InfoAnim_450 (Zayo3TheGameFix2_fla.InfoAnim_450)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class InfoAnim_450 extends MovieClip {
public function InfoAnim_450(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 154
//InsufficientAmmo_297 (Zayo3TheGameFix2_fla.InsufficientAmmo_297)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class InsufficientAmmo_297 extends MovieClip {
public function InsufficientAmmo_297(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 155
//level1_1_61 (Zayo3TheGameFix2_fla.level1_1_61)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class level1_1_61 extends MovieClip {
public function level1_1_61(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 156
//level1_5_60 (Zayo3TheGameFix2_fla.level1_5_60)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class level1_5_60 extends MovieClip {
public function level1_5_60(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 157
//lqlq_309 (Zayo3TheGameFix2_fla.lqlq_309)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class lqlq_309 extends MovieClip {
public function lqlq_309(){
addFrameScript(123, frame124);
}
function frame124(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 158
//lqlq2_298 (Zayo3TheGameFix2_fla.lqlq2_298)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class lqlq2_298 extends MovieClip {
public function lqlq2_298(){
addFrameScript(123, frame124);
}
function frame124(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 159
//lqlq3_305 (Zayo3TheGameFix2_fla.lqlq3_305)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class lqlq3_305 extends MovieClip {
public function lqlq3_305(){
addFrameScript(123, frame124);
}
function frame124(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 160
//lqlq4_307 (Zayo3TheGameFix2_fla.lqlq4_307)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class lqlq4_307 extends MovieClip {
public function lqlq4_307(){
addFrameScript(123, frame124);
}
function frame124(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 161
//lqlq5_293 (Zayo3TheGameFix2_fla.lqlq5_293)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class lqlq5_293 extends MovieClip {
public function lqlq5_293(){
addFrameScript(123, frame124);
}
function frame124(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 162
//lvl_1_jump_262 (Zayo3TheGameFix2_fla.lvl_1_jump_262)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class lvl_1_jump_262 extends MovieClip {
public function lvl_1_jump_262(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 163
//lvl_2_s432e_275 (Zayo3TheGameFix2_fla.lvl_2_s432e_275)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class lvl_2_s432e_275 extends MovieClip {
public function lvl_2_s432e_275(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 164
//MainTimeline (Zayo3TheGameFix2_fla.MainTimeline)
package Zayo3TheGameFix2_fla {
import flash.net.*;
import flash.events.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
import map.*;
import windows.*;
import hero.*;
import enemies.*;
public dynamic class MainTimeline extends MovieClip {
public var skyGround:MovieClip;
public var theRoot:MovieClip;
public var movieNum:int;
public var foreground:MovieClip;
public var backGround:MovieClip;
public var isMute:Boolean;
public var preloader:Preloader;
public var soundObj:Object;
public var gameLoaded:Boolean;
public var windowManager:WindowManager;
public var mapMngrInited:Boolean;
public var firstTime:Boolean;
public var mapManager:MapManager;
public var ekran:MovieClip;
public var shadowsLayer:MovieClip;
public var fullSound:Number;
public var cinema:Cinema;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3);
}
public function restart(_arg1:Event=null):void{
mapManager.substract_1();
movieNum--;
playCinema();
}
public function initGame():void{
cinema = new Cinema(soundObj);
cinema.x = 375;
cinema.y = 225;
cinema.addEventListener(Cinema.END_MOVIE, afterCinemaFunction, false, 0, true);
windowManager = new WindowManager(theRoot, soundObj, movieNum);
windowManager.addEventListener(WindowManager.START, playCinema, false, 0, true);
windowManager.addEventListener(WindowManager.MAIN, backToMain, false, 0, true);
windowManager.addEventListener(WindowManager.RESTART, restart, false, 0, true);
windowManager.addEventListener(WindowManager.MUTE, toggleMute, false, 0, true);
shadowsLayer = new Shadows();
addChild(shadowsLayer);
shadowsLayer.gotoAndStop(5);
skyGround = new SkyGround();
theRoot.addChild(skyGround);
backGround = new Background();
theRoot.addChild(backGround);
foreground = new Foreground();
addChild(foreground);
mapManager = new MapManager(theRoot, windowManager, shadowsLayer, soundObj, backGround, foreground, skyGround);
ekran = new Ekran();
ekran.mouseEnabled = false;
Global.vars.ekran = ekran;
playCinema();
}
public function playCinema(_arg1:Event=null):void{
if (windowManager.cinemaVar != null){
if (windowManager.cinemaVar.num != null){
movieNum = (windowManager.cinemaVar.num - 1);
windowManager.cinemaVar.num = null;
};
};
if (windowManager.cinemaVar != null){
if (windowManager.cinemaVar.fade != undefined){
if (windowManager.cinemaVar.fade == "fade"){
windowManager.cinemaVar.fade = null;
cinema.addMe(theRoot, ++movieNum, mapManager, true);
return;
};
};
};
if (movieNum != 0){
addChild(ekran);
};
cinema.addMe(theRoot, ++movieNum, mapManager);
}
function frame3(){
stop();
firstTime = true;
mapMngrInited = false;
movieNum = 0;
isMute = false;
fullSound = 0.6;
soundObj = {vol:0.6, mute:false};
stop();
FRESH_START();
}
function frame1(){
stop();
gameLoaded = false;
preloader.stop();
preloader.logo_mc.stop();
preloader.logo_mc.loaderbar.stop();
preloader.addEventListener(Event.ENTER_FRAME, updatePreloader, false, 0, true);
preloader.link_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoArc, false);
}
public function showWindowManager():void{
windowManager.attachStart();
}
public function updatePreloader(_arg1:Event):void{
var _local2:Number;
_local2 = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100);
if (_local2 != 100){
preloader.logo_mc.loaderbar.gotoAndStop(int(_local2));
} else {
if (!(gameLoaded)){
gameLoaded = true;
preloader.logo_mc.play();
};
if (preloader.logo_mc.currentFrame == preloader.logo_mc.totalFrames){
preloader.logo_mc.gotoAndStop(preloader.logo_mc.totalFrames);
preloader.removeEventListener(Event.ENTER_FRAME, updatePreloader, false);
this.gotoAndPlay(2);
};
};
}
public function toggleMute(_arg1:Event=null):void{
if (isMute){
isMute = false;
cinema.setVolume(fullSound);
windowManager.setVolume(fullSound);
mapManager.setVolume(fullSound);
} else {
if (!(isMute)){
isMute = true;
cinema.setVolume(0);
windowManager.setVolume(0);
mapManager.setVolume(0);
};
};
}
public function backToMain(_arg1:Event=null):void{
windowManager.attachStart();
windowManager.addMe();
movieNum = 1;
}
public function FRESH_START():void{
Global.vars.mainTimeline = this;
theRoot = new MovieClip();
addChild(theRoot);
initGame();
stage.scaleMode = StageScaleMode.EXACT_FIT;
}
public function updateMap(_arg1:Event=null):void{
theRoot.addChild(mapManager);
theRoot.setChildIndex(skyGround, 0);
theRoot.setChildIndex(backGround, 1);
theRoot.setChildIndex(mapManager, 2);
mapManager.gotoNextLevel();
mapManager.resume();
}
public function afterCinemaFunction(_arg1:Event=null):void{
if (windowManager.mustRestart){
windowManager.attachStart();
windowManager.mustRestart = false;
movieNum = 0;
mapManager.resetAllProperties();
} else {
if (!(firstTime)){
updateMap();
} else {
firstTime = false;
showWindowManager();
};
};
}
public function gotoArc(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
}
}//package Zayo3TheGameFix2_fla
Section 165
//movie2_413 (Zayo3TheGameFix2_fla.movie2_413)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class movie2_413 extends MovieClip {
public function movie2_413(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 166
//movieHolder3_418 (Zayo3TheGameFix2_fla.movieHolder3_418)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class movieHolder3_418 extends MovieClip {
public function movieHolder3_418(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 167
//n_2_copy_527 (Zayo3TheGameFix2_fla.n_2_copy_527)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class n_2_copy_527 extends MovieClip {
public function n_2_copy_527(){
addFrameScript(37, frame38);
}
function frame38(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 168
//n_2_copy3_522 (Zayo3TheGameFix2_fla.n_2_copy3_522)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class n_2_copy3_522 extends MovieClip {
public function n_2_copy3_522(){
addFrameScript(35, frame36);
}
function frame36(){
gotoAndStop("move");
}
}
}//package Zayo3TheGameFix2_fla
Section 169
//Objectives_Inner_490 (Zayo3TheGameFix2_fla.Objectives_Inner_490)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Objectives_Inner_490 extends MovieClip {
public function Objectives_Inner_490(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 170
//Skeleton_dead_228 (Zayo3TheGameFix2_fla.Skeleton_dead_228)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Skeleton_dead_228 extends MovieClip {
public function Skeleton_dead_228(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 171
//Skeleton_Rifle_attack_499 (Zayo3TheGameFix2_fla.Skeleton_Rifle_attack_499)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Skeleton_Rifle_attack_499 extends MovieClip {
public function Skeleton_Rifle_attack_499(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 172
//Skeleton_rifle_dead_500 (Zayo3TheGameFix2_fla.Skeleton_rifle_dead_500)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Skeleton_rifle_dead_500 extends MovieClip {
public function Skeleton_rifle_dead_500(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 173
//skullmonster_lvl_1_end_67 (Zayo3TheGameFix2_fla.skullmonster_lvl_1_end_67)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class skullmonster_lvl_1_end_67 extends MovieClip {
public function skullmonster_lvl_1_end_67(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 174
//sprite139_lastLevel_intro_186 (Zayo3TheGameFix2_fla.sprite139_lastLevel_intro_186)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite139_lastLevel_intro_186 extends MovieClip {
public function sprite139_lastLevel_intro_186(){
addFrameScript(45, frame46);
}
function frame46(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 175
//sprite152_lastLevel_intro_188 (Zayo3TheGameFix2_fla.sprite152_lastLevel_intro_188)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite152_lastLevel_intro_188 extends MovieClip {
public function sprite152_lastLevel_intro_188(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 176
//sprite162_lastLevel_intro_189 (Zayo3TheGameFix2_fla.sprite162_lastLevel_intro_189)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite162_lastLevel_intro_189 extends MovieClip {
public function sprite162_lastLevel_intro_189(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 177
//sprite19_level_4Ldeath_427 (Zayo3TheGameFix2_fla.sprite19_level_4Ldeath_427)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite19_level_4Ldeath_427 extends MovieClip {
public function sprite19_level_4Ldeath_427(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 178
//sprite23death_lvl1_410 (Zayo3TheGameFix2_fla.sprite23death_lvl1_410)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite23death_lvl1_410 extends MovieClip {
public function sprite23death_lvl1_410(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 179
//sprite24death_lvl1_409 (Zayo3TheGameFix2_fla.sprite24death_lvl1_409)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite24death_lvl1_409 extends MovieClip {
public function sprite24death_lvl1_409(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 180
//sprite29_level_4Ldeath_430 (Zayo3TheGameFix2_fla.sprite29_level_4Ldeath_430)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite29_level_4Ldeath_430 extends MovieClip {
public function sprite29_level_4Ldeath_430(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 181
//sprite29levle_2_death_417 (Zayo3TheGameFix2_fla.sprite29levle_2_death_417)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite29levle_2_death_417 extends MovieClip {
public function sprite29levle_2_death_417(){
addFrameScript(37, frame38);
}
function frame38(){
gotoAndPlay(15);
}
}
}//package Zayo3TheGameFix2_fla
Section 182
//sprite35_lastLevel_intro_173 (Zayo3TheGameFix2_fla.sprite35_lastLevel_intro_173)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite35_lastLevel_intro_173 extends MovieClip {
public function sprite35_lastLevel_intro_173(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 183
//sprite37_lastLevel_intro_165 (Zayo3TheGameFix2_fla.sprite37_lastLevel_intro_165)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite37_lastLevel_intro_165 extends MovieClip {
public function sprite37_lastLevel_intro_165(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 184
//sprite66_lastLevel_intro_182 (Zayo3TheGameFix2_fla.sprite66_lastLevel_intro_182)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite66_lastLevel_intro_182 extends MovieClip {
public function sprite66_lastLevel_intro_182(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 185
//sprite71_lastLevel_intro_183 (Zayo3TheGameFix2_fla.sprite71_lastLevel_intro_183)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite71_lastLevel_intro_183 extends MovieClip {
public function sprite71_lastLevel_intro_183(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 186
//sprite72_lastLevel_intro_181 (Zayo3TheGameFix2_fla.sprite72_lastLevel_intro_181)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite72_lastLevel_intro_181 extends MovieClip {
public function sprite72_lastLevel_intro_181(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 187
//sprite8_lastLevel_intro_169 (Zayo3TheGameFix2_fla.sprite8_lastLevel_intro_169)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class sprite8_lastLevel_intro_169 extends MovieClip {
public function sprite8_lastLevel_intro_169(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 188
//Symbol1_407 (Zayo3TheGameFix2_fla.Symbol1_407)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol1_407 extends MovieClip {
public function Symbol1_407(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 189
//Symbol11_440 (Zayo3TheGameFix2_fla.Symbol11_440)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol11_440 extends MovieClip {
public function Symbol11_440(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 190
//Symbol17_201 (Zayo3TheGameFix2_fla.Symbol17_201)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol17_201 extends MovieClip {
public function Symbol17_201(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 191
//Symbol1level_4_end_155 (Zayo3TheGameFix2_fla.Symbol1level_4_end_155)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol1level_4_end_155 extends MovieClip {
public function Symbol1level_4_end_155(){
addFrameScript(281, frame282);
}
function frame282(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 192
//Symbol1lvl3_end_107 (Zayo3TheGameFix2_fla.Symbol1lvl3_end_107)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol1lvl3_end_107 extends MovieClip {
public function Symbol1lvl3_end_107(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 193
//Symbol2_lvl_1_end_72 (Zayo3TheGameFix2_fla.Symbol2_lvl_1_end_72)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol2_lvl_1_end_72 extends MovieClip {
public function Symbol2_lvl_1_end_72(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 194
//Symbol22_202 (Zayo3TheGameFix2_fla.Symbol22_202)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol22_202 extends MovieClip {
public function Symbol22_202(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 195
//Symbol2lvl3_end_117 (Zayo3TheGameFix2_fla.Symbol2lvl3_end_117)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol2lvl3_end_117 extends MovieClip {
public function Symbol2lvl3_end_117(){
addFrameScript(749, frame750);
}
function frame750(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 196
//Symbol3copy_190 (Zayo3TheGameFix2_fla.Symbol3copy_190)
package Zayo3TheGameFix2_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
public dynamic class Symbol3copy_190 extends MovieClip {
public var butzo:MovieClip;
public function Symbol3copy_190(){
addFrameScript(0, frame1);
}
public function gotoMoreZayo(_arg1):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com/play/zayo_2.html"), "_blank");
}
function frame1(){
butzo.buttonMode = true;
butzo.addEventListener(MouseEvent.MOUSE_DOWN, gotoMoreZayo, false, 0, true);
}
}
}//package Zayo3TheGameFix2_fla
Section 197
//Symbol3lvl_2_92 (Zayo3TheGameFix2_fla.Symbol3lvl_2_92)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol3lvl_2_92 extends MovieClip {
public function Symbol3lvl_2_92(){
addFrameScript(239, frame240);
}
function frame240(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 198
//Symbol4_145 (Zayo3TheGameFix2_fla.Symbol4_145)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol4_145 extends MovieClip {
public function Symbol4_145(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 199
//Symbol4_243 (Zayo3TheGameFix2_fla.Symbol4_243)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol4_243 extends MovieClip {
public function Symbol4_243(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 200
//Symbol4_lvl_1_end_75 (Zayo3TheGameFix2_fla.Symbol4_lvl_1_end_75)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol4_lvl_1_end_75 extends MovieClip {
public function Symbol4_lvl_1_end_75(){
addFrameScript(37, frame38);
}
function frame38(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 201
//Symbol44_151 (Zayo3TheGameFix2_fla.Symbol44_151)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol44_151 extends MovieClip {
public function Symbol44_151(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 202
//Symbol4lvl_2_89 (Zayo3TheGameFix2_fla.Symbol4lvl_2_89)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol4lvl_2_89 extends MovieClip {
public function Symbol4lvl_2_89(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 203
//Symbol5_148 (Zayo3TheGameFix2_fla.Symbol5_148)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol5_148 extends MovieClip {
public function Symbol5_148(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 204
//Symbol5_445 (Zayo3TheGameFix2_fla.Symbol5_445)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol5_445 extends MovieClip {
public function Symbol5_445(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 205
//Symbol5_lvl_1_end_77 (Zayo3TheGameFix2_fla.Symbol5_lvl_1_end_77)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol5_lvl_1_end_77 extends MovieClip {
public function Symbol5_lvl_1_end_77(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 206
//Symbol5level_4_start_126 (Zayo3TheGameFix2_fla.Symbol5level_4_start_126)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol5level_4_start_126 extends MovieClip {
public function Symbol5level_4_start_126(){
addFrameScript(279, frame280);
}
function frame280(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 207
//Symbol5lvl_2_91 (Zayo3TheGameFix2_fla.Symbol5lvl_2_91)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol5lvl_2_91 extends MovieClip {
public function Symbol5lvl_2_91(){
addFrameScript(104, frame105);
}
function frame105(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 208
//Symbol5lvl3_end_120 (Zayo3TheGameFix2_fla.Symbol5lvl3_end_120)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol5lvl3_end_120 extends MovieClip {
public function Symbol5lvl3_end_120(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 209
//Symbol6_149 (Zayo3TheGameFix2_fla.Symbol6_149)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol6_149 extends MovieClip {
public function Symbol6_149(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 210
//Symbol7_150 (Zayo3TheGameFix2_fla.Symbol7_150)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol7_150 extends MovieClip {
public function Symbol7_150(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 211
//Symbol9_152 (Zayo3TheGameFix2_fla.Symbol9_152)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Symbol9_152 extends MovieClip {
public function Symbol9_152(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 212
//Tree_dead_520 (Zayo3TheGameFix2_fla.Tree_dead_520)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class Tree_dead_520 extends MovieClip {
public function Tree_dead_520(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 213
//tyuytulvl3_end_121 (Zayo3TheGameFix2_fla.tyuytulvl3_end_121)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class tyuytulvl3_end_121 extends MovieClip {
public function tyuytulvl3_end_121(){
addFrameScript(689, frame690);
}
function frame690(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 214
//UMIRANE_4_CINEMA_4_DIE_425 (Zayo3TheGameFix2_fla.UMIRANE_4_CINEMA_4_DIE_425)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class UMIRANE_4_CINEMA_4_DIE_425 extends MovieClip {
public function UMIRANE_4_CINEMA_4_DIE_425(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 215
//werwerlvl3_end_111 (Zayo3TheGameFix2_fla.werwerlvl3_end_111)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class werwerlvl3_end_111 extends MovieClip {
public function werwerlvl3_end_111(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 216
//xZCzxxzc_en_3__237 (Zayo3TheGameFix2_fla.xZCzxxzc_en_3__237)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class xZCzxxzc_en_3__237 extends MovieClip {
public function xZCzxxzc_en_3__237(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 217
//y123_245 (Zayo3TheGameFix2_fla.y123_245)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class y123_245 extends MovieClip {
public var dot2:MovieClip;
public var dot:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 218
//y123copy_257 (Zayo3TheGameFix2_fla.y123copy_257)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class y123copy_257 extends MovieClip {
public var dot2:MovieClip;
public var dot:MovieClip;
}
}//package Zayo3TheGameFix2_fla
Section 219
//zayoInSail_248 (Zayo3TheGameFix2_fla.zayoInSail_248)
package Zayo3TheGameFix2_fla {
import flash.display.*;
public dynamic class zayoInSail_248 extends MovieClip {
public var inner:MovieClip;
public function zayoInSail_248(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zayo3TheGameFix2_fla
Section 220
//AkaAmmo (AkaAmmo)
package {
import flash.display.*;
public dynamic class AkaAmmo extends MovieClip {
}
}//package
Section 221
//AmmoItem (AmmoItem)
package {
import flash.display.*;
public dynamic class AmmoItem extends MovieClip {
}
}//package
Section 222
//Background (Background)
package {
import flash.display.*;
public dynamic class Background extends MovieClip {
public function Background(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 223
//Blood_1 (Blood_1)
package {
import flash.display.*;
public dynamic class Blood_1 extends MovieClip {
public function Blood_1(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 224
//Blood_2 (Blood_2)
package {
import flash.display.*;
public dynamic class Blood_2 extends MovieClip {
public function Blood_2(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 225
//Blood_3 (Blood_3)
package {
import flash.display.*;
public dynamic class Blood_3 extends MovieClip {
public function Blood_3(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package
Section 226
//Blood_4 (Blood_4)
package {
import flash.display.*;
public dynamic class Blood_4 extends MovieClip {
public function Blood_4(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 227
//Blood_5 (Blood_5)
package {
import flash.display.*;
public dynamic class Blood_5 extends MovieClip {
public function Blood_5(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package
Section 228
//blood3 (blood3)
package {
import flash.display.*;
public dynamic class blood3 extends MovieClip {
}
}//package
Section 229
//Boss_bomb (Boss_bomb)
package {
import flash.display.*;
public dynamic class Boss_bomb extends MovieClip {
public function Boss_bomb(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 230
//COmic (COmic)
package {
import flash.text.*;
public dynamic class COmic extends Font {
}
}//package
Section 231
//Ekran (Ekran)
package {
import flash.display.*;
public dynamic class Ekran extends MovieClip {
}
}//package
Section 232
//Fader (Fader)
package {
import windows.*;
import flash.display.*;
public dynamic class Fader extends MovieClip {
public var a:FadeIn;
}
}//package
Section 233
//Font1 (Font1)
package {
import flash.text.*;
public dynamic class Font1 extends Font {
}
}//package
Section 234
//Foreground (Foreground)
package {
import flash.display.*;
public dynamic class Foreground extends MovieClip {
public function Foreground(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 235
//Foreground_level_4 (Foreground_level_4)
package {
import flash.display.*;
public dynamic class Foreground_level_4 extends MovieClip {
}
}//package
Section 236
//Global (Global)
package {
public dynamic class Global {
public static var vars:Object = new Object();
}
}//package
Section 237
//HealthItem (HealthItem)
package {
import flash.display.*;
public dynamic class HealthItem extends MovieClip {
}
}//package
Section 238
//Hero (Hero)
package {
import flash.display.*;
public dynamic class Hero extends MovieClip {
public var lastState:MovieClip;
public function Hero(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 14, frame15, 19, frame20, 24, frame25);
}
function frame10(){
stop();
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame25(){
stop();
}
function frame5(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 239
//Objectives (Objectives)
package {
import flash.display.*;
public dynamic class Objectives extends MovieClip {
public var o:MovieClip;
public function Objectives(){
addFrameScript(155, frame156);
}
function frame156(){
stop();
}
}
}//package
Section 240
//Preloader (Preloader)
package {
import flash.display.*;
public dynamic class Preloader extends MovieClip {
public var link_btn:SimpleButton;
public var logo_mc:MovieClip;
public function Preloader(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 241
//PuzzleItem (PuzzleItem)
package {
import flash.display.*;
public dynamic class PuzzleItem extends MovieClip {
}
}//package
Section 242
//ShotAmmo (ShotAmmo)
package {
import flash.display.*;
public dynamic class ShotAmmo extends MovieClip {
}
}//package
Section 243
//Symbol1 (Symbol1)
package {
import flash.display.*;
public dynamic class Symbol1 extends MovieClip {
}
}//package
Section 244
//TheKey (TheKey)
package {
import flash.display.*;
public dynamic class TheKey extends MovieClip {
}
}//package
Section 245
//Thunder_1 (Thunder_1)
package {
import flash.media.*;
public dynamic class Thunder_1 extends Sound {
}
}//package
Section 246
//Thunder_2 (Thunder_2)
package {
import flash.media.*;
public dynamic class Thunder_2 extends Sound {
}
}//package
Section 247
//UziAmmo (UziAmmo)
package {
import flash.display.*;
public dynamic class UziAmmo extends MovieClip {
}
}//package