Section 1
//Timeline_132 (_fla.Timeline_132)
package _fla {
import flash.display.*;
public dynamic class Timeline_132 extends MovieClip {
public var boxbox:MovieClip;
public function Timeline_132(){
addFrameScript(65, frame66);
}
function frame66(){
stop();
}
}
}//package _fla
Section 2
//CommonEvent (event.CommonEvent)
package event {
import flash.events.*;
public class CommonEvent extends Event {
public var _object:Object;
public function CommonEvent(_arg1:String, _arg2:Object, _arg3:Boolean=false, _arg4:Boolean=false){
this._object = _arg2;
super(_arg1, _arg3, _arg4);
}
public function get getobject():Object{
return (_object);
}
}
}//package event
Section 3
//CommonEventDispatcher (event.CommonEventDispatcher)
package event {
import flash.events.*;
public class CommonEventDispatcher extends EventDispatcher {
private static var _instance:CommonEventDispatcher;
public static function getInstance():CommonEventDispatcher{
if (_instance == null){
_instance = new (CommonEventDispatcher);
};
return (_instance);
}
}
}//package event
Section 4
//Bounce (fl.transitions.easing.Bounce)
package fl.transitions.easing {
public class Bounce {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 - easeOut((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeIn((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOut(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
}
}//package fl.transitions.easing
Section 5
//Elastic (fl.transitions.easing.Elastic)
package fl.transitions.easing {
public class Elastic {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) + _arg3) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) * 0.5) + _arg3) + _arg2));
}
}
}//package fl.transitions.easing
Section 6
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 7
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _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) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 8
//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 9
//Blinds (fl.transitions.Blinds)
package fl.transitions {
import flash.display.*;
import flash.geom.*;
public class Blinds extends Transition {
protected var _numStrips:uint;// = 10
protected var _innerMask:MovieClip;
protected var _dimension:uint;// = 0
protected var _mask:MovieClip;
public function Blinds(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
super(_arg1, _arg2, _arg3);
this._dimension = (_arg2.dimension) ? 1 : 0;
if (_arg2.numStrips){
this._numStrips = _arg2.numStrips;
};
this._initMask();
}
override public function get type():Class{
return (Blinds);
}
override public function start():void{
this._content.mask = this._mask;
super.start();
}
override protected function _render(_arg1:Number):void{
var _local2:Number = (100 / this._numStrips);
var _local3:Number = (_arg1 * _local2);
var _local4:MovieClip = this._innerMask;
_local4.graphics.clear();
var _local5:Number = this._numStrips;
_local4.graphics.beginFill(0xFF0000);
while (_local5--) {
this.drawBox(_local4, -50, ((_local5 * _local2) - 50), 100, _local3);
};
_local4.graphics.endFill();
}
protected function _initMask():void{
this._mask = new MovieClip();
this._mask.visible = false;
this._content.addChild(this._mask);
this._innerMask = new MovieClip();
this._mask.addChild(this._innerMask);
this._innerMask.x = (this._innerMask.y = 50);
if (this._dimension){
this._innerMask.rotation = -90;
};
this._innerMask.graphics.beginFill(0xFF0000);
this.drawBox(this._innerMask, 0, 0, 100, 100);
this._innerMask.graphics.endFill();
var _local1:Rectangle = this._innerBounds;
this._mask.x = _local1.left;
this._mask.y = _local1.top;
this._mask.width = _local1.width;
this._mask.height = _local1.height;
}
override public function cleanUp():void{
this._content.removeChild(this._mask);
this._content.mask = null;
super.cleanUp();
}
}
}//package fl.transitions
Section 10
//Fade (fl.transitions.Fade)
package fl.transitions {
import flash.display.*;
public class Fade extends Transition {
protected var _alphaFinal:Number;
public function Fade(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
super(_arg1, _arg2, _arg3);
this._alphaFinal = this.manager.contentAppearance.alpha;
}
override public function get type():Class{
return (Fade);
}
override protected function _render(_arg1:Number):void{
this._content.alpha = (this._alphaFinal * _arg1);
}
}
}//package fl.transitions
Section 11
//Fly (fl.transitions.Fly)
package fl.transitions {
import flash.display.*;
import flash.geom.*;
public class Fly extends Transition {
protected var _stagePoints:Object;
public var className:String;// = "Fly"
protected var _yInitial:Number;
protected var _xInitial:Number;
protected var _startPoint:Number;// = 4
protected var _yFinal:Number;
protected var _xFinal:Number;
public function Fly(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
var _local7:String;
var _local8:Rectangle;
super(_arg1, _arg2, _arg3);
if (_arg2.startPoint){
this._startPoint = _arg2.startPoint;
};
this._xFinal = this.manager.contentAppearance.x;
this._yFinal = this.manager.contentAppearance.y;
var _local4:Stage = _arg1.stage;
var _local5:String = _local4.scaleMode;
_local4.scaleMode = StageScaleMode.SHOW_ALL;
var _local6:Object = (this._stagePoints = {});
_local6[1] = new Point(0, 0);
_local6[2] = new Point(0, 0);
_local6[3] = new Point(_local4.stageWidth, 0);
_local6[4] = new Point(0, 0);
_local6[5] = new Point((_local4.stageWidth / 2), (_local4.stageHeight / 2));
_local6[6] = new Point(_local4.stageWidth, 0);
_local6[7] = new Point(0, _local4.stageHeight);
_local6[8] = new Point(0, _local4.stageHeight);
_local6[9] = new Point(_local4.stageWidth, _local4.stageHeight);
for (_local7 in _local6) {
this._content.parent.globalToLocal(_local6[_local7]);
};
_local8 = this._innerBounds;
_local6[1].x = (_local6[1].x - _local8.right);
_local6[1].y = (_local6[1].y - _local8.bottom);
_local6[2].x = this.manager.contentAppearance.x;
_local6[2].y = (_local6[2].y - _local8.bottom);
_local6[3].x = (_local6[3].x - _local8.left);
_local6[3].y = (_local6[3].y - _local8.bottom);
_local6[4].x = (_local6[4].x - _local8.right);
_local6[4].y = this.manager.contentAppearance.y;
_local6[5].x = (_local6[5].x - ((_local8.right + _local8.left) / 2));
_local6[5].y = (_local6[5].y - ((_local8.bottom + _local8.top) / 2));
_local6[6].x = (_local6[6].x - _local8.left);
_local6[6].y = this.manager.contentAppearance.y;
_local6[7].x = (_local6[7].x - _local8.right);
_local6[7].y = (_local6[7].y - _local8.top);
_local6[8].x = this.manager.contentAppearance.x;
_local6[8].y = (_local6[8].y - _local8.top);
_local6[9].x = (_local6[9].x - _local8.left);
_local6[9].y = (_local6[9].y - _local8.top);
this._xInitial = this._stagePoints[this._startPoint].x;
this._yInitial = this._stagePoints[this._startPoint].y;
_local4.scaleMode = _local5;
}
override protected function _render(_arg1:Number):void{
this._content.x = (this._xFinal + ((this._xInitial - this._xFinal) * (1 - _arg1)));
this._content.y = (this._yFinal + ((this._yInitial - this._yFinal) * (1 - _arg1)));
}
override public function get type():Class{
return (Fly);
}
}
}//package fl.transitions
Section 12
//Photo (fl.transitions.Photo)
package fl.transitions {
import flash.display.*;
import flash.geom.*;
public class Photo extends Transition {
protected var _alphaFinal:Number;// = 1
protected var _colorControl:ColorTransform;
public function Photo(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
super(_arg1, _arg2, _arg3);
this._alphaFinal = this.manager.contentAppearance.alpha;
this._colorControl = new ColorTransform();
}
override protected function _render(_arg1:Number):void{
var _local2:Number = 0.8;
var _local3:Number = 0.9;
var _local4:Object = {};
var _local5:Number = 0;
if (_arg1 <= _local2){
this._colorControl.alphaMultiplier = (this._alphaFinal * (_arg1 / _local2));
} else {
this._colorControl.alphaMultiplier = this._alphaFinal;
if (_arg1 <= _local3){
_local5 = (((_arg1 - _local2) / (_local3 - _local2)) * 0x0100);
} else {
_local5 = ((1 - ((_arg1 - _local3) / (1 - _local3))) * 0x0100);
};
};
_local4.rb = (_local4.gb = (_local4.bb = _local5));
this._colorControl.redOffset = (this._colorControl.greenOffset = (this._colorControl.blueOffset = _local5));
this._content.transform.colorTransform = this._colorControl;
}
override public function get type():Class{
return (Photo);
}
}
}//package fl.transitions
Section 13
//PixelDissolve (fl.transitions.PixelDissolve)
package fl.transitions {
import flash.display.*;
import flash.geom.*;
public class PixelDissolve extends Transition {
protected var _innerMask:MovieClip;
protected var _xSections:Number;// = 10
protected var _ySections:Number;// = 10
protected var _mask:MovieClip;
protected var _indices:Array;
protected var _numSections:uint;// = 1
public function PixelDissolve(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
var _local5:int;
super(_arg1, _arg2, _arg3);
if (_arg2.xSections){
this._xSections = _arg2.xSections;
};
if (_arg2.ySections){
this._ySections = _arg2.ySections;
};
this._numSections = (this._xSections * this._ySections);
this._indices = new Array();
var _local4:int = this._ySections;
while (_local4--) {
_local5 = this._xSections;
while (_local5--) {
this._indices[((_local4 * this._xSections) + _local5)] = {x:_local5, y:_local4};
};
};
this._shuffleArray(this._indices);
this._initMask();
}
override public function cleanUp():void{
this._content.removeChild(this._mask);
this._content.mask = null;
super.cleanUp();
}
override public function start():void{
this._content.mask = this._mask;
super.start();
}
override public function get type():Class{
return (PixelDissolve);
}
protected function _initMask():void{
this._mask = new MovieClip();
this._mask.visible = false;
this._content.addChild(this._mask);
this._innerMask = new MovieClip();
this._mask.addChild(this._innerMask);
this._innerMask.graphics.beginFill(0xFF0000);
this.drawBox(this._innerMask, 0, 0, 100, 100);
this._innerMask.graphics.endFill();
var _local1:Rectangle = this._innerBounds;
this._mask.x = _local1.left;
this._mask.y = _local1.top;
this._mask.width = (_local1.right - _local1.left);
this._mask.height = (_local1.bottom - _local1.top);
}
override protected function _render(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
if (_arg1 > 1){
_arg1 = 1;
};
var _local2:Number = (100 / this._xSections);
var _local3:Number = (100 / this._ySections);
var _local4:Array = this._indices;
var _local5:MovieClip = this._innerMask;
_local5.graphics.clear();
_local5.graphics.beginFill(0xFF0000);
var _local6:Number = Math.floor((_arg1 * this._numSections));
while (_local6--) {
this.drawBox(_local5, (_local4[_local6].x * _local2), (_local4[_local6].y * _local3), _local2, _local3);
};
_local5.graphics.endFill();
}
protected function _shuffleArray(_arg1:Array):void{
var _local3:int;
var _local4:Object;
var _local2:int = (_arg1.length - 1);
while (_local2 > 0) {
_local3 = Math.floor((Math.random() * (_local2 + 1)));
if (_local3 == _local2){
} else {
_local4 = _arg1[_local2];
_arg1[_local2] = _arg1[_local3];
_arg1[_local3] = _local4;
};
_local2--;
};
}
}
}//package fl.transitions
Section 14
//Squeeze (fl.transitions.Squeeze)
package fl.transitions {
import flash.display.*;
public class Squeeze extends Transition {
protected var _scaleFinal:Number;// = 1
protected var _scaleProp:String;// = "scaleX"
public function Squeeze(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
super(_arg1, _arg2, _arg3);
if (_arg2.dimension){
this._scaleProp = "scaleY";
this._scaleFinal = this.manager.contentAppearance.scaleY;
} else {
this._scaleProp = "scaleX";
this._scaleFinal = this.manager.contentAppearance.scaleX;
};
}
override protected function _render(_arg1:Number):void{
if (_arg1 <= 0){
_arg1 = 0;
};
this._content[this._scaleProp] = (_arg1 * this._scaleFinal);
}
override public function get type():Class{
return (Squeeze);
}
}
}//package fl.transitions
Section 15
//Transition (fl.transitions.Transition)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Transition extends EventDispatcher {
protected var _direction:uint;// = 0
protected var _height:Number;// = NAN
protected var _easing:Function;
protected var _twn:Tween;
protected var _width:Number;// = NAN
protected var _outerBounds:Rectangle;
protected var _progress:Number;
public var ID:int;
protected var _innerBounds:Rectangle;
protected var _manager:TransitionManager;
protected var _duration:Number;// = 2
protected var _content:MovieClip;
public static const IN:uint = 0;
public static const OUT:uint = 1;
public function Transition(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
this.content = _arg1;
this.direction = _arg2.direction;
this.duration = _arg2.duration;
this.easing = _arg2.easing;
this.manager = _arg3;
this._innerBounds = this.manager._innerBounds;
this._outerBounds = this.manager._outerBounds;
this._width = this.manager._width;
this._height = this.manager._height;
this._resetTween();
}
public function get type():Class{
return (Transition);
}
public function cleanUp():void{
this.removeEventListener("transitionInDone", this._manager.transitionInDone);
this.removeEventListener("transitionOutDone", this._manager.transitionOutDone);
this.stop();
}
public function stop():void{
this._twn.fforward();
this._twn.stop();
}
public function onMotionFinished(_arg1:Object):void{
if (this.direction == Transition.OUT){
this.dispatchEvent(new Event("transitionOutDone"));
} else {
this.dispatchEvent(new Event("transitionInDone"));
};
}
public function set easing(_arg1:Function):void{
this._easing = _arg1;
if (this._twn){
this._twn.func = _arg1;
};
}
public function set manager(_arg1:TransitionManager):void{
if (this._manager){
this.removeEventListener("transitionInDone", this._manager.transitionInDone);
this.removeEventListener("transitionOutDone", this._manager.transitionOutDone);
};
this._manager = _arg1;
this.addEventListener("transitionInDone", this._manager.transitionInDone);
this.addEventListener("transitionOutDone", this._manager.transitionOutDone);
}
private function _resetTween():void{
if (this._twn){
this._twn.stop();
this._twn.removeEventListener(TweenEvent.MOTION_FINISH, this.onMotionFinished);
};
this._twn = new Tween(this, "", this.easing, 0, 1, this.duration, true);
this._twn.stop();
this._twn.prop = "progress";
this._twn.addEventListener(TweenEvent.MOTION_FINISH, this.onMotionFinished, false, 0, true);
}
public function drawBox(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
_arg1.graphics.moveTo(_arg2, _arg3);
_arg1.graphics.lineTo((_arg2 + _arg4), _arg3);
_arg1.graphics.lineTo((_arg2 + _arg4), (_arg3 + _arg5));
_arg1.graphics.lineTo(_arg2, (_arg3 + _arg5));
_arg1.graphics.lineTo(_arg2, _arg3);
}
public function set progress(_arg1:Number):void{
if (this._progress == _arg1){
return;
};
this._progress = _arg1;
if (this._direction){
this._render((1 - _arg1));
} else {
this._render(_arg1);
};
this.dispatchEvent(new Event("transitionProgress"));
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
if (_arg1){
this._duration = _arg1;
if (this._twn){
this._twn.duration = _arg1;
};
};
}
public function start():void{
this.content.visible = true;
this._twn.start();
}
public function get easing():Function{
return (this._easing);
}
public function get manager():TransitionManager{
return (this._manager);
}
public function set content(_arg1:MovieClip):void{
if (_arg1){
this._content = _arg1;
if (this._twn){
this._twn.obj = _arg1;
};
};
}
protected function _render(_arg1:Number):void{
}
public function get content():MovieClip{
return (this._content);
}
public function drawCircle(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number):void{
_arg1.graphics.moveTo((_arg2 + _arg4), _arg3);
_arg1.graphics.curveTo((_arg4 + _arg2), ((Math.tan((Math.PI / 8)) * _arg4) + _arg3), ((Math.sin((Math.PI / 4)) * _arg4) + _arg2), ((Math.sin((Math.PI / 4)) * _arg4) + _arg3));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg4) + _arg2), (_arg4 + _arg3), _arg2, (_arg4 + _arg3));
_arg1.graphics.curveTo(((-(Math.tan((Math.PI / 8))) * _arg4) + _arg2), (_arg4 + _arg3), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg2), ((Math.sin((Math.PI / 4)) * _arg4) + _arg3));
_arg1.graphics.curveTo((-(_arg4) + _arg2), ((Math.tan((Math.PI / 8)) * _arg4) + _arg3), (-(_arg4) + _arg2), _arg3);
_arg1.graphics.curveTo((-(_arg4) + _arg2), ((-(Math.tan((Math.PI / 8))) * _arg4) + _arg3), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg2), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg3));
_arg1.graphics.curveTo(((-(Math.tan((Math.PI / 8))) * _arg4) + _arg2), (-(_arg4) + _arg3), _arg2, (-(_arg4) + _arg3));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg4) + _arg2), (-(_arg4) + _arg3), ((Math.sin((Math.PI / 4)) * _arg4) + _arg2), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg3));
_arg1.graphics.curveTo((_arg4 + _arg2), ((-(Math.tan((Math.PI / 8))) * _arg4) + _arg3), (_arg4 + _arg2), _arg3);
}
public function get progress():Number{
return (this._progress);
}
private function _noEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public function set direction(_arg1:Number):void{
this._direction = (_arg1) ? 1 : 0;
}
public function get direction():Number{
return (this._direction);
}
}
}//package fl.transitions
Section 16
//TransitionManager (fl.transitions.TransitionManager)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class TransitionManager extends EventDispatcher {
public var type:Object;
public var _width:Number;// = NAN
public var _height:Number;// = NAN
public var _outerBounds:Rectangle;
private var _visualPropList:Object;
private var _triggerEvent:String;
public var className:String;// = "TransitionManager"
public var _innerBounds:Rectangle;
private var _content:MovieClip;
private var _contentAppearance:Object;
private var _transitions:Object;
private static var IDCount:int = 0;
public function TransitionManager(_arg1:MovieClip){
this.type = TransitionManager;
this._visualPropList = {x:null, y:null, scaleX:null, scaleY:null, alpha:null, rotation:null};
super();
this.content = _arg1;
this._transitions = {};
}
public function removeTransition(_arg1:Transition):Boolean{
if (((((!(_arg1)) || (!(this._transitions)))) || (!(this._transitions[_arg1.ID])))){
return (false);
};
_arg1.cleanUp();
return (delete this._transitions[_arg1.ID]);
}
public function saveContentAppearance():void{
var _local2:Object;
var _local3:String;
var _local1:MovieClip = this._content;
if (!this._contentAppearance){
_local2 = (this._contentAppearance = {});
for (_local3 in this._visualPropList) {
_local2[_local3] = _local1[_local3];
};
_local2.colorTransform = _local1.transform.colorTransform;
};
this._innerBounds = _local1.getBounds(_local1);
this._outerBounds = _local1.getBounds(_local1.parent);
this._width = _local1.width;
this._height = _local1.height;
}
public function removeAllTransitions():void{
var _local1:Transition;
for each (_local1 in this._transitions) {
_local1.cleanUp();
this.removeTransition(_local1);
};
}
function transitionInDone(_arg1:Object):void{
var _local2:Boolean;
this.removeTransition(_arg1.target);
if (this.numInTransitions == 0){
_local2 = this._content.visible;
if ((((this._triggerEvent == "hide")) || ((this._triggerEvent == "hideChild")))){
this._content.visible = false;
};
if (_local2){
this.dispatchEvent(new Event("allTransitionsInDone"));
};
};
}
public function addTransition(_arg1:Transition):Transition{
_arg1.ID = ++TransitionManager.IDCount;
this._transitions[_arg1.ID] = _arg1;
return (_arg1);
}
public function startTransition(_arg1:Object):Transition{
this.removeTransition(this.findTransition(_arg1));
var _local2:Class = _arg1.type;
var _local3:Transition = new _local2(this._content, _arg1, this);
this.addTransition(_local3);
_local3.start();
return (_local3);
}
function transitionOutDone(_arg1:Object):void{
var _local2:Boolean;
this.removeTransition(_arg1.target);
if (this.numOutTransitions == 0){
this.restoreContentAppearance();
_local2 = this._content.visible;
if (((_local2) && ((((this._triggerEvent == "hide")) || ((this._triggerEvent == "hideChild")))))){
this._content.visible = false;
};
if (_local2){
this.dispatchEvent(new Event("allTransitionsOutDone"));
};
};
}
public function restoreContentAppearance():void{
var _local3:String;
var _local1:MovieClip = this._content;
var _local2:Object = this._contentAppearance;
for (_local3 in this._visualPropList) {
_local1[_local3] = _local2[_local3];
};
_local1.transform.colorTransform = _local2.colorTransform;
}
public function get numTransitions():Number{
var _local2:Transition;
var _local1:Number = 0;
for each (_local2 in this._transitions) {
_local1++;
};
return (_local1);
}
public function findTransition(_arg1:Object):Transition{
var _local2:Transition;
for each (_local2 in this._transitions) {
if (_local2.type == _arg1.type){
return (_local2);
};
};
return (null);
}
public function set content(_arg1:MovieClip):void{
this._content = _arg1;
this.saveContentAppearance();
}
public function get numInTransitions():Number{
var _local3:Transition;
var _local1:Number = 0;
var _local2:Object = this._transitions;
for each (_local3 in _local2) {
if (!_local3.direction){
_local1++;
};
};
return (_local1);
}
public function get numOutTransitions():Number{
var _local3:Transition;
var _local1:Number = 0;
var _local2:Object = this._transitions;
for each (_local3 in _local2) {
if (_local3.direction){
_local1++;
};
};
return (_local1);
}
public function get content():MovieClip{
return (this._content);
}
public function get transitionsList():Object{
return (this._transitions);
}
public function get contentAppearance():Object{
return (this._contentAppearance);
}
public static function start(_arg1:MovieClip, _arg2:Object):Transition{
if (!_arg1.__transitionManager){
_arg1.__transitionManager = new TransitionManager(_arg1);
};
if (_arg2.direction == 1){
_arg1.__transitionManager._triggerEvent = "hide";
} else {
_arg1.__transitionManager._triggerEvent = "reveal";
};
return (_arg1.__transitionManager.startTransition(_arg2));
}
}
}//package fl.transitions
Section 17
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var begin:Number;// = NAN
private var _finish:Number;// = NAN
public var change: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){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
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();
}
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 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 = 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 stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
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();
};
};
}
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 get position():Number{
return (this.getPosition(this._time));
}
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 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 18
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var position:Number;// = NAN
public var time: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){
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 19
//Base64 (FOG.AS3.Base64)
package FOG.AS3 {
import flash.utils.*;
public class Base64 {
public static const version:String = "1.1.0";
private static const BASE64_CHARS:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
public function Base64(){
throw (new Error("Base64 class is static container only"));
}
public static function encode(_arg1:String):String{
var _local2:ByteArray = new ByteArray();
_local2.writeUTFBytes(_arg1);
return (encodeByteArray(_local2));
}
public static function encodeByteArray(_arg1:ByteArray):String{
var _local3:Array;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local2 = "";
var _local4:Array = new Array(4);
_arg1.position = 0;
while (_arg1.bytesAvailable > 0) {
_local3 = new Array();
_local5 = 0;
while ((((_local5 < 3)) && ((_arg1.bytesAvailable > 0)))) {
_local3[_local5] = _arg1.readUnsignedByte();
_local5++;
};
_local4[0] = ((_local3[0] & 252) >> 2);
_local4[1] = (((_local3[0] & 3) << 4) | (_local3[1] >> 4));
_local4[2] = (((_local3[1] & 15) << 2) | (_local3[2] >> 6));
_local4[3] = (_local3[2] & 63);
_local6 = _local3.length;
while (_local6 < 3) {
_local4[(_local6 + 1)] = 64;
_local6++;
};
_local7 = 0;
while (_local7 < _local4.length) {
_local2 = (_local2 + BASE64_CHARS.charAt(_local4[_local7]));
_local7++;
};
};
return (_local2);
}
public static function decode(_arg1:String):String{
var _local2:ByteArray = decodeToByteArray(_arg1);
return (_local2.readUTFBytes(_local2.length));
}
public static function decodeToByteArray(_arg1:String):ByteArray{
var _local6:uint;
var _local7:uint;
var _local2:ByteArray = new ByteArray();
var _local3:Array = new Array(4);
var _local4:Array = new Array(3);
var _local5:uint;
while (_local5 < _arg1.length) {
_local6 = 0;
while ((((_local6 < 4)) && (((_local5 + _local6) < _arg1.length)))) {
_local3[_local6] = BASE64_CHARS.indexOf(_arg1.charAt((_local5 + _local6)));
_local6++;
};
_local4[0] = ((_local3[0] << 2) + ((_local3[1] & 48) >> 4));
_local4[1] = (((_local3[1] & 15) << 4) + ((_local3[2] & 60) >> 2));
_local4[2] = (((_local3[2] & 3) << 6) + _local3[3]);
_local7 = 0;
while (_local7 < _local4.length) {
if (_local3[(_local7 + 1)] == 64){
break;
};
_local2.writeByte(_local4[_local7]);
_local7++;
};
_local5 = (_local5 + 4);
};
_local2.position = 0;
return (_local2);
}
}
}//package FOG.AS3
Section 20
//Connect (FOG.AS3.Connect)
package FOG.AS3 {
import flash.external.*;
public class Connect {
public var Linked:Boolean;// = false
public var User:Object;
public var Core:Object;
public function Connect(_arg1:CoreAPI):void{
User = {ID:0, Name:"Guest", HighScore:0, Thumb:"", Image:""};
super();
this.Core = _arg1;
if (Core.isFogDomain()){
if (ExternalInterface.available){
Linked = CallDirect("connect", Core.config);
if (Linked){
};
};
};
GetUser();
}
public function GetUser():Object{
if (Linked){
User = Call("getUserData");
};
if (typeof(User) != "object"){
User = {ID:0, Name:"Guest", HighScore:0, Thumb:"", Image:""};
};
return (User);
}
public function Call(_arg1:String, _arg2=false, _arg3=false){
if (!Linked){
return (false);
};
return (CallDirect(_arg1, _arg2, _arg3));
}
public function CallDirect(_arg1:String, _arg2=false, _arg3=false){
var _local4:* = ExternalInterface.call(("fog.api." + _arg1), _arg2, _arg3);
return (_local4);
}
}
}//package FOG.AS3
Section 21
//CoreAPI (FOG.AS3.CoreAPI)
package FOG.AS3 {
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.external.*;
public class CoreAPI extends MovieClip {
public var Scores:Object;
public var config:Object;
private var Classes:Array;
private var Plugins:Array;
public var Root:DisplayObject;
public var Connect:Object;
public var Preloader:Object;
public var Tracking:Object;
public var enterFrameFunc:Function;
public var Storage:Object;
public var options:Object;
public var res:Array;
public var Remote:Object;
private var Token:String;
public var StageDims:Object;
public var localMode:Boolean;
public var urlInfo:Object;
public function CoreAPI(_arg1:Object):void{
var _local3:*;
var _local4:*;
var _local5:int;
var _local6:int;
var _local7:Class;
config = new Object();
options = new Object();
Classes = [Preloader, Tracking, Remote, Connect, Scores, Storage];
Plugins = ["Tracking", "Preloader", "Remote", "Connect", "Scores", "Storage"];
super();
Security.allowDomain("*");
var _local2:Object = {version:"1.2", asversion:3, debug:true, trace:true, sandbox:false, remote:false};
Root = _arg1.root;
StageDims = {w:Root.stage.stageWidth, h:Root.stage.stageHeight};
options = parseOptions(_arg1, _local2);
for (_local3 in options) {
if (((!((_local3 == "root"))) && (!((_local3 == "clip"))))){
config[_local3] = options[_local3];
};
};
urlInfo = getUrlInfo(Root.loaderInfo.url);
debug(("Initalized FOG API Version " + options.version));
for (_local4 in options.game) {
debug(((("> " + _local4) + ": ") + options.game[_local4]));
};
debug(("> sandbox: " + options.sandbox));
debug(((("> stage: " + StageDims.w) + "x") + StageDims.h));
debug(("> domain: " + urlInfo.domain));
debug(("> isfog: " + isFogDomain()));
debug(("> remote: " + options.remote));
debug("Plugins");
_local5 = 0;
_local6 = Plugins.length;
while (_local5 < _local6) {
debug(("> FOG." + Plugins[_local5]));
_local7 = (getDefinitionByName(("FOG.AS3." + Plugins[_local5])) as Class);
this[Plugins[_local5]] = new _local7(this);
if (((options[Plugins[_local5]]) && (this[Plugins[_local5]].Options))){
this[Plugins[_local5]].Options = parseOptions(options[Plugins[_local5]], this[Plugins[_local5]].Options);
};
_local5++;
};
if (this.Connect){
Token = Base64.encode(((((((options.game.id + ":") + options.game.title) + ":") + options.game.fogid) + ":") + options.game.key));
debug("FOG Connect (Javascript)");
debug(("> token: " + Token));
debug(("> linked: " + Connect.Linked));
debug((((("> user: " + Connect.User.Name) + " [") + Connect.User.ID) + "]"));
debug(("> highscore: " + Connect.User.HighScore));
};
}
public function Read(_arg1:String){
return (this[_arg1]);
}
public function getUrlInfo(_arg1:String):Object{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
localMode = new RegExp("file://").test(_arg1);
var _local2 = "";
var _local3 = "";
if (localMode){
_local2 = "local";
_local3 = "";
} else {
_local4 = (_arg1.indexOf("://") + 3);
_local5 = _arg1.indexOf("/", _local4);
_local2 = _arg1.substring(_local4, _local5);
_local6 = (_local2.lastIndexOf(".") - 1);
_local7 = (_local2.lastIndexOf(".", _local6) + 1);
_local3 = _arg1.substr(_local5);
};
return ({domain:_local2, uri:_local3});
}
public function isFogDomain():Boolean{
return (((urlInfo.domain.indexOf("freeonlinegames.com") > -1)) ? true : false);
}
public function debug(_arg1, _arg2:String=""):void{
if (isFogDomain()){
if (ExternalInterface.available){
ExternalInterface.call("fog.api.debug", _arg1, _arg2);
};
};
if (((!(_arg2)) && (options.debug))){
if (_arg1.indexOf(">") === 0){
trace(_arg1);
} else {
trace(" ");
trace(_arg1);
};
};
}
private function getDims(_arg1:Object):Array{
var _local2:int;
var _local3:int;
_local2 = Root.stage.stageWidth;
_local3 = Root.stage.stageHeight;
_arg1.game.dims = {w:_local2, h:_local3};
return ([_local2, _local3]);
}
private function parseOptions(_arg1:Object, _arg2:Object):Object{
var _local4:String;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
return (_local3);
}
}
}//package FOG.AS3
Section 22
//JSON (FOG.AS3.JSON)
package FOG.AS3 {
public class JSON {
public static function encode(_arg1):String{
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local6:*;
var _local7:String;
var _local8:Number;
var _local5 = "";
switch (typeof(_arg1)){
case "object":
if (_arg1){
if ((_arg1 is Array)){
_local4 = _arg1.length;
_local3 = 0;
while (_local3 < _local4) {
_local6 = encode(_arg1[_local3]);
if (_local5){
_local5 = (_local5 + ",");
};
_local5 = (_local5 + _local6);
_local3++;
};
return ((("[" + _local5) + "]"));
} else {
if (typeof(_arg1.toString) != "undefined"){
for (_local7 in _arg1) {
_local6 = _arg1[_local7];
if (((!((typeof(_local6) == "undefined"))) && (!((typeof(_local6) == "function"))))){
_local6 = encode(_local6);
if (_local5){
_local5 = (_local5 + ",");
};
_local5 = (_local5 + ((encode(_local7) + ":") + _local6));
};
};
return ((("{" + _local5) + "}"));
};
};
};
return ("null");
case "number":
return ((isFinite(_arg1)) ? String(_arg1) : "null");
case "string":
_local4 = _arg1.length;
_local5 = "\"";
_local3 = 0;
while (_local3 < _local4) {
_local2 = _arg1.charAt(_local3);
if (_local2 >= " "){
if ((((_local2 == "\\")) || ((_local2 == "\"")))){
_local5 = (_local5 + "\\");
};
_local5 = (_local5 + _local2);
} else {
switch (_local2){
case "\b":
_local5 = (_local5 + "\\b");
break;
case "\f":
_local5 = (_local5 + "\\f");
break;
case "\n":
_local5 = (_local5 + "\\n");
break;
case "\r":
_local5 = (_local5 + "\\r");
break;
case "\t":
_local5 = (_local5 + "\\t");
break;
default:
_local8 = _local2.charCodeAt();
_local5 = (_local5 + (("\\u00" + Math.floor((_local8 / 16)).toString(16)) + (_local8 % 16).toString(16)));
};
};
_local3 = (_local3 + 1);
};
return ((_local5 + "\""));
case "boolean":
return (String(_arg1));
default:
return ("null");
};
}
public static function decode(_arg1:String){
var at:Number;
var ch:String;
var _isDigit:Function;
var _isHexDigit:Function;
var _white:Function;
var _string:Function;
var _next:Function;
var _array:Function;
var _object:Function;
var _number:Function;
var _word:Function;
var _value:Function;
var _error:Function;
var source = _arg1;
source = new String(source);
at = 0;
ch = " ";
_isDigit = function (_arg1:String){
return (((("0" <= _arg1)) && ((_arg1 <= "9"))));
};
_isHexDigit = function (_arg1:String){
return (((((_isDigit(_arg1)) || (((("A" <= _arg1)) && ((_arg1 <= "F")))))) || (((("a" <= _arg1)) && ((_arg1 <= "f"))))));
};
_error = function (_arg1:String):void{
throw (new Error(_arg1, (at - 1)));
};
_next = function (){
ch = source.charAt(at);
at = (at + 1);
return (ch);
};
_white = function ():void{
while (ch) {
if (ch <= " "){
_next();
} else {
if (ch == "/"){
switch (_next()){
case "/":
do {
} while (((((_next()) && (!((ch == "\n"))))) && (!((ch == "\r")))));
break;
case "*":
_next();
while (true) {
if (ch){
if (ch == "*"){
if (_next() == "/"){
_next();
break;
};
} else {
_next();
};
} else {
_error("Unterminated Comment");
};
};
break;
default:
_error("Syntax Error");
};
} else {
break;
};
};
};
};
_string = function (){
var _local3:*;
var _local4:*;
var _local1:* = "";
var _local2:* = "";
var _local5:Boolean;
if (ch == "\""){
while (_next()) {
if (ch == "\""){
_next();
return (_local2);
};
if (ch == "\\"){
switch (_next()){
case "b":
_local2 = (_local2 + "\b");
break;
case "f":
_local2 = (_local2 + "\f");
break;
case "n":
_local2 = (_local2 + "\n");
break;
case "r":
_local2 = (_local2 + "\r");
break;
case "t":
_local2 = (_local2 + "\t");
break;
case "u":
_local4 = 0;
_local1 = 0;
while (_local1 < 4) {
_local3 = parseInt(_next(), 16);
if (!isFinite(_local3)){
_local5 = true;
break;
};
_local4 = ((_local4 * 16) + _local3);
_local1 = (_local1 + 1);
};
if (_local5){
_local5 = false;
break;
};
_local2 = (_local2 + String.fromCharCode(_local4));
break;
default:
_local2 = (_local2 + ch);
};
} else {
_local2 = (_local2 + ch);
};
};
};
_error("Bad String");
return (null);
};
_array = function (){
var _local1:Array = [];
if (ch == "["){
_next();
_white();
if (ch == "]"){
_next();
return (_local1);
};
while (ch) {
_local1.push(_value());
_white();
if (ch == "]"){
_next();
return (_local1);
};
if (ch != ","){
break;
};
_next();
_white();
};
};
_error("Bad Array");
return (null);
};
_object = function (){
var _local1:* = {};
var _local2:* = {};
if (ch == "{"){
_next();
_white();
if (ch == "}"){
_next();
return (_local2);
};
while (ch) {
_local1 = _string();
_white();
if (ch != ":"){
break;
};
_next();
_local2[_local1] = _value();
_white();
if (ch == "}"){
_next();
return (_local2);
};
if (ch != ","){
break;
};
_next();
_white();
};
};
_error("Bad Object");
};
_number = function (){
var _local2:*;
var _local1:* = "";
var _local3 = "";
var _local4 = "";
if (ch == "-"){
_local1 = "-";
_local4 = _local1;
_next();
};
if (ch == "0"){
_next();
if ((((ch == "x")) || ((ch == "X")))){
_next();
while (_isHexDigit(ch)) {
_local3 = (_local3 + ch);
_next();
};
if (_local3 == ""){
_error("mal formed Hexadecimal");
} else {
return (Number(((_local4 + "0x") + _local3)));
};
} else {
_local1 = (_local1 + "0");
};
};
while (_isDigit(ch)) {
_local1 = (_local1 + ch);
_next();
};
if (ch == "."){
_local1 = (_local1 + ".");
while (((((_next()) && ((ch >= "0")))) && ((ch <= "9")))) {
_local1 = (_local1 + ch);
};
};
_local2 = (1 * _local1);
if (!isFinite(_local2)){
_error("Bad Number");
} else {
return (_local2);
};
return (NaN);
};
_word = function (){
switch (ch){
case "t":
if ((((((_next() == "r")) && ((_next() == "u")))) && ((_next() == "e")))){
_next();
return (true);
};
break;
case "f":
if ((((((((_next() == "a")) && ((_next() == "l")))) && ((_next() == "s")))) && ((_next() == "e")))){
_next();
return (false);
};
break;
case "n":
if ((((((_next() == "u")) && ((_next() == "l")))) && ((_next() == "l")))){
_next();
return (null);
};
break;
};
_error("Syntax Error");
return (null);
};
_value = function (){
_white();
switch (ch){
case "{":
return (_object());
case "[":
return (_array());
case "\"":
return (_string());
case "-":
return (_number());
default:
return (((((ch >= "0")) && ((ch <= "9")))) ? _number() : _word());
};
};
return (_value());
}
}
}//package FOG.AS3
Section 23
//Preloader (FOG.AS3.Preloader)
package FOG.AS3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
public class Preloader {
public var Root:MovieClip;
public var BG:Sprite;
public var onComplete:Function;
public var Prel:PreloaderClip;
public var Logo:LogoSpin;
public var Foggy:MovieClip;
public var FrameInc:Number;// = 0
public var GotoGameOnClick:Boolean;// = false
public var FoggyBG:Sprite;
public var Percent:Number;// = 0
public var TimerEnd:Number;
public var Notice:MovieClip;
public var TimerStart:Number;
public var Options:Object;
public var Core:CoreAPI;
public function Preloader(_arg1):void{
Options = {duration:3000, density:10, clickable:true, locked:false, domains:["freeonlinegames.com"]};
onComplete = function (_arg1:CoreAPI):void{
MovieClip(_arg1.Root).play();
};
super();
Core = _arg1;
Root = _arg1.Root;
}
private function showProgress(_arg1:Event):void{
Prel.percentGame = Math.floor(((Root.loaderInfo.bytesLoaded / Root.loaderInfo.bytesTotal) * 100));
Prel.percentDura = Math.floor((((getTimer() - TimerStart) / Prel.dura) * 100));
Percent = Math.min(Math.min(Prel.percentGame, Prel.percentDura), 100);
Prel.procent.text = Math.round(Percent).toString();
Prel.ProgBar.width = (Math.round(Percent) * 0.98);
if (Percent > 99){
PlayBranding();
};
loadingBar(_arg1);
}
private function loadingBar(_arg1:Event):void{
var _local2:LogoFly;
if ((FrameInc++ % Math.round((Root.stage.frameRate / Options.density))) === 0){
_local2 = new LogoFly();
_local2.cacheAsBitmap = true;
_local2.x = (Core.StageDims.w / 2);
_local2.y = (Core.StageDims.h / 2);
_local2.scaleX = (_local2.scaleY = 0);
_local2.gotoAndStop(((Math.random() * 10) + 1));
_local2.speed = 100;
_local2.alpha = 0;
_local2.grow = (Math.random() / 100);
_local2.fade = false;
_local2.targetX = (Math.random() * 10);
if (_local2.targetX < 5){
_local2.targetX = (Math.random() * 10);
if (_local2.targetX < 5){
_local2.targetX = -100;
} else {
_local2.targetX = (Core.StageDims.w + 100);
};
_local2.targetY = (Math.random() * Core.StageDims.h);
} else {
_local2.targetY = (Math.random() * 10);
if (_local2.targetY < 5){
_local2.targetY = -100;
} else {
_local2.targetY = (Core.StageDims.h + 100);
};
_local2.targetX = (Math.random() * Core.StageDims.w);
};
BG.addChild(_local2);
_local2.addEventListener(Event.ENTER_FRAME, FOGFly);
};
}
public function Start():void{
var tf:TextField;
var ctxMenu:ContextMenu = new ContextMenu();
ctxMenu.hideBuiltInItems();
var ctx3:ContextMenuItem = new ContextMenuItem("Play More Games");
ctx3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function (_arg1:ContextMenuEvent):void{
Core.Tracking.Click();
});
var ctx4:ContextMenuItem = new ContextMenuItem("Free Games For Your Website");
ctx4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function (_arg1:ContextMenuEvent):void{
Core.Tracking.Click("http://www.freegamesforyourwebsite.com/");
});
var ctx1:ContextMenuItem = new ContextMenuItem("Copyright © Free Online Games");
ctx1.enabled = false;
ctx1.separatorBefore = true;
var ctx2:ContextMenuItem = new ContextMenuItem(("FOG API Version " + Core.options.version));
ctx2.enabled = false;
ctxMenu.customItems.push(ctx3, ctx4, ctx1, ctx2);
Root.contextMenu = ctxMenu;
BG = new Sprite();
BG.graphics.beginFill(0);
BG.graphics.drawRect(0, 0, Core.StageDims.w, Core.StageDims.h);
BG.graphics.endFill();
BG.addChild(new BackgroundGraphic());
Root.addChild(BG);
Logo = new LogoSpin();
Logo.stop();
Logo.x = (Core.StageDims.w / 2);
Logo.y = ((Core.StageDims.h / 2) - 30);
Root.addChild(Logo);
Prel = new PreloaderClip();
Prel.dura = Options.duration;
Prel.x = (Core.StageDims.w / 2);
Prel.y = ((Core.StageDims.h / 2) + 50);
Root.addChild(Prel);
Foggy = new MovieClip();
FoggyBG = new Sprite();
FoggyBG.graphics.beginFill(0);
FoggyBG.graphics.drawRect(0, 0, Core.StageDims.w, Core.StageDims.h);
FoggyBG.graphics.endFill();
Foggy.addChild(FoggyBG);
Foggy.width = Core.StageDims.w;
Foggy.height = Core.StageDims.h;
Foggy.alpha = 0;
Foggy.addEventListener(MouseEvent.CLICK, LoaderClicked);
Foggy.buttonMode = true;
Root.addChild(Foggy);
Root.stop();
TimerStart = getTimer();
Foggy.addEventListener(Event.ENTER_FRAME, showProgress);
if (Core.options.sandbox){
tf = new TextField();
tf.textColor = 0xFFFFFF;
tf.text = ("Sandbox Type: " + Security.sandboxType);
tf.x = 10;
tf.y = 10;
tf.width = 300;
Root.addChild(tf);
};
}
public function DomainHasAccess():Boolean{
var _local1:Array = Options.domains;
var _local2:Boolean;
Core.debug("Allowed on domains");
var _local3:int;
var _local4:int = _local1.length;
while (_local3 < _local4) {
Core.debug(("> " + _local1[_local3]));
if (Core.urlInfo.domain.indexOf(_local1[_local3]) > -1){
_local2 = true;
};
_local3++;
};
if (((!(_local2)) && (Options.locked))){
if (Core.options.sandbox){
Core.debug("> Sandbox Overide");
return (true);
};
return (false);
//unresolved jump
};
return (true);
}
private function PlayBranding():void{
var _local1:Sound;
Foggy.removeEventListener(Event.ENTER_FRAME, showProgress);
TimerEnd = getTimer();
Core.debug((("Game loaded in " + (Math.round(((TimerEnd - TimerStart) / 10)) / 100)) + " seconds"));
Core.debug(("> Filesize: " + Core.Root.loaderInfo.bytesTotal));
Logo.play();
if (DomainHasAccess()){
_local1 = new VoiceOver();
_local1.play();
setTimeout(End, 4000);
} else {
Prel.visible = false;
Notice = new LockedNotice();
Notice.x = (Core.StageDims.w / 2);
Notice.y = Prel.y;
Root.addChild(Notice);
};
}
public function LoaderClicked(_arg1:MouseEvent):void{
if (GotoGameOnClick){
Core.Tracking.Click(Core.Tracking.GamePlayURL);
} else {
Core.Tracking.Click();
};
}
private function FOGFly(_arg1:Event):void{
var _local2:Object = _arg1.currentTarget;
_local2.x = (_local2.x + (((_local2.targetX - _local2.x) / _local2.speed) * 0.5));
_local2.y = (_local2.y + (((_local2.targetY - _local2.y) / _local2.speed) * 0.5));
_local2.speed = (_local2.speed * 0.99);
_local2.scaleX = (_local2.scaleY = (_local2.scaleY + (_local2.grow * 2)));
if ((((_local2.alpha < 1)) && (!(_local2.fade)))){
_local2.alpha = (_local2.alpha + 0.01);
};
if ((((((((((_local2.x < -50)) || ((_local2.y < -50)))) || ((_local2.x > (Core.StageDims.w + 50))))) || ((_local2.y > (Core.StageDims.h + 50))))) || ((_local2.scaleX > 2)))){
_local2.fade = true;
};
if (_local2.fade){
_local2.alpha = (_local2.alpha - 0.05);
if (_local2.alpha <= 0){
_local2.removeEventListener(Event.ENTER_FRAME, FOGFly);
_local2.parent.removeChild(_local2);
};
};
}
private function End(_arg1:Boolean=false):void{
Foggy.removeEventListener(MouseEvent.CLICK, LoaderClicked);
Root.removeChild(Foggy);
Root.removeChild(BG);
Root.removeChild(Prel);
Root.removeChild(Logo);
onComplete(Core);
if (((Core.Remote) && (Core.options.remote))){
Core.Remote.Connect();
};
}
}
}//package FOG.AS3
Section 24
//Remote (FOG.AS3.Remote)
package FOG.AS3 {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class Remote {
public var LibFile:String;// = "api/library.swf"
public var Server:String;// = "x.fogdev.com"
public var rLoader:Loader;
public var LibPath:String;// = ""
public var Library:MovieClip;
public var rRequest:URLRequest;
public var Core:Object;
public function Remote(_arg1:CoreAPI):void{
this.Core = _arg1;
}
public function Connect():void{
if (Core.Connect.Linked){
return;
};
Security.allowDomain(Server);
Security.loadPolicyFile((("http://" + Server) + "/crossdomain.xml"));
LibPath = ((((((("http://" + Server) + "/") + LibFile) + "?v=") + Core.options.version) + "&c=") + Math.random());
Core.debug("Remote Tracking");
Core.debug(("> " + LibPath));
rLoader = new Loader();
rRequest = new URLRequest(LibPath);
rLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, function (_arg1:Event):void{
Library = MovieClip(_arg1.target.content);
Library.Connect(Core);
});
rLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
Core.debug(("> " + _arg1.text));
});
rLoader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, function (_arg1:HTTPStatusEvent):void{
Core.debug(("> " + _arg1.status));
});
rLoader.load(rRequest);
}
}
}//package FOG.AS3
Section 25
//Scores (FOG.AS3.Scores)
package FOG.AS3 {
public class Scores {
public var CryptScore:String;// = ""
public var HighScore:Number;// = 0
public var Score:Number;// = 0
public var Options:Object;
public var Core:Object;
public function Scores(_arg1:CoreAPI):void{
Options = {order:"DESC", type:"INT"};
super();
this.Core = _arg1;
if (!Core.Connect){
throw (new Error("You cannot use FogAPI.Scores Plugin without loading FogAPI.Connect Plugin first"));
};
}
public function GetScoreKey(_arg1:Number):String{
return (Base64.encode(((Core.Read("Token") + ":") + _arg1)));
}
public function Update(_arg1:Number, _arg2:Boolean=true):Boolean{
if (_arg1 != Score){
HighScore = Core.Connect.User.HighScore;
Score = _arg1;
Core.debug((((((((("Score Update: " + Options.order) + " - ") + Score) + " - ") + HighScore) + " (") + _arg2) + ")"));
if (((Options.order == "DESC")) ? (Score > HighScore) : (((Score < HighScore)) || ((HighScore === 0)))){
if (_arg2){
Save();
};
HighScore = Score;
Core.Connect.User.HighScore = HighScore;
};
if (Core.Connect.Linked){
Core.Connect.Call("scores.update", Score);
};
};
return (true);
}
public function Publish(_arg1:Boolean=false):void{
CryptScore = GetScoreKey(Score);
if (Core.Connect.Linked){
Core.Connect.Call("scores.publish", CryptScore, _arg1);
} else {
Core.debug(((("Publishing Score: " + Score) + " - ") + CryptScore));
Core.Tracking.Click(Core.Tracking.GamePlayURL);
};
}
public function Scoreboard():void{
if (Core.Connect.Linked){
Core.Connect.Call("scores.scoreboard");
} else {
Core.Tracking.Click(Core.Tracking.ScoreboardURL);
};
}
public function Save():void{
if (Core.Connect.Linked){
Core.Connect.Call("scores.save", GetScoreKey(Score));
};
}
}
}//package FOG.AS3
Section 26
//Storage (FOG.AS3.Storage)
package FOG.AS3 {
import flash.net.*;
public class Storage {
public var CurrentData:String;// = ""
public var DataID:String;// = ""
public var Locals:Array;
public var Connected:Boolean;// = false
public var Data:SharedObject;
public var LastSave:String;// = ""
public var Core:Object;
public function Storage(_arg1:CoreAPI):void{
Locals = new Array();
super();
Core = _arg1;
if (!Core.Connect){
throw (new Error("You cannot use FogAPI.Storage Plugin without loading FogAPI.Connect Plugin first"));
};
DataID = ((Core.options.game.fogid + ".") + Core.Connect.User.ID);
Data = SharedObject.getLocal(DataID);
}
public function Set(_arg1:String, _arg2, _arg3:Boolean=true):Boolean{
Data.data[_arg1] = _arg2;
if (_arg3){
Save();
};
return (true);
}
public function Decode(_arg1:String){
var _local2:String = _arg1;
_local2 = Base64.decode(_local2);
_local2 = JSON.decode(_local2);
return (_local2);
}
public function Load(_arg1=""):Boolean{
var _local4:*;
var _local5:SharedObject;
var _local6:String;
Connected = true;
if (!Core.Connect.Linked){
return (false);
};
var _local2:* = Core.Connect.Call("storage.load", Core.options.game.fogid);
if (!_local2){
Core.debug("Could not load storage");
return (false);
};
Core.debug("Storage:");
var _local3:* = Decode(_local2);
Clear(false);
for (_local4 in _local3) {
Core.debug(((("> " + _local4) + " = ") + _local3));
if (_local4.indexOf("_") === 0){
_local5 = GetLocal(_local4.substr(1));
for (_local6 in _local3[_local4]) {
_local5.data[_local6] = _local3[_local4][_local6];
};
} else {
Data.data[_local4] = _local3[_local4];
};
};
if (_arg1){
_arg1(_local2);
};
return (true);
}
public function Encode(_arg1):String{
var _local2:* = _arg1;
_local2 = JSON.encode(_local2);
_local2 = Base64.encode(_local2);
return (_local2);
}
public function GetLocal(_arg1:String=""):SharedObject{
var _local2:SharedObject = SharedObject.getLocal(((DataID + ".") + _arg1));
Locals.push([_arg1, _local2]);
return (_local2);
}
public function Get(_arg1:String){
return (Data.data[_arg1]);
}
public function Sync():void{
var _local1:int;
var _local2:int = Locals.length;
while (_local1 < _local2) {
Set(("_" + Locals[_local1][0]), Locals[_local1][1].data, false);
_local1++;
};
Save();
}
public function Clear(_arg1:Boolean=true):void{
var _local2:int;
var _local3:int = Locals.length;
while (_local2 < _local3) {
Locals[_local2][1].clear();
_local2++;
};
Data.clear();
if (_arg1){
Save();
};
}
public function Save():Boolean{
if (!Connected){
throw (new Error("You can't save data to the server when the game is not synced. Please use FogAPI.Storage.Load() to Initialize Sync"));
};
if (!Core.Connect.Linked){
return (false);
};
CurrentData = Encode(Data.data);
if (CurrentData != LastSave){
LastSave = CurrentData;
return ((Core.Connect.Call("storage.save", Core.options.game.fogid, CurrentData)) ? true : false);
//unresolved jump
};
return (true);
}
}
}//package FOG.AS3
Section 27
//Tracking (FOG.AS3.Tracking)
package FOG.AS3 {
import flash.net.*;
public class Tracking {
public var GamePlayURL:String;// = "http://www.freeonlinegames.com/{$game.category}/{$game.name}.html"
public var DefaultURL:String;// = "http://www.freeonlinegames.com/"
public var FreeGamesURL:String;// = "http://www.freegamesforyourwebsite.com/"
public var ScoreboardURL:String;// = "http://www.freeonlinegames.com/scores/{$game.name}.html"
public var Core:Object;
public function Tracking(_arg1:CoreAPI):void{
this.Core = _arg1;
}
public function Click(_arg1:String=""):Boolean{
var _local2:String = (_arg1) ? _arg1 : DefaultURL;
_local2 = _local2.replace("{$game.name}", Core.options.game.name);
_local2 = _local2.replace("{$game.category}", Core.options.game.category);
var _local3:String = ((("?utm_source=" + Core.urlInfo.domain) + "&utm_medium=api-game&utm_campaign=") + Core.options.game.name);
var _local4:String = (_local2 + _local3);
Core.debug("Tracking..");
Core.debug(("> " + _local4));
if (Core.options.sandbox){
return (false);
};
navigateToURL(new URLRequest(_local4), "_blank");
return (true);
}
public function RegisterEvent(_arg1:String):void{
}
}
}//package FOG.AS3
Section 28
//groundModel (model.groundModel)
package model {
public class groundModel {
public var _x:int;
public var m_x:int;
public var m_y:int;
public var isWalk:Boolean;// = false
public var _type:int;
public var _y:int;
public function addWalkGround():void{
isWalk = true;
}
public function remWaWalkGround():void{
isWalk = false;
}
}
}//package model
Section 29
//dong1_p_185 (monster_fla.dong1_p_185)
package monster_fla {
import flash.display.*;
public dynamic class dong1_p_185 extends MovieClip {
public function dong1_p_185(){
addFrameScript(39, frame40);
}
function frame40(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 30
//dong2_p_186 (monster_fla.dong2_p_186)
package monster_fla {
import flash.display.*;
public dynamic class dong2_p_186 extends MovieClip {
public function dong2_p_186(){
addFrameScript(39, frame40);
}
function frame40(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 31
//dong3_p_188 (monster_fla.dong3_p_188)
package monster_fla {
import flash.display.*;
public dynamic class dong3_p_188 extends MovieClip {
public function dong3_p_188(){
addFrameScript(39, frame40);
}
function frame40(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 32
//dong4_p_189 (monster_fla.dong4_p_189)
package monster_fla {
import flash.display.*;
public dynamic class dong4_p_189 extends MovieClip {
public function dong4_p_189(){
addFrameScript(39, frame40);
}
function frame40(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 33
//DropHighlight_9 (monster_fla.DropHighlight_9)
package monster_fla {
import flash.display.*;
public dynamic class DropHighlight_9 extends MovieClip {
public function DropHighlight_9(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(1);
}
}
}//package monster_fla
Section 34
//Instrtext_136 (monster_fla.Instrtext_136)
package monster_fla {
import flash.display.*;
public dynamic class Instrtext_136 extends MovieClip {
public function Instrtext_136(){
addFrameScript(314, frame315);
}
function frame315(){
stop();
}
}
}//package monster_fla
Section 35
//MainTimeline (monster_fla.MainTimeline)
package monster_fla {
import flash.display.*;
import flash.events.*;
import FOG.AS3.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var game:MovieClip;
public var logo:MovieClip;
public var FogAPI;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
FogAPI = new CoreAPI({game:{id:28, fogid:20469, name:"monster-flood", title:"Monster Flood", category:"shooting-games", res:"670x550"}, debug:true, sandbox:false, remote:true, Preloader:{locked:false, domains:["local", "freeonlinegames.com"]}, root:root});
FogAPI.Preloader.Start();
}
function frame2(){
stop();
logo.addEventListener(MouseEvent.CLICK, onClick);
logo.buttonMode = true;
game = new gamaMain(this.stage);
this.addChildAt(game, 0);
}
public function onClick(_arg1:MouseEvent):void{
FogAPI.Tracking.Click();
}
}
}//package monster_fla
Section 36
//PA_mc_183 (monster_fla.PA_mc_183)
package monster_fla {
import flash.display.*;
public dynamic class PA_mc_183 extends MovieClip {
public var box:MovieClip;
public function PA_mc_183(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 37
//sprite169_218 (monster_fla.sprite169_218)
package monster_fla {
import flash.display.*;
public dynamic class sprite169_218 extends MovieClip {
public function sprite169_218(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 38
//sprite350_217 (monster_fla.sprite350_217)
package monster_fla {
import flash.display.*;
public dynamic class sprite350_217 extends MovieClip {
public function sprite350_217(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package monster_fla
Section 39
//Timeline_15 (monster_fla.Timeline_15)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_15 extends MovieClip {
public function Timeline_15(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 40
//Timeline_16 (monster_fla.Timeline_16)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_16 extends MovieClip {
public function Timeline_16(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 41
//Timeline_19 (monster_fla.Timeline_19)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_19 extends MovieClip {
public function Timeline_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 42
//Timeline_195 (monster_fla.Timeline_195)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_195 extends MovieClip {
public function Timeline_195(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 43
//Timeline_201 (monster_fla.Timeline_201)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_201 extends MovieClip {
public function Timeline_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 44
//Timeline_204 (monster_fla.Timeline_204)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_204 extends MovieClip {
public function Timeline_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 45
//Timeline_207 (monster_fla.Timeline_207)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_207 extends MovieClip {
public function Timeline_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 46
//Timeline_210 (monster_fla.Timeline_210)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_210 extends MovieClip {
public function Timeline_210(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 47
//Timeline_22 (monster_fla.Timeline_22)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_22 extends MovieClip {
public function Timeline_22(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 48
//Timeline_220 (monster_fla.Timeline_220)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_220 extends MovieClip {
public function Timeline_220(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 49
//Timeline_222 (monster_fla.Timeline_222)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_222 extends MovieClip {
public var hitbox:MovieClip;
public function Timeline_222(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 50
//Timeline_224 (monster_fla.Timeline_224)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_224 extends MovieClip {
public function Timeline_224(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 51
//Timeline_225 (monster_fla.Timeline_225)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_225 extends MovieClip {
public function Timeline_225(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 52
//Timeline_226 (monster_fla.Timeline_226)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_226 extends MovieClip {
public function Timeline_226(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 53
//Timeline_228 (monster_fla.Timeline_228)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_228 extends MovieClip {
public var hitbox:MovieClip;
public function Timeline_228(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 54
//Timeline_229 (monster_fla.Timeline_229)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_229 extends MovieClip {
public function Timeline_229(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 55
//Timeline_23 (monster_fla.Timeline_23)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_23 extends MovieClip {
public function Timeline_23(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 56
//Timeline_230 (monster_fla.Timeline_230)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_230 extends MovieClip {
public function Timeline_230(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 57
//Timeline_231 (monster_fla.Timeline_231)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_231 extends MovieClip {
public function Timeline_231(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 58
//Timeline_233 (monster_fla.Timeline_233)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_233 extends MovieClip {
public var hitbox:MovieClip;
public function Timeline_233(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 59
//Timeline_234 (monster_fla.Timeline_234)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_234 extends MovieClip {
public function Timeline_234(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 60
//Timeline_235 (monster_fla.Timeline_235)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_235 extends MovieClip {
public function Timeline_235(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 61
//Timeline_237 (monster_fla.Timeline_237)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_237 extends MovieClip {
public var hitbox:MovieClip;
public function Timeline_237(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 62
//Timeline_238 (monster_fla.Timeline_238)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_238 extends MovieClip {
public function Timeline_238(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 63
//Timeline_239 (monster_fla.Timeline_239)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_239 extends MovieClip {
public function Timeline_239(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 64
//Timeline_24 (monster_fla.Timeline_24)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_24 extends MovieClip {
public function Timeline_24(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 65
//Timeline_241 (monster_fla.Timeline_241)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_241 extends MovieClip {
public var hitbox:MovieClip;
public function Timeline_241(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 66
//Timeline_242 (monster_fla.Timeline_242)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_242 extends MovieClip {
public function Timeline_242(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 67
//Timeline_246 (monster_fla.Timeline_246)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_246 extends MovieClip {
public function Timeline_246(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 68
//Timeline_249 (monster_fla.Timeline_249)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_249 extends MovieClip {
public function Timeline_249(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 69
//Timeline_25 (monster_fla.Timeline_25)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_25 extends MovieClip {
public function Timeline_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 70
//Timeline_252 (monster_fla.Timeline_252)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_252 extends MovieClip {
public function Timeline_252(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 71
//Timeline_255 (monster_fla.Timeline_255)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_255 extends MovieClip {
public function Timeline_255(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 72
//Timeline_258 (monster_fla.Timeline_258)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_258 extends MovieClip {
public function Timeline_258(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 73
//Timeline_263 (monster_fla.Timeline_263)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_263 extends MovieClip {
public function Timeline_263(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 74
//Timeline_267 (monster_fla.Timeline_267)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_267 extends MovieClip {
public function Timeline_267(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 75
//Timeline_270 (monster_fla.Timeline_270)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_270 extends MovieClip {
public function Timeline_270(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 76
//Timeline_273 (monster_fla.Timeline_273)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_273 extends MovieClip {
public function Timeline_273(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 77
//Timeline_276 (monster_fla.Timeline_276)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_276 extends MovieClip {
public function Timeline_276(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 78
//Timeline_28 (monster_fla.Timeline_28)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_28 extends MovieClip {
public function Timeline_28(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 79
//Timeline_280 (monster_fla.Timeline_280)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_280 extends MovieClip {
public function Timeline_280(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 80
//Timeline_283 (monster_fla.Timeline_283)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_283 extends MovieClip {
public function Timeline_283(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 81
//Timeline_286 (monster_fla.Timeline_286)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_286 extends MovieClip {
public function Timeline_286(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 82
//Timeline_289 (monster_fla.Timeline_289)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_289 extends MovieClip {
public function Timeline_289(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 83
//Timeline_29 (monster_fla.Timeline_29)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_29 extends MovieClip {
public function Timeline_29(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 84
//Timeline_292 (monster_fla.Timeline_292)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_292 extends MovieClip {
public function Timeline_292(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 85
//Timeline_296 (monster_fla.Timeline_296)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_296 extends MovieClip {
public function Timeline_296(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 86
//Timeline_299 (monster_fla.Timeline_299)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_299 extends MovieClip {
public function Timeline_299(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 87
//Timeline_30 (monster_fla.Timeline_30)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_30 extends MovieClip {
public function Timeline_30(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 88
//Timeline_302 (monster_fla.Timeline_302)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_302 extends MovieClip {
public function Timeline_302(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 89
//Timeline_305 (monster_fla.Timeline_305)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_305 extends MovieClip {
public function Timeline_305(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 90
//Timeline_308 (monster_fla.Timeline_308)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_308 extends MovieClip {
public function Timeline_308(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 91
//Timeline_31 (monster_fla.Timeline_31)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_31 extends MovieClip {
public function Timeline_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 92
//Timeline_312 (monster_fla.Timeline_312)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_312 extends MovieClip {
public function Timeline_312(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 93
//Timeline_315 (monster_fla.Timeline_315)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_315 extends MovieClip {
public function Timeline_315(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 94
//Timeline_318 (monster_fla.Timeline_318)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_318 extends MovieClip {
public function Timeline_318(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 95
//Timeline_321 (monster_fla.Timeline_321)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_321 extends MovieClip {
public function Timeline_321(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 96
//Timeline_324 (monster_fla.Timeline_324)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_324 extends MovieClip {
public function Timeline_324(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 97
//Timeline_328 (monster_fla.Timeline_328)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_328 extends MovieClip {
public function Timeline_328(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 98
//Timeline_331 (monster_fla.Timeline_331)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_331 extends MovieClip {
public function Timeline_331(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 99
//Timeline_334 (monster_fla.Timeline_334)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_334 extends MovieClip {
public function Timeline_334(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 100
//Timeline_336 (monster_fla.Timeline_336)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_336 extends MovieClip {
public function Timeline_336(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 101
//Timeline_339 (monster_fla.Timeline_339)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_339 extends MovieClip {
public function Timeline_339(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 102
//Timeline_34 (monster_fla.Timeline_34)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_34 extends MovieClip {
public function Timeline_34(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 103
//Timeline_343 (monster_fla.Timeline_343)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_343 extends MovieClip {
public function Timeline_343(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 104
//Timeline_346 (monster_fla.Timeline_346)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_346 extends MovieClip {
public function Timeline_346(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 105
//Timeline_349 (monster_fla.Timeline_349)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_349 extends MovieClip {
public function Timeline_349(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 106
//Timeline_35 (monster_fla.Timeline_35)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_35 extends MovieClip {
public function Timeline_35(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 107
//Timeline_352 (monster_fla.Timeline_352)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_352 extends MovieClip {
public function Timeline_352(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 108
//Timeline_355 (monster_fla.Timeline_355)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_355 extends MovieClip {
public function Timeline_355(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package monster_fla
Section 109
//Timeline_36 (monster_fla.Timeline_36)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_36 extends MovieClip {
public function Timeline_36(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 110
//Timeline_39 (monster_fla.Timeline_39)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_39 extends MovieClip {
public function Timeline_39(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 111
//Timeline_40 (monster_fla.Timeline_40)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_40 extends MovieClip {
public function Timeline_40(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 112
//Timeline_41 (monster_fla.Timeline_41)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_41 extends MovieClip {
public function Timeline_41(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 113
//Timeline_44 (monster_fla.Timeline_44)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_44 extends MovieClip {
public function Timeline_44(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 114
//Timeline_45 (monster_fla.Timeline_45)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_45 extends MovieClip {
public function Timeline_45(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 115
//Timeline_47 (monster_fla.Timeline_47)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_47 extends MovieClip {
public function Timeline_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 116
//Timeline_49 (monster_fla.Timeline_49)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_49 extends MovieClip {
public function Timeline_49(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 117
//Timeline_5 (monster_fla.Timeline_5)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_5 extends MovieClip {
public function Timeline_5(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package monster_fla
Section 118
//Timeline_50 (monster_fla.Timeline_50)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_50 extends MovieClip {
public function Timeline_50(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 119
//Timeline_51 (monster_fla.Timeline_51)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_51 extends MovieClip {
public function Timeline_51(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 120
//Timeline_52 (monster_fla.Timeline_52)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_52 extends MovieClip {
public function Timeline_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 121
//Timeline_54 (monster_fla.Timeline_54)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_54 extends MovieClip {
public function Timeline_54(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 122
//Timeline_55 (monster_fla.Timeline_55)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_55 extends MovieClip {
public function Timeline_55(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 123
//Timeline_56 (monster_fla.Timeline_56)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_56 extends MovieClip {
public function Timeline_56(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 124
//Timeline_57 (monster_fla.Timeline_57)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_57 extends MovieClip {
public function Timeline_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 125
//Timeline_59 (monster_fla.Timeline_59)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_59 extends MovieClip {
public function Timeline_59(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 126
//Timeline_60 (monster_fla.Timeline_60)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_60 extends MovieClip {
public function Timeline_60(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 127
//Timeline_61 (monster_fla.Timeline_61)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_61 extends MovieClip {
public function Timeline_61(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 128
//Timeline_63 (monster_fla.Timeline_63)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_63 extends MovieClip {
public function Timeline_63(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 129
//Timeline_64 (monster_fla.Timeline_64)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_64 extends MovieClip {
public function Timeline_64(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 130
//Timeline_65 (monster_fla.Timeline_65)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_65 extends MovieClip {
public function Timeline_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 131
//Timeline_67 (monster_fla.Timeline_67)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_67 extends MovieClip {
public function Timeline_67(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 132
//Timeline_68 (monster_fla.Timeline_68)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_68 extends MovieClip {
public function Timeline_68(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 133
//Timeline_70 (monster_fla.Timeline_70)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_70 extends MovieClip {
public function Timeline_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 134
//Timeline_73 (monster_fla.Timeline_73)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_73 extends MovieClip {
public function Timeline_73(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 135
//Timeline_74 (monster_fla.Timeline_74)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_74 extends MovieClip {
public function Timeline_74(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 136
//Timeline_75 (monster_fla.Timeline_75)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_75 extends MovieClip {
public function Timeline_75(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 137
//Timeline_76 (monster_fla.Timeline_76)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_76 extends MovieClip {
public function Timeline_76(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 138
//Timeline_79 (monster_fla.Timeline_79)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_79 extends MovieClip {
public function Timeline_79(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 139
//Timeline_80 (monster_fla.Timeline_80)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_80 extends MovieClip {
public function Timeline_80(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 140
//Timeline_81 (monster_fla.Timeline_81)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_81 extends MovieClip {
public function Timeline_81(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package monster_fla
Section 141
//Timeline_82 (monster_fla.Timeline_82)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_82 extends MovieClip {
public function Timeline_82(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 142
//Timeline_85 (monster_fla.Timeline_85)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_85 extends MovieClip {
public function Timeline_85(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 143
//Timeline_86 (monster_fla.Timeline_86)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_86 extends MovieClip {
public function Timeline_86(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 144
//Timeline_87 (monster_fla.Timeline_87)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_87 extends MovieClip {
public function Timeline_87(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 145
//Timeline_90 (monster_fla.Timeline_90)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_90 extends MovieClip {
public function Timeline_90(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 146
//Timeline_91 (monster_fla.Timeline_91)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_91 extends MovieClip {
public function Timeline_91(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 147
//Timeline_92 (monster_fla.Timeline_92)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_92 extends MovieClip {
public function Timeline_92(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package monster_fla
Section 148
//Timeline_95 (monster_fla.Timeline_95)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_95 extends MovieClip {
public function Timeline_95(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 149
//Timeline_96 (monster_fla.Timeline_96)
package monster_fla {
import flash.display.*;
public dynamic class Timeline_96 extends MovieClip {
public function Timeline_96(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package monster_fla
Section 150
//GameSoundClass (until.GameSoundClass)
package until {
public class GameSoundClass extends GameIngSound {
public static var GAME_END:String = "game_end";
private static var _instance:GameSoundClass;
public static var MS_END:String = "ms_end";
public static var MS_ST:String = "ms_st";
public static var GAME_ST:String = "game_st";
public function GameSoundClass(){
this.gotoAndStop(1);
}
public function setSound(_arg1:String):void{
this.gotoAndStop(_arg1);
this.gotoAndStop(1);
}
public static function getInstance():GameSoundClass{
if (_instance == null){
_instance = new (GameSoundClass);
};
return (_instance);
}
}
}//package until
Section 151
//HitTest (until.HitTest)
package until {
import flash.display.*;
import flash.geom.*;
public class HitTest {
protected static function getDrawMatrix(_arg1:DisplayObject, _arg2:Rectangle, _arg3:Number):Matrix{
var _local4:Point;
var _local5:Matrix;
var _local6:Matrix = _arg1.root.transform.concatenatedMatrix;
_local4 = _arg1.localToGlobal(new Point());
_local5 = _arg1.transform.concatenatedMatrix;
_local5.tx = (_local4.x - _arg2.x);
_local5.ty = (_local4.y - _arg2.y);
_local5.a = (_local5.a / _local6.a);
_local5.d = (_local5.d / _local6.d);
if (_arg3 != 1){
_local5.scale(_arg3, _arg3);
};
return (_local5);
}
public static function complexHitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Boolean{
return (!((complexIntersectionRectangle(_arg1, _arg2, _arg3).width == 0)));
}
public static function complexIntersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Rectangle{
if (_arg3 <= 0){
throw (new Error("ArgumentError: Error #5001: Invalid value for accurracy", 5001));
};
if (!_arg1.hitTestObject(_arg2)){
return (new Rectangle());
};
var _local4:Rectangle = intersectionRectangle(_arg1, _arg2);
if (((((_local4.width * _arg3) < 1)) || (((_local4.height * _arg3) < 1)))){
return (new Rectangle());
};
var _local5:BitmapData = new BitmapData((_local4.width * _arg3), (_local4.height * _arg3), false, 0);
_local5.draw(_arg1, HitTest.getDrawMatrix(_arg1, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF));
_local5.draw(_arg2, HitTest.getDrawMatrix(_arg2, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF), BlendMode.DIFFERENCE);
var _local6:Rectangle = _local5.getColorBoundsRect(4294967295, 4278255615);
_local5.dispose();
if (_arg3 != 1){
_local6.x = (_local6.x / _arg3);
_local6.y = (_local6.y / _arg3);
_local6.width = (_local6.width / _arg3);
_local6.height = (_local6.height / _arg3);
};
_local6.x = (_local6.x + _local4.x);
_local6.y = (_local6.y + _local4.y);
return (_local6);
}
public static function intersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject):Rectangle{
if (((((!(_arg1.root)) || (!(_arg2.root)))) || (!(_arg1.hitTestObject(_arg2))))){
return (new Rectangle());
};
var _local3:Rectangle = _arg1.getBounds(_arg1.root);
var _local4:Rectangle = _arg2.getBounds(_arg2.root);
var _local5:Rectangle = new Rectangle();
_local5.x = Math.max(_local3.x, _local4.x);
_local5.y = Math.max(_local3.y, _local4.y);
_local5.width = Math.min(((_local3.x + _local3.width) - _local5.x), ((_local4.x + _local4.width) - _local5.x));
_local5.height = Math.min(((_local3.y + _local3.height) - _local5.y), ((_local4.y + _local4.height) - _local5.y));
return (_local5);
}
}
}//package until
Section 152
//KeyboardClass (until.KeyboardClass)
package until {
import flash.display.*;
import flash.events.*;
public class KeyboardClass {
public var down:Boolean;// = false
public var right:Boolean;// = false
public var space:Boolean;// = false
public var left:Boolean;// = false
public var restore:Boolean;// = false
public var isHort:Boolean;// = false
public var p_num:int;// = 0
public var isPause;// = false
public var up:Boolean;// = false
private static var instance:KeyboardClass;
public function returnInit():void{
up = false;
down = false;
left = false;
right = false;
space = false;
restore = false;
isHort = false;
isPause = false;
p_num = 0;
}
private function key_down_hanel(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 38:
up = true;
break;
case 40:
down = true;
break;
case 37:
left = true;
restore = false;
break;
case 39:
right = true;
restore = false;
break;
case 32:
space = true;
break;
case 49:
p_num = 0;
break;
case 50:
p_num = 1;
break;
case 51:
p_num = 2;
break;
case 52:
p_num = 3;
break;
case 53:
p_num = 4;
break;
case 54:
p_num = 5;
break;
case 55:
p_num = 6;
break;
case 56:
p_num = 7;
break;
case 80:
isPause = true;
break;
};
}
public function setStage(_arg1:Stage){
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, key_down_hanel);
_arg1.addEventListener(KeyboardEvent.KEY_UP, key_up_hanel);
}
private function key_up_hanel(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 38:
up = false;
break;
case 40:
down = false;
break;
case 37:
left = false;
restore = true;
break;
case 39:
right = false;
restore = true;
break;
case 32:
space = false;
break;
};
}
public static function getInstance():KeyboardClass{
if (instance == null){
instance = new (KeyboardClass);
};
return (instance);
}
}
}//package until
Section 153
//MapBJ (until.MapBJ)
package until {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import model.*;
public class MapBJ extends MovieClip {
private var mapScene:MovieClip;
private var ground_Array:Array;
public static var Ground_Windth = 65;
public static var map_Array:Array = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
public static var Ground_Height = 25;
public function MapBJ(_arg1:MovieClip){
var _local3:int;
var _local4:MovieClip;
super();
mapScene = _arg1;
ground_Array = new Array();
var _local2:int;
while (_local2 < map_Array.length) {
ground_Array[_local2] = new Array();
_local3 = 0;
while (_local3 < map_Array[_local2].length) {
_local4 = new Ground();
_arg1.addChild(_local4);
_local4.height = 40;
_local4.width = 40;
_local4.x = (_local4.width * (_local2 - (Ground_Windth / 2)));
_local4.y = (_local4.height * (_local3 - (Ground_Height / 2)));
_local4.gotoAndStop(map_Array[_local2][_local3]);
_local4.addEventListener(MouseEvent.CLICK, ground_click_handel);
_local4.alpha = 0.5;
ground_Array[_local2][_local3] = _local4;
_local3++;
};
_local2++;
};
this.addEventListener(Event.ENTER_FRAME, enter_handel);
}
private function click_handel():void{
var _local3:int;
var _local1 = "[";
var _local2:int;
while (_local2 < ground_Array.length) {
_local1 = (_local1 + "[");
_local3 = 0;
while (_local3 < ground_Array[_local2].length) {
_local1 = (_local1 + (MovieClip(ground_Array[_local2][_local3]).currentFrame + ","));
_local3++;
};
_local1 = (_local1 + "],\n");
_local2++;
};
_local1 = (_local1 + "]");
}
private function ground_click_handel(_arg1:MouseEvent):void{
var _local2:MovieClip = MovieClip(_arg1.currentTarget);
var _local3:int = _local2.currentFrame;
_local3++;
if (_local3 > _local2.totalFrames){
_local3 = 1;
};
_local2.gotoAndStop(_local3);
}
private function enter_handel(_arg1:Event):void{
if (KeyboardClass.getInstance().up){
KeyboardClass.getInstance().up = false;
mapScene.y = (mapScene.y - 10);
};
if (KeyboardClass.getInstance().down){
KeyboardClass.getInstance().down = false;
mapScene.y = (mapScene.y + 10);
};
if (KeyboardClass.getInstance().left){
KeyboardClass.getInstance().left = false;
mapScene.x = (mapScene.x - 10);
};
if (KeyboardClass.getInstance().right){
KeyboardClass.getInstance().right = false;
mapScene.x = (mapScene.x + 10);
};
if (KeyboardClass.getInstance().space){
click_handel();
KeyboardClass.getInstance().space = false;
};
}
public static function getXY(_arg1:Point, _arg2:Array):Boolean{
var _local6:groundModel;
var _local3:Boolean;
var _local4:int = _arg1.x;
var _local5:int = _arg1.y;
if ((((((((_local4 < 0)) || ((_local5 < 0)))) || ((_local4 > (Ground_Windth - 1))))) || ((_local5 > (Ground_Height - 1))))){
_local3 = false;
} else {
_local6 = _arg2[_local4][_local5];
if (_local6._type == 1){
_local3 = false;
};
};
return (_local3);
}
public static function getMapPoint(_arg1:int, _arg2:int):Point{
var _local3:Point = new Point();
_local3.x = int(((_arg1 / 40) + (65 / 2)));
_local3.y = int(((_arg2 / 40) + (25 / 2)));
return (_local3);
}
}
}//package until
Section 154
//MoveAction (until.MoveAction)
package until {
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
public class MoveAction {
private static var move_Speed:int = 10;
private static var shellAction:Array = new Array();
public static function shortAction(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:Array){
var _local8:Tween;
var _local9:Tween;
var _local5:int = (_arg1.x + (30 * Math.cos((((_arg2.rotation + 90) * Math.PI) / 180))));
var _local6:int = (_arg1.y + (30 * Math.sin((((_arg2.rotation + 90) * Math.PI) / 180))));
if (MapBJ.getXY(MapBJ.getMapPoint(_local5, _local6), _arg4)){
_local8 = new Tween(_arg1, "x", Strong.easeOut, _arg1.x, _local5, 0.5, true);
_local9 = new Tween(_arg1, "y", Strong.easeOut, _arg1.y, _local6, 0.5, true);
};
var _local7:MovieClip = new Blood();
_local7.x = (_local5 + (Math.random() * 10));
_local7.y = (_local6 + (Math.random() * 10));
_arg3.addChild(_local7);
if (_arg3.numChildren > 30){
_arg3.removeChildAt(0);
};
}
public static function mainSceneMove(_arg1:MovieClip):void{
}
public static function ShellAction(_arg1:MovieClip, _arg2:int, _arg3):void{
var _local4:int = (_arg2 + (Math.random() * 50));
var _local5:int = (_arg3 + (Math.random() * 50));
var _local6:Tween = new Tween(_arg1, "x", Strong.easeOut, _arg2, _local4, 1, true);
var _local7:Tween = new Tween(_arg1, "y", Strong.easeOut, _arg3, _local5, 1, true);
}
public static function move_scene_handel(_arg1:Event):void{
var _local2:MovieClip = MovieClip(_arg1.currentTarget);
_local2.x = (_local2.x + (move_Speed * -1));
_local2.y = (_local2.y + (move_Speed * -1));
move_Speed = (move_Speed - 2);
if (move_Speed <= 0){
_local2.x = 0;
_local2.y = 0;
_local2.removeEventListener(Event.ENTER_FRAME, move_scene_handel);
};
}
}
}//package until
Section 155
//MoveScene (until.MoveScene)
package until {
import flash.display.*;
import flash.events.*;
public class MoveScene {
private var start_x:Number;
public var move_mc:MovieClip;
public var isAlpha:Boolean;
public var end_y:Number;
private var move_step:int;// = 5
public var end_x:Number;
private var start_y:Number;
public static var scene_Array:Array = new Array();
private function action_remove():void{
move_mc.removeEventListener(Event.ENTER_FRAME, enter_frame_handel);
}
public function setScene(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:Boolean=false):void{
this.move_mc = _arg1;
this.start_x = move_mc.x;
this.start_y = move_mc.y;
this.end_x = _arg2;
this.end_y = _arg3;
move_mc.addEventListener(Event.ENTER_FRAME, enter_frame_handel);
}
private function enter_frame_handel(_arg1:Event):void{
move_mc.x = (move_mc.x - ((move_mc.x - end_x) / move_step));
move_mc.y = (move_mc.y - ((move_mc.y - end_y) / move_step));
if ((((Math.abs(((move_mc.x - end_x) / move_step)) < 0.1)) && ((Math.abs(((0.1) && (((move_mc.y - end_y) / move_step)))) < 0.1)))){
action_remove();
};
}
}
}//package until
Section 156
//MVClass (until.MVClass)
package until {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import fl.transitions.*;
import fl.transitions.easing.*;
public class MVClass extends MovieClip {
private var mv_2:MovieClip;
private var mv_4:MovieClip;
private var mv_over:Boolean;
private var time:Timer;
private var mv_num:int;
private var time_num;// = 10
private var mv_Sound:Mv_Sound;
private var mv_1:MovieClip;
private var mv_3:MovieClip;
private var mv_5:MovieClip;
public function MVClass(){
time = new Timer(1000);
mv_over = false;
time.start();
time.addEventListener(TimerEvent.TIMER, time_handel);
mv_1 = new MV_1();
mv_1.skip_btn.addEventListener(MouseEvent.CLICK, skip_btn_handel);
mv_2 = new MV_2();
mv_2.skip_btn.addEventListener(MouseEvent.CLICK, skip_btn_handel);
mv_3 = new MV_3();
mv_3.skip_btn.addEventListener(MouseEvent.CLICK, skip_btn_handel);
mv_4 = new MV_4();
mv_4.skip_btn.addEventListener(MouseEvent.CLICK, skip_btn_handel);
mv_5 = new MV_5();
mv_5.skip_btn.addEventListener(MouseEvent.CLICK, skip_btn_handel);
mv_Sound = new Mv_Sound();
mv_Sound.gotoAndStop("sound1_start");
mv_1.alpha = 0;
mv_num = 1;
this.addChild(mv_1);
this.addEventListener(Event.ENTER_FRAME, enter_handel);
}
private function enter_handel(_arg1:Event):void{
mv_1.alpha = (mv_1.alpha + 0.01);
if (mv_1.alpha == 1){
this.removeEventListener(Event.ENTER_FRAME, enter_handel);
};
}
private function time_handel(_arg1:TimerEvent):void{
time_num--;
if (time_num == 0){
if (mv_num < 5){
next_mv();
} else {
this.dispatchEvent(new Event(EventConsts.MV_PLAY_OVER));
time.stop();
mv_over = true;
};
time_num = 10;
};
if (mv_over){
};
}
private function skip_btn_handel(_arg1:MouseEvent):void{
var _local2:String;
if (!mv_over){
_local2 = (("sound" + mv_num) + "_end");
mv_Sound.gotoAndStop(_local2);
this.dispatchEvent(new Event(EventConsts.MV_PLAY_OVER));
time.stop();
};
}
private function next_mv():void{
mv_num++;
this.addChild(this[("mv_" + mv_num)]);
if (mv_num == 2){
mv_Sound.gotoAndStop("sound2_start");
TransitionManager.start(mv_2, {type:Fade, direction:Transition.IN, duration:9, easing:Strong.easeOut});
} else {
if (mv_num == 3){
mv_Sound.gotoAndStop("sound3_start");
TransitionManager.start(mv_3, {type:Fly, direction:Transition.IN, duration:1, easing:Bounce.easeOut, startPoint:2});
} else {
if (mv_num == 4){
mv_Sound.gotoAndStop("sound4_start");
TransitionManager.start(mv_4, {type:PixelDissolve, direction:Transition.IN, duration:2, easing:Regular.easeIn, xSections:10, ySections:10});
} else {
if (mv_num == 5){
mv_Sound.gotoAndStop("sound5_start");
TransitionManager.start(mv_5, {type:Squeeze, direction:Transition.IN, duration:2, easing:Elastic.easeOut, dimension:1});
TransitionManager.start(mv_5, {type:Photo, direction:Transition.IN, duration:2, easing:None.easeNone});
};
};
};
};
}
}
}//package until
Section 157
//SaveClass (until.SaveClass)
package until {
import flash.net.*;
public class SaveClass {
private var gameInfo:SharedObject;
private static var _instance:SaveClass;
public function SaveClass(){
gameInfo = SharedObject.getLocal("Zombie_save");
}
public function getGmameInfo():Boolean{
var _local1:Boolean;
if (gameInfo.data.game_name != null){
SysConsts.levelData_Array = gameInfo.data.gameInfo_Array;
_local1 = true;
};
return (_local1);
}
public function saveGameInfo():void{
gameInfo.data.game_name = "Zombie_save";
gameInfo.data.gameInfo_Array = SysConsts.levelData_Array;
var flushStatus:String;
try {
flushStatus = gameInfo.flush();
} catch(error:Error) {
};
if (flushStatus != null){
switch (flushStatus){
case SharedObjectFlushStatus.PENDING:
break;
case SharedObjectFlushStatus.FLUSHED:
break;
};
};
}
public static function getInstance():SaveClass{
if (_instance == null){
_instance = new (SaveClass);
};
return (_instance);
}
}
}//package until
Section 158
//SearchRoad (until.SearchRoad)
package until {
import model.*;
public class SearchRoad {
private var findA:Array;
private var endY:uint;
private var isPathFind:Boolean;
private var closeA:Array;
private var dirA:Array;
private var walkA:Array;
private var endX:uint;
private var openA:Array;
private static var instance:SearchRoad;
public function SearchRoad(){
dirA = [[1, 0, 10], [0, 1, 10], [-1, 0, 10], [0, -1, 10], [1, 1, 14], [-1, 1, 14], [-1, -1, 14], [1, -1, 14]];
super();
}
private function setFindA(_arg1:Array, _arg2, _arg3, _arg4:Array):void{
var _local5:*;
var _local6:int;
var _local7:*;
findA = null;
findA = new Array();
for (_local5 in _arg1) {
findA[_local5] = new Array();
for (_local7 in _arg1[_local5]) {
if (groundModel(_arg1[_local5][_local7])._type == 0){
findA[_local5][_local7] = 0;
} else {
findA[_local5][_local7] = 1;
};
};
};
findA[_arg2][_arg3] = 0;
_local6 = 0;
while (_local6 < _arg4.length) {
findA[_arg4[_local6].x][_arg4[_local6].y] = 1;
_local6++;
};
}
public function startSearch(_arg1:Array, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:Array):Array{
var _local7:Array;
var _local8:groundModel;
endX = _arg2;
endY = _arg3;
isPathFind = true;
this.setFindA(_arg1, _arg4, _arg5, _arg6);
openA = new Array();
closeA = new Array();
searchPath(_arg4, _arg5, _arg4, _arg5, 0);
if (isPathFind){
return (getPath());
};
return (_local7);
}
private function searchPath(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint){
var _local11:*;
var _local12:*;
var _local13:uint;
var _local14:*;
var _local15:Array;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
findA[_arg2][_arg1] = 1;
closeA.push([_arg1, _arg2, _arg3, _arg4]);
var _local10:uint;
while (_local10 < 8) {
_local11 = (_arg1 + dirA[_local10][0]);
_local12 = (_arg2 + dirA[_local10][1]);
if ((((((((_local11 < 0)) || ((_local11 >= MapBJ.Ground_Windth)))) || ((_local12 < 0)))) || ((_local12 >= MapBJ.Ground_Height)))){
} else {
if ((((_local11 == endX)) && ((_local12 == endY)))){
closeA.push([_local11, _local12, _arg1, _arg2]);
isPathFind = true;
return;
};
if (findA[_local11][_local12] == 0){
_local6 = (10 * (Math.abs((endX - _local11)) + Math.abs((endY - _local12))));
_local7 = (_arg5 + dirA[_local10][2]);
findA[_local11][_local12] = _local7;
openA.push([_local11, _local12, _arg1, _arg2, (_local7 + _local6), _local7]);
} else {
if (findA[_local11][_local12] > 1){
_local7 = (_arg5 + dirA[_local10][2]);
if (_local7 < findA[_local11][_local12]){
_local6 = (10 * (Math.abs((endX - _local11)) + Math.abs((endY - _local12))));
_local13 = 1;
while (_local13 < openA.length) {
if ((((openA[_local13][0] == _local11)) && ((openA[_local13][1] == _local12)))){
openA[_local13] = [_local11, _local12, _arg1, _arg2, (_local7 + _local6), _local7];
findA[_local11][_local12] = _local7;
break;
};
_local13++;
};
};
};
};
};
_local10++;
};
if (openA.length < 1){
isPathFind = false;
return;
};
_local9 = openA.length;
_local14 = 0;
while (_local14 < _local9) {
if (openA[_local8][4] > openA[_local14][4]){
_local8 = _local14;
};
_local14++;
};
_local15 = openA.splice(_local8, 1);
searchPath(_local15[0][0], _local15[0][1], _local15[0][2], _local15[0][3], _local15[0][5]);
}
private function getPath():Array{
var _local1:uint = (closeA.length - 1);
var _local2:uint;
walkA = new Array();
walkA[0] = new Array(2);
walkA[0][0] = closeA[_local1][0];
walkA[0][1] = closeA[_local1][1];
var _local3:uint = closeA[_local1][2];
var _local4:uint = closeA[_local1][3];
var _local5:* = (_local1 - 1);
while (_local5 >= 0) {
if ((((_local3 == closeA[_local5][0])) && ((_local4 == closeA[_local5][1])))){
_local2++;
walkA[_local2] = new Array(2);
walkA[_local2][0] = closeA[_local5][0];
walkA[_local2][1] = closeA[_local5][1];
_local3 = closeA[_local5][2];
_local4 = closeA[_local5][3];
};
_local5--;
};
walkA.reverse();
return (walkA);
}
public static function getInstance():SearchRoad{
if (instance == null){
instance = new (SearchRoad);
};
return (instance);
}
}
}//package until
Section 159
//GameInfoWindow (view.GameInfoWindow)
package view {
import until.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import event.*;
import flash.media.*;
public class GameInfoWindow extends GameInfo {
public var isPuase:Boolean;
private var zombie_time:int;
public var gun8:Boolean;
private var time:Timer;
public var time_num:int;
private var score_num:int;
private var kill_num:int;
public var zombie_num:int;
public var gun1:Boolean;
public var gun2:Boolean;
public var gun3:Boolean;
public var gun4:Boolean;
public var gun5:Boolean;
public var gun6:Boolean;
public var gun7:Boolean;
private var props_time:int;
private var ts:String;// = ""
public function GameInfoWindow(){
SysConsts.zombie_Allnum = 10;
gun1 = false;
gun2 = false;
gun3 = false;
gun4 = false;
gun5 = false;
gun6 = false;
gun7 = false;
gun8 = false;
isPuase = false;
kill_num = 0;
score_num = 0;
zombie_num = 0;
zombie_time = 1;
props_time = SysConsts.props_time;
time = new Timer(1000);
time.addEventListener(TimerEvent.TIMER, time_handel);
zidong.addEventListener(MouseEvent.CLICK, zidong_handel);
time_num = 0;
TimeStart();
this.sound_btn.gotoAndStop(1);
this.pause_btn.gotoAndStop(1);
setShowBtn(false);
this.pause_btn.addEventListener(MouseEvent.CLICK, pause_btn_handel);
this.sound_btn.addEventListener(MouseEvent.CLICK, sound_btn_handel);
this.playAgain_btn.addEventListener(MouseEvent.CLICK, playAgain_btn_handel);
this.more_btn.addEventListener(MouseEvent.CLICK, more_btn_handel);
this.back_btn.addEventListener(MouseEvent.CLICK, back_btn_handel);
this.addgame_btn.addEventListener(MouseEvent.CLICK, addgame_btn_handel);
}
private function PROGRESS_handel(_arg1:ProgressEvent):void{
}
public function rifltGun(_arg1:int):void{
var _local2:Object = SysConsts.Arms_Array[_arg1];
_arg1 = _local2.id;
if ((((_arg1 == 1)) && (gun1))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "RIFLE: Hand gun (Key:1)";
} else {
if ((((_arg1 == 2)) && (gun2))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "RIFLE: Shot gun (Key:2)";
} else {
if ((((_arg1 == 3)) && (gun3))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "RIFLE: Gatling (Key:3)";
} else {
if ((((_arg1 == 4)) && (gun4))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "RIFLE: Sniper Rifle (Key:4)";
} else {
if ((((_arg1 == 5)) && (gun5))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "RIFLE: Duel Wield (Key:5)";
} else {
if ((((_arg1 == 6)) && (gun6))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "RIFLE: Bazooka (Key:6)";
} else {
if ((((_arg1 == 7)) && (gun7))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "RIFLE: Drums (Key:7)";
} else {
if ((((_arg1 == 8)) && (gun8))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "RIFLE: Grenade (Key:8)";
};
};
};
};
};
};
};
};
}
private function pause_btn_handel(_arg1:Event):void{
setPause();
}
private function more_btn_handel(_arg1:Event):void{
MovieClip(root).FogAPI.Tracking.Click();
}
private function addgame_btn_handel(_arg1:Event):void{
MovieClip(root).FogAPI.Tracking.Click("http://freegamesforyourwebsite.com/");
}
private function back_btn_handel(_arg1:Event):void{
this.dispatchEvent(new Event(EventConsts.EVENT_CLOASE_GAME));
CommonEventDispatcher.getInstance().dispatchEvent(new Event(EventConsts.EVENT_TOMAINMUNE));
}
public function setData(_arg1:int, _arg2:int, _arg3:int):void{
if ((((_arg3 == 1)) && (!(gun1)))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "New weapon: Hand gun (Key:1)";
gun1 = true;
} else {
if ((((_arg3 == 2)) && (!(gun2)))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "New weapon: Shot gun (Key:2)";
gun2 = true;
} else {
if ((((_arg3 == 3)) && (!(gun3)))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "New weapon: Gatling (Key:3)";
gun3 = true;
} else {
if ((((_arg3 == 4)) && (!(gun4)))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "New weapon: Sniper Rifle (Key:4)";
gun4 = true;
} else {
if ((((_arg3 == 5)) && (!(gun5)))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "New weapon: Duel Wield (Key:5)";
gun5 = true;
} else {
if ((((_arg3 == 6)) && (!(gun6)))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "New weapon: Bazooka (Key:6)";
gun6 = true;
} else {
if ((((_arg3 == 7)) && (!(gun7)))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "New weapon: Drums (Key:7)";
gun7 = true;
} else {
if ((((_arg3 == 8)) && (!(gun8)))){
this.gun_text.gotoAndPlay(1);
this.gun_text.boxbox.gun_text.text = "New weapon: Grenade (Key:8)";
gun8 = true;
};
};
};
};
};
};
};
};
this.gun_box.gotoAndStop(_arg1);
if (_arg2 >= 0){
this.gun_box.gun_num.text = _arg2.toString();
} else {
this.gun_box.gun_num.text = "";
};
}
private function time_handel(_arg1:TimerEvent):void{
if (this.time_num > 300){
SysConsts.zombie_Allnum = 35;
} else {
if (this.time_num > 200){
SysConsts.zombie_Allnum = 30;
} else {
if (this.time_num > 100){
SysConsts.zombie_Allnum = 25;
} else {
if (this.time_num > 60){
SysConsts.zombie_Allnum = 20;
};
};
};
};
if (zombie_num < SysConsts.zombie_Allnum){
zombie_time--;
if (zombie_time == 0){
GameSoundClass.getInstance().setSound("jingbao");
MovieClip(this).dispatchEvent(new Event(EventConsts.EVENT_SHOW_ZOMBIE));
zombie_time = SysConsts.zombie_time;
};
};
props_time--;
if (props_time == 0){
MovieClip(this).dispatchEvent(new Event(EventConsts.EVENT_SHOW_PROPS));
props_time = SysConsts.props_time;
};
time_num++;
var _local2:int = (time_num % 60);
var _local3:int = (time_num / 60);
if (_local3.toString().length > 1){
ts = _local3.toString();
} else {
ts = ("0" + _local3.toString());
};
ts = (ts + ":");
if (_local2.toString().length > 1){
ts = (ts + _local2.toString());
} else {
ts = (ts + ("0" + _local2.toString()));
};
time_box.text = ts;
UserInfo.getInstance().time_num = time_num;
UserInfo.getInstance().time_text = ts;
}
private function sound_btn_handel(_arg1:Event):void{
if (sound_btn.currentFrame == 1){
sound_btn.gotoAndStop(2);
SoundMixer.soundTransform = new SoundTransform(0);
} else {
SoundMixer.soundTransform = new SoundTransform(1);
sound_btn.gotoAndStop(1);
};
}
public function setPause():void{
if (MovieClip(this.pause_btn).currentFrame == 1){
MovieClip(this.pause_btn).gotoAndStop(2);
setShowBtn(true);
isPuase = true;
time.stop();
} else {
MovieClip(this.pause_btn).gotoAndStop(1);
setShowBtn(false);
isPuase = false;
time.start();
};
}
public function setScore():void{
zombie_num--;
kill_num++;
score_num = (score_num + 10);
UserInfo.getInstance().score_num = score_num;
UserInfo.getInstance().kill_num = kill_num;
this.kill_box.text = kill_num.toString();
this.socre_box.text = score_num.toString();
MovieClip(root).FogAPI.Scores.Update(score_num);
UserInfo.getInstance().kill_num = kill_num;
UserInfo.getInstance().score_num = score_num;
}
public function TimeStart():void{
time.start();
}
private function setShowBtn(_arg1:Boolean):void{
this.yingbox.visible = _arg1;
this.playAgain_btn.visible = _arg1;
this.more_btn.visible = _arg1;
this.back_btn.visible = _arg1;
this.addgame_btn.visible = _arg1;
}
public function TimeStop():void{
time.stop();
time.removeEventListener(TimerEvent.TIMER, time_handel);
time = null;
}
private function zidong_handel(_arg1:MouseEvent):void{
if (KeyboardClass.getInstance().isHort){
KeyboardClass.getInstance().isHort = false;
} else {
KeyboardClass.getInstance().isHort = true;
};
}
private function playAgain_btn_handel(_arg1:Event):void{
this.dispatchEvent(new Event(EventConsts.EVENT_CLOASE_GAME));
CommonEventDispatcher.getInstance().dispatchEvent(new Event(EventConsts.EVENT_PLAY_AGAIN));
}
}
}//package view
Section 160
//GameOverScene (view.GameOverScene)
package view {
import until.*;
import flash.display.*;
import flash.events.*;
import event.*;
public class GameOverScene extends GameOverWindow {
public var rootRef;
public function GameOverScene(){
this.playAgain_btn.addEventListener(MouseEvent.CLICK, playAgain_btn_handel);
this.more_btn.addEventListener(MouseEvent.CLICK, more_btn_handel);
this.back_btn.addEventListener(MouseEvent.CLICK, back_btn_handel);
this.scored_btn.addEventListener(MouseEvent.CLICK, scored_btnCLICKED);
this.time_text.text = UserInfo.getInstance().time_text;
this.kill_text.text = UserInfo.getInstance().kill_num.toString();
this.score_text.text = UserInfo.getInstance().score_num.toString();
var _local1:Object = SysConsts.levelData_Array[(UserInfo.getInstance().level_num - 1)];
_local1.score = UserInfo.getInstance().score_num;
_local1.kill = UserInfo.getInstance().kill_num;
_local1.time = UserInfo.getInstance().time_text;
SaveClass.getInstance().saveGameInfo();
}
private function back_btn_handel(_arg1:MouseEvent):void{
CommonEventDispatcher.getInstance().dispatchEvent(new Event(EventConsts.EVENT_TOMAINMUNE));
}
private function add_btn_handel(_arg1:MouseEvent):void{
MovieClip(root).FogAPI.Tracking.Click("http://www.freegamesforyourwebsite.com/");
}
private function scored_btnCLICKED(_arg1:MouseEvent):void{
MovieClip(root).FogAPI.Scores.Publish();
}
private function more_btn_handel(_arg1:MouseEvent):void{
MovieClip(root).FogAPI.Tracking.Click();
}
private function playAgain_btn_handel(_arg1:MouseEvent):void{
MovieClip(this).dispatchEvent(new Event(EventConsts.EVENT_PLAY_AGAIN));
}
}
}//package view
Section 161
//GameScene (view.GameScene)
package view {
import until.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
import event.*;
import fl.transitions.*;
import model.*;
import fl.transitions.easing.*;
public class GameScene extends MovieClip {
public var ground_Array:Array;
private var ground:MovieClip;
private var bulletground:MovieClip;
private var perosnArray:Array;
private var pM_x:int;// = 0
private var pM_y:int;// = 0
private var gunType:int;// = 0
private var bome_Array:Array;
private var parent_x:int;
private var parent_y:int;
private var ZombieArray:Array;
private var bull_mc:MovieClip;
private var short_num:int;
private var people_mc:MovieClip;
private var person:PersonClass;
private var gameBg:MovieClip;
private var score_num:int;
private var InfoWindow:GameInfoWindow;
private var change_num:int;// = 100
public function GameScene(){
var _local2:int;
var _local3:int;
var _local4:MovieClip;
bome_Array = new Array();
super();
KeyboardClass.getInstance().returnInit();
initBg();
initInfo();
initPerson();
var _local1:int;
while (_local1 < 10) {
_local2 = Math.round((Math.random() * (ground_Array.length - 1)));
_local3 = Math.round((Math.random() * (ground_Array[_local2].length - 1)));
if (MapBJ.map_Array[_local2][_local3] == 1){
_local4 = new YouTong();
_local4.id = 1000;
_local4.x = (40 * (_local2 - (MapBJ.Ground_Windth / 2)));
_local4.y = (40 * (_local3 - (MapBJ.Ground_Height / 2)));
people_mc.addChild(_local4);
perosnArray.push(_local4);
} else {
_local1--;
};
_local1++;
};
TransitionManager.start(gameBg, {type:Blinds, direction:Transition.IN, duration:1, easing:None.easeNone, numStrips:20, dimension:0});
this.addEventListener(Event.ENTER_FRAME, enter_frame_handel);
}
private function initPerson():void{
person = new PersonClass(bull_mc);
person.addEventListener(EventConsts.EVENT_SHORT_BOMB, short_bome_handel);
person.addEventListener(EventConsts.EVENT_GAME_OVER, game_over_handel);
people_mc.addChild(person);
perosnArray.push(person);
}
private function addGround():void{
var _local2:int;
var _local3:groundModel;
var _local4:int;
ground_Array = new Array();
var _local1:int;
while (_local1 < MapBJ.map_Array.length) {
ground_Array[_local1] = new Array();
_local2 = 0;
while (_local2 < MapBJ.map_Array[_local1].length) {
_local3 = new groundModel();
_local3.m_x = (40 * (_local1 - (MapBJ.Ground_Windth / 2)));
_local3.m_y = (40 * (_local2 - (MapBJ.Ground_Height / 2)));
_local4 = MapBJ.map_Array[_local1][_local2];
_local3._type = (_local4 - 1);
ground_Array[_local1][_local2] = _local3;
_local2++;
};
_local1++;
};
}
private function closeAll():void{
this.person.closeAll();
InfoWindow.TimeStop();
ZombieArray.splice(0, (ZombieArray.length - 1));
perosnArray.splice(0, (perosnArray.length - 1));
this.removeEventListener(Event.ENTER_FRAME, enter_frame_handel);
var _local1:int;
while (_local1 < ground.numChildren) {
ground.removeChildAt(_local1);
_local1++;
};
var _local2:int;
while (_local2 < bulletground.numChildren) {
bulletground.removeChildAt(_local2);
_local2++;
};
var _local3:int;
while (_local3 < people_mc.numChildren) {
people_mc.removeChildAt(_local3);
_local3++;
};
var _local4:int;
while (_local4 < bull_mc.numChildren) {
bull_mc.removeChildAt(_local4);
_local4++;
};
}
private function cloase_game_handel(_arg1:Event):void{
closeAll();
}
private function outZombie(_arg1:String, _arg2:int):void{
InfoWindow.zombie_num++;
var _local3:MovieClip = gameBg[_arg1];
var _local4:ZombieClass = new ZombieClass(_arg2);
new ZombieClass(_arg2).scaleX = (_local4.scaleY = SysConsts.PERSON_SCALE);
_local4.x = _local3.x;
_local4.y = _local3.y;
var _local5:Point = MapBJ.getMapPoint(_local4.x, _local4.y);
_local4.walk_x = _local5.x;
_local4.walk_y = _local5.y;
seachRoad(_local4);
people_mc.addChild(_local4);
ZombieArray.push(_local4);
perosnArray.push(_local4);
}
private function changeMap():void{
var _local1:int;
while (_local1 < ZombieArray.length) {
seachRoad(ZombieArray[_local1]);
_local1++;
};
}
private function UpZombile(_arg1:ZombieClass):Boolean{
var _local4:ZombieClass;
var _local2:int = ZombieArray.indexOf(_arg1);
var _local3:int = _local2;
while (_local3 < ZombieArray.length) {
_local4 = ZombieArray[_local3];
if (_local4 != _arg1){
if ((((_arg1.walk_x == _local4.walk_x)) && ((_arg1.walk_y == _local4.walk_y)))){
return (false);
};
};
_local3++;
};
return (true);
}
private function showInfoText():void{
InfoWindow.setData(person.arm_id, person.GunArray[person.gun_type], person.cut_id);
}
private function show_zombie(_arg1:Event):void{
var _local2:int;
_local2 = int((Math.random() * UserInfo.getInstance().level_num));
outZombie("door1", _local2);
_local2 = int((Math.random() * UserInfo.getInstance().level_num));
outZombie("door2", _local2);
_local2 = int((Math.random() * UserInfo.getInstance().level_num));
paAction(_local2);
_local2 = int((Math.random() * UserInfo.getInstance().level_num));
outZombie("door4", _local2);
_local2 = int((Math.random() * UserInfo.getInstance().level_num));
outZombie("door5", _local2);
_local2 = int((Math.random() * UserInfo.getInstance().level_num));
outZombie("door6", _local2);
}
private function paAction(_arg1:int):void{
if (MovieClip(gameBg.pa_box).currentFrame == 1){
MovieClip(gameBg.pa_box).addEventListener(Event.ENTER_FRAME, pa_box_handel);
gameBg.pa_box.gotoAndStop(int((_arg1 + 2)));
};
}
private function bome_handel(_arg1:Event):void{
var _local2:MovieClip = MovieClip(_arg1.currentTarget);
if (_local2.currentFrame == _local2.totalFrames){
_local2.id = 101;
GameSoundClass.getInstance().setSound("bome_bo");
_local2.removeEventListener(Event.ENTER_FRAME, bome_handel);
MoveAction.mainSceneMove(gameBg);
};
}
private function moveScene():void{
if ((((person.x > SysConsts.scene_min_x)) && ((person.x < SysConsts.scene_max_x)))){
gameBg.x = ((SysConsts.stage_weight / 2) - (person.x * SysConsts.SWH));
};
if ((((person.y > SysConsts.scene_min_y)) && ((person.y < SysConsts.scene_max_y)))){
gameBg.y = ((SysConsts.stage_height / 2) - (person.y * SysConsts.SWH));
};
}
private function show_props(_arg1:Event):void{
var _local2:MovieClip;
var _local3:int = Math.round((Math.random() * (ground_Array.length - 1)));
var _local4:int = Math.round((Math.random() * (ground_Array[_local3].length - 1)));
if (Math.random() > 0.4){
if (MapBJ.map_Array[_local3][_local4] == 1){
_local2 = new PropClass();
_local2.x = (40 * (_local3 - (MapBJ.Ground_Windth / 2)));
_local2.y = (40 * (_local4 - (MapBJ.Ground_Height / 2)));
people_mc.addChild(_local2);
perosnArray.push(_local2);
};
} else {
if (MapBJ.map_Array[_local3][_local4] == 1){
_local2 = new YouTong();
_local2.id = 1000;
_local2.x = (40 * (_local3 - (MapBJ.Ground_Windth / 2)));
_local2.y = (40 * (_local4 - (MapBJ.Ground_Height / 2)));
people_mc.addChild(_local2);
perosnArray.push(_local2);
};
};
}
private function setPersonIndex():void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:MovieClip;
var _local6:MovieClip;
perosnArray.sortOn("y", (Array.DESCENDING | Array.NUMERIC));
var _local1:int;
while (_local1 < perosnArray.length) {
if (MovieClip(perosnArray[_local1]).id == -10){
if (HitTest.complexHitTestObject(person.person_box, MovieClip(perosnArray[_local1]))){
GameSoundClass.getInstance().setSound("chage_sound");
_local2 = PropClass(perosnArray[_local1]).getType();
PersonClass(person).SetPerson(_local2, false, false);
if ((((_local2 <= 7)) && ((_local2 >= 0)))){
this.InfoWindow.rifltGun(_local2);
};
KeyboardClass.getInstance().p_num = PersonClass(person).gun_type;
MovieClip(perosnArray[_local1]).id = -11;
};
};
if ((((MovieClip(perosnArray[_local1]).id == 99)) || ((MovieClip(perosnArray[_local1]).id == 1000)))){
_local3 = 0;
while (_local3 < bome_Array.length) {
if ((((bome_Array[_local3].id == 101)) && ((MovieClip(perosnArray[_local1]).id == 1000)))){
if (HitTest.complexHitTestObject(MovieClip(perosnArray[_local1]), bome_Array[_local3])){
_local5 = new ExplosionClass();
_local5.id = 100;
_local5.addEventListener(Event.ENTER_FRAME, bome_handel);
_local5.x = MovieClip(perosnArray[_local1]).x;
_local5.y = MovieClip(perosnArray[_local1]).y;
this.bull_mc.addChild(_local5);
bome_Array.push(_local5);
MovieClip(perosnArray[_local1]).id = -11;
};
};
_local3++;
};
_local4 = 0;
while (_local4 < person.bullet_Array.length) {
if (MovieClip(perosnArray[_local1]).id == 1000){
if (HitTest.complexHitTestObject(MovieClip(perosnArray[_local1]), person.bullet_Array[_local4])){
_local6 = new ExplosionClass();
_local6.id = 100;
_local6.addEventListener(Event.ENTER_FRAME, bome_handel);
_local6.x = MovieClip(perosnArray[_local1]).x;
_local6.y = MovieClip(perosnArray[_local1]).y;
this.bull_mc.addChild(_local6);
bome_Array.push(_local6);
MovieClip(perosnArray[_local1]).id = -11;
};
};
if (person.bullet_Array[_local4].id == 100){
if (HitTest.complexHitTestObject(MovieClip(perosnArray[_local1]), person.bullet_Array[_local4])){
this.bull_mc.removeChild(person.bullet_Array[_local4]);
person.bullet_Array.splice(_local4, 1);
};
};
_local4++;
};
};
if (MovieClip(perosnArray[_local1]).id == -11){
people_mc.removeChild(MovieClip(perosnArray[_local1]));
perosnArray.splice(_local1, 1);
break;
} else {
if (MovieClip(perosnArray[_local1]).alpha <= 0){
people_mc.removeChild(MovieClip(perosnArray[_local1]));
perosnArray.splice(_local1, 1);
InfoWindow.setScore();
break;
} else {
people_mc.setChildIndex(perosnArray[_local1], ((perosnArray.length - _local1) - 1));
};
};
_local1++;
};
}
private function seachRoad(_arg1:ZombieClass):void{
var _local2:int;
var _local4:ZombieClass;
var _local5:Point;
_arg1.stop_Array = new Array();
while (_local2 < ZombieArray.length) {
_local4 = ZombieArray[_local2];
if (_local4 != _arg1){
_local5 = MapBJ.getMapPoint(_local4.x, _local4.y);
_arg1.stop_Array.push(_local5);
};
_local2++;
};
var _local3:Point = MapBJ.getMapPoint(person.x, person.y);
_arg1.walk_Array = SearchRoad.getInstance().startSearch(ground_Array, _local3.x, _local3.y, _arg1.walk_x, _arg1.walk_y, _arg1.stop_Array);
if (_arg1.walk_Array != null){
_arg1.walk_Array.shift();
};
}
private function game_over_handel(_arg1:Event):void{
closeAll();
CommonEventDispatcher.getInstance().dispatchEvent(new Event(EventConsts.EVENT_GAME_OVER));
}
private function pa_box_handel(_arg1:Event):void{
var _local2:int;
if (gameBg.pa_box.box != null){
if (MovieClip(gameBg.pa_box.box).currentFrame == MovieClip(gameBg.pa_box.box).totalFrames){
_local2 = (MovieClip(gameBg.pa_box).currentFrame - 2);
outZombie("door3", _local2);
MovieClip(gameBg.pa_box).removeEventListener(Event.ENTER_FRAME, pa_box_handel);
};
};
}
private function initInfo():void{
ZombieArray = new Array();
perosnArray = new Array();
UserInfo.getInstance().score_num = 0;
UserInfo.getInstance().kill_num = 0;
short_num = 0;
score_num = 0;
ground = new MovieClip();
gameBg.addChild(ground);
bulletground = new MovieClip();
gameBg.addChild(bulletground);
people_mc = new MovieClip();
gameBg.addChild(people_mc);
bull_mc = new MovieClip();
gameBg.addChild(bull_mc);
gameBg.scaleX = (gameBg.scaleY = SysConsts.SWH);
var _local1:int;
while (_local1 <= 7) {
gameBg[("zhangai" + _local1)].id = 99;
perosnArray.push(gameBg[("zhangai" + _local1)]);
people_mc.addChild(gameBg[("zhangai" + _local1)]);
_local1++;
};
addGround();
InfoWindow = new GameInfoWindow();
InfoWindow.addEventListener(EventConsts.EVENT_SHOW_ZOMBIE, show_zombie);
InfoWindow.addEventListener(EventConsts.EVENT_SHOW_PROPS, show_props);
InfoWindow.addEventListener(EventConsts.EVENT_CLOASE_GAME, cloase_game_handel);
this.addChild(InfoWindow);
}
private function personMove():void{
var _local5:Boolean;
var _local6:String;
parent_x = person.x;
parent_y = person.y;
var _local1 = "";
if (KeyboardClass.getInstance().up){
person.y = (person.y - person.move_Step);
} else {
if (KeyboardClass.getInstance().down){
person.y = (person.y + person.move_Step);
};
};
if (KeyboardClass.getInstance().left){
person.x = (person.x - person.move_Step);
} else {
if (KeyboardClass.getInstance().right){
person.x = (person.x + person.move_Step);
};
};
if (person.gun_type != KeyboardClass.getInstance().p_num){
_local5 = false;
if ((((KeyboardClass.getInstance().p_num >= 0)) && ((KeyboardClass.getInstance().p_num <= 5)))){
_local5 = true;
} else {
if ((((KeyboardClass.getInstance().p_num == 6)) || ((KeyboardClass.getInstance().p_num == 7)))){
if (person.GunArray[KeyboardClass.getInstance().p_num] > 0){
_local5 = true;
};
};
};
if (_local5){
_local6 = ("gun" + (KeyboardClass.getInstance().p_num + 1).toString());
if (this.InfoWindow[_local6] == true){
person.gun_type = KeyboardClass.getInstance().p_num;
person.SetPerson(KeyboardClass.getInstance().p_num, true);
};
};
};
var _local2:Point = MapBJ.getMapPoint(person.x, person.y);
var _local3:Boolean;
var _local4:int;
while (_local4 < perosnArray.length) {
if (perosnArray[_local4].id == 1000){
if (HitTest.complexHitTestObject(perosnArray[_local4].p_box, person.person_box.p_box)){
_local3 = true;
break;
};
};
_local4++;
};
if (((MapBJ.getXY(_local2, this.ground_Array)) && ((_local3 == false)))){
person.personAction();
moveScene();
} else {
person.x = parent_x;
person.y = parent_y;
};
}
private function short_bome_handel(_arg1:CommonEvent):void{
var _local2:String = String(_arg1._object._type).split("-")[0];
var _local3:int = String(_arg1._object._type).split("-")[1];
if (_arg1._object._id == 7){
_local2 = (_local2 + "A");
};
var _local4:* = getDefinitionByName(_local2);
var _local5:MovieClip = new (_local4);
if (_local3 == 1){
_local5.scaleX = -1;
};
if (_local3 == 3){
_local5.scaleY = -1;
};
_local5.id = 100;
_local5.addEventListener(Event.ENTER_FRAME, bome_handel);
_local5.x = (person.x + _arg1._object._x);
_local5.y = (person.y + _arg1._object._y);
this.bull_mc.addChild(_local5);
bome_Array.push(_local5);
}
private function enter_frame_handel(_arg1:Event):void{
if (!InfoWindow.isPuase){
if (KeyboardClass.getInstance().isPause){
InfoWindow.setPause();
KeyboardClass.getInstance().isPause = false;
};
showInfoText();
if (!person.is_siwang){
personMove();
shortbullet();
zombieAction();
setPersonIndex();
} else {
person.setHP();
};
change_num--;
if (change_num == 0){
changeMap();
change_num = 10;
};
} else {
if (KeyboardClass.getInstance().space){
InfoWindow.setPause();
KeyboardClass.getInstance().isPause = false;
};
};
}
private function initBg():void{
gameBg = new GameSceneGround();
gameBg.x = (SysConsts.stage_weight / 2);
gameBg.y = (SysConsts.stage_height / 2);
this.addChild(gameBg);
}
private function zombieAction():void{
var _local2:String;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:MovieClip;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local1:int;
while (_local1 < ZombieArray.length) {
if (ZombieClass(ZombieArray[_local1]).IsDeath == false){
_local2 = "";
if ((((Math.abs((person.x - ZombieClass(ZombieArray[_local1]).x)) <= 30)) && ((Math.abs((person.y - ZombieClass(ZombieArray[_local1]).y)) <= 30)))){
if (ZombieClass(ZombieArray[_local1])._type == "attack"){
person.setHP(-(ZombieClass(ZombieArray[_local1]).ack));
GameSoundClass.getInstance().setSound("kouxue");
};
if (HitTest.complexHitTestObject(person.person_box, ZombieClass(ZombieArray[_local1]))){
ZombieClass(ZombieArray[_local1])._type = "attack";
_local2 = "attack";
};
};
_local3 = 0;
while (_local3 < bome_Array.length) {
if (bome_Array[_local3].id == 101){
if (HitTest.complexHitTestObject(ZombieArray[_local1], bome_Array[_local3])){
ZombieClass(ZombieArray[_local1])._type = "shot";
_local2 = "shot";
ZombieClass(ZombieArray[_local1]).short(person.short_ack);
MoveAction.shortAction(ZombieArray[_local1], bome_Array[_local3], ground, ground_Array);
};
};
_local3++;
};
_local4 = 0;
while (_local4 < person.bullet_Array.length) {
_local5 = person.bullet_Array[_local4].x;
_local6 = person.bullet_Array[_local4].y;
if (ZombieClass(ZombieArray[_local1]).hitTestObject(person.bullet_Array[_local4])){
if (person.bullet_Array[_local4].id == 101){
_local7 = new ExplosionClass();
_local7.id = 100;
_local7.addEventListener(Event.ENTER_FRAME, bome_handel);
_local7.x = person.bullet_Array[_local4].x;
_local7.y = person.bullet_Array[_local4].y;
this.bull_mc.addChild(_local7);
bome_Array.push(_local7);
this.bull_mc.removeChild(person.bullet_Array[_local4]);
person.bullet_Array.splice(_local4, 1);
} else {
if ((((Math.abs((ZombieArray[_local1].x - _local5)) < 60)) && ((Math.abs((ZombieArray[_local1].y - _local6)) < 60)))){
ZombieClass(ZombieArray[_local1])._type = "shot";
_local2 = "shot";
ZombieClass(ZombieArray[_local1]).short(person.short_ack);
MoveAction.shortAction(ZombieArray[_local1], person.bullet_Array[_local4], ground, ground_Array);
if (((!((person.arm_id == 3))) && (!((person.arm_id == 4))))){
this.bull_mc.removeChild(person.bullet_Array[_local4]);
person.bullet_Array.splice(_local4, 1);
};
};
};
};
_local4++;
};
if ((((_local2 == "")) && ((ZombieClass(ZombieArray[_local1]).getType() == "move")))){
if (Math.random() > 0.99){
GameSoundClass.getInstance().setSound("JS");
};
_local2 = "";
if (ZombieClass(ZombieArray[_local1]).walk_Array != null){
_local8 = ZombieClass(ZombieArray[_local1]).walk_Array[0][0];
_local9 = ZombieClass(ZombieArray[_local1]).walk_Array[0][1];
_local10 = ZombieClass(ZombieArray[_local1]).walk_x;
_local11 = ZombieClass(ZombieArray[_local1]).walk_y;
if (((!(UpZombile(ZombieArray[_local1]))) || ((ZombieClass(ZombieArray[_local1]).walk_Array.length == 0)))){
this.seachRoad(ZombieClass(ZombieArray[_local1]));
} else {
_local12 = groundModel(ground_Array[_local8][_local9]).m_x;
_local13 = groundModel(ground_Array[_local8][_local9]).m_y;
_local14 = ZombieClass(ZombieArray[_local1]).x;
_local15 = ZombieClass(ZombieArray[_local1]).y;
ZombieClass(ZombieArray[_local1]).moveStep = (1 + (InfoWindow.time_num * 0.005));
if (ZombieClass(ZombieArray[_local1]).moveStep >= 4){
ZombieClass(ZombieArray[_local1]).moveStep = 4;
};
if (_local14 < _local12){
_local2 = (_local2 + "right");
ZombieClass(ZombieArray[_local1]).x = (ZombieClass(ZombieArray[_local1]).x + ZombieClass(ZombieArray[_local1]).moveStep);
} else {
if (_local14 > _local12){
_local2 = (_local2 + "left");
ZombieClass(ZombieArray[_local1]).x = (ZombieClass(ZombieArray[_local1]).x - ZombieClass(ZombieArray[_local1]).moveStep);
};
};
if (_local13 < _local15){
_local2 = (_local2 + "up");
ZombieClass(ZombieArray[_local1]).y = (ZombieClass(ZombieArray[_local1]).y - ZombieClass(ZombieArray[_local1]).moveStep);
} else {
if (_local13 > _local15){
_local2 = (_local2 + "down");
ZombieClass(ZombieArray[_local1]).y = (ZombieClass(ZombieArray[_local1]).y + ZombieClass(ZombieArray[_local1]).moveStep);
};
};
if ((((Math.abs((ZombieClass(ZombieArray[_local1]).x - groundModel(ground_Array[_local8][_local9]).m_x)) <= 2)) && ((Math.abs((ZombieClass(ZombieArray[_local1]).y - groundModel(ground_Array[_local8][_local9]).m_y)) <= 2)))){
ZombieClass(ZombieArray[_local1]).walk_x = _local8;
ZombieClass(ZombieArray[_local1]).walk_y = _local9;
ZombieClass(ZombieArray[_local1]).walk_Array.shift();
};
if (ZombieClass(ZombieArray[_local1]).walk_Array.length == 0){
ZombieClass(ZombieArray[_local1]).walk_Array = null;
};
};
};
};
ZombieClass(ZombieArray[_local1]).GoAction(_local2);
} else {
if (ZombieClass(ZombieArray[_local1]).alpha <= 0){
ZombieArray.splice(_local1, 1);
};
};
_local1++;
};
}
private function shortbullet():void{
var _local1:MovieClip;
var _local2:MovieClip;
if (((((KeyboardClass.getInstance().isHort) || (KeyboardClass.getInstance().space))) && ((person.st == 0)))){
if (((((((!((person.arm_id == 6))) && (!((person.arm_id == 7))))) && (!((person.arm_id == 8))))) && ((person.GunArray[person.gun_type] > 0)))){
_local1 = new Shell();
_local1.gotoAndStop(1);
MoveAction.ShellAction(_local1, person.x, person.y);
bulletground.addChild(_local1);
if (person.arm_id == 5){
_local2 = new Shell();
_local2.gotoAndStop(1);
MoveAction.ShellAction(_local2, person.x, person.y);
bulletground.addChild(_local2);
};
if (bulletground.numChildren > 30){
bulletground.getChildAt(0);
};
};
person.shortbullet(person.x, person.y);
};
}
}
}//package view
Section 162
//MainWinodw (view.MainWinodw)
package view {
import until.*;
import flash.display.*;
import flash.events.*;
public class MainWinodw extends MainMuneWinodw {
private var move_y:int;// = -244
private var movescen_choose:MoveScene;
private var mune_move_y:int;// = 506
private var choose_move_y:int;// = 244
private var end_x:int;// = 2
private var movescen_mune:MoveScene;
public function MainWinodw(){
mune_mc.play_btn.addEventListener(MouseEvent.CLICK, play_btn_handel);
mune_mc.moregame_btn.addEventListener(MouseEvent.CLICK, moregame_btn_handel);
mune_mc.add_btn.addEventListener(MouseEvent.CLICK, add_btn_handel);
mune_mc.low_btn.addEventListener(MouseEvent.CLICK, chage_qualty_handel);
mune_mc.middle_btn.addEventListener(MouseEvent.CLICK, chage_qualty_handel);
mune_mc.high_btn.addEventListener(MouseEvent.CLICK, chage_qualty_handel);
choose_mc.back_btn.addEventListener(MouseEvent.CLICK, back_btn_handel);
choose_mc.choose_1.addEventListener(MouseEvent.CLICK, choose_scene_handel);
choose_mc.choose_2.addEventListener(MouseEvent.CLICK, choose_scene_handel);
choose_mc.choose_3.addEventListener(MouseEvent.CLICK, choose_scene_handel);
choose_mc.choose_4.addEventListener(MouseEvent.CLICK, choose_scene_handel);
movescen_mune = new MoveScene();
movescen_choose = new MoveScene();
}
private function moregame_btn_handel(_arg1:MouseEvent):void{
MovieClip(root).FogAPI.Tracking.Click();
}
public function setData():void{
var _local2:int;
var _local3:Object;
var _local1:int;
while (_local1 < SysConsts.levelData_Array.length) {
_local2 = (_local1 + 1);
_local3 = SysConsts.levelData_Array[_local1];
choose_mc[(("time" + _local2) + "_text")].text = _local3.time;
choose_mc[(("kill" + _local2) + "_text")].text = _local3.kill;
choose_mc[(("score" + _local2) + "_tex")].text = _local3.score;
_local1++;
};
}
private function back_btn_handel(_arg1:MouseEvent):void{
movescen_mune.setScene(mune_mc, mune_mc.x, 244);
movescen_choose.setScene(choose_mc, choose_mc.x, 506);
}
private function selectlevel_btn_handel(_arg1:MouseEvent):void{
}
private function play_btn_handel(_arg1:MouseEvent):void{
MovieClip(this).dispatchEvent(new Event(EventConsts.EVENT_CHOOSESCENE_OVER));
}
private function add_btn_handel(_arg1:MouseEvent):void{
MovieClip(root).FogAPI.Tracking.Click("http://www.freegamesforyourwebsite.com/");
}
private function chage_qualty_handel(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "low_btn"){
MovieClip(this.parent).stage.quality = StageQuality.LOW;
} else {
if (_arg1.currentTarget.name == "middle_btn"){
MovieClip(this.parent).stage.quality = StageQuality.MEDIUM;
} else {
if (_arg1.currentTarget.name == "high_btn"){
MovieClip(this.parent).stage.quality = StageQuality.HIGH;
};
};
};
}
private function choose_scene_handel(_arg1:MouseEvent):void{
UserInfo.getInstance().level_num = String(_arg1.currentTarget.name).split("_")[1];
MovieClip(this).dispatchEvent(new Event(EventConsts.EVENT_CHOOSESCENE_OVER));
}
}
}//package view
Section 163
//PersonClass (view.PersonClass)
package view {
import until.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import event.*;
public class PersonClass extends MovieClip {
private var person_Action:Array;
private var short_sr:int;
private var getGun:Boolean;
public var is_siwang:Boolean;// = false
private var pcAction:String;
public var GunArray:Array;
public var move_Step:Number;// = 2
public var id:int;// = -1
public var b_num:int;
public var SW_num:int;// = 200
private var HP_mc:MovieClip;
private var short_step:int;// = 30
private var short_time:int;
public var cut_id:int;
public var allB:int;
private var short_num:int;
public var short_ack:int;
private var bull_mc:MovieClip;
private var _mx:Number;
public var bullet_Array:Array;
private var HP_num:Number;
private var gun_sound:String;
public var gun_type:int;// = 0
public var person_box:MovieClip;
public var arm_id:int;
public var st:int;
private var _my:Number;
public function PersonClass(_arg1:MovieClip){
person_Action = ["down", "up", "left", "right", "leftup", "leftdown", "rightdown", "rightup"];
GunArray = [500, 0, 0, 0, 0, 0, 0, 0];
super();
bull_mc = _arg1;
this.scaleX = (this.scaleY = SysConsts.PERSON_SCALE);
HP_num = 100;
HP_mc = new HP_Class();
HP_mc.width = 45;
HP_mc.x = -30;
HP_mc.y = -110;
HP_mc.gotoAndStop(HP_num);
this.addChild(HP_mc);
bullet_Array = new Array();
pcAction = "down1";
SetPerson();
cut_id = 1;
this.addEventListener(Event.ENTER_FRAME, entert_frame_handel);
}
private function init_person_handel():void{
if (getGun){
MovieClip(person_box.person_box).gotoAndStop(1);
MovieClip(person_box.person_box.person_boy).visible = false;
MovieClip(person_box.person_box.gun_box).addFrameScript((MovieClip(person_box.person_box.gun_box).totalFrames - 1), get_gun_box);
};
}
public function closeAll():void{
var _local1:int;
while (_local1 < bullet_Array.length) {
bull_mc.removeChild(MovieClip(bullet_Array[_local1]));
bullet_Array.splice(_local1, 1);
_local1++;
};
this.removeEventListener(Event.ENTER_FRAME, entert_frame_handel);
}
public function SetPerson(_arg1:int=0, _arg2:Boolean=false, _arg3:Boolean=true):void{
var _local4:Object;
var _local5:String;
var _local6:*;
if ((((_arg1 <= 7)) && ((_arg1 >= 0)))){
_local4 = SysConsts.Arms_Array[_arg1];
if (_arg3){
gun_type = _arg1;
if (person_box != null){
pcAction = person_box.currentLabel;
this.removeChild(person_box);
};
getGun = true;
arm_id = _local4.id;
if (_arg2){
b_num = GunArray[gun_type];
} else {
b_num = _local4.bn;
GunArray[gun_type] = b_num;
};
allB = _local4.bn;
short_num = _local4.sb;
short_time = _local4.st;
short_sr = _local4.sr;
short_ack = _local4.ack;
move_Step = _local4.move;
gun_sound = _local4.sound;
_local5 = _local4.className;
_local6 = getDefinitionByName(_local5);
st = short_time;
person_box = new (_local6);
person_box.gotoAndStop(pcAction);
person_box.addFrameScript((person_box.currentFrame - 1), init_person_handel);
this.addChild(person_box);
} else {
cut_id = _local4.id;
GunArray[_arg1] = _local4.bn;
};
} else {
if (_arg1 == 8){
setHP(30);
} else {
if (_arg1 == 9){
GunArray[gun_type] = (GunArray[gun_type] + 10);
if (GunArray[gun_type] > allB){
GunArray[gun_type] = allB;
};
};
};
};
}
private function entert_frame_handel(_arg1:Event):void{
shortT();
var _local2:int;
while (_local2 < bullet_Array.length) {
if ((((bullet_Array[_local2].id == 101)) || ((bullet_Array[_local2].id == 100)))){
short_step = (10 + (Math.random() * 20));
MovieClip(bullet_Array[_local2]).x = (MovieClip(bullet_Array[_local2]).x + (short_step * Math.cos((((MovieClip(bullet_Array[_local2]).rotation + 90) * Math.PI) / 180))));
MovieClip(bullet_Array[_local2]).y = (MovieClip(bullet_Array[_local2]).y + (short_step * Math.sin((((MovieClip(bullet_Array[_local2]).rotation + 90) * Math.PI) / 180))));
if ((((((((MovieClip(bullet_Array[_local2]).x > 1500)) || ((MovieClip(bullet_Array[_local2]).x < -1500)))) || ((MovieClip(bullet_Array[_local2]).y > 600)))) || ((MovieClip(bullet_Array[_local2]).y < -600)))){
bull_mc.removeChild(MovieClip(bullet_Array[_local2]));
bullet_Array.splice(_local2, 1);
};
};
_local2++;
};
}
public function getFx(_arg1:int=0):Object{
var _local2:Object = new Object();
var _local3:Number = 0;
var _local4 = "";
switch (person_box.currentLabel){
case "down1":
_local3 = (0 + _arg1);
_local4 = "Bomb_down-0";
break;
case "down":
_local4 = "Bomb_down-0";
_local3 = (0 + _arg1);
break;
case "leftdown":
_local4 = "Bomb_leftdown-0";
_local3 = (45 + _arg1);
break;
case "left":
_local4 = "Bomb_lett-0";
_local3 = (90 + _arg1);
break;
case "leftup":
_local4 = "Bomb_leftup-0";
_local3 = (125 + _arg1);
break;
case "up":
_local4 = "Bomb_up-0";
_local3 = (180 + _arg1);
break;
case "rightup":
_local4 = "Bomb_leftup-1";
_local3 = (225 + _arg1);
break;
case "right":
_local4 = "Bomb_lett-1";
_local3 = (270 + _arg1);
break;
case "rightdown":
_local4 = "Bomb_leftdown-1";
_local3 = (315 + _arg1);
break;
};
_local2.rod = _local3;
_local2.f_type = _local4;
return (_local2);
}
private function remove_gun_handel():void{
if (!this.getGun){
MovieClip(person_box.person_box.gun_box).visible = false;
};
}
private function shortT():void{
if (st > 0){
st--;
};
}
private function get_gun_box():void{
if (getGun){
MovieClip(person_box.person_box.gun_box).visible = false;
MovieClip(person_box.person_box.person_boy).visible = true;
getGun = false;
};
}
public function setHP(_arg1:Number=-0.1):void{
var _local2:String;
HP_num = (HP_num + _arg1);
if (HP_num > 100){
HP_num = 100;
};
if (HP_num > 10){
GameSoundClass.getInstance().setSound("xintiao_e");
} else {
if (HP_num > 0){
GameSoundClass.getInstance().setSound("xintiao_s");
} else {
GameSoundClass.getInstance().setSound("kouxue_end");
GameSoundClass.getInstance().setSound("xintiao_e");
if (!is_siwang){
_local2 = person_box.currentLabel;
if (person_box != null){
this.removeChild(person_box);
};
person_box = new Person_deal();
if ((((((_local2 == "down")) || ((_local2 == "left")))) || ((_local2 == "leftdown")))){
person_box.gotoAndStop(2);
} else {
person_box.gotoAndStop(1);
};
this.addChild(person_box);
is_siwang = true;
this.removeChild(HP_mc);
} else {
SW_num--;
if (SW_num <= 0){
this.dispatchEvent(new Event(EventConsts.EVENT_GAME_OVER));
};
};
};
};
if (!is_siwang){
HP_mc.gotoAndStop(Math.round(HP_num));
};
}
public function personAction():void{
var _local1:String;
if (this.getGun){
} else {
_local1 = "";
if (KeyboardClass.getInstance().left){
_local1 = "left";
} else {
if (KeyboardClass.getInstance().right){
_local1 = "right";
};
};
if (KeyboardClass.getInstance().up){
if (_local1 != ""){
_local1 = (_local1 + "up");
} else {
_local1 = "up";
};
} else {
if (KeyboardClass.getInstance().down){
if (_local1 != ""){
_local1 = (_local1 + "down");
} else {
_local1 = "down";
};
};
};
if (_local1 == ""){
if (person_box.person_box != null){
MovieClip(person_box.person_box).stop();
};
} else {
if (person_box.currentLabel != _local1){
person_box.gotoAndStop(_local1);
person_box.addFrameScript((person_box.currentFrame - 1), remove_gun_handel);
};
if (person_box.person_box != null){
MovieClip(person_box.person_box).play();
};
};
};
}
private function addbullet(_arg1:int, _arg2:Boolean=false){
var _local3:int;
var _local4:MovieClip;
if (GunArray[gun_type] > 0){
var _local5 = GunArray;
var _local6 = gun_type;
var _local7 = (_local5[_local6] - 1);
_local5[_local6] = _local7;
_local3 = (_arg1 * 10);
if (arm_id == 6){
_local4 = new Daodan();
_local4.id = 101;
} else {
_local4 = new Bullet();
_local4.id = 100;
};
_local4.rotation = getFx(_local3).rod;
if (_arg2){
if (person_box.box1 != null){
_local4.y = (_my + person_box.box1.y);
_local4.x = (_mx + person_box.box1.x);
};
} else {
if (person_box.box != null){
_local4.y = (_my + person_box.box.y);
_local4.x = (_mx + person_box.box.x);
};
};
bull_mc.addChild(_local4);
bullet_Array.push(_local4);
};
}
private function short_bamb():void{
this.dispatchEvent(new Event(EventConsts.EVENT_SHORT_BOMB));
}
public function shortbullet(_arg1:Number, _arg2:Number):void{
var _local3:String;
_mx = _arg1;
_my = _arg2;
if (person_box.box != null){
if ((((arm_id == 8)) || ((arm_id == 7)))){
if (GunArray[gun_type] > 0){
if (person_box.person_box != null){
MovieClip(person_box.person_box).person_boy.gotoAndPlay(2);
};
_local3 = "";
_local3 = this.getFx().f_type;
this.dispatchEvent(new CommonEvent(EventConsts.EVENT_SHORT_BOMB, {_x:person_box.box.x, _y:person_box.box.y, _type:_local3, _id:arm_id}));
var _local4 = GunArray;
var _local5 = gun_type;
var _local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
this.SetPerson(0, true);
};
} else {
if (GunArray[gun_type] > 0){
if (person_box.person_box != null){
MovieClip(person_box.person_box).person_boy.gotoAndPlay(2);
};
GameSoundClass.getInstance().setSound(gun_sound);
if (arm_id == 2){
addbullet(2);
addbullet(1);
addbullet(-1);
addbullet(-2);
};
if (arm_id == 5){
addbullet(0, true);
};
addbullet(0);
};
};
st = short_time;
};
}
}
}//package view
Section 164
//PropClass (view.PropClass)
package view {
public class PropClass extends Props {
public var id:int;// = -10
private var rodNum:int;
public function PropClass(){
rodNum = Math.round((Math.random() * 10));
if (rodNum == 6){
rodNum = 5;
};
this.gun_box.gotoAndStop((rodNum + 1));
}
public function getType():int{
return (rodNum);
}
}
}//package view
Section 165
//ZombieClass (view.ZombieClass)
package view {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class ZombieClass extends MovieClip {
public var walk_x:int;
public var actionArray:Array;
public var moveArray:Array;
public var ack:Number;
public var IsDeath:Boolean;
private var remove_num:int;
public var zombie_mc:MovieClip;
public var walk_num:int;
public var y_isWalk:Boolean;
public var id:int;
private var st:int;// = 10
public var walk_Array:Array;
public var _type:String;
public var hp:Number;
public var walk_y:int;
public var x_isWalk:Boolean;
public var stop_Array:Array;
public var moveStep;
public function ZombieClass(_arg1:int=0, _arg2:int=1){
actionArray = ["move", "attack", "shot", "death"];
moveArray = ["down", "up", "left", "right", "leftup", "leftdown", "rightdown", "rightup"];
stop_Array = new Array();
super();
this.scaleX = (this.scaleY = SysConsts.SWH);
remove_num = 40;
x_isWalk = true;
y_isWalk = true;
walk_num = 30;
IsDeath = false;
var _local3:Object = SysConsts.zombies_Array[_arg1];
id = _local3.id;
ack = _local3.ack;
hp = _local3.hp;
moveStep = _local3.move;
var _local4:String = _local3.classnma;
var _local5:* = getDefinitionByName(_local4);
zombie_mc = new (_local5);
zombie_mc.gotoAndStop(_arg2);
if (zombie_mc.zombie_box != null){
zombie_mc.zombie_box.gotoAndStop("move");
};
this.addChild(zombie_mc);
_type = "move";
}
public function setWalk_y():void{
y_isWalk = false;
this.addEventListener(Event.ENTER_FRAME, walk_handel);
}
private function walk_handel(_arg1:Event):void{
this.walk_num--;
if (this.walk_num == 0){
x_isWalk = true;
y_isWalk = true;
this.walk_num = 30;
this.removeEventListener(Event.ENTER_FRAME, walk_handel);
};
}
public function setWalk_x():void{
x_isWalk = false;
this.addEventListener(Event.ENTER_FRAME, walk_handel);
}
public function short(_arg1:int):void{
hp = (hp - _arg1);
if (hp <= 0){
_type = "death";
if (zombie_mc.zombie_box != null){
this.addEventListener(Event.ENTER_FRAME, remove_handel);
zombie_mc.zombie_box.gotoAndStop("death");
IsDeath = true;
};
};
}
public function GoAction(_arg1:String):void{
if (_arg1 != ""){
if (_type == "shot"){
if (zombie_mc.zombie_box != null){
if (zombie_mc.zombie_box.currentLabel != "shot"){
zombie_mc.zombie_box.gotoAndStop("shot");
};
};
} else {
if (_type == "move"){
st--;
if (st == 0){
if (zombie_mc.currentLabel != _arg1){
zombie_mc.gotoAndStop(_arg1);
};
st = 10;
};
} else {
if (_type == "attack"){
if (zombie_mc.zombie_box != null){
if (zombie_mc.zombie_box.currentLabel != "attack"){
zombie_mc.zombie_box.gotoAndStop("attack");
};
};
};
};
};
};
}
public function remove_handel(_arg1:Event):void{
remove_num--;
if (remove_num < 0){
this.alpha = (this.alpha - 0.05);
};
if (this.alpha <= 0){
this.removeEventListener(Event.ENTER_FRAME, remove_handel);
};
}
public function getType():String{
if (zombie_mc.zombie_box != null){
_type = zombie_mc.zombie_box.currentLabel;
};
return (_type);
}
}
}//package view
Section 166
//BackgroundGraphic (BackgroundGraphic)
package {
import flash.display.*;
public dynamic class BackgroundGraphic extends MovieClip {
}
}//package
Section 167
//Blood (Blood)
package {
import flash.display.*;
public dynamic class Blood extends MovieClip {
public function Blood(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package
Section 168
//Bomb (Bomb)
package {
import flash.display.*;
public dynamic class Bomb extends MovieClip {
}
}//package
Section 169
//Bomb_down (Bomb_down)
package {
import flash.display.*;
public dynamic class Bomb_down extends MovieClip {
public function Bomb_down(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 170
//Bomb_downA (Bomb_downA)
package {
import flash.display.*;
public dynamic class Bomb_downA extends MovieClip {
public function Bomb_downA(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 171
//Bomb_leftdown (Bomb_leftdown)
package {
import flash.display.*;
public dynamic class Bomb_leftdown extends MovieClip {
public function Bomb_leftdown(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 172
//Bomb_leftdownA (Bomb_leftdownA)
package {
import flash.display.*;
public dynamic class Bomb_leftdownA extends MovieClip {
public function Bomb_leftdownA(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 173
//Bomb_leftup (Bomb_leftup)
package {
import flash.display.*;
public dynamic class Bomb_leftup extends MovieClip {
public function Bomb_leftup(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 174
//Bomb_leftupA (Bomb_leftupA)
package {
import flash.display.*;
public dynamic class Bomb_leftupA extends MovieClip {
public function Bomb_leftupA(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 175
//Bomb_lett (Bomb_lett)
package {
import flash.display.*;
public dynamic class Bomb_lett extends MovieClip {
public function Bomb_lett(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 176
//Bomb_lettA (Bomb_lettA)
package {
import flash.display.*;
public dynamic class Bomb_lettA extends MovieClip {
public function Bomb_lettA(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 177
//Bomb_up (Bomb_up)
package {
import flash.display.*;
public dynamic class Bomb_up extends MovieClip {
public function Bomb_up(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 178
//Bomb_upA (Bomb_upA)
package {
import flash.display.*;
public dynamic class Bomb_upA extends MovieClip {
public function Bomb_upA(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 179
//Bullet (Bullet)
package {
import flash.display.*;
public dynamic class Bullet extends MovieClip {
public var line:MovieClip;
}
}//package
Section 180
//Daodan (Daodan)
package {
import flash.display.*;
public dynamic class Daodan extends MovieClip {
}
}//package
Section 181
//EventConsts (EventConsts)
package {
public class EventConsts {
public static var EVENT_CHOOSESCENE_OVER:String = "EVENT_CHOOSESCENE_OVER";
public static var MV_PLAY_OVER:String = "MV_PLAY_OVER";
public static var EVENT_SHOW_ZOMBIE:String = "EVENT_SHOW_ZOMBIE";
public static var EVENT_CLOASE_GAME:String = "EVENT_CLOASE_GAME";
public static var EVENT_SHORT_BOMB:String = "EVENT_SHORT_BOMB";
public static var EVENT_SHOW_PROPS:String = "EVENT_SHOW_PROPS";
public static var EVENT_PLAY_AGAIN:String = "EVENT_PLAY_AGAIN";
public static var EVENT_GAME_OVER:String = "EVENT_GAME_OVER";
public static var EVENT_TOMAINMUNE:String = "EVENT_TOMAINMUNE";
}
}//package
Section 182
//ExplosionClass (ExplosionClass)
package {
import flash.display.*;
public dynamic class ExplosionClass extends MovieClip {
}
}//package
Section 183
//fogaudio (fogaudio)
package {
import flash.media.*;
public dynamic class fogaudio extends Sound {
}
}//package
Section 184
//gamaMain (gamaMain)
package {
import until.*;
import flash.display.*;
import flash.events.*;
import event.*;
import view.*;
import flash.media.*;
public class gamaMain extends MovieClip {
private var gameSceneWindow:GameScene;
private var overScneWindow:GameOverScene;
private var mianMuneWindow:MainWinodw;
private var gameMV:MVClass;
private var gameSound:MovieClip;
public function gamaMain(_arg1:Stage){
KeyboardClass.getInstance().setStage(_arg1);
_arg1.quality = StageQuality.MEDIUM;
initGameInfo();
mianMuneWindow = new MainWinodw();
mianMuneWindow.setData();
CommonEventDispatcher.getInstance().addEventListener(EventConsts.EVENT_GAME_OVER, game_over_handel);
CommonEventDispatcher.getInstance().addEventListener(EventConsts.EVENT_TOMAINMUNE, main_mune_handel);
CommonEventDispatcher.getInstance().addEventListener(EventConsts.EVENT_PLAY_AGAIN, mv_over_handel);
MovieClip(mianMuneWindow).addEventListener(EventConsts.EVENT_CHOOSESCENE_OVER, choose_sene_over);
addMuneWindow();
}
private function choose_sene_over(_arg1:Event):void{
removeAll();
GameSoundClass.getInstance().setSound(GameSoundClass.MS_END);
removeAll();
addGameMV();
}
private function game_over_handel(_arg1:Event):void{
removeAll();
overScneWindow = new GameOverScene();
overScneWindow.addEventListener(EventConsts.EVENT_PLAY_AGAIN, mv_over_handel);
if (MovieClip(root).FogAPI.Connect.Linked){
overScneWindow.scored_btn.visible = false;
};
this.addChild(overScneWindow);
}
private function removeAll():void{
var _local1 = 1;
while (_local1 < this.numChildren) {
this.removeChildAt(_local1);
_local1++;
};
}
private function main_mune_handel(_arg1:Event):void{
addMuneWindow();
}
private function mv_over_handel(_arg1:Event):void{
removeAll();
addGameScene();
}
private function initGameInfo():void{
var _local1:MovieClip = new MaskBox();
this.addChild(_local1);
this.mask = _local1;
SaveClass.getInstance().getGmameInfo();
}
private function addGameScene():void{
removeAll();
SoundMixer.soundTransform = new SoundTransform(1);
GameSoundClass.getInstance().setSound(GameSoundClass.GAME_ST);
gameSceneWindow = new GameScene();
stage.focus = gameSceneWindow;
this.addChild(gameSceneWindow);
}
private function addGameMV():void{
SoundMixer.soundTransform = new SoundTransform(1);
gameMV = new MVClass();
gameMV.addEventListener(EventConsts.MV_PLAY_OVER, mv_over_handel);
this.addChild(gameMV);
}
private function addMuneWindow():void{
SoundMixer.soundTransform = new SoundTransform(1);
removeAll();
GameSoundClass.getInstance().setSound(GameSoundClass.MS_ST);
this.addChild(mianMuneWindow);
}
}
}//package
Section 185
//GameInfo (GameInfo)
package {
import flash.display.*;
import flash.text.*;
import _fla.*;
public dynamic class GameInfo extends MovieClip {
public var socre_box:TextField;
public var back_btn:SimpleButton;
public var gun_text:Timeline_132;
public var gun_box:MovieClip;
public var time_box:TextField;
public var pause_btn:MovieClip;
public var yingbox:MovieClip;
public var playAgain_btn:SimpleButton;
public var kill_box:TextField;
public var sound_btn:MovieClip;
public var addgame_btn:SimpleButton;
public var zidong:SimpleButton;
public var more_btn:SimpleButton;
}
}//package
Section 186
//GameIngSound (GameIngSound)
package {
import flash.display.*;
public dynamic class GameIngSound extends MovieClip {
}
}//package
Section 187
//GameOverWindow (GameOverWindow)
package {
import flash.display.*;
import flash.text.*;
public dynamic class GameOverWindow extends MovieClip {
public var playAgain_btn:SimpleButton;
public var back_btn:SimpleButton;
public var kill_text:TextField;
public var scored_btn:SimpleButton;
public var more_btn:SimpleButton;
public var score_text:TextField;
public var time_text:TextField;
}
}//package
Section 188
//GameSceneGround (GameSceneGround)
package {
import flash.display.*;
public dynamic class GameSceneGround extends MovieClip {
public var door1:MovieClip;
public var door3:MovieClip;
public var door5:MovieClip;
public var door6:MovieClip;
public var door2:MovieClip;
public var door4:MovieClip;
public var zhangai0:MovieClip;
public var zhangai1:MovieClip;
public var zhangai2:MovieClip;
public var zhangai3:MovieClip;
public var zhangai4:MovieClip;
public var zhangai5:MovieClip;
public var zhangai6:MovieClip;
public var zhangai7:MovieClip;
public var pa_box:MovieClip;
}
}//package
Section 189
//Ground (Ground)
package {
import flash.display.*;
public dynamic class Ground extends MovieClip {
}
}//package
Section 190
//HP_Class (HP_Class)
package {
import flash.display.*;
public dynamic class HP_Class extends MovieClip {
}
}//package
Section 191
//JS_class (JS_class)
package {
import flash.media.*;
public dynamic class JS_class extends Sound {
}
}//package
Section 192
//JS_Mc (JS_Mc)
package {
import flash.media.*;
public dynamic class JS_Mc extends Sound {
}
}//package
Section 193
//LockedNotice (LockedNotice)
package {
import flash.display.*;
public dynamic class LockedNotice extends MovieClip {
}
}//package
Section 194
//LogoFly (LogoFly)
package {
import flash.display.*;
public dynamic class LogoFly extends MovieClip {
public function LogoFly(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 195
//LogoSpin (LogoSpin)
package {
import flash.display.*;
public dynamic class LogoSpin extends MovieClip {
}
}//package
Section 196
//MainMuneWinodw (MainMuneWinodw)
package {
import flash.display.*;
public dynamic class MainMuneWinodw extends MovieClip {
public var choose_mc:MovieClip;
public var mune_mc:MovieClip;
}
}//package
Section 197
//MaskBox (MaskBox)
package {
import flash.display.*;
public dynamic class MaskBox extends MovieClip {
}
}//package
Section 198
//MV_1 (MV_1)
package {
import flash.display.*;
public dynamic class MV_1 extends MovieClip {
public var skip_btn:SimpleButton;
}
}//package
Section 199
//MV_2 (MV_2)
package {
import flash.display.*;
public dynamic class MV_2 extends MovieClip {
public var skip_btn:SimpleButton;
}
}//package
Section 200
//MV_3 (MV_3)
package {
import flash.display.*;
public dynamic class MV_3 extends MovieClip {
public var skip_btn:SimpleButton;
}
}//package
Section 201
//MV_4 (MV_4)
package {
import flash.display.*;
public dynamic class MV_4 extends MovieClip {
public var skip_btn:SimpleButton;
}
}//package
Section 202
//MV_5 (MV_5)
package {
import flash.display.*;
public dynamic class MV_5 extends MovieClip {
public var skip_btn:SimpleButton;
}
}//package
Section 203
//Mv_Sound (Mv_Sound)
package {
import flash.display.*;
public dynamic class Mv_Sound extends MovieClip {
public function Mv_Sound(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 204
//Person_1 (Person_1)
package {
import flash.display.*;
public dynamic class Person_1 extends MovieClip {
public var person_box:MovieClip;
public var box:MovieClip;
public var p_box:MovieClip;
}
}//package
Section 205
//Person_2 (Person_2)
package {
import flash.display.*;
public dynamic class Person_2 extends MovieClip {
public var person_box:MovieClip;
public var box:MovieClip;
public var p_box:MovieClip;
}
}//package
Section 206
//Person_3 (Person_3)
package {
import flash.display.*;
public dynamic class Person_3 extends MovieClip {
public var person_box:MovieClip;
public var box:MovieClip;
public var p_box:MovieClip;
}
}//package
Section 207
//Person_4 (Person_4)
package {
import flash.display.*;
public dynamic class Person_4 extends MovieClip {
public var person_box:MovieClip;
public var box:MovieClip;
public var p_box:MovieClip;
}
}//package
Section 208
//Person_6 (Person_6)
package {
import flash.display.*;
public dynamic class Person_6 extends MovieClip {
public var person_box:MovieClip;
public var box:MovieClip;
public var p_box:MovieClip;
}
}//package
Section 209
//Person_7 (Person_7)
package {
import flash.display.*;
public dynamic class Person_7 extends MovieClip {
public var person_box:MovieClip;
public var box1:MovieClip;
public var box:MovieClip;
public var p_box:MovieClip;
}
}//package
Section 210
//Person_8 (Person_8)
package {
import flash.display.*;
public dynamic class Person_8 extends MovieClip {
public var person_box:MovieClip;
public var box:MovieClip;
public var p_box:MovieClip;
}
}//package
Section 211
//Person_9 (Person_9)
package {
import flash.display.*;
public dynamic class Person_9 extends MovieClip {
public var person_box:MovieClip;
public var box:MovieClip;
}
}//package
Section 212
//Person_deal (Person_deal)
package {
import flash.display.*;
public dynamic class Person_deal extends MovieClip {
}
}//package
Section 213
//Person_mc (Person_mc)
package {
import flash.display.*;
public dynamic class Person_mc extends MovieClip {
public var person_box:MovieClip;
public var box:MovieClip;
}
}//package
Section 214
//PreloaderBar (PreloaderBar)
package {
import flash.display.*;
public dynamic class PreloaderBar extends SimpleButton {
}
}//package
Section 215
//PreloaderClip (PreloaderClip)
package {
import flash.display.*;
import flash.text.*;
public dynamic class PreloaderClip extends MovieClip {
public var procent:TextField;
public var ProgBar:PreloaderBar;
public function PreloaderClip(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 216
//Props (Props)
package {
import flash.display.*;
public dynamic class Props extends MovieClip {
public var gun_box:MovieClip;
}
}//package
Section 217
//Shell (Shell)
package {
import flash.display.*;
public dynamic class Shell extends MovieClip {
}
}//package
Section 218
//Spark (Spark)
package {
import flash.display.*;
public dynamic class Spark extends MovieClip {
public function Spark(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 219
//SysConsts (SysConsts)
package {
import flash.net.*;
public class SysConsts {
public static var PERSON_SCALE:Number = 1;
public static var zombie_time:int = 3;
public static var stage_height:int = 480;
public static var Stone_ob:Object = {sname1:"Stone1", sname1_sx:-333.4, sname1_sy:-221.4, sname2:"Stone2", sname2_sx:-183.4, sname2_sy:-234.3, sname3:"Stone3", sname3_sx:449.4, sname3_sy:158.8, sname4:"Stone4", sname4_sx:347.8, sname4_sy:162.9, sname5:"Stone5", sname5_sx:-271.7, sname5_sy:309.1, sname6:"Stone6", sname6_sx:-396.4, sname6_sy:211.4};
public static var zombies_Array:Array = [{id:1, ack:5, move:3, hp:100, classnma:"ZombieClassA", getS:10}, {id:2, ack:5, move:3, hp:200, classnma:"ZombieClassB", getS:20}, {id:3, ack:5, move:3, hp:300, classnma:"ZombieClassC", getS:30}, {id:4, ack:5, move:3, hp:400, classnma:"ZombieClassD", getS:50}];
public static var more_game_url:String = "http://www.freeonlinegames.com/?utm_source=freeonlinegames.com&utm_medium=game&utm_campaign=moster_flood1";
public static var levelData_Array:Array = [{time:0, kill:0, score:0}, {time:0, kill:0, score:0}, {time:0, kill:0, score:0}, {time:0, kill:0, score:0}];
public static var scene_min_x:Number = -750;
public static var scene_min_y:Number = -80;
public static var zombie_Allnum:int = 10;
public static var stage_weight:int = 640;
public static var SWH:Number = 0.6;
public static var Level_Array:Array = [{Stone:"sname1,sname5"}, {Stone:"sname1,sname2,sname3,sname4,sname5,sname6"}, {Stone:"sname1,sname5,sname3,sname6"}, {Stone:"sname1,sname2,sname3,sname4,sname5,sname6"}];
public static var scene_max_x:Number = 750;
public static var scene_max_y:Number = 80;
public static var add_game_url:String = "http://www.freegamesforyourwebsite.com/";
public static var Arms_Array:Array = [{id:1, bn:600, sb:1, st:5, sr:400, ack:80, move:6, className:"Person_1", sound:"gun1"}, {id:2, bn:50, sb:5, st:20, sr:500, ack:100, move:5, className:"Person_2", sound:"gun2"}, {id:3, bn:300, sb:1, st:2, sr:1000, ack:80, move:4, className:"Person_3", sound:"gun3"}, {id:4, bn:15, sb:1, st:50, sr:600, ack:2000, move:4, className:"Person_4", sound:"gun4"}, {id:5, bn:80, sb:2, st:10, sr:500, ack:80, move:5, className:"Person_7", sound:"gun1"}, {id:6, bn:5, sb:1, st:50, sr:500, ack:500, move:5, className:"Person_8", sound:"gun5"}, {id:7, bn:3, sb:0, st:1, sr:500, ack:500, move:5, className:"Person_9", sound:"gun6"}, {id:8, bn:3, sb:0, st:1, sr:500, ack:500, move:5, className:"Person_6", sound:"gun6"}];
public static var props_time:int = 10;
public static function setUrlAddress(_arg1:String):void{
var _local2:URLRequest = new URLRequest(_arg1);
navigateToURL(_local2);
}
}
}//package
Section 220
//UserInfo (UserInfo)
package {
public class UserInfo {
public var time_num:int;// = 0
public var kill_num:int;// = 0
public var score_num:int;// = 0
public var level_num:int;// = 4
public var time_text:String;// = ""
private static var _instance:UserInfo;
public static function getInstance():UserInfo{
if (_instance == null){
_instance = new (UserInfo);
};
return (_instance);
}
}
}//package
Section 221
//VoiceOver (VoiceOver)
package {
import flash.media.*;
public dynamic class VoiceOver extends Sound {
}
}//package
Section 222
//YouTong (YouTong)
package {
import flash.display.*;
public dynamic class YouTong extends MovieClip {
public var p_box:MovieClip;
}
}//package
Section 223
//ZombieClassA (ZombieClassA)
package {
import flash.display.*;
public dynamic class ZombieClassA extends MovieClip {
public var zombie_box:MovieClip;
}
}//package
Section 224
//ZombieClassB (ZombieClassB)
package {
import flash.display.*;
public dynamic class ZombieClassB extends MovieClip {
public var zombie_box:MovieClip;
}
}//package
Section 225
//ZombieClassC (ZombieClassC)
package {
import flash.display.*;
public dynamic class ZombieClassC extends MovieClip {
public var zombie_box:MovieClip;
}
}//package
Section 226
//ZombieClassD (ZombieClassD)
package {
import flash.display.*;
public dynamic class ZombieClassD extends MovieClip {
public var zombie_box:MovieClip;
}
}//package