Section 1
//gameOver_8 (_fla.gameOver_8)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class gameOver_8 extends MovieClip {
public function gameOver_8(){
addFrameScript(0, frame1, 50, frame51);
}
function frame1(){
}
function frame51(){
stop();
}
}
}//package _fla
Section 2
//GameOver2_37 (_fla.GameOver2_37)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class GameOver2_37 extends MovieClip {
public var next_mc:SimpleButton;
public function GameOver2_37(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package _fla
Section 3
//Logowow_1 (_fla.Logowow_1)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Logowow_1 extends MovieClip {
public function Logowow_1(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, URL_fun);
}
public function URL_fun(_arg1:MouseEvent){
var _local2:*;
_local2 = new URLRequest("http://www.freegameswow.com");
navigateToURL(_local2, "_blank");
}
}
}//package _fla
Section 4
//sprite83_58 (_fla.sprite83_58)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class sprite83_58 extends MovieClip {
public function sprite83_58(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 5
//Timeline_13 (_fla.Timeline_13)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Timeline_13 extends MovieClip {
public function Timeline_13(){
addFrameScript(0, frame1, 24, frame25, 39, frame40);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
function frame40(){
stop();
}
}
}//package _fla
Section 6
//Timeline_18 (_fla.Timeline_18)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Timeline_18 extends MovieClip {
public var JJJ_mc:MovieClip;
public function Timeline_18(){
addFrameScript(29, frame30, 44, frame45);
}
function frame30(){
gotoAndPlay("stop");
}
function frame45(){
gotoAndPlay("stop");
}
}
}//package _fla
Section 7
//Timeline_23 (_fla.Timeline_23)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Timeline_23 extends MovieClip {
public function Timeline_23(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
gotoAndPlay("run");
trace("警报");
}
}
}//package _fla
Section 8
//Timeline_29 (_fla.Timeline_29)
package _fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_29 extends MovieClip {
public var MingZhong_txt:TextField;
public var JiFen_txt:TextField;
public var RenShu_txt:TextField;
public var DanYao_txt:TextField;
}
}//package _fla
Section 9
//Timeline_30 (_fla.Timeline_30)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Timeline_30 extends MovieClip {
public var map_mc:MovieClip;
public var name_txt:TextField;
public var add_txt:TextField;
public function Timeline_30(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
}
}
}//package _fla
Section 10
//Timeline_35 (_fla.Timeline_35)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Timeline_35 extends MovieClip {
public function Timeline_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 11
//IAutomationObject (mx.automation.IAutomationObject)
package mx.automation {
import flash.events.*;
public interface IAutomationObject {
function createAutomationIDPart(_arg1:IAutomationObject):Object;
function get automationName():String;
function get showInAutomationHierarchy():Boolean;
function set automationName(_arg1:String):void;
function getAutomationChildAt(_arg1:int):IAutomationObject;
function get automationDelegate():Object;
function get automationTabularData():Object;
function resolveAutomationIDPart(_arg1:Object):Array;
function replayAutomatableEvent(_arg1:Event):Boolean;
function set automationDelegate(_arg1:Object):void;
function get automationValue():Array;
function get numAutomationChildren():int;
function set showInAutomationHierarchy(_arg1:Boolean):void;
}
}//package mx.automation
Section 12
//ComponentDescriptor (mx.core.ComponentDescriptor)
package mx.core {
public class ComponentDescriptor {
public var events:Object;
public var type:Class;
public var document:Object;
private var _properties:Object;
public var propertiesFactory:Function;
public var id:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function ComponentDescriptor(_arg1:Object){
var _local2:String;
super();
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
}
public function toString():String{
return (("ComponentDescriptor_" + id));
}
public function invalidateProperties():void{
_properties = null;
}
public function get properties():Object{
var _local1:Array;
var _local2:int;
var _local3:int;
if (_properties){
return (_properties);
};
if (propertiesFactory != null){
_properties = propertiesFactory.call(document);
};
if (_properties){
_local1 = _properties.childDescriptors;
if (_local1){
_local2 = _local1.length;
_local3 = 0;
while (_local3 < _local2) {
_local1[_local3].document = document;
_local3++;
};
};
} else {
_properties = {};
};
return (_properties);
}
}
}//package mx.core
Section 13
//DragSource (mx.core.DragSource)
package mx.core {
public class DragSource {
private var formatHandlers:Object;
private var dataHolder:Object;
private var _formats:Array;
mx_internal static const VERSION:String = "3.0.0.0";
public function DragSource(){
dataHolder = {};
formatHandlers = {};
_formats = [];
super();
}
public function hasFormat(_arg1:String):Boolean{
var _local2:int = _formats.length;
var _local3:int;
while (_local3 < _local2) {
if (_formats[_local3] == _arg1){
return (true);
};
_local3++;
};
return (false);
}
public function addData(_arg1:Object, _arg2:String):void{
_formats.push(_arg2);
dataHolder[_arg2] = _arg1;
}
public function dataForFormat(_arg1:String):Object{
var _local2:Object = dataHolder[_arg1];
if (_local2){
return (_local2);
};
if (formatHandlers[_arg1]){
return (formatHandlers[_arg1]());
};
return (null);
}
public function addHandler(_arg1:Function, _arg2:String):void{
_formats.push(_arg2);
formatHandlers[_arg2] = _arg1;
}
public function get formats():Array{
return (_formats);
}
}
}//package mx.core
Section 14
//IChildList (mx.core.IChildList)
package mx.core {
import flash.display.*;
import flash.geom.*;
public interface IChildList {
function get numChildren():int;
function removeChild(_arg1:DisplayObject):DisplayObject;
function getChildByName(_arg1:String):DisplayObject;
function removeChildAt(_arg1:int):DisplayObject;
function getChildIndex(_arg1:DisplayObject):int;
function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject;
function getObjectsUnderPoint(_arg1:Point):Array;
function setChildIndex(_arg1:DisplayObject, _arg2:int):void;
function getChildAt(_arg1:int):DisplayObject;
function addChild(_arg1:DisplayObject):DisplayObject;
function contains(_arg1:DisplayObject):Boolean;
}
}//package mx.core
Section 15
//IConstraintClient (mx.core.IConstraintClient)
package mx.core {
public interface IConstraintClient {
function setConstraintValue(_arg1:String, _arg2):void;
function getConstraintValue(_arg1:String);
}
}//package mx.core
Section 16
//IDeferredInstantiationUIComponent (mx.core.IDeferredInstantiationUIComponent)
package mx.core {
public interface IDeferredInstantiationUIComponent extends IUIComponent {
function set cacheHeuristic(_arg1:Boolean):void;
function createReferenceOnParentDocument(_arg1:IFlexDisplayObject):void;
function get cachePolicy():String;
function set id(_arg1:String):void;
function registerEffects(_arg1:Array):void;
function executeBindings(_arg1:Boolean=false):void;
function get id():String;
function deleteReferenceOnParentDocument(_arg1:IFlexDisplayObject):void;
function set descriptor(_arg1:UIComponentDescriptor):void;
function get descriptor():UIComponentDescriptor;
}
}//package mx.core
Section 17
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get y():Number;
function get width():Number;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get scaleX():Number;
function get scaleY():Number;
function move(_arg1:Number, _arg2:Number):void;
function set height(_arg1:Number):void;
function set name(_arg1:String):void;
function set mask(_arg1:DisplayObject):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function set visible(_arg1:Boolean):void;
function get alpha():Number;
function get height():Number;
function get parent():DisplayObjectContainer;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function get visible():Boolean;
function get x():Number;
function set y(_arg1:Number):void;
function set alpha(_arg1:Number):void;
}
}//package mx.core
Section 18
//IFlexModuleFactory (mx.core.IFlexModuleFactory)
package mx.core {
public interface IFlexModuleFactory {
function create(... _args):Object;
function info():Object;
}
}//package mx.core
Section 19
//IInvalidating (mx.core.IInvalidating)
package mx.core {
public interface IInvalidating {
function validateNow():void;
function invalidateSize():void;
function invalidateDisplayList():void;
function invalidateProperties():void;
}
}//package mx.core
Section 20
//IStateClient (mx.core.IStateClient)
package mx.core {
public interface IStateClient {
function get currentState():String;
function set currentState(_arg1:String):void;
}
}//package mx.core
Section 21
//IToolTip (mx.core.IToolTip)
package mx.core {
import flash.geom.*;
public interface IToolTip extends IUIComponent {
function set text(_arg1:String):void;
function get screen():Rectangle;
function get text():String;
}
}//package mx.core
Section 22
//IUIComponent (mx.core.IUIComponent)
package mx.core {
import flash.display.*;
import flash.geom.*;
import mx.managers.*;
public interface IUIComponent extends IFlexDisplayObject {
function set focusPane(_arg1:Sprite):void;
function get enabled():Boolean;
function set enabled(_arg1:Boolean):void;
function set isPopUp(_arg1:Boolean):void;
function get explicitMinHeight():Number;
function set cacheAsBitmap(_arg1:Boolean):void;
function get percentWidth():Number;
function get isPopUp():Boolean;
function get owner():DisplayObjectContainer;
function get percentHeight():Number;
function get baselinePosition():Number;
function owns(_arg1:DisplayObject):Boolean;
function initialize():void;
function get maxWidth():Number;
function get minWidth():Number;
function getExplicitOrMeasuredWidth():Number;
function get explicitMaxWidth():Number;
function get explicitMaxHeight():Number;
function set percentHeight(_arg1:Number):void;
function get minHeight():Number;
function set percentWidth(_arg1:Number):void;
function get document():Object;
function set opaqueBackground(_arg1:Object):void;
function get focusPane():Sprite;
function getExplicitOrMeasuredHeight():Number;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function set explicitWidth(_arg1:Number):void;
function set measuredMinHeight(_arg1:Number):void;
function get explicitMinWidth():Number;
function get scrollRect():Rectangle;
function get tweeningProperties():Array;
function get maxHeight():Number;
function set tweeningProperties(_arg1:Array):void;
function set owner(_arg1:DisplayObjectContainer):void;
function set includeInLayout(_arg1:Boolean):void;
function get opaqueBackground():Object;
function setVisible(_arg1:Boolean, _arg2:Boolean=false):void;
function parentChanged(_arg1:DisplayObjectContainer):void;
function get explicitWidth():Number;
function get measuredMinHeight():Number;
function set measuredMinWidth(_arg1:Number):void;
function set explicitHeight(_arg1:Number):void;
function get includeInLayout():Boolean;
function get measuredMinWidth():Number;
function get explicitHeight():Number;
function set systemManager(_arg1:ISystemManager):void;
function set document(_arg1:Object):void;
function get systemManager():ISystemManager;
}
}//package mx.core
Section 23
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 24
//UIComponentDescriptor (mx.core.UIComponentDescriptor)
package mx.core {
public class UIComponentDescriptor extends ComponentDescriptor {
mx_internal var instanceIndices:Array;
public var stylesFactory:Function;
public var effects:Array;
mx_internal var repeaters:Array;
mx_internal var repeaterIndices:Array;
mx_internal static const VERSION:String = "3.0.0.0";
public function UIComponentDescriptor(_arg1:Object){
super(_arg1);
}
override public function toString():String{
return (("UIComponentDescriptor_" + id));
}
}
}//package mx.core
Section 25
//DragEvent (mx.events.DragEvent)
package mx.events {
import flash.events.*;
import mx.core.*;
public class DragEvent extends MouseEvent {
public var draggedItem:Object;
public var action:String;
public var dragInitiator:IUIComponent;
public var dragSource:DragSource;
public static const DRAG_DROP:String = "dragDrop";
public static const DRAG_COMPLETE:String = "dragComplete";
public static const DRAG_EXIT:String = "dragExit";
public static const DRAG_ENTER:String = "dragEnter";
public static const DRAG_START:String = "dragStart";
mx_internal static const VERSION:String = "3.0.0.0";
public static const DRAG_OVER:String = "dragOver";
public function DragEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=true, _arg4:IUIComponent=null, _arg5:DragSource=null, _arg6:String=null, _arg7:Boolean=false, _arg8:Boolean=false, _arg9:Boolean=false){
super(_arg1, _arg2, _arg3);
this.dragInitiator = _arg4;
this.dragSource = _arg5;
this.action = _arg6;
this.ctrlKey = _arg7;
this.altKey = _arg8;
this.shiftKey = _arg9;
}
override public function clone():Event{
var _local1:DragEvent = new DragEvent(type, bubbles, cancelable, dragInitiator, dragSource, action, ctrlKey, altKey, shiftKey);
_local1.relatedObject = this.relatedObject;
_local1.localX = this.localX;
_local1.localY = this.localY;
return (_local1);
}
}
}//package mx.events
Section 26
//FlexEvent (mx.events.FlexEvent)
package mx.events {
import flash.events.*;
import mx.core.*;
public class FlexEvent extends Event {
public static const ADD:String = "add";
public static const TRANSFORM_CHANGE:String = "transformChange";
public static const INIT_COMPLETE:String = "initComplete";
public static const REMOVE:String = "remove";
public static const BUTTON_DOWN:String = "buttonDown";
public static const EXIT_STATE:String = "exitState";
public static const CREATION_COMPLETE:String = "creationComplete";
public static const REPEAT:String = "repeat";
public static const LOADING:String = "loading";
public static const REPEAT_START:String = "repeatStart";
public static const INITIALIZE:String = "initialize";
public static const ENTER_STATE:String = "enterState";
public static const URL_CHANGED:String = "urlChanged";
public static const REPEAT_END:String = "repeatEnd";
mx_internal static const VERSION:String = "3.0.0.0";
public static const HIDE:String = "hide";
public static const ENTER:String = "enter";
public static const PRELOADER_DONE:String = "preloaderDone";
public static const CURSOR_UPDATE:String = "cursorUpdate";
public static const PREINITIALIZE:String = "preinitialize";
public static const INVALID:String = "invalid";
public static const IDLE:String = "idle";
public static const VALID:String = "valid";
public static const DATA_CHANGE:String = "dataChange";
public static const APPLICATION_COMPLETE:String = "applicationComplete";
public static const VALUE_COMMIT:String = "valueCommit";
public static const UPDATE_COMPLETE:String = "updateComplete";
public static const INIT_PROGRESS:String = "initProgress";
public static const SHOW:String = "show";
public function FlexEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new FlexEvent(type, bubbles, cancelable));
}
}
}//package mx.events
Section 27
//FlexMouseEvent (mx.events.FlexMouseEvent)
package mx.events {
import flash.events.*;
import flash.display.*;
import mx.core.*;
public class FlexMouseEvent extends MouseEvent {
public static const MOUSE_DOWN_OUTSIDE:String = "mouseDownOutside";
public static const MOUSE_WHEEL_OUTSIDE:String = "mouseWheelOutside";
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexMouseEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=0, _arg5:Number=0, _arg6:InteractiveObject=null, _arg7:Boolean=false, _arg8:Boolean=false, _arg9:Boolean=false, _arg10:Boolean=false, _arg11:int=0){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11);
}
override public function clone():Event{
return (new FlexMouseEvent(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta));
}
}
}//package mx.events
Section 28
//MoveEvent (mx.events.MoveEvent)
package mx.events {
import flash.events.*;
import mx.core.*;
public class MoveEvent extends Event {
public var oldX:Number;
public var oldY:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public static const MOVE:String = "move";
public function MoveEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=NaN, _arg5:Number=NaN){
super(_arg1, _arg2, _arg3);
this.oldX = _arg4;
this.oldY = _arg5;
}
override public function clone():Event{
return (new MoveEvent(type, bubbles, cancelable, oldX, oldY));
}
}
}//package mx.events
Section 29
//PropertyChangeEvent (mx.events.PropertyChangeEvent)
package mx.events {
import flash.events.*;
import mx.core.*;
public class PropertyChangeEvent extends Event {
public var newValue:Object;
public var kind:String;
public var property:Object;
public var oldValue:Object;
public var source:Object;
mx_internal static const VERSION:String = "3.0.0.0";
public static const PROPERTY_CHANGE:String = "propertyChange";
public function PropertyChangeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Object=null){
super(_arg1, _arg2, _arg3);
this.kind = _arg4;
this.property = _arg5;
this.oldValue = _arg6;
this.newValue = _arg7;
this.source = _arg8;
}
override public function clone():Event{
return (new PropertyChangeEvent(type, bubbles, cancelable, kind, property, oldValue, newValue, source));
}
public static function createUpdateEvent(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Object):PropertyChangeEvent{
var _local5:PropertyChangeEvent = new PropertyChangeEvent(PROPERTY_CHANGE);
_local5.kind = PropertyChangeEventKind.UPDATE;
_local5.oldValue = _arg3;
_local5.newValue = _arg4;
_local5.source = _arg1;
_local5.property = _arg2;
return (_local5);
}
}
}//package mx.events
Section 30
//PropertyChangeEventKind (mx.events.PropertyChangeEventKind)
package mx.events {
import mx.core.*;
public final class PropertyChangeEventKind {
mx_internal static const VERSION:String = "3.0.0.0";
public static const UPDATE:String = "update";
public static const DELETE:String = "delete";
}
}//package mx.events
Section 31
//ResizeEvent (mx.events.ResizeEvent)
package mx.events {
import flash.events.*;
import mx.core.*;
public class ResizeEvent extends Event {
public var oldHeight:Number;
public var oldWidth:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public static const RESIZE:String = "resize";
public function ResizeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=NaN, _arg5:Number=NaN){
super(_arg1, _arg2, _arg3);
this.oldWidth = _arg4;
this.oldHeight = _arg5;
}
override public function clone():Event{
return (new ResizeEvent(type, bubbles, cancelable, oldWidth, oldHeight));
}
}
}//package mx.events
Section 32
//StateChangeEvent (mx.events.StateChangeEvent)
package mx.events {
import flash.events.*;
import mx.core.*;
public class StateChangeEvent extends Event {
public var newState:String;
public var oldState:String;
public static const CURRENT_STATE_CHANGING:String = "currentStateChanging";
public static const CURRENT_STATE_CHANGE:String = "currentStateChange";
mx_internal static const VERSION:String = "3.0.0.0";
public function StateChangeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:String=null){
super(_arg1, _arg2, _arg3);
this.oldState = _arg4;
this.newState = _arg5;
}
override public function clone():Event{
return (new StateChangeEvent(type, bubbles, cancelable, oldState, newState));
}
}
}//package mx.events
Section 33
//ToolTipEvent (mx.events.ToolTipEvent)
package mx.events {
import flash.events.*;
import mx.core.*;
public class ToolTipEvent extends Event {
public var toolTip:IToolTip;
public static const TOOL_TIP_SHOWN:String = "toolTipShown";
public static const TOOL_TIP_CREATE:String = "toolTipCreate";
public static const TOOL_TIP_SHOW:String = "toolTipShow";
public static const TOOL_TIP_HIDE:String = "toolTipHide";
public static const TOOL_TIP_END:String = "toolTipEnd";
mx_internal static const VERSION:String = "3.0.0.0";
public static const TOOL_TIP_START:String = "toolTipStart";
public function ToolTipEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:IToolTip=null){
super(_arg1, _arg2, _arg3);
this.toolTip = _arg4;
}
override public function clone():Event{
return (new ToolTipEvent(type, bubbles, cancelable, toolTip));
}
}
}//package mx.events
Section 34
//UIMovieClip (mx.flash.UIMovieClip)
package mx.flash {
import mx.automation.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import mx.core.*;
import mx.managers.*;
import mx.events.*;
import flash.system.*;
import flash.ui.*;
public dynamic class UIMovieClip extends MovieClip implements IDeferredInstantiationUIComponent, IToolTipManagerClient, IStateClient, IFocusManagerComponent, IConstraintClient, IAutomationObject {
private var _explicitWidth:Number;
private var reverseDirectionFocus:Boolean;// = false
private var oldHeight:Number;
protected var _height:Number;
private var _automationName:String;// = null
private var _automationDelegate:IAutomationObject;
private var _currentState:String;
private var _document:Object;
private var _systemManager:ISystemManager;
private var _isPopUp:Boolean;// = false
private var focusableObjects:Array;
private var _percentWidth:Number;
private var _top;
private var _explicitHeight:Number;
private var explicitSizeChanged:Boolean;// = false
private var _measuredWidth:Number;
private var _toolTip:String;
public var boundingBoxName:String;// = "boundingBox"
protected var _width:Number;
private var _tweeningProperties:Array;
protected var initialized:Boolean;// = false
private var _focusPane:Sprite;
private var _left;
private var transitionEndState:String;
private var focusListenersAdded:Boolean;// = false
private var stateMap:Object;
private var _showInAutomationHierarchy:Boolean;// = true
private var _descriptor:UIComponentDescriptor;
private var oldX:Number;
private var oldY:Number;
private var _right;
private var validateMeasuredSizeFlag:Boolean;// = true
private var _focusEnabled:Boolean;// = true
protected var trackSizeChanges:Boolean;// = true
private var _includeInLayout:Boolean;// = true
private var _explicitMinWidth:Number;
private var _bottom;
private var _explicitMaxHeight:Number;
private var explicitTabEnabledChanged:Boolean;// = false
private var transitionStartFrame:Number;
private var _explicitMaxWidth:Number;
private var _measuredMinHeight:Number;// = 0
private var _verticalCenter;
private var _baseline;
private var transitionDirection:Number;// = 0
private var _measuredHeight:Number;
private var _owner:DisplayObjectContainer;
private var _id:String;
private var transitionEndFrame:Number;
private var _parent:DisplayObjectContainer;
private var _explicitMinHeight:Number;
private var _percentHeight:Number;
private var _measuredMinWidth:Number;// = 0
private var oldWidth:Number;
private var _horizontalCenter;
public function UIMovieClip(){
focusableObjects = [];
super();
addEventListener(Event.ENTER_FRAME, enterFrameHandler, false, 0, true);
addEventListener(FocusEvent.FOCUS_IN, focusInHandler, false, 0, true);
addEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler);
}
public function get left(){
return (_left);
}
public function set left(_arg1):void{
var _local2:Object = this.left;
if (_local2 !== _arg1){
this._3317767left = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "left", _local2, _arg1));
};
}
protected function enterFrameHandler(_arg1:Event):void{
var _local2:Rectangle;
var _local3:Number;
if (explicitSizeChanged){
explicitSizeChanged = false;
setActualSize(getExplicitOrMeasuredWidth(), getExplicitOrMeasuredHeight());
};
if (isNaN(oldX)){
oldX = x;
};
if (isNaN(oldY)){
oldY = y;
};
if (((!((x == oldX))) || (!((y == oldY))))){
dispatchMoveEvent();
};
if (trackSizeChanges){
_local2 = bounds;
_local2.width = (_local2.width * scaleX);
_local2.height = (_local2.height * scaleY);
if (isNaN(oldWidth)){
oldWidth = (_width = _local2.width);
};
if (isNaN(oldHeight)){
oldHeight = (_height = _local2.height);
};
if (((sizeChanged(_local2.width, oldWidth)) || (sizeChanged(_local2.height, oldHeight)))){
_width = _local2.width;
_height = _local2.height;
validateMeasuredSizeFlag = true;
notifySizeChanged();
dispatchResizeEvent();
} else {
if (((sizeChanged(width, oldWidth)) || (sizeChanged(height, oldHeight)))){
dispatchResizeEvent();
};
};
};
if (((((currentLabel) && ((currentLabel.indexOf(":") < 0)))) && (!((currentLabel == _currentState))))){
_currentState = currentLabel;
};
if (transitionDirection != 0){
_local3 = (currentFrame + transitionDirection);
if ((((((transitionDirection > 0)) && ((_local3 >= transitionEndFrame)))) || ((((transitionDirection < 0)) && ((_local3 <= transitionEndFrame)))))){
gotoAndStop(stateMap[transitionEndState].frame);
transitionDirection = 0;
} else {
gotoAndStop(_local3);
};
};
}
public function get minHeight():Number{
if (!isNaN(explicitMinHeight)){
return (explicitMinHeight);
};
return (measuredMinHeight);
}
public function getExplicitOrMeasuredHeight():Number{
var _local1:Number;
if (isNaN(explicitHeight)){
_local1 = measuredHeight;
if (((!(isNaN(explicitMinHeight))) && ((_local1 < explicitMinHeight)))){
_local1 = explicitMinHeight;
};
if (((!(isNaN(explicitMaxHeight))) && ((_local1 > explicitMaxHeight)))){
_local1 = explicitMaxHeight;
};
return (_local1);
};
return (explicitHeight);
}
public function get right(){
return (_right);
}
private function validateMeasuredSize():void{
if (validateMeasuredSizeFlag){
validateMeasuredSizeFlag = false;
_measuredWidth = bounds.width;
_measuredHeight = bounds.height;
};
}
public function get tweeningProperties():Array{
return (_tweeningProperties);
}
public function get bottom(){
return (_bottom);
}
public function set explicitMaxWidth(_arg1:Number):void{
_explicitMaxWidth = _arg1;
}
public function set minHeight(_arg1:Number):void{
explicitMinHeight = _arg1;
}
public function set right(_arg1):void{
var _local2:Object = this.right;
if (_local2 !== _arg1){
this._108511772right = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "right", _local2, _arg1));
};
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
if (_arg1.keyCode == Keyboard.TAB){
if (stage.focus == focusableObjects[(_arg1.shiftKey) ? 0 : (focusableObjects.length - 1)]){
removeFocusEventListeners();
} else {
_arg1.stopImmediatePropagation();
};
};
}
public function get automationName():String{
if (_automationName){
return (_automationName);
};
if (automationDelegate){
return (automationDelegate.automationName);
};
return ("");
}
public function get baseline(){
return (_baseline);
}
private function set _1383228885bottom(_arg1):void{
if (_arg1 != _bottom){
_bottom = _arg1;
notifySizeChanged();
};
}
public function get explicitMinHeight():Number{
return (_explicitMinHeight);
}
private function keyFocusChangeCaptureHandler(_arg1:FocusEvent):void{
reverseDirectionFocus = _arg1.shiftKey;
}
public function set bottom(_arg1):void{
var _local2:Object = this.bottom;
if (_local2 !== _arg1){
this._1383228885bottom = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "bottom", _local2, _arg1));
};
}
public function set id(_arg1:String):void{
_id = _arg1;
}
public function set tweeningProperties(_arg1:Array):void{
_tweeningProperties = _arg1;
}
override public function set height(_arg1:Number):void{
explicitHeight = _arg1;
}
public function get focusPane():Sprite{
return (_focusPane);
}
protected function notifySizeChanged():void{
if (((parent) && ((parent is IInvalidating)))){
IInvalidating(parent).invalidateSize();
IInvalidating(parent).invalidateDisplayList();
};
}
public function get numAutomationChildren():int{
if (automationDelegate){
return (automationDelegate.numAutomationChildren);
};
return (0);
}
protected function focusInHandler(_arg1:FocusEvent):void{
if (!focusListenersAdded){
addFocusEventListeners();
};
}
public function set document(_arg1:Object):void{
_document = _arg1;
}
public function getExplicitOrMeasuredWidth():Number{
var _local1:Number;
if (isNaN(explicitWidth)){
_local1 = measuredWidth;
if (((!(isNaN(explicitMinWidth))) && ((_local1 < explicitMinWidth)))){
_local1 = explicitMinWidth;
};
if (((!(isNaN(explicitMaxWidth))) && ((_local1 > explicitMaxWidth)))){
_local1 = explicitMaxWidth;
};
return (_local1);
};
return (explicitWidth);
}
private function set _3317767left(_arg1):void{
if (_arg1 != _left){
_left = _arg1;
notifySizeChanged();
};
}
public function get explicitHeight():Number{
return (_explicitHeight);
}
public function get showInAutomationHierarchy():Boolean{
return (_showInAutomationHierarchy);
}
public function get systemManager():ISystemManager{
var _local1:DisplayObject;
var _local2:DisplayObjectContainer;
var _local3:IUIComponent;
if (!_systemManager){
_local1 = root;
if (_local1){
_systemManager = (_local1 as ISystemManager);
} else {
_local2 = parent;
while (_local2) {
_local3 = (_local2 as IUIComponent);
if (_local3){
_systemManager = _local3.systemManager;
break;
};
_local2 = _local2.parent;
};
};
};
return (_systemManager);
}
public function get percentWidth():Number{
return (_percentWidth);
}
public function set automationName(_arg1:String):void{
_automationName = _arg1;
}
public function set explicitMinHeight(_arg1:Number):void{
_explicitMinHeight = _arg1;
notifySizeChanged();
}
public function get baselinePosition():Number{
return (0);
}
public function set baseline(_arg1):void{
var _local2:Object = this.baseline;
if (_local2 !== _arg1){
this._1720785339baseline = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "baseline", _local2, _arg1));
};
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
public function get currentState():String{
return (_currentState);
}
public function get minWidth():Number{
if (!isNaN(explicitMinWidth)){
return (explicitMinWidth);
};
return (measuredMinWidth);
}
public function get measuredWidth():Number{
validateMeasuredSize();
return (_measuredWidth);
}
public function get mouseFocusEnabled():Boolean{
return (false);
}
public function get automationValue():Array{
if (automationDelegate){
return (automationDelegate.automationValue);
};
return ([]);
}
private function set _115029top(_arg1):void{
if (_arg1 != _top){
_top = _arg1;
notifySizeChanged();
};
}
override public function get parent():DisplayObjectContainer{
return ((_parent) ? _parent : super.parent);
}
public function get owner():DisplayObjectContainer{
return ((_owner) ? _owner : parent);
}
protected function get bounds():Rectangle{
if (((((((boundingBoxName) && (!((boundingBoxName == ""))))) && ((boundingBoxName in this)))) && (this[boundingBoxName]))){
return (this[boundingBoxName].getBounds(this));
};
return (getBounds(this));
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
if (((sizeChanged(_width, _arg1)) || (sizeChanged(_height, _arg2)))){
dispatchResizeEvent();
};
_width = _arg1;
_height = _arg2;
super.scaleX = (_arg1 / measuredWidth);
super.scaleY = (_arg2 / measuredHeight);
}
public function parentChanged(_arg1:DisplayObjectContainer):void{
if (!_arg1){
_parent = null;
} else {
if ((((_arg1 is IUIComponent)) || ((_arg1 is ISystemManager)))){
_parent = _arg1;
} else {
_parent = _arg1.parent;
};
};
}
public function createAutomationIDPart(_arg1:IAutomationObject):Object{
if (automationDelegate){
return (automationDelegate.createAutomationIDPart(_arg1));
};
return (null);
}
public function getAutomationChildAt(_arg1:int):IAutomationObject{
if (automationDelegate){
return (automationDelegate.getAutomationChildAt(_arg1));
};
return (null);
}
private function removeFocusEventListeners():void{
stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
stage.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
focusListenersAdded = false;
}
public function set focusPane(_arg1:Sprite):void{
_focusPane = _arg1;
}
public function get maxWidth():Number{
return ((isNaN(explicitMaxWidth)) ? 10000 : explicitMaxWidth);
}
public function setConstraintValue(_arg1:String, _arg2):void{
this[_arg1] = _arg2;
}
public function set verticalCenter(_arg1):void{
var _local2:Object = this.verticalCenter;
if (_local2 !== _arg1){
this._926273685verticalCenter = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "verticalCenter", _local2, _arg1));
};
}
public function set top(_arg1):void{
var _local2:Object = this.top;
if (_local2 !== _arg1){
this._115029top = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "top", _local2, _arg1));
};
}
public function set descriptor(_arg1:UIComponentDescriptor):void{
_descriptor = _arg1;
}
override public function set visible(_arg1:Boolean):void{
setVisible(_arg1);
}
public function set measuredMinWidth(_arg1:Number):void{
_measuredMinWidth = _arg1;
}
public function set includeInLayout(_arg1:Boolean):void{
_includeInLayout = _arg1;
}
public function set explicitHeight(_arg1:Number):void{
_explicitHeight = _arg1;
explicitSizeChanged = true;
notifySizeChanged();
}
public function get explicitMinWidth():Number{
return (_explicitMinWidth);
}
public function set showInAutomationHierarchy(_arg1:Boolean):void{
_showInAutomationHierarchy = _arg1;
}
public function set systemManager(_arg1:ISystemManager):void{
_systemManager = _arg1;
}
public function registerEffects(_arg1:Array):void{
}
public function set percentWidth(_arg1:Number):void{
_percentWidth = _arg1;
notifySizeChanged();
}
private function creationCompleteHandler(_arg1:Event):void{
removeEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler);
if (systemManager){
systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeCaptureHandler, true, 0, true);
} else {
if (((parentDocument) && (parentDocument.systemManager))){
parentDocument.systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeCaptureHandler, true, 0, true);
};
};
}
public function get id():String{
return (_id);
}
private function set _926273685verticalCenter(_arg1):void{
if (_arg1 != _verticalCenter){
_verticalCenter = _arg1;
notifySizeChanged();
};
}
public function get explicitMaxWidth():Number{
return (_explicitMaxWidth);
}
public function executeBindings(_arg1:Boolean=false):void{
var _local2:Object = (((descriptor) && (descriptor.document))) ? descriptor.document : parentDocument;
var _local3:* = ApplicationDomain.currentDomain.getDefinition("mx.binding.BindingManager");
if (_local3 != null){
_local3.executeBindings(_local2, id, this);
};
}
public function set minWidth(_arg1:Number):void{
explicitMinWidth = _arg1;
}
override public function get height():Number{
if (!isNaN(_height)){
return (_height);
};
return (super.height);
}
public function set currentState(_arg1:String):void{
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:StateChangeEvent;
if (_arg1 == _currentState){
return;
};
if (!stateMap){
buildStateMap();
};
if (stateMap[_arg1]){
_local2 = (((_currentState + "-") + _arg1) + ":start");
if (stateMap[_local2]){
_local3 = stateMap[_local2].frame;
_local4 = stateMap[(((_currentState + "-") + _arg1) + ":end")].frame;
};
if (isNaN(_local3)){
_local2 = (((_arg1 + "-") + _currentState) + ":end");
if (stateMap[_local2]){
_local3 = stateMap[_local2].frame;
_local4 = stateMap[(((_arg1 + "-") + _currentState) + ":start")].frame;
};
};
if (isNaN(_local3)){
_local2 = (("*-" + _arg1) + ":start");
if (stateMap[_local2]){
_local3 = stateMap[_local2].frame;
_local4 = stateMap[(("*-" + _arg1) + ":end")].frame;
};
};
if (isNaN(_local3)){
_local2 = (_arg1 + "-*:end");
if (stateMap[_local2]){
_local3 = stateMap[_local2].frame;
_local4 = stateMap[(_arg1 + "-*:start")].frame;
};
};
if (isNaN(_local3)){
_local2 = (_currentState + "-*:start");
if (stateMap[_local2]){
_local3 = stateMap[_local2].frame;
_local4 = stateMap[(_currentState + "-*:end")].frame;
};
};
if (isNaN(_local3)){
_local2 = (("*-" + _currentState) + ":end");
if (stateMap[_local2]){
_local3 = stateMap[_local2].frame;
_local4 = stateMap[(("*-" + _currentState) + ":start")].frame;
};
};
if (isNaN(_local3)){
_local2 = "*-*:start";
if (stateMap[_local2]){
_local3 = stateMap[_local2].frame;
_local4 = stateMap["*-*:end"].frame;
};
};
if (((isNaN(_local3)) && ((_arg1 in stateMap)))){
_local3 = stateMap[_arg1].frame;
};
if (isNaN(_local3)){
return;
};
_local5 = new StateChangeEvent(StateChangeEvent.CURRENT_STATE_CHANGING);
_local5.oldState = _currentState;
_local5.newState = _arg1;
dispatchEvent(_local5);
if (isNaN(_local4)){
gotoAndStop(_local3);
transitionDirection = 0;
} else {
if ((((currentFrame < Math.min(_local3, _local4))) || ((currentFrame > Math.max(_local3, _local4))))){
gotoAndStop(_local3);
} else {
_local3 = currentFrame;
};
transitionStartFrame = _local3;
transitionEndFrame = _local4;
transitionDirection = ((_local4)>_local3) ? 1 : -1;
transitionEndState = _arg1;
};
_local5 = new StateChangeEvent(StateChangeEvent.CURRENT_STATE_CHANGE);
_local5.oldState = _currentState;
_local5.newState = _arg1;
dispatchEvent(_local5);
_currentState = _arg1;
};
}
public function set horizontalCenter(_arg1):void{
var _local2:Object = this.horizontalCenter;
if (_local2 !== _arg1){
this._2016110183horizontalCenter = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "horizontalCenter", _local2, _arg1));
};
}
public function get document():Object{
return (_document);
}
private function focusOutHandler(_arg1:FocusEvent):void{
if (focusableObjects.indexOf(_arg1.relatedObject) == -1){
removeFocusEventListeners();
};
}
public function replayAutomatableEvent(_arg1:Event):Boolean{
if (automationDelegate){
return (automationDelegate.replayAutomatableEvent(_arg1));
};
return (false);
}
public function get focusEnabled():Boolean{
return (((_focusEnabled) && ((focusableObjects.length > 0))));
}
private function set _108511772right(_arg1):void{
if (_arg1 != _right){
_right = _arg1;
notifySizeChanged();
};
}
public function get top(){
return (_top);
}
public function set maxHeight(_arg1:Number):void{
explicitMaxHeight = _arg1;
}
public function set cacheHeuristic(_arg1:Boolean):void{
}
private function set _1720785339baseline(_arg1):void{
if (_arg1 != _baseline){
_baseline = _arg1;
notifySizeChanged();
};
}
private function addFocusEventListeners():void{
stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 1, true);
stage.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, false, 0, true);
focusListenersAdded = true;
}
public function getConstraintValue(_arg1:String){
return (this[_arg1]);
}
public function set owner(_arg1:DisplayObjectContainer):void{
_owner = _arg1;
}
protected function findFocusCandidates(_arg1:DisplayObjectContainer):void{
var _local3:InteractiveObject;
var _local2:int;
while (_local2 < _arg1.numChildren) {
_local3 = (_arg1.getChildAt(_local2) as InteractiveObject);
if (((_local3) && (_local3.tabEnabled))){
focusableObjects.push(_local3);
if (!explicitTabEnabledChanged){
tabEnabled = true;
};
};
if ((_local3 is DisplayObjectContainer)){
findFocusCandidates(DisplayObjectContainer(_local3));
};
_local2++;
};
}
public function get verticalCenter(){
return (_verticalCenter);
}
public function get cachePolicy():String{
return ("");
}
private function set _2016110183horizontalCenter(_arg1):void{
if (_arg1 != _horizontalCenter){
_horizontalCenter = _arg1;
notifySizeChanged();
};
}
public function get descriptor():UIComponentDescriptor{
return (_descriptor);
}
public function createReferenceOnParentDocument(_arg1:IFlexDisplayObject):void{
if (((id) && (!((id == ""))))){
_arg1[id] = this;
};
}
public function get includeInLayout():Boolean{
return (_includeInLayout);
}
public function set automationDelegate(_arg1:Object):void{
_automationDelegate = (_arg1 as IAutomationObject);
}
public function get measuredMinWidth():Number{
return (_measuredMinWidth);
}
protected function sizeChanged(_arg1:Number, _arg2:Number):Boolean{
return ((Math.abs((_arg1 - _arg2)) > 1));
}
public function set isPopUp(_arg1:Boolean):void{
_isPopUp = _arg1;
}
public function get measuredHeight():Number{
validateMeasuredSize();
return (_measuredHeight);
}
public function initialize():void{
var _local2:IUIComponent;
initialized = true;
dispatchEvent(new FlexEvent(FlexEvent.PREINITIALIZE));
if (((((((boundingBoxName) && (!((boundingBoxName == ""))))) && ((boundingBoxName in this)))) && (this[boundingBoxName]))){
this[boundingBoxName].visible = false;
};
if (explicitSizeChanged){
explicitSizeChanged = false;
setActualSize(getExplicitOrMeasuredWidth(), getExplicitOrMeasuredHeight());
};
findFocusCandidates(this);
var _local1:int;
while (_local1 < numChildren) {
_local2 = (getChildAt(_local1) as IUIComponent);
if (_local2){
_local2.initialize();
};
_local1++;
};
dispatchEvent(new FlexEvent(FlexEvent.INITIALIZE));
dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE));
}
public function resolveAutomationIDPart(_arg1:Object):Array{
if (automationDelegate){
return (automationDelegate.resolveAutomationIDPart(_arg1));
};
return ([]);
}
public function setFocus():void{
stage.focus = focusableObjects[(reverseDirectionFocus) ? (focusableObjects.length - 1) : 0];
addFocusEventListeners();
}
public function set percentHeight(_arg1:Number):void{
_percentHeight = _arg1;
notifySizeChanged();
}
public function get horizontalCenter(){
return (_horizontalCenter);
}
override public function set width(_arg1:Number):void{
explicitWidth = _arg1;
}
public function set maxWidth(_arg1:Number):void{
explicitMaxWidth = _arg1;
}
private function buildStateMap():void{
var _local1:Array = currentLabels;
stateMap = {};
var _local2:int;
while (_local2 < _local1.length) {
stateMap[_local1[_local2].name] = _local1[_local2];
_local2++;
};
}
protected function dispatchResizeEvent():void{
var _local1:ResizeEvent = new ResizeEvent(ResizeEvent.RESIZE);
_local1.oldWidth = oldWidth;
_local1.oldHeight = oldHeight;
dispatchEvent(_local1);
oldWidth = width;
oldHeight = height;
}
public function deleteReferenceOnParentDocument(_arg1:IFlexDisplayObject):void{
if (((id) && (!((id == ""))))){
_arg1[id] = null;
};
}
public function owns(_arg1:DisplayObject):Boolean{
while (((_arg1) && (!((_arg1 == this))))) {
if ((_arg1 is IUIComponent)){
_arg1 = IUIComponent(_arg1).owner;
} else {
_arg1 = _arg1.parent;
};
};
return ((_arg1 == this));
}
public function set explicitMaxHeight(_arg1:Number):void{
_explicitMaxHeight = _arg1;
notifySizeChanged();
}
public function setVisible(_arg1:Boolean, _arg2:Boolean=false):void{
super.visible = _arg1;
if (!_arg2){
dispatchEvent(new FlexEvent((_arg1) ? FlexEvent.SHOW : FlexEvent.HIDE));
};
}
public function get maxHeight():Number{
return ((isNaN(explicitMaxHeight)) ? 10000 : explicitMaxHeight);
}
public function get automationDelegate():Object{
return (_automationDelegate);
}
public function set explicitMinWidth(_arg1:Number):void{
_explicitMinWidth = _arg1;
notifySizeChanged();
}
public function get isPopUp():Boolean{
return (_isPopUp);
}
public function get percentHeight():Number{
return (_percentHeight);
}
override public function get width():Number{
if (!isNaN(_width)){
return (_width);
};
return (super.width);
}
public function get explicitMaxHeight():Number{
return (_explicitMaxHeight);
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
if (((!((_arg1 == oldX))) || (!((_arg2 == oldY))))){
dispatchMoveEvent();
};
}
public function get toolTip():String{
return (_toolTip);
}
public function get parentDocument():Object{
var _local1:IUIComponent;
var _local2:ISystemManager;
if (document == this){
_local1 = (parent as IUIComponent);
if (_local1){
return (_local1.document);
};
_local2 = (parent as ISystemManager);
if (_local2){
return (_local2.document);
};
return (null);
//unresolved jump
};
return (document);
}
override public function set tabEnabled(_arg1:Boolean):void{
super.tabEnabled = _arg1;
explicitTabEnabledChanged = true;
}
public function set toolTip(_arg1:String):void{
var _local2:* = ApplicationDomain.currentDomain.getDefinition("mx.managers.ToolTipManager");
var _local3:String = _toolTip;
_toolTip = _arg1;
if (_local2){
var _local4 = _local2;
_local4.mx_internal::registerToolTip(this, _local3, _arg1);
};
}
public function set explicitWidth(_arg1:Number):void{
_explicitWidth = _arg1;
explicitSizeChanged = true;
notifySizeChanged();
}
private function dispatchMoveEvent():void{
var _local1:MoveEvent = new MoveEvent(MoveEvent.MOVE);
_local1.oldX = oldX;
_local1.oldY = oldY;
dispatchEvent(_local1);
oldX = x;
oldY = y;
}
public function get explicitWidth():Number{
return (_explicitWidth);
}
public function get measuredMinHeight():Number{
return (_measuredMinHeight);
}
public function drawFocus(_arg1:Boolean):void{
}
public function set measuredMinHeight(_arg1:Number):void{
_measuredMinHeight = _arg1;
}
override public function get tabEnabled():Boolean{
return (super.tabEnabled);
}
public function get automationTabularData():Object{
if (automationDelegate){
return (automationDelegate.automationTabularData);
};
return (null);
}
}
}//package mx.flash
Section 35
//IFocusManager (mx.managers.IFocusManager)
package mx.managers {
import flash.display.*;
import mx.core.*;
public interface IFocusManager {
function get focusPane():Sprite;
function getFocus():IFocusManagerComponent;
function deactivate():void;
function set defaultButton(_arg1:IUIComponent):void;
function set focusPane(_arg1:Sprite):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent;
function get nextTabIndex():int;
function get defaultButton():IUIComponent;
function get showFocusIndicator():Boolean;
function setFocus(_arg1:IFocusManagerComponent):void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function hideFocus():void;
function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent;
}
}//package mx.managers
Section 36
//IFocusManagerComponent (mx.managers.IFocusManagerComponent)
package mx.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package mx.managers
Section 37
//IFocusManagerContainer (mx.managers.IFocusManagerContainer)
package mx.managers {
import flash.events.*;
import flash.display.*;
public interface IFocusManagerContainer extends IEventDispatcher {
function set focusManager(_arg1:IFocusManager):void;
function get focusManager():IFocusManager;
function get systemManager():ISystemManager;
function contains(_arg1:DisplayObject):Boolean;
}
}//package mx.managers
Section 38
//ISystemManager (mx.managers.ISystemManager)
package mx.managers {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import mx.core.*;
import flash.text.*;
public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory {
function get focusPane():Sprite;
function get loaderInfo():LoaderInfo;
function get toolTipChildren():IChildList;
function set focusPane(_arg1:Sprite):void;
function isTopLevel():Boolean;
function get popUpChildren():IChildList;
function get screen():Rectangle;
function isFontFaceEmbedded(_arg1:TextFormat):Boolean;
function get rawChildren():IChildList;
function get topLevelSystemManager():ISystemManager;
function getDefinitionByName(_arg1:String):Object;
function activate(_arg1:IFocusManagerContainer):void;
function deactivate(_arg1:IFocusManagerContainer):void;
function get cursorChildren():IChildList;
function set document(_arg1:Object):void;
function get embeddedFontList():Object;
function set numModalWindows(_arg1:int):void;
function removeFocusManager(_arg1:IFocusManagerContainer):void;
function get document():Object;
function get numModalWindows():int;
function addFocusManager(_arg1:IFocusManagerContainer):void;
function get stage():Stage;
}
}//package mx.managers
Section 39
//IToolTipManagerClient (mx.managers.IToolTipManagerClient)
package mx.managers {
import mx.core.*;
public interface IToolTipManagerClient extends IFlexDisplayObject {
function get toolTip():String;
function set toolTip(_arg1:String):void;
}
}//package mx.managers
Section 40
//DiRen (DiRen)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public class DiRen extends MovieClip {
public var life:int;
var yn:Boolean;// = false
public var shoot:MovieClip;
public var AA:MovieClip;
public var BB:MovieClip;
public var alert_mc:MovieClip;
public var head_mc:MovieClip;
public var body:MovieClip;
public var overTime:int;
public var over:Boolean;
public static var JingBaoTime:uint;
public function DiRen():void{
yn = false;
super();
this.life = 1;
this.overTime = GuanKa;
}
public function ReMoveJingBao(){
removeEventListener(Event.ENTER_FRAME, onJingBao);
}
private function Who(_arg1){
if (this.name.substring(0, 1) != "a"){
trace((((((("位于图层" + this.parent.parent.name) + ",位置x=") + this.x) + ",y=") + this.y) + "的元件未命名"));
};
removeEventListener(Event.ADDED_TO_STAGE, Who);
}
public function Kill(){
var _local1:*;
var _local2:*;
if (this.life <= 0){
trace("鞭尸");
return;
};
if (this.life > 0){
_local1 = new 死亡敌();
_local2 = new SoundChannel();
_local2 = _local1.play();
this.life--;
Main.oldMap[(this.name + "")].life = (Main.oldMap[(this.name + "")].life - 1);
if (this.life <= 0){
this.gotoAndPlay("over");
Main.oldMap[(this.name + "")].gotoAndPlay("over");
Main.DiRenNum++;
this.alpha = 0.6;
Main.oldMap[this.name].alpha = 0.6;
};
};
}
public function JingBaoX(){
var _local1:*;
var _local2:*;
_local1 = new 警报3声();
_local2 = new SoundChannel();
_local2 = _local1.play();
if (this.currentLabel != "JingBao"){
this.gotoAndPlay("JingBao");
Main.newMap[this.name].gotoAndPlay("JingBao");
this.overTime = GuanKa.jingBaoTime_One;
addEventListener(Event.ENTER_FRAME, onJingBao);
};
}
private function onJingBao(_arg1){
this.overTime--;
if (yn == false){
Main.JingBaoMC.gotoAndPlay("run");
yn = true;
};
if (overTime == 0){
Main.JingBaoMC.gotoAndStop("stop");
yn = false;
};
if (this.life <= 0){
Main.JingBaoMC.gotoAndStop("stop");
removeEventListener(Event.ENTER_FRAME, onJingBao);
} else {
if ((((overTime == 0)) && (Main.UP_YN))){
removeEventListener(Event.ENTER_FRAME, onJingBao);
Main.gameOver = true;
} else {
if ((((Main.UP_YN == false)) && ((overTime == 0)))){
this.gotoAndPlay("run");
Main.newMap[this.name].gotoAndPlay("run");
Main.JingBaoMC.gotoAndStop("stop");
removeEventListener(Event.ENTER_FRAME, onJingBao);
};
};
};
}
}
}//package
Section 41
//DiRen2 (DiRen2)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class DiRen2 extends DiRen {
public function DiRen2(){
addFrameScript(1, frame2, 287, frame288, 419, frame420);
}
function frame288(){
gotoAndPlay((int((Math.random() * 100)) + 20));
}
function frame420(){
gotoAndPlay(2);
}
function frame2(){
gotoAndPlay(int((Math.random() * 50)));
}
}
}//package
Section 42
//FWAd_AS3 (FWAd_AS3)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public class FWAd_AS3 extends Sprite {
public var loadingBar_bar:Sprite;
public var loadingBar:Sprite;
private var timeoutId:int;// = -1
public var _FWAd:Object;
public static const loadFrameworkTimeoutTime:int = 8;
public static const swfFolder:String = (("http://" + swfDomain) + "/fgAds/");
public static const loadFrameworkTimes:int = 2;
public static const ifLoadFrameworkErrorCanPlayGame:Boolean = true;
public static const frameworkSWFPath:String = (swfFolder + "Framework.swf");
public static const swfDomain:String = "www.freegameswow.com";
public static const newsSWFPath:String = (swfFolder + "News.swf");
public static const ifAdFailCanPlayGame:Boolean = true;
public static const ifAddCallBackErrorCanPlayGame:Boolean = false;
public static var xx:int;
public static var hei:int;
public static var loadFrameworkFailed:Boolean;
public static var _stage;
public static var id:String;
public static var xml:XML;
public static var lc_connName:String;
public static var onClickStartBtn:Function;
public static var yy:int;
public static var noShowLogo:Boolean;
public static var loadFrameworkSuccess:Boolean;
public static var frameworkLoader:Loader;
public static var loadGameCompleted:Boolean;
public static var AD_TYPE_CONTAINER:String = "container";
public static var AD_TYPE_LOADING:String = "loading";
public static var noShowForbidden:Boolean;
public static var hasLoadOnce:Boolean = false;
public static var canNotShowAd:Boolean;
public static var checkNewsFirstInitIntervalId:int = -1;
public static var newsLoader:Loader;
public static var frameworkInitFinished:Boolean;
public static var _root;
public static var newsValues:Object = {x:0, y:0};
public static var wid:int;
public static var news_lc:LocalConnection;
public static var ifIsLoadingAdShowStartBtn:Boolean;
public static var restLoadFrameworkTimes:int;
public static var onLoadXML:Function;
public static var lc:LocalConnection;
public static var lc_sendName:String;
public static var adType:String = AD_TYPE_LOADING;
public function FWAd_AS3(_arg1:Object){
timeoutId = -1;
super();
xx = _arg1.x;
yy = _arg1.y;
wid = _arg1.wid;
hei = _arg1.hei;
id = _arg1.id;
adType = _arg1.adType;
ifIsLoadingAdShowStartBtn = _arg1.ifIsLoadingAdShowStartBtn;
noShowLogo = _arg1.noShowLogo;
noShowForbidden = _arg1.noShowForbidden;
if (_arg1.onClickCloseBtn){
onClickStartBtn = _arg1.onClickCloseBtn;
} else {
onClickStartBtn = _arg1.onClickStartBtn;
};
_FWAd = _slot1;
this.addEventListener(Event.ADDED_TO_STAGE, added);
}
private function added(_arg1:Event):void{
var loadingBar_hei:Number;
var loadingBar_x:Number;
var loadingBar_wid:Number;
var loadingBar_bottom:Sprite;
var loadingBar_line:Sprite;
var g:Graphics;
var event = _arg1;
this.removeEventListener(Event.ADDED_TO_STAGE, added);
this.addEventListener(Event.REMOVED_FROM_STAGE, removed);
Security.allowDomain(swfDomain);
Security.allowInsecureDomain(swfDomain);
try {
fscommand("showMenu", "false");
} catch(e:Error) {
};
_root = stage.getChildAt(0);
_stage = stage;
_root.contextMenu = new ContextMenu();
_root.contextMenu.hideBuiltInItems();
try {
fscommand("trapallkeys", "true");
} catch(e:Error) {
};
loadGameCompleted = (_root.loaderInfo.bytesLoaded == _root.loaderInfo.bytesTotal);
if (frameworkLoader){
frameworkInitFinished = true;
checkLoadGameCompleteAndTryStart();
if (frameworkInitFinished){
if (lc){
lc.client = this;
lc.send(lc_sendName, "that2this", "reset");
};
};
} else {
frameworkLoader = new Loader();
frameworkLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadFrameworkComplete);
frameworkLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadFrameworkError);
restLoadFrameworkTimes = loadFrameworkTimes;
loadFramework();
};
this.addChild(frameworkLoader);
loadingBar_hei = 8;
loadingBar_x = 10;
loadingBar_wid = (wid - (2 * loadingBar_x));
loadingBar = new Sprite();
loadingBar.x = loadingBar_x;
loadingBar.y = ((hei - loadingBar_hei) - 6);
this.addChild(loadingBar);
loadingBar_bottom = new Sprite();
loadingBar.addChild(loadingBar_bottom);
loadingBar_bar = new Sprite();
loadingBar.addChild(loadingBar_bar);
loadingBar_line = new Sprite();
loadingBar.addChild(loadingBar_line);
g = loadingBar_bottom.graphics;
g.clear();
g.beginFill(0x333333);
g.drawRect(0, 0, loadingBar_wid, loadingBar_hei);
g.endFill();
g = loadingBar_bar.graphics;
g.clear();
g.beginGradientFill("linear", [0xFFFFFF, 16750950], [1, 1], [63, 0xFF], new Matrix(0.006, 0, 0, 1, 0, 0));
loadingBar_bar.rotation = 90;
g.drawRect(0, -(loadingBar_wid), loadingBar_hei, loadingBar_wid);
g.endFill();
g = loadingBar_line.graphics;
g.clear();
g.lineStyle(1, 0x666666);
g.drawRect(0, 0, loadingBar_wid, loadingBar_hei);
g.endFill();
loadingBar_bar.width = 1;
loadingBar_bar.scaleX = 1;
switch (adType){
case AD_TYPE_LOADING:
break;
default:
loadingBar.visible = false;
break;
};
if (loadGameCompleted){
loadingBar.visible = false;
} else {
_root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadGameProgress);
_root.loaderInfo.addEventListener(Event.COMPLETE, loadGameComplete);
};
}
private function checkIsOurDomain():Boolean{
var _local1:String;
if (_root.loaderInfo){
_local1 = _root.loaderInfo.url.toLowerCase();
return ((((((((_local1.indexOf(".youyouwin.com/") > 0)) || ((_local1.indexOf(".7k7k.com/") > 0)))) || ((_local1.indexOf(".flash8.net/") > 0)))) || ((_local1.indexOf("file:///") == 0))));
};
return (true);
}
private function loadFrameworkComplete(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, checkFrameworkFirstInit);
}
private function checkLoadGameCompleteAndTryStart():void{
if (loadGameCompleted){
if (loadFrameworkFailed){
trace("加载 framework 失败");
if (((ifLoadFrameworkErrorCanPlayGame) || (checkIsOurDomain()))){
trace("自动跳到游戏");
clickStartBtn();
} else {
trace("不自动跳到游戏");
};
} else {
if (canNotShowAd){
if (checkIsOurDomain()){
clickStartBtn();
};
};
};
};
}
public function closeAd():void{
clickStartBtn();
}
private function loadFrameworkError(_arg1:IOErrorEvent):void{
var event = _arg1;
trace(("剩余尝试加载次数:" + restLoadFrameworkTimes));
clearTimeout(timeoutId);
if (--restLoadFrameworkTimes < 0){
loadFrameworkFailed = true;
checkLoadGameCompleteAndTryStart();
} else {
try {
frameworkLoader.close();
} catch(e:Error) {
};
loadFramework();
};
}
private function loadGameProgress(_arg1:ProgressEvent):void{
var _local2:Number;
switch (adType){
case AD_TYPE_LOADING:
_local2 = (_arg1.bytesLoaded / _arg1.bytesTotal);
loadingBar_bar.scaleX = 1;
loadingBar_bar.scaleY = _local2;
break;
default:
_root.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadGameProgress);
break;
};
}
private function clickStartBtn():void{
if (onClickStartBtn != null){
onClickStartBtn();
onClickStartBtn = null;
};
if (this.parent){
this.parent.removeChild(this);
};
this.visible = false;
this.x = -10000;
}
private function removed(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, removed);
_root.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadGameProgress);
_root.loaderInfo.removeEventListener(Event.COMPLETE, loadGameComplete);
onClickStartBtn = null;
if (frameworkInitFinished){
if (lc){
lc.send(lc_sendName, "that2this", "removed");
lc.client = new Object();
};
};
}
private function loadGameComplete(_arg1:Event):void{
hasLoadOnce = false;
loadGameCompleted = true;
loadingBar.visible = false;
checkLoadGameCompleteAndTryStart();
if (frameworkInitFinished){
lc.send(lc_sendName, "that2this", "loadGameCompleted");
};
}
private function loadFrameworkTimeout():void{
trace("loadFrameworkTimeout");
loadFrameworkError(null);
}
private function lc_onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "error":
trace(("lc onStatus 出错 event=" + _arg1));
break;
};
}
public function that2this(... _args):void{
var result:*;
var args = _args;
switch (args[0]){
case "initFinished":
frameworkInitFinished = true;
lc.send(lc_sendName, "that2this", "confirmInitFinished", getFWAdValuesByNameArr(args.slice(1)));
break;
case "AsmMachine.run()":
try {
result = _slot2.runStr16(this, args[2]);
lc.send(lc_sendName, "that2this", "AsmMachine.run()", args[1], "success", result);
} catch(e:Error) {
lc.send(lc_sendName, "that2this", "AsmMachine.run()", args[1], "error", e.toString());
};
break;
case "clickStartBtn":
clickStartBtn();
break;
case "canNotShowAd":
case "noId":
canNotShowAd = true;
checkLoadGameCompleteAndTryStart();
break;
case "xml":
try {
xml = new XML(args[1]);
} catch(e:Error) {
trace(("e=" + e));
};
if (onLoadXML != null){
onLoadXML();
};
break;
};
}
private function checkFrameworkFirstInit(_arg1:Event){
var ran:int;
var movie:AVM1Movie;
var event = _arg1;
try {
movie = (frameworkLoader.content as AVM1Movie);
} catch(e:Error) {
return;
};
ran = Math.round((movie.getBounds(movie).x / 10));
if (ran < -1000){
this.removeEventListener(Event.ENTER_FRAME, checkFrameworkFirstInit);
lc_connName = ("_FWAd" + ran);
lc_sendName = ("_Framework" + ran);
lc = new LocalConnection();
lc.allowDomain("*");
lc.addEventListener(StatusEvent.STATUS, lc_onStatus);
lc.connect(lc_connName);
lc.client = this;
loadFrameworkSuccess = true;
clearTimeout(timeoutId);
checkLoadGameCompleteAndTryStart();
};
}
private function loadFramework():void{
frameworkLoader.load(new URLRequest(frameworkSWFPath));
clearTimeout(timeoutId);
timeoutId = setTimeout(loadFrameworkTimeout, (loadFrameworkTimeoutTime * 1000));
}
private function getFWAdValuesByNameArr(_arg1:Array):Object{
var _local2:Object;
var _local3:String;
_local2 = new Object();
for each (_local3 in _arg1) {
_local2[_local3] = _slot1[_local3];
};
return (_local2);
}
public static function showNews(_arg1:Object=null):void{
var _local2:String;
var _local3:Sprite;
clearInterval(checkNewsFirstInitIntervalId);
newsValues.wid = wid;
for (_local2 in _arg1) {
newsValues[_local2] = _arg1[_local2];
};
if (newsValues.id){
} else {
newsValues.id = (id + "_news");
};
_local3 = ((newsValues.container) || (_root));
if (_local3){
newsLoader = new Loader();
_local3.addChild(newsLoader);
newsLoader.x = newsValues.x;
newsLoader.y = newsValues.y;
newsLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadNewsComplete);
newsLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadNewsError);
newsLoader.load(new URLRequest(newsSWFPath));
} else {
trace("未指定容器,请改成例如: FWAd_AS3.showNews({container:root}");
};
news_lc = new LocalConnection();
news_lc.addEventListener(StatusEvent.STATUS, news_lc_status);
}
public static function checkNewsFirstInit():void{
var ran:int;
var movie:AVM1Movie;
try {
movie = (newsLoader.content as AVM1Movie);
} catch(e:Error) {
return;
};
ran = Math.round((movie.getBounds(movie).x / 10));
if (ran < -1000){
clearInterval(checkNewsFirstInitIntervalId);
news_lc.send(("_News" + ran), "that2this", "newsValues", newsValues);
};
}
public static function showAd(_arg1:Object=null):void{
var _local2:Object;
var _local3:String;
var _local4:Sprite;
_local2 = {x:xx, y:yy, wid:wid, hei:hei, id:id, adType:AD_TYPE_CONTAINER};
for (_local3 in _arg1) {
_local2[_local3] = _arg1[_local3];
};
if (_arg1){
if (((_arg1.starPoolID) && (_arg1.starSubPoolID))){
_local2.id = ((_arg1.starPoolID + "\n") + _arg1.starSubPoolID);
};
};
_local4 = ((_local2.container) || (_root));
if (_local4){
if (_local2.adType == AD_TYPE_LOADING){
if (hasLoadOnce){
trace("缓冲广告不允许短时间内重复初始化");
return;
};
hasLoadOnce = true;
};
} else {
trace("未指定容器,请改成例如: FWAd_AS3.showAd({container:root}");
return;
};
_local4.addChild(new FWAd_AS3(_local2));
}
public static function loadNewsError(_arg1:IOErrorEvent):void{
}
public static function loadNewsComplete(_arg1:Event):void{
clearInterval(checkNewsFirstInitIntervalId);
checkNewsFirstInitIntervalId = setInterval(checkNewsFirstInit, 100);
}
public static function news_lc_status(... _args):void{
}
public static function getParam(_arg1:String):String{
if (xml){
return (String(xml.attribute(_arg1)));
};
trace("xml未加载完毕, 或xml加载失败");
return (null);
}
}
}//package
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
class Runner {
private static var numData:ByteArray = new ByteArray();
private static var offset:int;
private static var codeData:ByteArray;
private function Runner(){
}
private static function readDoubleRev():Number{
numData[3] = codeData[offset++];
numData[2] = codeData[offset++];
numData[1] = codeData[offset++];
numData[0] = codeData[offset++];
numData[7] = codeData[offset++];
numData[6] = codeData[offset++];
numData[5] = codeData[offset++];
numData[4] = codeData[offset++];
numData.position = 0;
return (numData.readDouble());
}
public static function run(_arg1, _arg2:ByteArray){
var _local3:Array;
var _local4:int;
var _local5:Array;
var _local6:Array;
var _local7:Array;
var _local8:int;
var _local9:int;
var _local10:String;
var _local11:int;
var _local12:int;
var _local13:String;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:int;
var _local19:String;
var _local20:String;
var _local21:int;
var _local22:Class;
var _local23:*;
var _local24:int;
var _local25:int;
var _local26:int;
var _local27:int;
codeData = _arg2;
if (codeData.length > 0){
} else {
return;
};
codeData.uncompress();
_local3 = new Array();
_local4 = codeData.readShort();
_local5 = codeData.readObject();
_local6 = codeData.readObject();
if (_local5){
_local9 = _local5.length;
while (--_local9 >= 0) {
_local10 = _local5[_local9];
if (_local10 === null){
} else {
switch (_local10){
case "this":
case "'this'":
_local5[_local9] = _arg1;
break;
case "arguments":
case "'arguments'":
throw (new Error("暂不支持 arguments"));
case "super":
case "'super'":
throw (new Error("暂不支持 super"));
case "_root":
_local5[_local9] = _arg1.root;
break;
case "_parent":
_local5[_local9] = _arg1.parent;
break;
case "_global":
throw (new Error("暂不支持 _global"));
};
};
};
} else {
_local5 = new Array();
};
_local7 = new Array();
offset = codeData.position;
_local8 = codeData.length;
while (offset < _local8) {
_local26 = codeData[offset++];
if (_local26 >= 128){
var _temp1 = codeData[offset++];
_local25 = (_temp1 | (codeData[offset++] << 8));
} else {
_local25 = 0;
};
switch (_local26){
case 0:
break;
case 4:
if ((_arg1 is MovieClip)){
_arg1.nextFrame();
};
break;
case 5:
if ((_arg1 is MovieClip)){
_arg1.prevFrame();
};
break;
case 6:
if ((_arg1 is MovieClip)){
_arg1.play();
};
break;
case 7:
if ((_arg1 is MovieClip)){
_arg1.stop();
};
break;
case 11:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 - _local17);
_local3.push(_local15);
break;
case 12:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 * _local17);
_local3.push(_local15);
break;
case 13:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 / _local17);
_local3.push(_local15);
break;
case 16:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = ((_local16) && (_local17));
_local3.push(_local15);
break;
case 17:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = ((_local16) || (_local17));
_local3.push(_local15);
break;
case 18:
_local15 = _local3.pop();
_local15 = !(_local15);
_local3.push(_local15);
break;
case 19:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 == _local17);
_local3.push(_local15);
break;
case 23:
_local3.pop();
break;
case 24:
_local15 = _local3.pop();
_local15 = int(_local15);
_local3.push(_local15);
break;
case 28:
cacheVariable(_local3);
break;
case 29:
throw (new Error("不支持 setVariable"));
case 38:
_local15 = _local3.pop();
trace(_local15);
break;
case 48:
_local15 = _local3.pop();
_local15 = int(_local15);
if (_local15 <= 0){
_local15 = 0;
} else {
_local15 = int((Math.random() * _local15));
};
_local3.push(_local15);
break;
case 50:
_local15 = _local3.pop();
_local15 = _local15.charCodeAt(0);
_local3.push(_local15);
break;
case 51:
_local15 = _local3.pop();
_local15 = String.fromCharCode(_local15);
_local3.push(_local15);
break;
case 52:
_local15 = getTimer();
_local3.push(_local15);
break;
case 61:
_local20 = getFNameAndArgs(_local3, _local7);
_local15 = _arg1[_local20].apply(_arg1, _local7);
_local3.push(_local15);
break;
case 62:
_local15 = _local3.pop();
return (_local15);
case 63:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 % _local17);
_local3.push(_local15);
break;
case 64:
_local20 = getFNameAndArgs(_local3, _local7);
_local15 = newClass(_local20, _local7);
_local3.push(_local15);
break;
case 66:
_local21 = _local3.pop();
_local15 = new Array();
while (--_local21 >= 0) {
_local15.push(_local3.pop());
};
_local3.push(_local15);
break;
case 67:
_local21 = _local3.pop();
_local15 = new Object();
while (--_local21 >= 0) {
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15[_local16] = _local17;
};
_local3.push(_local15);
break;
case 68:
_local15 = _local3.pop();
_local15 = typeof(_local15);
_local3.push(_local15);
break;
case 71:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 + _local17);
_local3.push(_local15);
break;
case 72:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 < _local17);
_local3.push(_local15);
break;
case 73:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 == _local17);
_local3.push(_local15);
break;
case 74:
_local15 = _local3.pop();
_local15 = Number(_local15);
_local3.push(_local15);
break;
case 75:
_local15 = _local3.pop();
_local15 = String(_local15);
_local3.push(_local15);
break;
case 76:
_local15 = _local3.pop();
_local3.push(_local15);
_local3.push(_local15);
break;
case 77:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local3.push(_local17);
_local3.push(_local16);
break;
case 78:
cacheMember(_local3);
break;
case 79:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = _local3.pop();
_local15[_local16] = _local17;
break;
case 80:
_local15 = _local3.pop();
_local15++;
_local3.push(_local15);
break;
case 81:
_local15 = _local3.pop();
_local15--;
_local3.push(_local15);
break;
case 82:
_local20 = _local3.pop();
_local23 = _local3.pop();
_local21 = _local3.pop();
_local15 = new Array();
while (--_local21 >= 0) {
_local15.push(_local3.pop());
};
_local15 = _local23[_local20].apply(_local23, _local15);
_local3.push(_local15);
break;
case 83:
_local13 = cacheMember(_local3);
_local3.pop();
_local3.push(_local13);
_local20 = getFNameAndArgs(_local3, _local7);
_local15 = newClass(_local20, _local7);
_local3.push(_local15);
break;
case 84:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 is _local17);
_local3.push(_local15);
break;
case 85:
_local14 = _local3.pop();
_local3.push(null);
for (_local13 in _local14) {
_local3.push(_local13);
};
break;
case 96:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 & _local17);
_local3.push(_local15);
break;
case 97:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 | _local17);
_local3.push(_local15);
break;
case 98:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 ^ _local17);
_local3.push(_local15);
break;
case 99:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 << _local17);
_local3.push(_local15);
break;
case 100:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 >> _local17);
_local3.push(_local15);
break;
case 101:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 >>> _local17);
_local3.push(_local15);
break;
case 102:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 === _local17);
_local3.push(_local15);
break;
case 103:
_local17 = _local3.pop();
_local16 = _local3.pop();
_local15 = (_local16 > _local17);
_local3.push(_local15);
break;
case 129:
if ((_arg1 is MovieClip)){
var _temp2 = codeData[offset++];
_arg1.gotoAndStop(((_temp2 | (codeData[offset++] << 8)) + 1));
} else {
offset = (offset + 2);
};
break;
case 131:
_local16 = getStr();
_local17 = getStr();
if (_local16.indexOf("FSCommand:") == 0){
_local16 = _local16.substr(10);
fscommand(_local16, _local17);
} else {
if (_local17.indexOf("_level") == 0){
} else {
navigateToURL(new URLRequest(_local16), _local17);
};
};
break;
case 135:
_local18 = codeData[offset++];
_local15 = _local3[(_local3.length - 1)];
_local5[_local18] = _local15;
break;
case 150:
_local27 = (offset + _local25);
while (offset < _local27) {
switch (codeData[offset++]){
case 0:
_local3.push(getStr());
break;
case 1:
_local3.push(readFloatRev());
break;
case 2:
_local3.push(null);
break;
case 3:
_local3.push(undefined);
break;
case 4:
_local3.push(_local5[codeData[offset++]]);
break;
case 5:
_local3.push((codeData[offset++]) ? true : false);
break;
case 6:
_local3.push(readDoubleRev());
break;
case 7:
var _temp3 = codeData[offset++];
var _temp4 = (_temp3 | (codeData[offset++] << 8));
var _temp5 = (_temp4 | (codeData[offset++] << 16));
_local3.push((_temp5 | (codeData[offset++] << 24)));
break;
case 8:
_local3.push(_local6[codeData[offset++]]);
break;
case 9:
var _temp6 = codeData[offset++];
_local3.push(_local6[(_temp6 | (codeData[offset++] << 8))]);
break;
default:
throw (new Error("未处理的 push type"));
};
};
break;
case 153:
var _temp7 = codeData[offset++];
_local24 = (_temp7 | (codeData[offset++] << 8));
if ((_local24 >>> 15)){
_local24 = (_local24 | 4294901760);
};
offset = (offset + _local24);
break;
case 157:
_local15 = _local3.pop();
if (_local15){
var _temp8 = codeData[offset++];
_local24 = (_temp8 | (codeData[offset++] << 8));
if ((_local24 >>> 15)){
_local24 = (_local24 | 4294901760);
};
offset = (offset + _local24);
} else {
offset = (offset + 2);
};
break;
default:
throw (new Error(("暂不支持的 op: " + _local26)));
};
};
return (null);
}
private static function varName2Obj(_arg1:String){
var varName = _arg1;
try {
return (getDefinitionByName(varName));
} catch(e:Error) {
};
try {
return (getDefinitionByName(("flash.display." + varName)));
} catch(e:Error) {
};
try {
return (getDefinitionByName(("flash.text." + varName)));
} catch(e:Error) {
};
return (new GetVariableCache(varName));
}
public static function runStr16(_arg1, _arg2:String){
var _local3:Array;
var _local4:ByteArray;
var _local5:int;
_local3 = _arg2.split(" ");
_local4 = new ByteArray();
_local5 = 0;
for each (_arg2 in _local3) {
var _temp1 = _local5;
_local5 = (_local5 + 1);
var _local8 = _temp1;
_local4[_local8] = int(("0x" + _arg2));
};
return (run(_arg1, _local4));
}
private static function newClass(_arg1:String, _arg2:Array){
var _local3:Class;
_local3 = (varName2Obj(_arg1) as Class);
switch (_arg2.length){
case 0:
return (new (_local3));
case 1:
return (new _local3(_arg2[0]));
case 2:
return (new _local3(_arg2[0], _arg2[1]));
case 3:
return (new _local3(_arg2[0], _arg2[1], _arg2[2]));
case 4:
return (new _local3(_arg2[0], _arg2[1], _arg2[2], _arg2[3]));
case 5:
return (new _local3(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4]));
case 6:
return (new _local3(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5]));
case 7:
return (new _local3(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6]));
case 8:
return (new _local3(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7]));
case 9:
return (new _local3(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7], _arg2[8]));
case 10:
return (new _local3(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7], _arg2[8], _arg2[9]));
default:
throw (new Error(("暂不支持的参数个数: " + _arg2.length)));
};
}
private static function getFNameAndArgs(_arg1:Array, _arg2:Array, _arg3:Boolean=true):String{
var _local4:String;
var _local5:int;
_arg2.splice(0, _arg2.length);
if (_arg3){
_local4 = _arg1.pop();
};
_local5 = _arg1.pop();
while (--_local5 >= 0) {
_arg2.push(_arg1.pop());
};
return (_local4);
}
private static function getStr():String{
var _local1:int;
if (codeData[offset]){
_local1 = 1;
do {
var _temp1 = _local1;
_local1 = (_local1 + 1);
} while (codeData[(offset + _temp1)]);
codeData.position = offset;
offset = (offset + _local1);
return (codeData.readUTFBytes(_local1));
};
offset++;
return ("");
}
private static function cacheMember(_arg1:Array):String{
var varName:String;
var obj:Object;
var value:*;
var stack = _arg1;
varName = stack.pop();
obj = stack.pop();
if ((obj is _slot3)){
varName = (((obj as _slot3).varName + ".") + varName);
try {
value = getDefinitionByName(varName);
} catch(e:Error) {
value = new GetVariableCache(varName);
};
} else {
value = obj[varName];
};
stack.push(value);
return (varName);
}
private static function readFloatRev():Number{
numData[3] = codeData[offset++];
numData[2] = codeData[offset++];
numData[1] = codeData[offset++];
numData[0] = codeData[offset++];
numData.position = 0;
return (numData.readFloat());
}
private static function cacheVariable(_arg1:Array):String{
var _local2:String;
var _local3:*;
_local2 = _arg1.pop();
_local3 = varName2Obj(_local2);
_arg1.push(_local3);
return (_local2);
}
}
class GetVariableCache {
public var varName:String;
private function GetVariableCache(_arg1:String){
varName = _arg1;
}
}
Section 43
//GuanKa (GuanKa)
package {
public class GuanKa {
public static var jingBaoTime:uint;
public static var jingBaoTime_One:uint;
public static var DanYao:uint;
public static var DanYao_All:uint;
public static var wuXian:Boolean = false;
public static var DanYao_One:uint;
public static function GuanKaData(){
if (Main.guanKaNum == 1){
DanYao_All = 99999999;
DanYao_One = 6;
DanYao = DanYao_One;
jingBaoTime_One = (Main.FRAME * 1.5);
jingBaoTime = (Main.FRAME * 9);
Main.guanKaName = "in the bridge";
} else {
if (Main.guanKaNum == 2){
DanYao_All = 99999999;
DanYao_One = 6;
DanYao = DanYao_One;
jingBaoTime_One = (Main.FRAME * 1.5);
jingBaoTime = (Main.FRAME * 7);
Main.guanKaName = "in the presidential palace";
} else {
if (Main.guanKaNum == 3){
DanYao_All = 99999999;
DanYao_One = 6;
DanYao = DanYao_One;
jingBaoTime_One = (Main.FRAME * 1.4);
jingBaoTime = (Main.FRAME * 6);
Main.guanKaName = "in GuanDong Bank";
} else {
if (Main.guanKaNum == 4){
DanYao_All = 99999999;
DanYao_One = 6;
DanYao = DanYao_One;
jingBaoTime_One = (Main.FRAME * 1.3);
jingBaoTime = (Main.FRAME * 5);
Main.guanKaName = "in ShangHai Bund";
} else {
if (Main.guanKaNum == 5){
DanYao_All = 99999999;
DanYao_One = 6;
DanYao = DanYao_One;
jingBaoTime_One = (Main.FRAME * 1.2);
jingBaoTime = (Main.FRAME * 4);
Main.guanKaName = "in Yellow Crane Tower";
} else {
if (Main.guanKaNum == 6){
DanYao_All = 99999999;
DanYao_One = 6;
DanYao = DanYao_One;
jingBaoTime_One = (Main.FRAME * 1);
jingBaoTime = (Main.FRAME * 4);
Main.guanKaName = "in Northeast";
};
};
};
};
};
};
if (_slot1.wuXian){
trace("无限模式");
jingBaoTime_One = (Main.FRAME * 0.6);
jingBaoTime = (Main.FRAME * 4);
};
}
}
}//package
Section 44
//Help (Help)
package {
import flash.events.*;
import flash.display.*;
public class Help extends SimpleButton {
public function Help(){
this.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(_arg1){
if (Main.help.visible){
Main.help.visible = false;
} else {
Main.help.visible = true;
};
}
}
}//package
Section 45
//LoadingBar (LoadingBar)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LoadingBar extends MovieClip {
public var bar:MovieClip;
public var txt:TextField;
}
}//package
Section 46
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
public class Main extends MovieClip {
public var XX:MovieClip;
public var GuoChang_mc:MovieClip;
public var JJ_mc:MovieClip;
public var Name_txt:TextField;
public var CeShi_mc:MovieClip;
public var restar_btn:restart;
public var newMap_mc:MovieClip;
public var JJ_Black:MovieClip;
public var JujiQiang_mc:MovieClip;
public var help_mc:MovieClip;
private var XXX:Boolean;// = false
public var 开始按钮_btn:SimpleButton;
public var JingBao_mc:MovieClip;
public var oldMap_mc:MovieClip;
public var wuDing_mc:MovieClip;
public var BaoTou_mc:MovieClip;
public var GameOver2_mc:MovieClip;
public var rePlay_mc:MovieClip;
public var DanJia_mc:MovieClip;
public var XxX_txt:TextField;
public static var help:MovieClip;
public static var guanKaName:String;
public static var SeJiNum:int;
public static var JingBaoTime:int;
public static var name:String;
public static var time:int;
public static var scale:int;
public static var newGameX2:Boolean = false;
public static var FRAME:int = 25;
public static var newMap:MovieClip;
public static var pointMC:MovieClip;
public static var gameOver:Boolean = false;
public static var JingBaoMC:MovieClip;
public static var DiRenNum:int;
public static var JJ_YN:Boolean;
public static var guanKaNum;
public static var UP_YN:Boolean;
public static var DiRenAllNum;
public static var oldMap:MovieClip;
public static var JiFenNum:int = 0;
public static var newGameX:Boolean = true;
public function Main():void{
var _local1:*;
var _local2:*;
XXX = false;
super();
_local1 = new 背景音();
_local2 = new SoundChannel();
_local2 = _local1.play(0, 99999);
stop();
FWAd_AS3.showAd({container:this, x:0, y:0, wid:600, hei:500, starPoolID:"13381", starSubPoolID:"37", adType:"loading", onClickStartBtn:fwAd_onClickStartBtn});
gotoAndPlay("start");
addEventListener(Event.ENTER_FRAME, GameStart);
}
private function restar(_arg1){
if (this.currentFrame == 6){
stop();
removeEventListener(Event.ENTER_FRAME, restar);
restar_btn.addEventListener(MouseEvent.CLICK, restar2);
};
}
private function GameOver(){
var _local1:*;
var _local2:*;
_local1 = new 死亡();
_local2 = new SoundChannel();
_local2 = _local1.play();
removeEventListener(Event.ENTER_FRAME, TimeNum);
removeEventListener(Event.ENTER_FRAME, NewMapMove);
GuoChang_mc.removeEventListener(MouseEvent.MOUSE_DOWN, nextGame);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, KillYou);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, OpenJJ);
removeEventListener(Event.ENTER_FRAME, JingBao);
ReMove();
Mouse.show();
gotoAndPlay("over");
addEventListener(Event.ENTER_FRAME, restar);
}
private function Game(_arg1:int){
var _local2:String;
var _local3:Class;
var _local4:MovieClip;
Mouse.hide();
GuoChang_mc.x = -650;
GuoChang_mc.gotoAndStop("stop");
_slot1.JingBaoMC = JingBao_mc;
_local2 = ("map_" + _arg1);
_local3 = (getDefinitionByName(_local2) as Class);
_local4 = (new (_local3) as MovieClip);
oldMap_mc.addChild(_local4);
_slot1.oldMap = _local4;
copyMap(_local4);
GameInit();
_slot1.newGameX = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, OpenJJ);
addEventListener(Event.ENTER_FRAME, TimeNum);
}
private function Loaded(_arg1=null){
if (this.currentFrame == 6){
gotoAndStop("start");
} else {
if (this.currentLabel == "start"){
removeEventListener(Event.ENTER_FRAME, Loaded);
addEventListener(Event.ENTER_FRAME, GameStart);
} else {
if (this.currentFrame == 12){
stop();
removeEventListener(Event.ENTER_FRAME, Loaded);
newGame();
};
};
};
}
private function RePlay(_arg1=null){
while (oldMap_mc.numChildren > 0) {
oldMap_mc.removeChildAt(0);
};
while (newMap_mc.numChildren > 0) {
newMap_mc.removeChildAt(0);
};
Game(guanKaNum);
}
function fwAd_onClickStartBtn():void{
trace("start game");
XX.visible = false;
}
private function RenShu():int{
var _local1:int;
var _local2:*;
var _local3:*;
_local1 = 0;
_local2 = 0;
while (_local2 < oldMap.numChildren) {
_local3 = oldMap.getChildAt(_local2);
if ((_local3 is DiRen)){
_local1++;
};
_local2++;
};
trace(("关卡敌人数:" + _local1));
return (_local1);
}
private function OpenJJ(_arg1:KeyboardEvent){
var _local2:*;
var _local3:*;
if ((((_arg1.keyCode == 65)) && ((wuDing_mc.currentLabel == "upStop")))){
_local2 = new 躲避();
_local3 = new SoundChannel();
_local3 = _local2.play();
UP_YN = false;
wuDing_mc.gotoAndPlay("down");
JJ_Black.gotoAndStop("off");
JJ_Black.visible = false;
newMap_mc.visible = false;
_slot1.JJ_YN = false;
stage.removeEventListener(MouseEvent.MOUSE_DOWN, KillYou);
removeEventListener(Event.ENTER_FRAME, JingBao);
} else {
if ((((_arg1.keyCode == 83)) && ((wuDing_mc.currentLabel == "downStop")))){
_local2 = new 躲避();
_local3 = new SoundChannel();
_local3 = _local2.play();
UP_YN = true;
wuDing_mc.gotoAndPlay("up");
JJ_Black.gotoAndStop("off");
JJ_Black.visible = true;
_slot1.JJ_YN = true;
addEventListener(Event.ENTER_FRAME, JingBao);
} else {
if ((((_arg1.keyCode == 32)) && ((wuDing_mc.currentLabel == "upStop")))){
if (_slot1.JJ_YN){
_slot1.JJ_YN = false;
newMap_mc.visible = true;
JJ_Black.gotoAndPlay("stop");
NewMapMove();
stage.addEventListener(MouseEvent.MOUSE_DOWN, KillYou);
} else {
_slot1.JJ_YN = true;
newMap_mc.visible = false;
JJ_Black.gotoAndStop("off");
stage.removeEventListener(MouseEvent.MOUSE_DOWN, KillYou);
};
} else {
if (_arg1.keyCode == 82){
_local2 = new 换子弹2();
_local3 = new SoundChannel();
_local3 = _local2.play();
stage.removeEventListener(MouseEvent.MOUSE_DOWN, KillYou);
_slot1.JJ_YN = true;
newMap_mc.visible = false;
JJ_Black.gotoAndStop("off");
if ((((GuanKa.DanYao_All >= GuanKa.DanYao_One)) || (((GuanKa.DanYao_All + GuanKa.DanYao) >= GuanKa.DanYao_One)))){
GuanKa.DanYao_All = (GuanKa.DanYao_All - (GuanKa.DanYao_One - GuanKa.DanYao));
GuanKa.DanYao = GuanKa.DanYao_One;
} else {
GuanKa.DanYao = (GuanKa.DanYao + GuanKa.DanYao_All);
GuanKa.DanYao_All = 0;
};
};
};
};
};
}
private function GameStart(_arg1:Event=null){
trace(("this.currentFrame = " + this.currentFrame));
if (this.currentFrame == 2){
stop();
removeEventListener(Event.ENTER_FRAME, GameStart);
开始按钮_btn.addEventListener(MouseEvent.MOUSE_DOWN, 开始按钮);
_slot1.help = help_mc;
_slot1.help.visible = false;
if (XXX){
XX.visible = false;
};
};
}
private function TimeNum(_arg1){
_slot1.time++;
CeShi_mc.DanYao_txt.text = ((GuanKa.DanYao + "/") + GuanKa.DanYao_All);
CeShi_mc.RenShu_txt.text = (((_slot1.DiRenAllNum - _slot1.DiRenNum) + "/") + _slot1.DiRenAllNum);
CeShi_mc.MingZhong_txt.text = (int(((_slot1.DiRenNum / _slot1.SeJiNum) * 100)) + "%");
CeShi_mc.JiFen_txt.text = _slot1.JiFenNum;
DanJia_mc.gotoAndStop(("z" + GuanKa.DanYao));
JujiQiang_mc.x = mouseX;
if ((((mouseY > 100)) && ((mouseY < 400)))){
JujiQiang_mc.y = (300 + (mouseY / 5));
};
if (gameOver){
};
}
public function GameInit(){
if (_slot1.newGameX){
trace("GameInit()");
Mouse.hide();
_slot1.time = 0;
_slot1.scale = 4;
_slot1.JJ_YN = true;
JJ_Black.gotoAndStop("off");
JJ_Black.visible = true;
wuDing_mc.gotoAndStop("upStop");
newMap_mc.visible = false;
_slot1.DiRenAllNum = RenShu();
_slot1.DiRenNum = 0;
_slot1.SeJiNum = 0;
GuanKa.GuanKaData();
UP_YN = true;
addEventListener(Event.ENTER_FRAME, JingBao);
} else {
trace("GameInit()");
Mouse.hide();
_slot1.time = 0;
_slot1.scale = 4;
_slot1.JJ_YN = false;
JJ_Black.gotoAndStop("off");
JJ_Black.visible = false;
wuDing_mc.gotoAndStop("downStop");
newMap_mc.visible = false;
_slot1.DiRenAllNum = RenShu();
_slot1.DiRenNum = 0;
_slot1.SeJiNum = 0;
GuanKa.GuanKaData();
};
}
private function JingBao(_arg1=null){
var _local2:uint;
var _local3:*;
if (((((_slot1.time % GuanKa.jingBaoTime) == 0)) && (_slot1.newGameX2))){
_local2 = (Math.random() * oldMap.numChildren);
_local3 = oldMap.getChildAt(_local2);
if ((((_local3 is DiRen)) && ((_local3.life > 0)))){
_local3.JingBaoX();
} else {
_local2 = (Math.random() * oldMap.numChildren);
_local3 = oldMap.getChildAt(_local2);
if ((((_local3 is DiRen)) && ((_local3.life > 0)))){
_local3.JingBaoX();
};
};
};
}
private function nextGame2(_arg1){
GameOver2_mc.x = 650;
GameOver2_mc.y = 0;
GameOver2_mc.next_mc.removeEventListener(MouseEvent.MOUSE_DOWN, nextGame2);
Game(guanKaNum);
}
private function GuoChang(){
Mouse.show();
GuoChang_mc.x = 0;
GuoChang_mc.gotoAndPlay("play");
GuoChang_mc.name_txt.text = _slot1.name;
GuoChang_mc.add_txt.text = _slot1.guanKaName;
GuoChang_mc.map_mc.gotoAndStop(("m" + _slot1.guanKaNum));
GuoChang_mc.addEventListener(MouseEvent.MOUSE_DOWN, nextGame);
}
private function newGame(){
Mouse.hide();
_slot1.time = 0;
_slot1.guanKaNum = 1;
GuanKa.GuanKaData();
_slot1.scale = 4;
_slot1.JJ_YN = false;
wuDing_mc.gotoAndStop("downStop");
_slot1.SeJiNum = 0;
Game(guanKaNum);
rePlay_mc.addEventListener(MouseEvent.CLICK, RePlay);
}
private function Win(){
if (_slot1.DiRenAllNum == _slot1.DiRenNum){
if (GuanKa.wuXian){
trace(("双倍奖励" + (((150000 * _slot1.DiRenAllNum) / _slot1.SeJiNum) * 2)));
_slot1.JiFenNum = (_slot1.JiFenNum + (((150000 * _slot1.DiRenAllNum) / _slot1.SeJiNum) * 2));
} else {
trace(("奖励" + ((150000 * _slot1.DiRenAllNum) / _slot1.SeJiNum)));
_slot1.JiFenNum = (_slot1.JiFenNum + ((150000 * _slot1.DiRenAllNum) / _slot1.SeJiNum));
};
removeEventListener(Event.ENTER_FRAME, TimeNum);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, KillYou);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, OpenJJ);
removeEventListener(Event.ENTER_FRAME, JingBao);
ReMove();
GuoChang();
};
}
private function NewMapMove(_arg1=null){
var _local2:int;
var _local3:int;
_local2 = int((mouseX * (scale - 1)));
_local3 = int((mouseY * (scale - 1)));
newMap_mc.x = (0 - _local2);
newMap_mc.y = (0 - _local3);
JJ_Black.x = mouseX;
JJ_Black.y = mouseY;
JJ_mc.x = (JJ_Black.x + JJ_Black.JJJ_mc.x);
JJ_mc.y = (JJ_Black.y + JJ_Black.JJJ_mc.y);
}
private function restar2(_arg1){
restar_btn.removeEventListener(MouseEvent.CLICK, restar2);
_slot1.gameOver = false;
GuanKa.wuXian = false;
_slot1.JiFenNum = 0;
gotoAndPlay("start");
this.XXX = true;
addEventListener(Event.ENTER_FRAME, GameStart);
}
private function copyMap(_arg1:MovieClip):void{
var _local2:Class;
var _local3:*;
_local2 = (getDefinitionByName(getQualifiedClassName(_arg1)) as Class);
_local3 = (new (_local2) as MovieClip);
_local3.scaleX = (_local3.scaleY = _slot1.scale);
newMap_mc.addChild(_local3);
_slot1.newMap = _local3;
addEventListener(Event.ENTER_FRAME, NewMapMove);
}
private function 开始按钮(_arg1=null){
_slot1.name = Name_txt.text;
trace(("姓名:" + Name_txt.text));
开始按钮_btn.removeEventListener(MouseEvent.MOUSE_DOWN, 开始按钮);
gotoAndPlay("game");
addEventListener(Event.ENTER_FRAME, Loaded);
}
private function KillYou(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if ((((GuanKa.DanYao > 0)) && ((JJ_Black.currentLabel == "stop")))){
_local2 = new 开枪();
_local3 = new SoundChannel();
_local3 = _local2.play();
_slot1.newGameX2 = true;
_slot1.SeJiNum++;
_local4 = (_slot1.newMap.numChildren - 1);
while (_local4 >= 0) {
JJ_Black.gotoAndPlay("run");
_local5 = _slot1.newMap.getChildAt(_local4);
if ((((_local5 is ZhangAi)) && (_local5.hitTestPoint(mouseX, mouseY, true)))){
} else {
if ((((_local5 is DiRen)) && (_local5.AA.hitTestPoint(mouseX, mouseY, true)))){
trace((_local5.name + "爆头"));
if (_local5.life > 0){
BaoTou_mc.x = (mouseX - 20);
BaoTou_mc.y = (mouseY - 5);
BaoTou_mc.gotoAndPlay("run");
_slot1.JiFenNum = (_slot1.JiFenNum + 2000);
(_local5 as DiRen).Kill();
_local5.life = -1;
} else {
_slot1.JiFenNum = (_slot1.JiFenNum + 100);
_local5.x = (_local5.x + ((Math.random() * 4) - 2));
_local5.y = (_local5.y + ((Math.random() * 4) - 2));
_slot1.SeJiNum--;
};
} else {
if ((((_local5 is DiRen)) && (_local5.BB.hitTestPoint(mouseX, mouseY, true)))){
trace((_local5.name + "击毙"));
if (_local5.life > 0){
_slot1.JiFenNum = (_slot1.JiFenNum + 400);
(_local5 as DiRen).Kill();
_local5.life = -1;
} else {
_slot1.JiFenNum = (_slot1.JiFenNum + 100);
_local5.x = (_local5.x + ((Math.random() * 4) - 2));
_local5.y = (_local5.y + ((Math.random() * 4) - 2));
_slot1.SeJiNum--;
};
};
};
};
_local4--;
};
Win();
};
}
private function ReMove(_arg1=null){
while (oldMap_mc.numChildren > 0) {
if ((oldMap_mc.getChildAt(0) is DiRen)){
oldMap_mc.getChildAt(0).ReMoveJingBao();
};
oldMap_mc.removeChildAt(0);
};
while (newMap_mc.numChildren > 0) {
newMap_mc.removeChildAt(0);
};
}
private function nextGame(_arg1){
if (guanKaNum == 6){
guanKaNum = 1;
GuanKa.wuXian = true;
GameOver2_mc.x = 0;
GameOver2_mc.y = 0;
GuoChang_mc.removeEventListener(MouseEvent.MOUSE_DOWN, nextGame);
GameOver2_mc.next_mc.addEventListener(MouseEvent.MOUSE_DOWN, nextGame2);
} else {
Game(++guanKaNum);
GuoChang_mc.removeEventListener(MouseEvent.MOUSE_DOWN, nextGame);
};
}
}
}//package
Section 47
//map_1 (map_1)
package {
import flash.display.*;
public dynamic class map_1 extends MovieClip {
public var a6:敌人C;
public var a4:敌人C;
public var a9:敌人C;
public var a5:敌人C;
public var a8:敌人C;
public var XX1:元件1;
public var a13:敌人C;
public var a14:敌人A;
public var a15:敌人C;
public var a11:敌人C;
public var a10:敌人A;
public var a12:敌人A;
public var a2:敌人C;
public var a3:敌人C;
public var a7:敌人C;
public var a1:敌人C;
}
}//package
Section 48
//map_2 (map_2)
package {
import flash.display.*;
public dynamic class map_2 extends MovieClip {
public var a6:敌人C;
public var a4:敌人C;
public var a9:敌人A;
public var a5:敌人C;
public var a8:敌人C;
public var a13:敌人B;
public var a14:敌人B;
public var a15:敌人B;
public var a11:敌人A;
public var a10:敌人A;
public var a12:敌人A;
public var a2:敌人C;
public var a3:敌人C;
public var a7:敌人C;
public var a1:敌人C;
}
}//package
Section 49
//map_3 (map_3)
package {
import flash.display.*;
public dynamic class map_3 extends MovieClip {
public var a2:敌人C;
public var a4:敌人C;
public var a6:敌人B;
public var a9:敌人B;
public var a5:敌人A;
public var a8:敌人B;
public var a13:敌人B;
public var a14:敌人B;
public var a15:敌人B;
public var a11:敌人B;
public var a10:敌人B;
public var a12:敌人B;
public var a16:敌人A;
public var a222:敌人B;
public var a3:敌人C;
public var a7:敌人B;
public var a1:敌人C;
}
}//package
Section 50
//map_4 (map_4)
package {
import flash.display.*;
public dynamic class map_4 extends MovieClip {
public var a6:敌人A;
public var a4:敌人C;
public var a9:敌人B;
public var a5:敌人C;
public var a8:敌人B;
public var a13:敌人B;
public var a14:敌人C;
public var a15:敌人C;
public var a18:敌人B;
public var a19:敌人B;
public var a17:敌人A;
public var a11:敌人B;
public var a20:敌人B;
public var a10:敌人B;
public var a12:敌人B;
public var a16:敌人A;
public var a2:敌人A;
public var a3:敌人A;
public var a7:敌人B;
public var a1:敌人A;
}
}//package
Section 51
//map_5 (map_5)
package {
import flash.display.*;
public dynamic class map_5 extends MovieClip {
public var a2:敌人A;
public var a4:敌人A;
public var a6:敌人A;
public var a9:敌人C;
public var a5:敌人A;
public var a8:敌人C;
public var a13:敌人C;
public var a14:敌人C;
public var a15:敌人C;
public var a18:敌人C;
public var a19:敌人C;
public var a17:敌人C;
public var a11:敌人C;
public var a20:敌人C;
public var a10:敌人C;
public var a12:敌人C;
public var a16:敌人C;
public var a101:敌人C;
public var a3:敌人A;
public var a7:敌人A;
public var a1:敌人A;
}
}//package
Section 52
//map_6 (map_6)
package {
import flash.display.*;
public dynamic class map_6 extends MovieClip {
public var a6:敌人B;
public var a4:敌人B;
public var a9:敌人A;
public var a5:敌人B;
public var a8:敌人B;
public var a13:敌人C;
public var a14:敌人A;
public var a15:敌人B;
public var a18:敌人B;
public var a19:敌人B;
public var a17:敌人B;
public var a11:敌人A;
public var a27:敌人A;
public var a23:敌人A;
public var a24:敌人C;
public var a25:敌人B;
public var a10:敌人C;
public var a22:敌人C;
public var a28:敌人A;
public var a20:敌人B;
public var a12:敌人A;
public var a16:敌人B;
public var a26:敌人B;
public var a21:敌人C;
public var a30:敌人B;
public var a2:敌人A;
public var a3:敌人A;
public var a7:敌人B;
public var a1:敌人C;
}
}//package
Section 53
//MaskMc (MaskMc)
package {
import mx.flash.*;
public dynamic class MaskMc extends UIMovieClip {
}
}//package
Section 54
//PicBg (PicBg)
package {
import mx.flash.*;
public dynamic class PicBg extends UIMovieClip {
}
}//package
Section 55
//restart (restart)
package {
import flash.display.*;
public class restart extends SimpleButton {
public function onCLICK(_arg1){
}
}
}//package
Section 56
//shootsnd (shootsnd)
package {
import flash.media.*;
public dynamic class shootsnd extends Sound {
}
}//package
Section 57
//socreSubmit (socreSubmit)
package {
import flash.events.*;
import flash.display.*;
public class socreSubmit extends SimpleButton {
private var scoreObj:Object;
public function socreSubmit(){
this.addEventListener(MouseEvent.CLICK, clickHandler);
}
private function clickHandler(_arg1:Event):void{
var _local2:*;
_local2 = Main.serviceHold;
if (_local2){
_local2.showRefer(Main.JiFenNum);
};
}
}
}//package
Section 58
//TextShow (TextShow)
package {
import mx.flash.*;
public dynamic class TextShow extends UIMovieClip {
}
}//package
Section 59
//TurnBtn (TurnBtn)
package {
import flash.display.*;
public dynamic class TurnBtn extends SimpleButton {
}
}//package
Section 60
//ZhangAi (ZhangAi)
package {
import flash.display.*;
public class ZhangAi extends MovieClip {
}
}//package
Section 61
//元件1 (元件1)
package {
public dynamic class 元件1 extends ZhangAi {
}
}//package
Section 62
//帧数检测 (帧数检测)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class 帧数检测 extends MovieClip {
var FRAME:int;// = 0
public var FRAME_txt:TextField;
var time:Timer;
public function 帧数检测(){
time = new Timer(1000);
FRAME = 0;
super();
this.addEventListener(Event.ENTER_FRAME, onENTER_FRAME);
time.addEventListener(TimerEvent.TIMER, onTick);
time.start();
}
private function onTick(_arg1){
this.FRAME_txt.text = (FRAME + "");
FRAME = 0;
}
private function onENTER_FRAME(_arg1){
FRAME = (FRAME + 1);
}
}
}//package
Section 63
//开始按钮A (开始按钮A)
package {
import flash.display.*;
public dynamic class 开始按钮A extends MovieClip {
}
}//package
Section 64
//开枪 (开枪)
package {
import flash.media.*;
public dynamic class 开枪 extends Sound {
}
}//package
Section 65
//换子弹2 (æ¢åå¼¹2)
package {
import flash.media.*;
public dynamic class 换子弹2 extends Sound {
}
}//package
Section 66
//敌人A (敌人A)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class 敌人A extends DiRen {
public function 敌人A(){
addFrameScript(0, frame1, 50, frame51, 62, frame63, 72, frame73);
}
function frame73(){
gotoAndPlay("JingBao");
}
function frame1(){
gotoAndPlay(int((Math.random() * 10)));
}
function frame51(){
gotoAndPlay(2);
}
function frame63(){
stop();
}
}
}//package
Section 67
//敌人B (敌人B)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class 敌人B extends DiRen {
public function 敌人B(){
addFrameScript(0, frame1, 30, frame31, 42, frame43, 52, frame53);
}
function frame1(){
gotoAndPlay(int((Math.random() * 10)));
}
function frame31(){
gotoAndPlay(2);
}
function frame43(){
stop();
}
function frame53(){
gotoAndPlay("JingBao");
}
}
}//package
Section 68
//敌人C (敌人C)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class 敌人C extends DiRen {
public function 敌人C(){
addFrameScript(0, frame1, 30, frame31, 42, frame43, 52, frame53);
}
function frame1(){
gotoAndPlay(int((Math.random() * 10)));
}
function frame31(){
gotoAndPlay(2);
}
function frame43(){
stop();
}
function frame53(){
gotoAndPlay("JingBao");
}
}
}//package
Section 69
//死亡 (æ»äº¡)
package {
import flash.media.*;
public dynamic class 死亡 extends Sound {
}
}//package
Section 70
//死亡敌 (æ»äº¡æ•Œ)
package {
import flash.media.*;
public dynamic class 死亡敌 extends Sound {
}
}//package
Section 71
//背景音 (背景音)
package {
import flash.media.*;
public dynamic class 背景音 extends Sound {
}
}//package
Section 72
//背景音乐 (背景音ä¹)
package {
import flash.media.*;
public dynamic class 背景音乐 extends Sound {
}
}//package
Section 73
//警报3声 (è¦æŠ¥3声)
package {
import flash.media.*;
public dynamic class 警报3声 extends Sound {
}
}//package
Section 74
//躲避 (躲é¿)
package {
import flash.media.*;
public dynamic class 躲避 extends Sound {
}
}//package