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

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

house of dead ninjas.swf

This is the info page for
Flash #120470

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


ActionScript [AS3]
Section 1
//IntUtil (com.adobe.utils.IntUtil) package com.adobe.utils { public class IntUtil { private static var hexChars:String = "0123456789abcdef"; public static function toHex(_arg1:int, _arg2:Boolean=false):String{ var _local4:int; var _local5:int; var _local3 = ""; if (_arg2){ _local4 = 0; while (_local4 < 4) { _local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15)))); _local4++; }; } else { _local5 = 0; while (_local5 < 4) { _local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15)))); _local5++; }; }; return (_local3); } public static function ror(_arg1:int, _arg2:int):uint{ var _local3:int = (32 - _arg2); return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3)))); } public static function rol(_arg1:int, _arg2:int):int{ return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2)))); } } }//package com.adobe.utils
Section 2
//MochiDigits (mochi.as3.MochiDigits) package mochi.as3 { public final class MochiDigits { private var _nt35:MochiDigits; private var _ve2437:Number; private var _gq1697:Number; public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{ _gq1697 = 0; setValue(_arg1, _arg2); } public function _tp124():void{ var _local1:uint = int((2147483647 * Math.random())); _ve2437 = (_ve2437 ^ (_local1 ^ _gq1697)); _gq1697 = _local1; } public function set value(_arg1:Number):void{ setValue(_arg1); } public function toString():String{ var _local1:String = String.fromCharCode((_ve2437 ^ _gq1697)); if (_nt35 != null){ _local1 = (_local1 + _nt35.toString()); }; return (_local1); } public function setValue(_arg1:Number=0, _arg2:uint=0):void{ var _local3:String = _arg1.toString(); var _temp1 = _arg2; _arg2 = (_arg2 + 1); _ve2437 = (_local3.charCodeAt(_temp1) ^ _gq1697); if (_arg2 < _local3.length){ _nt35 = new MochiDigits(_arg1, _arg2); } else { _nt35 = null; }; _tp124(); } public function get value():Number{ return (Number(this.toString())); } public function addValue(_arg1:Number):void{ value = (value + _arg1); } } }//package mochi.as3
Section 3
//BitmapAsset (mx.core.BitmapAsset) package mx.core { import flash.display.*; public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject { mx_internal static const VERSION:String = "3.0.0.0"; public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } public function get measuredWidth():Number{ if (bitmapData){ return (bitmapData.width); }; return (0); } public function get measuredHeight():Number{ if (bitmapData){ return (bitmapData.height); }; return (0); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } } }//package mx.core
Section 4
//ByteArrayAsset (mx.core.ByteArrayAsset) package mx.core { import flash.utils.*; public class ByteArrayAsset extends ByteArray implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 5
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.0.0.0"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 6
//FlexBitmap (mx.core.FlexBitmap) package mx.core { import flash.display.*; import mx.utils.*; public class FlexBitmap extends Bitmap { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ var bitmapData = _arg1; var pixelSnapping = _arg2; var smoothing = _arg3; super(bitmapData, pixelSnapping, smoothing); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 7
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexMovieClip(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 8
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 9
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 10
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 11
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.accessibility.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 12
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 13
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _fl1092:Number; private var _jt1840:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function MovieClipAsset(){ _jt1840 = width; _fl1092 = height; } public function get measuredWidth():Number{ return (_jt1840); } public function get measuredHeight():Number{ return (_fl1092); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 14
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset) package mx.core { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.system.*; public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject { protected var initialHeight:Number;// = 0 private var loader:Loader;// = null private var initialized:Boolean;// = false protected var initialWidth:Number;// = 0 private var _ai1122:Number; private var _mk769:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function MovieClipLoaderAsset(){ var _local1:LoaderContext = new LoaderContext(); _local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local1)){ _local1["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.loadBytes(movieClipData, _local1); addChild(loader); } override public function get width():Number{ if (!initialized){ return (initialWidth); }; return (super.width); } override public function set width(_arg1:Number):void{ if (!initialized){ _mk769 = _arg1; } else { loader.width = _arg1; }; } override public function get measuredHeight():Number{ return (initialHeight); } private function completeHandler(_arg1:Event):void{ initialized = true; initialWidth = loader.width; initialHeight = loader.height; if (!isNaN(_mk769)){ loader.width = _mk769; }; if (!isNaN(_ai1122)){ loader.height = _ai1122; }; dispatchEvent(_arg1); } override public function set height(_arg1:Number):void{ if (!initialized){ _ai1122 = _arg1; } else { loader.height = _arg1; }; } override public function get measuredWidth():Number{ return (initialWidth); } override public function get height():Number{ if (!initialized){ return (initialHeight); }; return (super.height); } public function get movieClipData():ByteArray{ return (null); } } }//package mx.core
Section 15
//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 16
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 17
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.0.0.0"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var _local2:String; var _local4:String; var _local5:Array; var _local3:DisplayObject = _arg1; while (_local3 != null) { if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){ break; }; _local4 = _local3.name; if ((_local3 is IRepeaterClient)){ _local5 = IRepeaterClient(_local3).instanceIndices; if (_local5){ _local4 = (_local4 + (("[" + _local5.join("][")) + "]")); }; }; _local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2); _local3 = _local3.parent; }; return (_local2); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 18
//Camera3D (org.papervision3d.cameras.Camera3D) package org.papervision3d.cameras { import flash.geom.*; import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.culling.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; public class Camera3D extends CameraObject3D { protected var _rl2805:Matrix3D; protected var _rc2681:Boolean; protected var _li683:Number; protected var _dj2564:Boolean; protected var _xk928:Number; protected var _iy3101:Number; protected var _kh1606:Number; protected var _ei1959:Matrix3D; protected var _ys2624:Boolean; public function Camera3D(_arg1:Number=60, _arg2:Number=10, _arg3:Number=5000, _arg4:Boolean=false, _arg5:Boolean=false){ super(_arg2, 40); this._ni787 = _arg1; _kh1606 = 0; _li683 = 0; _dj2564 = false; _rc2681 = false; _cn2098 = _arg4; _ty1691 = _arg5; _ml920 = _arg3; _rl2805 = Matrix3D.IDENTITY; } public function update(_arg1:Rectangle):void{ if (!_arg1){ throw (new Error(("Camera3D#update: Invalid viewport rectangle! " + _arg1))); }; this._dx2443 = _arg1; _kh1606 = this.focus; _li683 = this.zoom; _xk928 = this._dx2443.width; _iy3101 = this._dx2443.height; if (_dj2564 != this._fp2956){ if (this._fp2956){ _ys2624 = this._ut1477; this._ut1477 = true; } else { this._ut1477 = _ys2624; }; }; this._ut1477 = this._ty1691; _dj2564 = this._fp2956; _rc2681 = _ty1691; this._ch2809 = _cn2098; } public function get _tp365():Matrix3D{ return (_ei1959); } override public function set _ta2429(_arg1:Number):void{ if (_arg1 > 0){ this.focus = _arg1; this.update(this._dx2443); }; } override public function _am2487(_arg1:Number, _arg2:Number, _arg3:Boolean=true, _arg4:DisplayObject3D=null):void{ var _local8:Number; _arg4 = ((_arg4) || (_target)); _arg4 = ((_arg4) || (DisplayObject3D.ZERO)); if (_arg3){ _arg1 = (_arg1 * (Math.PI / 180)); _arg2 = (_arg2 * (Math.PI / 180)); }; var _local5:Number = (_arg4._ik714._fa1348 - this.x); var _local6:Number = (_arg4._ik714._pr1642 - this.y); var _local7:Number = (_arg4._ik714._jp1065 - this.z); _local8 = Math.sqrt((((_local5 * _local5) + (_local6 * _local6)) + (_local7 * _local7))); var _local9:Number = (Math.cos(_arg2) * Math.sin(_arg1)); var _local10:Number = (Math.sin(_arg2) * Math.sin(_arg1)); var _local11:Number = Math.cos(_arg1); this.x = (_arg4._ik714._fa1348 + (_local9 * _local8)); this.y = (_arg4._ik714._pr1642 + (_local11 * _local8)); this.z = (_arg4._ik714._jp1065 + (_local10 * _local8)); this._sk1812(_arg4); } override public function set _ch2809(_arg1:Boolean):void{ super._ch2809 = _arg1; if (_cn2098){ if (!this._pr138){ this._pr138 = new FrustumCuller(); }; FrustumCuller(this._pr138).initialize(this._ni787, (this._dx2443.width / this._dx2443.height), (this.focus / this.zoom), _ml920); } else { this._pr138 = null; }; } override public function _ju850(_arg1:Array, _arg2:DisplayObject3D, _arg3:RenderSessionData):Number{ var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Vertex3D; var _local25:Vertex3DInstance; var _local26:Number; var _local34:Array; var _local36:Triangle3D; var _local4:Matrix3D = _arg2.view; var _local5:Number = _local4._uy942; var _local6:Number = _local4._vo1924; var _local7:Number = _local4._fq2145; var _local8:Number = _local4._pf1124; var _local9:Number = _local4._ou2421; var _local10:Number = _local4._py2591; var _local11:Number = _local4._jm2768; var _local12:Number = _local4._vb1203; var _local13:Number = _local4._co210; var _local14:Number = _local4._wg1803; var _local15:Number = _local4._ds2925; var _local16:Number = _local4._yj2288; var _local27:int; var _local28:Number = _arg3._dy954.focus; var _local29:Number = (_local28 * _arg3._dy954.zoom); var _local30:Number = (_dx2443.width / 2); var _local31:Number = (_dx2443.height / 2); var _local32:Number = _arg3._dy954._ss1303; var _local33:Number = (_local32 - _local28); var _local35:Number = getTimer(); for each (_local36 in _arg1) { _local34 = _local36.vertices; _local27 = _local34.length; while ((_local24 = _local34[--_local27])) { if (_local24.timestamp == _local35){ } else { _local24.timestamp = _local35; _local17 = _local24.x; _local18 = _local24.y; _local19 = _local24.z; _local22 = ((((_local17 * _local11) + (_local18 * _local12)) + (_local19 * _local13)) + _local4._jp1065); _local25 = _local24._vg530; if (_ty1691){ _local23 = ((((_local17 * _local14) + (_local18 * _local15)) + (_local19 * _local16)) + _local4._ok2829); _local22 = (_local22 / _local23); if ((_local25.visible = (((_local22 > 0)) && ((_local22 < 1))))){ _local20 = (((((_local17 * _local5) + (_local18 * _local6)) + (_local19 * _local7)) + _local4._fa1348) / _local23); _local21 = (((((_local17 * _local8) + (_local18 * _local9)) + (_local19 * _local10)) + _local4._pr1642) / _local23); _local25.x = (_local20 * _local30); _local25.y = (_local21 * _local31); _local25.z = (_local22 * _local23); }; } else { if ((_local25.visible = ((_local28 + _local22) > 0))){ _local20 = ((((_local17 * _local5) + (_local18 * _local6)) + (_local19 * _local7)) + _local4._fa1348); _local21 = ((((_local17 * _local8) + (_local18 * _local9)) + (_local19 * _local10)) + _local4._pr1642); _local26 = (_local29 / (_local28 + _local22)); _local25.x = (_local20 * _local26); _local25.y = (_local21 * _local26); _local25.z = _local22; }; }; }; }; }; return (0); } override public function set _hp847(_arg1:Number):void{ super._hp847 = _arg1; this._ut1477 = this._ut1477; _dj2564 = !(this._fp2956); this.update(this._dx2443); } override public function _dg1754(_arg1:Matrix3D=null):void{ if (((((((((((!((_fp2956 == _dj2564))) || (!((_rc2681 == _ty1691))))) || (!((focus == _kh1606))))) || (!((zoom == _li683))))) || (!((_dx2443.width == _xk928))))) || (!((_dx2443.height == _iy3101))))){ update(_dx2443); }; if (_target){ _sk1812(_target); } else { if (_kc2377){ updateTransform(); }; }; if (_ty1691){ super._dg1754(); this._et1052._nl1608(_ei1959, this._et1052); } else { _rl2805.copy(this.transform); _rl2805._fa1348 = (_rl2805._fa1348 + (focus * this.transform._fq2145)); _rl2805._pr1642 = (_rl2805._pr1642 + (focus * this.transform._py2591)); _rl2805._jp1065 = (_rl2805._jp1065 + (focus * this.transform._co210)); super._dg1754(_rl2805); }; if ((_pr138 is FrustumCuller)){ FrustumCuller(_pr138).transform.copy(this.transform); }; } override public function set _ss1303(_arg1:Number):void{ if (_arg1 > this.focus){ _ml920 = _arg1; this.update(this._dx2443); }; } override public function _ci891(_arg1:Array, _arg2:DisplayObject3D, _arg3:RenderSessionData):Number{ var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Vertex3D; var _local25:Vertex3DInstance; var _local26:Number; var _local4:Matrix3D = _arg2.view; var _local5:Number = _local4._uy942; var _local6:Number = _local4._vo1924; var _local7:Number = _local4._fq2145; var _local8:Number = _local4._pf1124; var _local9:Number = _local4._ou2421; var _local10:Number = _local4._py2591; var _local11:Number = _local4._jm2768; var _local12:Number = _local4._vb1203; var _local13:Number = _local4._co210; var _local14:Number = _local4._wg1803; var _local15:Number = _local4._ds2925; var _local16:Number = _local4._yj2288; var _local27:int = _arg1.length; var _local28:Number = _arg3._dy954.focus; var _local29:Number = (_local28 * _arg3._dy954.zoom); var _local30:Number = (_dx2443.width / 2); var _local31:Number = (_dx2443.height / 2); var _local32:Number = _arg3._dy954._ss1303; var _local33:Number = (_local32 - _local28); while ((_local24 = _arg1[--_local27])) { _local17 = _local24.x; _local18 = _local24.y; _local19 = _local24.z; _local22 = ((((_local17 * _local11) + (_local18 * _local12)) + (_local19 * _local13)) + _local4._jp1065); _local25 = _local24._vg530; if (_ty1691){ _local23 = ((((_local17 * _local14) + (_local18 * _local15)) + (_local19 * _local16)) + _local4._ok2829); _local22 = (_local22 / _local23); if ((_local25.visible = (((_local22 > 0)) && ((_local22 < 1))))){ _local20 = (((((_local17 * _local5) + (_local18 * _local6)) + (_local19 * _local7)) + _local4._fa1348) / _local23); _local21 = (((((_local17 * _local8) + (_local18 * _local9)) + (_local19 * _local10)) + _local4._pr1642) / _local23); _local25.x = (_local20 * _local30); _local25.y = (_local21 * _local31); _local25.z = (_local22 * _local23); }; } else { if ((_local25.visible = ((_local28 + _local22) > 0))){ _local20 = ((((_local17 * _local5) + (_local18 * _local6)) + (_local19 * _local7)) + _local4._fa1348); _local21 = ((((_local17 * _local8) + (_local18 * _local9)) + (_local19 * _local10)) + _local4._pr1642); _local26 = (_local29 / (_local28 + _local22)); _local25.x = (_local20 * _local26); _local25.y = (_local21 * _local26); _local25.z = _local22; }; }; }; return (0); } override public function set _ut1477(_arg1:Boolean):void{ var _local2:Number; var _local3:Number; if (_arg1){ if (this._fp2956){ _local2 = (_dx2443.width / 2); _local3 = (_dx2443.height / 2); _ei1959 = createOrthoMatrix(-(_local2), _local2, -(_local3), _local3, -(_ml920), _ml920); _ei1959 = Matrix3D.multiply(_vu2144, _ei1959); } else { _ei1959 = createPerspectiveMatrix(_ni787, (_dx2443.width / _dx2443.height), this.focus, this._ss1303); }; } else { if (this._fp2956){ _arg1 = true; }; }; super._ut1477 = _arg1; } public static function createPerspectiveMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix3D{ var _local5:Number = ((_arg1 / 2) * (Math.PI / 180)); var _local6:Number = Math.tan(_local5); var _local7:Number = (1 / _local6); return (new Matrix3D([(_local7 / _arg2), 0, 0, 0, 0, _local7, 0, 0, 0, 0, -(((_arg3 + _arg4) / (_arg3 - _arg4))), (((2 * _arg4) * _arg3) / (_arg3 - _arg4)), 0, 0, 1, 0])); } public static function createOrthoMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Matrix3D{ var _local7:Number = ((_arg2 + _arg1) / (_arg2 - _arg1)); var _local8:Number = ((_arg4 + _arg3) / (_arg4 - _arg3)); var _local9:Number = ((_arg6 + _arg5) / (_arg6 - _arg5)); var _local10:Matrix3D = new Matrix3D([(2 / (_arg2 - _arg1)), 0, 0, _local7, 0, (2 / (_arg4 - _arg3)), 0, _local8, 0, 0, (-2 / (_arg6 - _arg5)), _local9, 0, 0, 0, 1]); _local10._xl162(Matrix3D.scaleMatrix(1, 1, -1), _local10); return (_local10); } } }//package org.papervision3d.cameras
Section 19
//Clipping (org.papervision3d.core.clipping.draw.Clipping) package org.papervision3d.core.clipping.draw { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.command.*; public class Clipping { public var _xx2751:Number;// = -1000000 public var _wn386:Number;// = -1000000 private var _ur1319:Point; private var _hp1342:Point; private var _xp120:RectangleClipping; public var _ff2962:Number;// = 1000000 public var _ig1084:Number;// = 1000000 public function Clipping(){ _ur1319 = new Point(0, 0); super(); } public function rect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Boolean{ return (true); } public function screen(_arg1:Sprite):Clipping{ if (!_xp120){ _xp120 = new RectangleClipping(); }; switch (_arg1.stage.align){ case StageAlign.TOP_LEFT: _ur1319.x = 0; _ur1319.y = 0; _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._ff2962 = ((_xp120._xx2751 = _hp1342.x) + _arg1.stage.stageWidth); _xp120._ig1084 = ((_xp120._wn386 = _hp1342.y) + _arg1.stage.stageHeight); break; case StageAlign.TOP_RIGHT: _ur1319.x = _arg1.stage.stageWidth; _ur1319.y = 0; _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._xx2751 = ((_xp120._ff2962 = _hp1342.x) - _arg1.stage.stageWidth); _xp120._ig1084 = ((_xp120._wn386 = _hp1342.y) + _arg1.stage.stageHeight); break; case StageAlign.BOTTOM_LEFT: _ur1319.x = 0; _ur1319.y = _arg1.stage.stageHeight; _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._ff2962 = ((_xp120._xx2751 = _hp1342.x) + _arg1.stage.stageWidth); _xp120._wn386 = ((_xp120._ig1084 = _hp1342.y) - _arg1.stage.stageHeight); break; case StageAlign.BOTTOM_RIGHT: _ur1319.x = _arg1.stage.stageWidth; _ur1319.y = _arg1.stage.stageHeight; _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._xx2751 = ((_xp120._ff2962 = _hp1342.x) - _arg1.stage.stageWidth); _xp120._wn386 = ((_xp120._ig1084 = _hp1342.y) - _arg1.stage.stageHeight); break; case StageAlign.TOP: _ur1319.x = (_arg1.stage.stageWidth / 2); _ur1319.y = 0; _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._xx2751 = (_hp1342.x - (_arg1.stage.stageWidth / 2)); _xp120._ff2962 = (_hp1342.x + (_arg1.stage.stageWidth / 2)); _xp120._ig1084 = ((_xp120._wn386 = _hp1342.y) + _arg1.stage.stageHeight); break; case StageAlign.BOTTOM: _ur1319.x = (_arg1.stage.stageWidth / 2); _ur1319.y = _arg1.stage.stageHeight; _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._xx2751 = (_hp1342.x - (_arg1.stage.stageWidth / 2)); _xp120._ff2962 = (_hp1342.x + (_arg1.stage.stageWidth / 2)); _xp120._wn386 = ((_xp120._ig1084 = _hp1342.y) - _arg1.stage.stageHeight); break; case StageAlign.LEFT: _ur1319.x = 0; _ur1319.y = (_arg1.stage.stageHeight / 2); _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._ff2962 = ((_xp120._xx2751 = _hp1342.x) + _arg1.stage.stageWidth); _xp120._wn386 = (_hp1342.y - (_arg1.stage.stageHeight / 2)); _xp120._ig1084 = (_hp1342.y + (_arg1.stage.stageHeight / 2)); break; case StageAlign.RIGHT: _ur1319.x = _arg1.stage.stageWidth; _ur1319.y = (_arg1.stage.stageHeight / 2); _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._xx2751 = ((_xp120._ff2962 = _hp1342.x) - _arg1.stage.stageWidth); _xp120._wn386 = (_hp1342.y - (_arg1.stage.stageHeight / 2)); _xp120._ig1084 = (_hp1342.y + (_arg1.stage.stageHeight / 2)); break; default: _ur1319.x = (_arg1.stage.stageWidth / 2); _ur1319.y = (_arg1.stage.stageHeight / 2); _hp1342 = _arg1.globalToLocal(_ur1319); _xp120._xx2751 = (_hp1342.x - (_arg1.stage.stageWidth / 2)); _xp120._ff2962 = (_hp1342.x + (_arg1.stage.stageWidth / 2)); _xp120._wn386 = (_hp1342.y - (_arg1.stage.stageHeight / 2)); _xp120._ig1084 = (_hp1342.y + (_arg1.stage.stageHeight / 2)); }; return (_xp120); } public function _pw2298(_arg1:RenderableListItem):Boolean{ return (true); } public function _ak2962():RectangleClipping{ if (!_xp120){ _xp120 = new RectangleClipping(); }; _xp120._xx2751 = -1000000; _xp120._wn386 = -1000000; _xp120._ff2962 = 1000000; _xp120._ig1084 = 1000000; return (_xp120); } } }//package org.papervision3d.core.clipping.draw
Section 20
//RectangleClipping (org.papervision3d.core.clipping.draw.RectangleClipping) package org.papervision3d.core.clipping.draw { import org.papervision3d.core.render.command.*; public class RectangleClipping extends Clipping { public function RectangleClipping(_arg1:Number=-1000000, _arg2:Number=-1000000, _arg3:Number=1000000, _arg4:Number=1000000){ this._xx2751 = _arg1; this._ff2962 = _arg3; this._wn386 = _arg2; this._ig1084 = _arg4; } override public function _pw2298(_arg1:RenderableListItem):Boolean{ if (_arg1._ff2962 < _xx2751){ return (false); }; if (_arg1._xx2751 > _ff2962){ return (false); }; if (_arg1._ig1084 < _wn386){ return (false); }; if (_arg1._wn386 > _ig1084){ return (false); }; return (true); } override public function rect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Boolean{ if (this._ff2962 < _arg1){ return (false); }; if (this._xx2751 > _arg3){ return (false); }; if (this._ig1084 < _arg2){ return (false); }; if (this._wn386 > _arg4){ return (false); }; return (true); } public function toString():String{ return ((((((((("{minX:" + _xx2751) + " maxX:") + _ff2962) + " minY:") + _wn386) + " maxY:") + _ig1084) + "}")); } override public function _ak2962():RectangleClipping{ return (this); } } }//package org.papervision3d.core.clipping.draw
Section 21
//DefaultClipping (org.papervision3d.core.clipping.DefaultClipping) package org.papervision3d.core.clipping { import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.geom.renderables.*; public class DefaultClipping { public function _tv2438(_arg1:Triangle3D, _arg2:DisplayObject3D, _arg3:RenderSessionData):Boolean{ return (false); } public function _hj894(_arg1:Triangle3D, _arg2:DisplayObject3D, _arg3:MaterialObject3D, _arg4:RenderSessionData, _arg5:Array):Number{ return (0); } public function _bb2346(_arg1:DisplayObject3D, _arg2:RenderSessionData):void{ } public function reset(_arg1:RenderSessionData):void{ } } }//package org.papervision3d.core.clipping
Section 22
//DefaultLineCuller (org.papervision3d.core.culling.DefaultLineCuller) package org.papervision3d.core.culling { import org.papervision3d.core.geom.renderables.*; public class DefaultLineCuller implements ILineCuller { public function _fq1200(_arg1:Line3D):Boolean{ return (((_arg1._ed697._vg530.visible) && (_arg1._bw1102._vg530.visible))); } } }//package org.papervision3d.core.culling
Section 23
//DefaultParticleCuller (org.papervision3d.core.culling.DefaultParticleCuller) package org.papervision3d.core.culling { import org.papervision3d.core.geom.renderables.*; public class DefaultParticleCuller implements IParticleCuller { public function _ks3088(_arg1:Particle):Boolean{ if (_arg1._kg2044._gy1364 == false){ if (_arg1._jd630._vg530.visible == true){ return (true); }; }; return (false); } } }//package org.papervision3d.core.culling
Section 24
//DefaultTriangleCuller (org.papervision3d.core.culling.DefaultTriangleCuller) package org.papervision3d.core.culling { import org.papervision3d.core.proto.*; import org.papervision3d.core.geom.renderables.*; public class DefaultTriangleCuller implements ITriangleCuller { protected static var _nr2804:Number; protected static var _sb2711:Number; protected static var _hp2262:Number; protected static var _dn2560:Number; protected static var _fy1567:Number; protected static var _og200:Number; public function _tv2438(_arg1:Triangle3D, _arg2:Vertex3DInstance, _arg3:Vertex3DInstance, _arg4:Vertex3DInstance):Boolean{ var _local5:MaterialObject3D; if (((((_arg2.visible) && (_arg3.visible))) && (_arg4.visible))){ _local5 = (_arg1._kg2044) ? _arg1._kg2044 : _arg1._td331._kg2044; if (_local5._gy1364){ return (false); }; _dn2560 = _arg2.x; _hp2262 = _arg2.y; _fy1567 = _arg3.x; _sb2711 = _arg3.y; _og200 = _arg4.x; _nr2804 = _arg4.y; if (_local5._dn1817){ if (_local5._mf2073){ if ((((_og200 - _dn2560) * (_sb2711 - _hp2262)) - ((_nr2804 - _hp2262) * (_fy1567 - _dn2560))) > 0){ return (false); }; } else { if ((((_og200 - _dn2560) * (_sb2711 - _hp2262)) - ((_nr2804 - _hp2262) * (_fy1567 - _dn2560))) < 0){ return (false); }; }; }; return (true); }; return (false); } } }//package org.papervision3d.core.culling
Section 25
//FrustumCuller (org.papervision3d.core.culling.FrustumCuller) package org.papervision3d.core.culling { import org.papervision3d.objects.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; public class FrustumCuller implements IObjectCuller { private var _fu642:Number; private var _oq3105:Number; private var _vf3073:Number; private var _ds671:Number; private var _ml920:Number; private var _lh2686:Number; private var _cd55:Number; private var _xg2755:Number; public var transform:Matrix3D; private var _uv2268:Number; private var _ls1389:Number; private var _oa1701:Number; public static const OUTSIDE:int = -1; public static const INSIDE:int = 1; public static const INTERSECT:int = 0; public function FrustumCuller(){ this.transform = Matrix3D.IDENTITY; this.initialize(); } public function get ratio():Number{ return (_vf3073); } public function _qd1264(_arg1:Number, _arg2:Number, _arg3:Number):int{ var _local4:Matrix3D = this.transform; var _local5:Number = (_arg1 - _local4._fa1348); var _local6:Number = (_arg2 - _local4._pr1642); var _local7:Number = (_arg3 - _local4._jp1065); var _local8:Number = (((_local5 * _local4._fq2145) + (_local6 * _local4._py2591)) + (_local7 * _local4._co210)); if ((((_local8 > _ml920)) || ((_local8 < _oq3105)))){ return (OUTSIDE); }; var _local9:Number = (((_local5 * _local4._vo1924) + (_local6 * _local4._ou2421)) + (_local7 * _local4._vb1203)); var _local10:Number = (_local8 * _fu642); if ((((_local9 > _local10)) || ((_local9 < -(_local10))))){ return (OUTSIDE); }; var _local11:Number = (((_local5 * _local4._uy942) + (_local6 * _local4._pf1124)) + (_local7 * _local4._jm2768)); _local10 = (_local10 * _vf3073); if ((((_local11 > _local10)) || ((_local11 < -(_local10))))){ return (OUTSIDE); }; return (INSIDE); } public function get _ni787():Number{ return (_ds671); } public function set ratio(_arg1:Number):void{ this.initialize(_ds671, _arg1, _oq3105, _ml920); } public function set _ta2429(_arg1:Number):void{ this.initialize(_ds671, _vf3073, _arg1, _ml920); } public function set _ni787(_arg1:Number):void{ this.initialize(_arg1, _vf3073, _oq3105, _ml920); } public function get _ss1303():Number{ return (_ml920); } public function initialize(_arg1:Number=60, _arg2:Number=1.333, _arg3:Number=1, _arg4:Number=5000):void{ _ds671 = _arg1; _vf3073 = _arg2; _oq3105 = _arg3; _ml920 = _arg4; var _local5:Number = (((Math.PI / 180) * _ds671) * 0.5); _fu642 = Math.tan(_local5); _lh2686 = (_oq3105 * _fu642); _xg2755 = (_lh2686 * _vf3073); _cd55 = (_ml920 * _fu642); _oa1701 = (_cd55 * _vf3073); var _local6:Number = Math.atan((_fu642 * _vf3073)); _ls1389 = (1 / Math.cos(_local6)); _uv2268 = (1 / Math.cos(_local5)); } public function set _ss1303(_arg1:Number):void{ this.initialize(_ds671, _vf3073, _oq3105, _arg1); } public function get _ta2429():Number{ return (_oq3105); } public function _vp288(_arg1:DisplayObject3D, _arg2:BoundingSphere):int{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local3:Number = (_arg2.radius * Math.max(_arg1.scaleX, Math.max(_arg1.scaleY, _arg1.scaleZ))); var _local8:int = INSIDE; var _local9:Matrix3D = this.transform; var _local10:Number = (_arg1._ik714._fa1348 - _local9._fa1348); var _local11:Number = (_arg1._ik714._pr1642 - _local9._pr1642); var _local12:Number = (_arg1._ik714._jp1065 - _local9._jp1065); _local7 = (((_local10 * _local9._fq2145) + (_local11 * _local9._py2591)) + (_local12 * _local9._co210)); if ((((_local7 > (_ml920 + _local3))) || ((_local7 < (_oq3105 - _local3))))){ return (OUTSIDE); }; if ((((_local7 > (_ml920 - _local3))) || ((_local7 < (_oq3105 + _local3))))){ _local8 = INTERSECT; }; _local6 = (((_local10 * _local9._vo1924) + (_local11 * _local9._ou2421)) + (_local12 * _local9._vb1203)); _local4 = (_uv2268 * _local3); _local7 = (_local7 * _fu642); if ((((_local6 > (_local7 + _local4))) || ((_local6 < (-(_local7) - _local4))))){ return (OUTSIDE); }; if ((((_local6 > (_local7 - _local4))) || ((_local6 < (-(_local7) + _local4))))){ _local8 = INTERSECT; }; _local5 = (((_local10 * _local9._uy942) + (_local11 * _local9._pf1124)) + (_local12 * _local9._jm2768)); _local7 = (_local7 * _vf3073); _local4 = (_ls1389 * _local3); if ((((_local5 > (_local7 + _local4))) || ((_local5 < (-(_local7) - _local4))))){ return (OUTSIDE); }; if ((((_local5 > (_local7 - _local4))) || ((_local5 < (-(_local7) + _local4))))){ _local8 = INTERSECT; }; return (_local8); } public function _ov2787(_arg1:DisplayObject3D):int{ var _local2:int = INSIDE; if (((((!(_arg1._ce47)) || (!(_arg1._ce47.vertices)))) || (!(_arg1._ce47.vertices.length)))){ return (_local2); }; switch (_arg1._eg1568){ case FrustumTestMethod.BOUNDING_SPHERE: _local2 = _vp288(_arg1, _arg1._ce47._xv716); break; case FrustumTestMethod.BOUNDING_BOX: _local2 = _jw2705(_arg1, _arg1._ce47._ja583); break; case FrustumTestMethod.NO_TESTING: break; default: break; }; return (_local2); } public function _jw2705(_arg1:DisplayObject3D, _arg2:AxisAlignedBoundingBox, _arg3:Boolean=true):int{ var _local4:Vertex3D; var _local5:Number3D; var _local6:int; var _local7:int; var _local8:Array = _arg2._gh381(); for each (_local4 in _local8) { _local5 = _local4._rj2198(); Matrix3D.multiplyVector(_arg1._ik714, _local5); if (_qd1264(_local5.x, _local5.y, _local5.z) == INSIDE){ _local6++; if (_arg3){ return (INSIDE); }; } else { _local7++; }; if (((_local6) && (_local7))){ return (INTERSECT); }; }; if (_local6){ return (((_local6 < 8)) ? INTERSECT : INSIDE); //unresolved jump }; return (OUTSIDE); } } }//package org.papervision3d.core.culling
Section 26
//FrustumTestMethod (org.papervision3d.core.culling.FrustumTestMethod) package org.papervision3d.core.culling { public class FrustumTestMethod { public static const BOUNDING_BOX:int = 1; public static const NO_TESTING:int = -1; public static const BOUNDING_SPHERE:int = 0; } }//package org.papervision3d.core.culling
Section 27
//ILineCuller (org.papervision3d.core.culling.ILineCuller) package org.papervision3d.core.culling { import org.papervision3d.core.geom.renderables.*; public interface ILineCuller { function _fq1200(_arg1:Line3D):Boolean; } }//package org.papervision3d.core.culling
Section 28
//IObjectCuller (org.papervision3d.core.culling.IObjectCuller) package org.papervision3d.core.culling { import org.papervision3d.objects.*; public interface IObjectCuller { function _ov2787(_arg1:DisplayObject3D):int; } }//package org.papervision3d.core.culling
Section 29
//IParticleCuller (org.papervision3d.core.culling.IParticleCuller) package org.papervision3d.core.culling { import org.papervision3d.core.geom.renderables.*; public interface IParticleCuller { function _ks3088(_arg1:Particle):Boolean; } }//package org.papervision3d.core.culling
Section 30
//ITriangleCuller (org.papervision3d.core.culling.ITriangleCuller) package org.papervision3d.core.culling { import org.papervision3d.core.geom.renderables.*; public interface ITriangleCuller { function _tv2438(_arg1:Triangle3D, _arg2:Vertex3DInstance, _arg3:Vertex3DInstance, _arg4:Vertex3DInstance):Boolean; } }//package org.papervision3d.core.culling
Section 31
//RectangleLineCuller (org.papervision3d.core.culling.RectangleLineCuller) package org.papervision3d.core.culling { import flash.geom.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.math.util.*; public class RectangleLineCuller implements ILineCuller { private var _mj310:Rectangle; private var _ul986:Rectangle; private var _yf1452:Rectangle; public function RectangleLineCuller(_arg1:Rectangle=null):void{ if (_arg1){ this._yf1452 = _arg1; }; _mj310 = new Rectangle(); _ul986 = new Rectangle(); } public function _fq1200(_arg1:Line3D):Boolean{ if (((!(_arg1._ed697._vg530.visible)) || (!(_arg1._bw1102._vg530.visible)))){ return (false); }; var _local2:Number = _arg1._ed697._vg530.x; var _local3:Number = _arg1._ed697._vg530.y; var _local4:Number = _arg1._bw1102._vg530.x; var _local5:Number = _arg1._bw1102._vg530.y; _mj310.width = Math.abs((_local4 - _local2)); _mj310.height = Math.abs((_local5 - _local3)); if (_local2 < _local4){ _mj310.x = _local2; } else { _mj310.x = _local4; }; if (_local3 < _local5){ _mj310.y = _local3; } else { _mj310.y = _local5; }; if (_yf1452.containsRect(_mj310)){ return (true); }; if (!FastRectangleTools.intersects(_mj310, _yf1452)){ return (false); }; _ul986 = FastRectangleTools.intersection(_mj310, _yf1452); var _local6:Number = ((_local5 - _local3) / (_local4 - _local2)); var _local7:Number = (_local3 - (_local6 * _local2)); var _local8:Number = ((_yf1452.top - _local7) / _local6); if ((((_local8 > _ul986.left)) && ((_local8 < _ul986.right)))){ return (true); }; _local8 = ((_yf1452.bottom - _local7) / _local6); if ((((_local8 > _ul986.left)) && ((_local8 < _ul986.right)))){ return (true); }; var _local9:Number = ((_local6 * _yf1452.left) + _local7); if ((((_local9 > _ul986.top)) && ((_local9 < _ul986.bottom)))){ return (true); }; _local9 = ((_local6 * _yf1452.right) + _local7); if ((((_local9 > _ul986.top)) && ((_local9 < _ul986.bottom)))){ return (true); }; return (false); } } }//package org.papervision3d.core.culling
Section 32
//RectangleParticleCuller (org.papervision3d.core.culling.RectangleParticleCuller) package org.papervision3d.core.culling { import flash.geom.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.math.util.*; public class RectangleParticleCuller implements IParticleCuller { public var _yf1452:Rectangle; private static var vInstance:Vertex3DInstance; private static var testPoint:Point; public function RectangleParticleCuller(_arg1:Rectangle=null){ this._yf1452 = _arg1; testPoint = new Point(); } public function _ks3088(_arg1:Particle):Boolean{ vInstance = _arg1._jd630._vg530; if (_arg1._kg2044._gy1364 == false){ if (vInstance.visible){ if (FastRectangleTools.intersects(_arg1._ur694, _yf1452)){ return (true); }; }; }; return (false); } } }//package org.papervision3d.core.culling
Section 33
//RectangleTriangleCuller (org.papervision3d.core.culling.RectangleTriangleCuller) package org.papervision3d.core.culling { import flash.geom.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.math.util.*; public class RectangleTriangleCuller extends DefaultTriangleCuller implements ITriangleCuller { public var _yf1452:Rectangle; private static const DEFAULT_RECT_X:Number = -((DEFAULT_RECT_W / 2)); private static const DEFAULT_RECT_W:Number = 640; private static const DEFAULT_RECT_H:Number = 480; private static const DEFAULT_RECT_Y:Number = -((DEFAULT_RECT_H / 2)); private static var hitRect:Rectangle = new Rectangle(); public function RectangleTriangleCuller(_arg1:Rectangle=null):void{ _yf1452 = new Rectangle(DEFAULT_RECT_X, DEFAULT_RECT_Y, DEFAULT_RECT_W, DEFAULT_RECT_H); super(); if (_arg1){ this._yf1452 = _arg1; }; } override public function _tv2438(_arg1:Triangle3D, _arg2:Vertex3DInstance, _arg3:Vertex3DInstance, _arg4:Vertex3DInstance):Boolean{ if (super._tv2438(_arg1, _arg2, _arg3, _arg4)){ hitRect.x = Math.min(_arg4.x, Math.min(_arg3.x, _arg2.x)); hitRect.width = (Math.max(_arg4.x, Math.max(_arg3.x, _arg2.x)) + Math.abs(hitRect.x)); hitRect.y = Math.min(_arg4.y, Math.min(_arg3.y, _arg2.y)); hitRect.height = (Math.max(_arg4.y, Math.max(_arg3.y, _arg2.y)) + Math.abs(hitRect.y)); return (FastRectangleTools.intersects(_yf1452, hitRect)); }; return (false); } } }//package org.papervision3d.core.culling
Section 34
//ViewportObjectFilter (org.papervision3d.core.culling.ViewportObjectFilter) package org.papervision3d.core.culling { import flash.utils.*; import org.papervision3d.objects.*; public class ViewportObjectFilter implements IObjectCuller { protected var _mode:int; protected var _wh2014:Dictionary; public function ViewportObjectFilter(_arg1:int):void{ this.mode = _arg1; init(); } public function addObject(_arg1:DisplayObject3D):void{ _wh2014[_arg1] = _arg1; } public function get mode():int{ return (_mode); } public function set mode(_arg1:int):void{ _mode = _arg1; } public function _wr2624(_arg1:DisplayObject3D):void{ delete _wh2014[_arg1]; } private function init():void{ _wh2014 = new Dictionary(true); } public function _ov2787(_arg1:DisplayObject3D):int{ if (_wh2014[_arg1]){ return ((1 - _mode)); }; return (mode); } public function _sf1512():void{ _wh2014 = null; } } }//package org.papervision3d.core.culling
Section 35
//UserData (org.papervision3d.core.data.UserData) package org.papervision3d.core.data { public class UserData { public var data; public function UserData(_arg1=null){ this.data = _arg1; } } }//package org.papervision3d.core.data
Section 36
//AbstractRenderable (org.papervision3d.core.geom.renderables.AbstractRenderable) package org.papervision3d.core.geom.renderables { import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.data.*; public class AbstractRenderable implements IRenderable { public var _sj1468:UserData; public var _td331:DisplayObject3D; public function set userData(_arg1:UserData):void{ _sj1468 = _arg1; } public function get userData():UserData{ return (_sj1468); } public function _ba1239():IRenderListItem{ return (null); } } }//package org.papervision3d.core.geom.renderables
Section 37
//IRenderable (org.papervision3d.core.geom.renderables.IRenderable) package org.papervision3d.core.geom.renderables { import org.papervision3d.core.render.command.*; public interface IRenderable { function _ba1239():IRenderListItem; } }//package org.papervision3d.core.geom.renderables
Section 38
//Line3D (org.papervision3d.core.geom.renderables.Line3D) package org.papervision3d.core.geom.renderables { import org.papervision3d.core.render.command.*; import org.papervision3d.materials.special.*; import org.papervision3d.core.geom.*; public class Line3D extends AbstractRenderable implements IRenderable { public var size:Number; public var _kg2044:LineMaterial; public var _gq2522:Vertex3D; public var _nh614:RenderLine; public var _ed697:Vertex3D; public var _bw1102:Vertex3D; public function Line3D(_arg1:Lines3D, _arg2:LineMaterial, _arg3:Number, _arg4:Vertex3D, _arg5:Vertex3D){ this.size = _arg3; this._kg2044 = _arg2; this._ed697 = _arg4; this._bw1102 = _arg5; this._gq2522 = _arg5; this._td331 = _arg1; this._nh614 = new RenderLine(this); } public function _lw134(_arg1:Number, _arg2:Number, _arg3:Number):void{ _gq2522 = new Vertex3D(_arg1, _arg2, _arg3); if (_td331._ce47.vertices.indexOf(_gq2522) == -1){ _td331._ce47.vertices.push(_gq2522); }; _nh614._gq2522 = _gq2522._vg530; } override public function _ba1239():IRenderListItem{ return (this._nh614); } } }//package org.papervision3d.core.geom.renderables
Section 39
//Particle (org.papervision3d.core.geom.renderables.Particle) package org.papervision3d.core.geom.renderables { import flash.geom.*; import org.papervision3d.core.render.command.*; import org.papervision3d.materials.special.*; public class Particle extends AbstractRenderable implements IRenderable { public var size:Number; public var _hl3144:Number; public var _jd630:Vertex3D; public var _ur694:Rectangle; public var rotationZ:Number;// = 0 public var _nh614:RenderParticle; public var _sk777:Matrix; public var _kg2044:ParticleMaterial; public function Particle(_arg1:ParticleMaterial, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){ this._kg2044 = _arg1; this.size = _arg2; this._nh614 = new RenderParticle(this); this._ur694 = new Rectangle(); _jd630 = new Vertex3D(_arg3, _arg4, _arg5); _sk777 = new Matrix(); } public function _de609():void{ _kg2044._de609(this); } public function set x(_arg1:Number):void{ _jd630.x = _arg1; } public function set y(_arg1:Number):void{ _jd630.y = _arg1; } public function set z(_arg1:Number):void{ _jd630.z = _arg1; } public function get y():Number{ return (_jd630.y); } public function get z():Number{ return (_jd630.z); } override public function _ba1239():IRenderListItem{ return (_nh614); } public function get x():Number{ return (_jd630.x); } } }//package org.papervision3d.core.geom.renderables
Section 40
//Triangle3D (org.papervision3d.core.geom.renderables.Triangle3D) package org.papervision3d.core.geom.renderables { import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.materials.*; import org.papervision3d.materials.special.*; public class Triangle3D extends AbstractRenderable implements IRenderable { public var _bf1215:Array; public var _nh614:RenderTriangle; public var id:Number; public var _kg2044:MaterialObject3D; public var _na3208:Number3D; public var _id609:Number; public var _un2451:NumberUV; public var _bu2836:NumberUV; public var _lj1693:String; public var visible:Boolean; public var _dg317:NumberUV; public var vertices:Array; public var _ed697:Vertex3D; public var _bw1102:Vertex3D; public var _at2737:Vertex3D; private static var _totalFaces:Number = 0; public function Triangle3D(_arg1:DisplayObject3D, _arg2:Array, _arg3:MaterialObject3D=null, _arg4:Array=null){ this._td331 = _arg1; _na3208 = new Number3D(); if (((_arg2) && ((_arg2.length == 3)))){ this.vertices = _arg2; _ed697 = _arg2[0]; _bw1102 = _arg2[1]; _at2737 = _arg2[2]; _ji1695(); } else { _arg2 = new Array(); _ed697 = (_arg2[0] = new Vertex3D()); _bw1102 = (_arg2[1] = new Vertex3D()); _at2737 = (_arg2[2] = new Vertex3D()); }; this._kg2044 = _arg3; this._br1645 = _arg4; this.id = _totalFaces++; this._nh614 = new RenderTriangle(this); } public function set _br1645(_arg1:Array):void{ if (((_arg1) && ((_arg1.length == 3)))){ _un2451 = NumberUV(_arg1[0]); _bu2836 = NumberUV(_arg1[1]); _dg317 = NumberUV(_arg1[2]); }; _bf1215 = _arg1; } public function _ji1695():void{ var _local1:Number3D = _ed697.getPosition(); var _local2:Number3D = _bw1102.getPosition(); var _local3:Number3D = _at2737.getPosition(); _local2._is3081(_local1); _local3._is3081(_local1); _na3208 = Number3D.cross(_local2, _local3, _na3208); _na3208.normalize(); } override public function _ba1239():IRenderListItem{ return (_nh614); } public function reset(_arg1:DisplayObject3D, _arg2:Array, _arg3:MaterialObject3D, _arg4:Array):void{ var _local5:MaterialObject3D; this._td331 = _arg1; this._nh614._td331 = _arg1; this._nh614.renderer = _arg3; this.vertices = _arg2; _de1815(); this._kg2044 = _arg3; this._br1645 = _arg4; if ((_arg3 is BitmapMaterial)){ BitmapMaterial(_arg3)._qy1290[this._nh614] = null; }; if ((_arg3 is CompositeMaterial)){ for each (_local5 in CompositeMaterial(_arg3)._xk2861) { if ((_local5 is BitmapMaterial)){ BitmapMaterial(_local5)._qy1290[this._nh614] = null; }; }; }; } public function get _br1645():Array{ return (_bf1215); } public function _de1815():void{ _ed697 = vertices[0]; _bw1102 = vertices[1]; _at2737 = vertices[2]; } } }//package org.papervision3d.core.geom.renderables
Section 41
//Triangle3DInstance (org.papervision3d.core.geom.renderables.Triangle3DInstance) package org.papervision3d.core.geom.renderables { import flash.display.*; import org.papervision3d.objects.*; import org.papervision3d.core.math.*; public class Triangle3DInstance { public var container:Sprite; public var _td331:DisplayObject3D; public var visible:Boolean;// = false public var _na3208:Number3D; public var _id609:Number; public function Triangle3DInstance(_arg1:Triangle3D, _arg2:DisplayObject3D){ this._td331 = _arg2; _na3208 = new Number3D(); } } }//package org.papervision3d.core.geom.renderables
Section 42
//Vertex3D (org.papervision3d.core.geom.renderables.Vertex3D) package org.papervision3d.core.geom.renderables { import flash.utils.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.math.*; public class Vertex3D extends AbstractRenderable implements IRenderable { public var z:Number; public var _vg530:Vertex3DInstance; public var _nb21:Object; public var timestamp:Number; public var _lv2795:Number3D; protected var position:Number3D; public var _qo712:Dictionary; public var x:Number; public var y:Number; private var _hp2228:Number;// = 0 public function Vertex3D(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0){ position = new Number3D(); super(); this.x = (position.x = _arg1); this.y = (position.y = _arg2); this.z = (position.z = _arg3); this._vg530 = new Vertex3DInstance(); this._lv2795 = new Number3D(); this._qo712 = new Dictionary(); } public function _sg324(_arg1:Number):Vertex3DInstance{ _hp2228 = (1 / (1 + (z / _arg1))); return (new Vertex3DInstance((x * _hp2228), (y * _hp2228), z)); } public function _rj2198():Number3D{ return (new Number3D(x, y, z)); } public function clone():Vertex3D{ var _local1:Vertex3D = new Vertex3D(x, y, z); _local1._nb21 = _nb21; _local1._vg530 = _vg530.clone(); _local1._lv2795 = _lv2795.clone(); return (_local1); } public function getPosition():Number3D{ position.x = x; position.y = y; position.z = z; return (position); } public function _lf735():void{ var _local1:Triangle3D; var _local2:Number; var _local3:Number3D; _local2 = 0; _lv2795.reset(); for each (_local1 in _qo712) { if (_local1._na3208){ _local2++; _lv2795._kq13(_local1._na3208); }; }; _local3 = getPosition(); _local3.x = (_local3.x / _local2); _local3.y = (_local3.y / _local2); _local3.z = (_local3.z / _local2); _local3.normalize(); _lv2795._kq13(_local3); _lv2795.normalize(); } override public function _ba1239():IRenderListItem{ return (null); } public static function weighted(_arg1:Vertex3D, _arg2:Vertex3D, _arg3:Number, _arg4:Number):Vertex3D{ var _local5:Number = (_arg3 + _arg4); var _local6:Number = (_arg3 / _local5); var _local7:Number = (_arg4 / _local5); return (new Vertex3D(((_arg1.x * _local6) + (_arg2.x * _local7)), ((_arg1.y * _local6) + (_arg2.y * _local7)), ((_arg1.z * _local6) + (_arg2.z * _local7)))); } } }//package org.papervision3d.core.geom.renderables
Section 43
//Vertex3DInstance (org.papervision3d.core.geom.renderables.Vertex3DInstance) package org.papervision3d.core.geom.renderables { import org.papervision3d.core.math.*; public class Vertex3DInstance { public var y:Number; private var _hp2228:Number;// = 0 public var _lv2795:Number3D; public var visible:Boolean; public var _nb21:Object; public var x:Number; public var z:Number; public function Vertex3DInstance(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0){ this.x = _arg1; this.y = _arg2; this.z = _arg3; this.visible = false; this._lv2795 = new Number3D(); } public function _sv2214(_arg1:Number):Vertex3D{ _hp2228 = (1 + (z / _arg1)); return (new Vertex3D((x * _hp2228), (y * _hp2228), z)); } public function distance(_arg1:Vertex3DInstance):Number{ return (Math.sqrt((((x - _arg1.x) * (x - _arg1.x)) + ((y - _arg1.y) * (y - _arg1.y))))); } public function clone():Vertex3DInstance{ var _local1:Vertex3DInstance = new Vertex3DInstance(x, y, z); _local1.visible = visible; _local1._nb21 = _nb21; return (_local1); } public function _lj2992(_arg1:Vertex3DInstance):Number{ return ((((x - _arg1.x) * (x - _arg1.x)) + ((y - _arg1.y) * (y - _arg1.y)))); } public static function cross(_arg1:Vertex3DInstance, _arg2:Vertex3DInstance):Number{ return (((_arg1.x * _arg2.y) - (_arg2.x * _arg1.y))); } public static function dot(_arg1:Vertex3DInstance, _arg2:Vertex3DInstance):Number{ return (((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y))); } public static function subTo(_arg1:Vertex3DInstance, _arg2:Vertex3DInstance, _arg3:Vertex3DInstance):void{ _arg3.x = (_arg2.x - _arg1.x); _arg3.y = (_arg2.y - _arg1.y); } public static function median(_arg1:Vertex3DInstance, _arg2:Vertex3DInstance, _arg3:Number):Vertex3DInstance{ var _local4:Number = ((_arg1.z + _arg2.z) / 2); var _local5:Number = (_arg3 + _arg1.z); var _local6:Number = (_arg3 + _arg2.z); var _local7:Number = ((1 / (_arg3 + _local4)) / 2); return (new Vertex3DInstance((((_arg1.x * _local5) + (_arg2.x * _local6)) * _local7), (((_arg1.y * _local5) + (_arg2.y * _local6)) * _local7), _local4)); } public static function sub(_arg1:Vertex3DInstance, _arg2:Vertex3DInstance):Vertex3DInstance{ return (new Vertex3DInstance((_arg2.x - _arg1.x), (_arg2.y - _arg1.y))); } } }//package org.papervision3d.core.geom.renderables
Section 44
//Lines3D (org.papervision3d.core.geom.Lines3D) package org.papervision3d.core.geom { import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.log.*; import org.papervision3d.materials.special.*; import org.papervision3d.core.render.draw.*; public class Lines3D extends Vertices3D { private var _cq2697:ILineDrawer; public var _vg1561:Array; public function Lines3D(_arg1:LineMaterial=null, _arg2:String=null){ super(null, _arg2); if (!_arg1){ this._kg2044 = new LineMaterial(); } else { this._kg2044 = _arg1; }; init(); } private function init():void{ this._vg1561 = new Array(); } public function _no567():void{ while (_vg1561.length > 0) { _pi2388(_vg1561[0]); }; } public function _py2702(_arg1:Line3D):void{ _vg1561.push(_arg1); _arg1._td331 = this; if (_ce47.vertices.indexOf(_arg1._ed697) == -1){ _ce47.vertices.push(_arg1._ed697); }; if (_ce47.vertices.indexOf(_arg1._bw1102) == -1){ _ce47.vertices.push(_arg1._bw1102); }; if (_arg1._gq2522){ if (_ce47.vertices.indexOf(_arg1._gq2522) == -1){ _ce47.vertices.push(_arg1._gq2522); }; }; } public function _gy2769(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):Array{ var _local13:Line3D; var _local15:Vertex3D; var _local9:Number = ((_arg6 - _arg3) / _arg2); var _local10:Number = ((_arg7 - _arg4) / _arg2); var _local11:Number = ((_arg8 - _arg5) / _arg2); var _local12:Array = new Array(); var _local14:Vertex3D = new Vertex3D(_arg3, _arg4, _arg5); var _local16:Number = 0; while (_local16 <= _arg2) { _local15 = new Vertex3D((_arg3 + (_local9 * _local16)), (_arg4 + (_local10 * _local16)), (_arg5 + (_local11 * _local16))); _local13 = new Line3D(this, (_kg2044 as LineMaterial), _arg1, _local14, _local15); _py2702(_local13); _local12.push(_local13); _local14 = _local15; _local16++; }; return (_local12); } public function _pi2388(_arg1:Line3D):void{ var _local2:int = _vg1561.indexOf(_arg1); if (_local2 > -1){ _vg1561.splice(_local2, 1); } else { PaperLogger._rw2203("Papervision3D Lines3D.removeLine : WARNING removal of non-existant line attempted. "); }; } override public function project(_arg1:DisplayObject3D, _arg2:RenderSessionData):Number{ var _local3:Line3D; var _local4:Number; var _local5:RenderLine; super.project(_arg1, _arg2); for each (_local3 in _vg1561) { if (_arg2._rj27._uo1509._fq1200(_local3)){ _local5 = _local3._nh614; _local5.renderer = _local3._kg2044; _local5.size = _local3.size; _local4 = (_local4 + (_local5._id609 = ((_local3._ed697._vg530.z + _local3._bw1102._vg530.z) / 2))); _local5._ed697 = _local3._ed697._vg530; _local5._bw1102 = _local3._bw1102._vg530; _arg2.renderer._au3067(_local5); }; }; return ((_local4 / (_vg1561.length + 1))); } public function _qv325(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Line3D{ var _local8:Line3D = new Line3D(this, (_kg2044 as LineMaterial), _arg1, new Vertex3D(_arg2, _arg3, _arg4), new Vertex3D(_arg5, _arg6, _arg7)); _py2702(_local8); return (_local8); } } }//package org.papervision3d.core.geom
Section 45
//TriangleMesh3D (org.papervision3d.core.geom.TriangleMesh3D) package org.papervision3d.core.geom { import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.culling.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.render.draw.*; public class TriangleMesh3D extends Vertices3D { private var _uy2317:RenderTriangle; private var _rm1045:Array; private var _uh2211:Array; public function TriangleMesh3D(_arg1:MaterialObject3D, _arg2:Array, _arg3:Array, _arg4:String=null){ _rm1045 = new Array(); _uh2211 = new Array(); super(_arg2, _arg4); this._ce47._av2739 = ((_arg3) || (new Array())); this._kg2044 = ((_arg1) || (MaterialObject3D.DEFAULT)); } public function _om3191(_arg1:String="x", _arg2:String="y"):void{ var _local10:String; var _local11:Triangle3D; var _local12:Array; var _local13:Vertex3D; var _local14:Vertex3D; var _local15:Vertex3D; var _local16:NumberUV; var _local17:NumberUV; var _local18:NumberUV; var _local3:Array = this._ce47._av2739; var _local4:Object = this._qa3048(); var _local5:Number = _local4.min[_arg1]; var _local6:Number = _local4.size[_arg1]; var _local7:Number = _local4.min[_arg2]; var _local8:Number = _local4.size[_arg2]; var _local9:MaterialObject3D = this._kg2044; for (_local10 in _local3) { _local11 = _local3[Number(_local10)]; _local12 = _local11.vertices; _local13 = _local12[0]; _local14 = _local12[1]; _local15 = _local12[2]; _local16 = new NumberUV(((_local13[_arg1] - _local5) / _local6), ((_local13[_arg2] - _local7) / _local8)); _local17 = new NumberUV(((_local14[_arg1] - _local5) / _local6), ((_local14[_arg2] - _local7) / _local8)); _local18 = new NumberUV(((_local15[_arg1] - _local5) / _local6), ((_local15[_arg2] - _local7) / _local8)); _local11._br1645 = [_local16, _local17, _local18]; }; } public function _bh1441():void{ var _local4:Triangle3D; var _local6:Vertex3D; var _local7:Vertex3D; var _local8:Vertex3D; var _local9:Vertex3D; var _local10:Vertex3D; var _local11:Vertex3D; var _local12:NumberUV; var _local13:NumberUV; var _local14:NumberUV; var _local15:NumberUV; var _local16:NumberUV; var _local17:NumberUV; var _local18:Triangle3D; var _local19:Triangle3D; var _local20:Triangle3D; var _local21:Triangle3D; var _local1:Array = new Array(); var _local2:Array = new Array(); var _local3:Array = this._ce47._av2739; var _local5:int = _local3.length; while ((_local4 = _local3[--_local5])) { _local6 = _local4._ed697; _local7 = _local4._bw1102; _local8 = _local4._at2737; _local9 = new Vertex3D(((_local6.x + _local7.x) / 2), ((_local6.y + _local7.y) / 2), ((_local6.z + _local7.z) / 2)); _local10 = new Vertex3D(((_local7.x + _local8.x) / 2), ((_local7.y + _local8.y) / 2), ((_local7.z + _local8.z) / 2)); _local11 = new Vertex3D(((_local8.x + _local6.x) / 2), ((_local8.y + _local6.y) / 2), ((_local8.z + _local6.z) / 2)); this._ce47.vertices.push(_local9, _local10, _local11); _local12 = _local4._br1645[0]; _local13 = _local4._br1645[1]; _local14 = _local4._br1645[2]; _local15 = new NumberUV(((_local12._hc45 + _local13._hc45) / 2), ((_local12._md2120 + _local13._md2120) / 2)); _local16 = new NumberUV(((_local13._hc45 + _local14._hc45) / 2), ((_local13._md2120 + _local14._md2120) / 2)); _local17 = new NumberUV(((_local14._hc45 + _local12._hc45) / 2), ((_local14._md2120 + _local12._md2120) / 2)); _local18 = new Triangle3D(this, [_local6, _local9, _local11], _local4._kg2044, [_local12, _local15, _local17]); _local19 = new Triangle3D(this, [_local9, _local7, _local10], _local4._kg2044, [_local15, _local13, _local16]); _local20 = new Triangle3D(this, [_local11, _local10, _local8], _local4._kg2044, [_local17, _local16, _local14]); _local21 = new Triangle3D(this, [_local9, _local10, _local11], _local4._kg2044, [_local15, _local16, _local17]); _local2.push(_local18, _local19, _local20, _local21); }; this._ce47._av2739 = _local2; this._cn3106(); this._ce47.ready = true; } override public function set _kg2044(_arg1:MaterialObject3D):void{ var _local2:Triangle3D; super._kg2044 = _arg1; for each (_local2 in _ce47._av2739) { _local2._kg2044 = _arg1; }; } public function _cn3106():void{ var _local3:Vertex3D; var _local4:Triangle3D; var _local5:Vertex3D; var _local1:Dictionary = new Dictionary(); var _local2:Array = new Array(); for each (_local3 in this._ce47.vertices) { for each (_local5 in _local1) { if ((((((_local3.x == _local5.x)) && ((_local3.y == _local5.y)))) && ((_local3.z == _local5.z)))){ _local1[_local3] = _local5; break; }; }; if (!_local1[_local3]){ _local1[_local3] = _local3; _local2.push(_local3); }; }; this._ce47.vertices = _local2; for each (_local4 in _ce47._av2739) { _local4._ed697 = (_local4.vertices[0] = _local1[_local4._ed697]); _local4._bw1102 = (_local4.vertices[1] = _local1[_local4._bw1102]); _local4._at2737 = (_local4.vertices[2] = _local1[_local4._at2737]); }; } override public function project(_arg1:DisplayObject3D, _arg2:RenderSessionData):Number{ var _local5:Triangle3D; var _local6:Array; var _local7:Number; var _local8:Number; var _local9:ITriangleCuller; var _local10:Vertex3DInstance; var _local11:Vertex3DInstance; var _local12:Vertex3DInstance; var _local13:Triangle3DInstance; var _local14:Triangle3D; var _local15:MaterialObject3D; var _local16:RenderTriangle; _rm1045 = []; _uh2211 = new Array(); var _local3:int = this._ce47.vertices.length; var _local4:Array = []; if (((((((_arg2._pv3003) && (this._cc2194))) && (!(this._rl447)))) && ((_arg2._dy954._ch2809) ? (_oq2615 == 0) : true))){ super._vo182(_arg1, _arg2); _arg2._pv3003._bb2346(this, _arg2); for each (_local5 in this._ce47._av2739) { if (_arg2._pv3003._tv2438(_local5, this, _arg2)){ _arg2._pv3003._hj894(_local5, this, _local15, _arg2, _local4); } else { _local4.push(_local5); }; }; super.project(_arg1, _arg2); _arg2._dy954._ju850(_local4, this, _arg2); } else { super.project(_arg1, _arg2); _local4 = this._ce47._av2739; }; if (!this._rl447){ _local6 = this._ce47._av2739; _local7 = 0; _local8 = 0; _local9 = _arg2._rw2020; for each (_local14 in _local4) { _local15 = (_local14._kg2044) ? _local14._kg2044 : _kg2044; _local10 = _local14._ed697._vg530; _local11 = _local14._bw1102._vg530; _local12 = _local14._at2737._vg530; if (_local9._tv2438(_local14, _local10, _local11, _local12)){ _local16 = _local14._nh614; _local7 = (_local7 + (_local16._id609 = _qx2854(_mt3098, _local10, _local11, _local12))); _local8++; _local16.renderer = (_local15 as ITriangleDrawer); _local16._ed697 = _local10; _local16._bw1102 = _local11; _local16._at2737 = _local12; _local16._un2451 = _local14._un2451; _local16._bu2836 = _local14._bu2836; _local16._dg317 = _local14._dg317; if (_arg2._ch57){ if (_local16.create == null){ _local16.create = _so1360; }; _local16.update(); if ((((_local16._gm2540 < 0)) && (((_local14._kg2044._vk1963) || (((_local14._kg2044._dn1817) && (_local14._kg2044._mf2073))))))){ _local16._gm2540 = -(_local16._gm2540); }; }; _arg2.renderer._au3067(_local16); } else { _arg2._th899._cy2641++; }; }; if (_local3){ while (this._ce47.vertices.length > _local3) { this._ce47.vertices.pop(); }; }; return ((this._id609 = (_local7 / _local8))); //unresolved jump }; _arg2._th899._hi2308++; return (0); } public function _so1360(_arg1:Triangle3D, _arg2:MaterialObject3D, _arg3:Vertex3DInstance, _arg4:Vertex3DInstance, _arg5:Vertex3DInstance, _arg6:NumberUV, _arg7:NumberUV, _arg8:NumberUV):RenderTriangle{ if (_rm1045.length){ _uh2211.push((_uy2317 = _rm1045.pop())); } else { _uh2211.push((_uy2317 = new RenderTriangle(_arg1))); }; _uy2317._td331 = this; _uy2317._yd1270 = _arg1; _uy2317._vm2293 = _arg1; _uy2317.renderer = _arg2; _uy2317.create = _so1360; _uy2317._ed697 = _arg3; _uy2317._bw1102 = _arg4; _uy2317._at2737 = _arg5; _uy2317._un2451 = _arg6; _uy2317._bu2836 = _arg7; _uy2317._dg317 = _arg8; _uy2317.update(); return (_uy2317); } protected function _qx2854(_arg1:uint, _arg2:Vertex3DInstance, _arg3:Vertex3DInstance, _arg4:Vertex3DInstance):Number{ switch (_arg1){ case DisplayObject3D.MESH_SORT_CENTER: return ((((_arg2.z + _arg3.z) + _arg4.z) / 3)); case DisplayObject3D.MESH_SORT_FAR: return (Math.max(_arg2.z, _arg3.z, _arg4.z)); case DisplayObject3D.MESH_SORT_CLOSE: return (Math.min(_arg2.z, _arg3.z, _arg4.z)); }; return (0); } override public function clone():DisplayObject3D{ var _local1:DisplayObject3D = super.clone(); var _local2:TriangleMesh3D = new TriangleMesh3D(this._kg2044, [], [], _local1.name); if (this._xk2861){ _local2._xk2861 = this._xk2861.clone(); }; if (_local1._ce47){ _local2._ce47 = _local1._ce47.clone(_local2); }; _local2._km2613(this); return (_local2); } } }//package org.papervision3d.core.geom
Section 46
//Vertices3D (org.papervision3d.core.geom.Vertices3D) package org.papervision3d.core.geom { import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.culling.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; public class Vertices3D extends DisplayObject3D { public function Vertices3D(_arg1:Array, _arg2:String=null){ super(_arg2, new GeometryObject3D()); this._ce47.vertices = ((_arg1) || (new Array())); } override public function project(_arg1:DisplayObject3D, _arg2:RenderSessionData):Number{ super.project(_arg1, _arg2); if (this._rl447){ return (0); }; if ((_arg2._dy954 is IObjectCuller)){ return (_wm182(_arg1, _arg2)); }; if (((!(this._ce47)) || (!(this._ce47.vertices)))){ return (0); }; return (_arg2._dy954._ci891(this._ce47.vertices, this, _arg2)); } public function _vo182(_arg1:DisplayObject3D, _arg2:RenderSessionData):Number{ return (super.project(_arg1, _arg2)); } public function _ah343():Object{ var _local3:Number3D; var _local4:Vertex3D; var _local1:Array = this._ce47.vertices; var _local2:Object = new Object(); _local2.min = new Number3D(Number.MAX_VALUE, Number.MAX_VALUE, Number.MAX_VALUE); _local2.max = new Number3D(-(Number.MAX_VALUE), -(Number.MAX_VALUE), -(Number.MAX_VALUE)); _local2.size = new Number3D(); for each (_local4 in _local1) { _local3 = _local4.getPosition(); Matrix3D.multiplyVector(this._ik714, _local3); _local2.min.x = Math.min(_local3.x, _local2.min.x); _local2.min.y = Math.min(_local3.y, _local2.min.y); _local2.min.z = Math.min(_local3.z, _local2.min.z); _local2.max.x = Math.max(_local3.x, _local2.max.x); _local2.max.y = Math.max(_local3.y, _local2.max.y); _local2.max.z = Math.max(_local3.z, _local2.max.z); }; _local2.size.x = (_local2.max.x - _local2.min.x); _local2.size.y = (_local2.max.y - _local2.min.y); _local2.size.z = (_local2.max.z - _local2.min.z); return (_local2); } public function _qa3048():Object{ var _local3:Vertex3D; var _local1:Array = this._ce47.vertices; var _local2:Object = new Object(); _local2.min = new Number3D(Number.MAX_VALUE, Number.MAX_VALUE, Number.MAX_VALUE); _local2.max = new Number3D(-(Number.MAX_VALUE), -(Number.MAX_VALUE), -(Number.MAX_VALUE)); _local2.size = new Number3D(); for each (_local3 in _local1) { _local2.min.x = Math.min(_local3.x, _local2.min.x); _local2.min.y = Math.min(_local3.y, _local2.min.y); _local2.min.z = Math.min(_local3.z, _local2.min.z); _local2.max.x = Math.max(_local3.x, _local2.max.x); _local2.max.y = Math.max(_local3.y, _local2.max.y); _local2.max.z = Math.max(_local3.z, _local2.max.z); }; _local2.size.x = (_local2.max.x - _local2.min.x); _local2.size.y = (_local2.max.y - _local2.min.y); _local2.size.z = (_local2.max.z - _local2.min.z); return (_local2); } public function _wm182(_arg1:DisplayObject3D, _arg2:RenderSessionData):Number{ return (0); } public function _bb852(_arg1:Matrix3D):void{ _ce47._bb852(_arg1); } override public function clone():DisplayObject3D{ var _local1:DisplayObject3D = super.clone(); var _local2:Vertices3D = new Vertices3D(null, _local1.name); _local2._kg2044 = _local1._kg2044; if (_local1._xk2861){ _local2._xk2861 = _local1._xk2861.clone(); }; if (this._ce47){ _local2._ce47 = this._ce47.clone(_local2); }; _local2._km2613(this); return (_local2); } } }//package org.papervision3d.core.geom
Section 47
//PaperLoggerEvent (org.papervision3d.core.log.event.PaperLoggerEvent) package org.papervision3d.core.log.event { import flash.events.*; import org.papervision3d.core.log.*; public class PaperLoggerEvent extends Event { public var _vv2397:PaperLogVO; public static const TYPE_LOGEVENT:String = "logEvent"; public function PaperLoggerEvent(_arg1:PaperLogVO){ super(TYPE_LOGEVENT); this._vv2397 = _arg1; } } }//package org.papervision3d.core.log.event
Section 48
//AbstractPaperLogger (org.papervision3d.core.log.AbstractPaperLogger) package org.papervision3d.core.log { import org.papervision3d.core.log.event.*; public class AbstractPaperLogger implements IPaperLogger { public function _ga2519(_arg1:PaperLogger):void{ _arg1.addEventListener(PaperLoggerEvent.TYPE_LOGEVENT, _cc640); } public function debug(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ } public function _rw2203(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ } public function log(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ } public function fatal(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ } public function error(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ } protected function _cc640(_arg1:PaperLoggerEvent):void{ var _local2:PaperLogVO = _arg1._vv2397; switch (_local2.level){ case LogLevel.LOG: log(_local2.msg, _local2.object, _local2._ps872); break; case LogLevel.INFO: info(_local2.msg, _local2.object, _local2._ps872); break; case LogLevel.ERROR: error(_local2.msg, _local2.object, _local2._ps872); break; case LogLevel.DEBUG: debug(_local2.msg, _local2.object, _local2._ps872); break; case LogLevel.WARNING: _rw2203(_local2.msg, _local2.object, _local2._ps872); break; case LogLevel.FATAL: fatal(_local2.msg, _local2.object, _local2._ps872); break; default: log(_local2.msg, _local2.object, _local2._ps872); break; }; } public function _dh1147(_arg1:PaperLogger):void{ _arg1.removeEventListener(PaperLoggerEvent.TYPE_LOGEVENT, _cc640); } public function info(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ } } }//package org.papervision3d.core.log
Section 49
//IPaperLogger (org.papervision3d.core.log.IPaperLogger) package org.papervision3d.core.log { public interface IPaperLogger { function debug(_arg1:String, _arg2:Object=null, _arg3:Array=null):void; function log(_arg1:String, _arg2:Object=null, _arg3:Array=null):void; function error(_arg1:String, _arg2:Object=null, _arg3:Array=null):void; function fatal(_arg1:String, _arg2:Object=null, _arg3:Array=null):void; function _rw2203(_arg1:String, _arg2:Object=null, _arg3:Array=null):void; function info(_arg1:String, _arg2:Object=null, _arg3:Array=null):void; } }//package org.papervision3d.core.log
Section 50
//LogLevel (org.papervision3d.core.log.LogLevel) package org.papervision3d.core.log { public class LogLevel { public static const FATAL:int = 5; public static const ERROR:int = 4; public static const LOG:int = 0; public static const INFO:int = 1; public static const DEBUG:int = 2; public static const WARNING:int = 3; } }//package org.papervision3d.core.log
Section 51
//PaperLogger (org.papervision3d.core.log.PaperLogger) package org.papervision3d.core.log { import flash.events.*; import org.papervision3d.core.log.event.*; public class PaperLogger extends EventDispatcher { public var _ks2703:PaperTraceLogger; private static var _td331:PaperLogger; public function PaperLogger(){ if (_td331){ throw (new Error("Don't call the PaperLogger constructor directly")); }; _ks2703 = new PaperTraceLogger(); _we670(_ks2703); } public function _we670(_arg1:AbstractPaperLogger):void{ _arg1._ga2519(this); } public function _hx2734(_arg1:String, _arg2:Object=null, ... _args):void{ var _local4:PaperLogVO = new PaperLogVO(LogLevel.DEBUG, _arg1, _arg2, _args); var _local5:PaperLoggerEvent = new PaperLoggerEvent(_local4); dispatchEvent(_local5); } public function _log(_arg1:String, _arg2:Object=null, ... _args):void{ var _local4:PaperLogVO = new PaperLogVO(LogLevel.LOG, _arg1, _arg2, _args); var _local5:PaperLoggerEvent = new PaperLoggerEvent(_local4); dispatchEvent(_local5); } public function _bp3025(_arg1:String, _arg2:Object=null, ... _args):void{ var _local4:PaperLogVO = new PaperLogVO(LogLevel.ERROR, _arg1, _arg2, _args); var _local5:PaperLoggerEvent = new PaperLoggerEvent(_local4); dispatchEvent(_local5); } public function _gx2623(_arg1:AbstractPaperLogger):void{ _arg1._dh1147(this); } public function _info(_arg1:String, _arg2:Object=null, ... _args):void{ var _local4:PaperLogVO = new PaperLogVO(LogLevel.INFO, _arg1, _arg2, _args); var _local5:PaperLoggerEvent = new PaperLoggerEvent(_local4); dispatchEvent(_local5); } public function _vv3041(_arg1:String, _arg2:Object=null, ... _args):void{ var _local4:PaperLogVO = new PaperLogVO(LogLevel.WARNING, _arg1, _arg2, _args); var _local5:PaperLoggerEvent = new PaperLoggerEvent(_local4); dispatchEvent(_local5); } public static function debug(_arg1:String, _arg2:Object=null, ... _args):void{ getInstance()._hx2734(_arg1); } public static function log(_arg1:String, _arg2:Object=null, ... _args):void{ getInstance()._log(_arg1); } public static function error(_arg1:String, _arg2:Object=null, ... _args):void{ getInstance()._bp3025(_arg1); } public static function getInstance():PaperLogger{ if (!_td331){ _td331 = new (PaperLogger); }; return (_td331); } public static function _rw2203(_arg1:String, _arg2:Object=null, ... _args):void{ getInstance()._vv3041(_arg1); } public static function info(_arg1:String, _arg2:Object=null, ... _args):void{ getInstance()._info(_arg1); } } }//package org.papervision3d.core.log
Section 52
//PaperLogVO (org.papervision3d.core.log.PaperLogVO) package org.papervision3d.core.log { public class PaperLogVO { public var msg:String; public var level:int; public var _ps872:Array; public var object:Object; public function PaperLogVO(_arg1:int, _arg2:String, _arg3:Object, _arg4:Array){ this.level = _arg1; this.msg = _arg2; this.object = _arg3; this._ps872 = _arg4; } } }//package org.papervision3d.core.log
Section 53
//PaperTraceLogger (org.papervision3d.core.log.PaperTraceLogger) package org.papervision3d.core.log { public class PaperTraceLogger extends AbstractPaperLogger implements IPaperLogger { override public function _rw2203(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ trace("WARNING:", _arg1, _arg3); } override public function log(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ trace("LOG:", _arg1, _arg3); } override public function error(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ trace("ERROR:", _arg1, _arg3); } override public function fatal(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ trace("FATAL:", _arg1, _arg3); } override public function info(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ trace("INFO:", _arg1, _arg3); } override public function debug(_arg1:String, _arg2:Object=null, _arg3:Array=null):void{ trace("DEBUG:", _arg1, _arg3); } } }//package org.papervision3d.core.log
Section 54
//AbstractLightShadeMaterial (org.papervision3d.core.material.AbstractLightShadeMaterial) package org.papervision3d.core.material { import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.core.render.material.*; import org.papervision3d.materials.utils.*; import org.papervision3d.core.render.draw.*; public class AbstractLightShadeMaterial extends TriangleMaterial implements ITriangleDrawer, IUpdateBeforeMaterial { public var _gh1887:Dictionary; private var _cl2459:LightObject3D; protected static var _ni3059:Matrix3D; public function AbstractLightShadeMaterial(){ init(); } public function _gt2568(_arg1:RenderSessionData):void{ var _local2:Object; var _local3:DisplayObject3D; for (_local2 in _wh2014) { _local3 = (_local2 as DisplayObject3D); _gh1887[_local2] = LightMatrix.getLightMatrix(_cg890, _local3, _arg1, _gh1887[_local2]); }; } protected function init():void{ _gh1887 = new Dictionary(); } public function get _cg890():LightObject3D{ return (_cl2459); } public function set _cg890(_arg1:LightObject3D):void{ _cl2459 = _arg1; } } }//package org.papervision3d.core.material
Section 55
//TriangleMaterial (org.papervision3d.core.material.TriangleMaterial) package org.papervision3d.core.material { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.render.draw.*; public class TriangleMaterial extends MaterialObject3D implements ITriangleDrawer { override public function _ck963(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData, _arg4:BitmapData=null, _arg5:Matrix=null):void{ } override public function _xl468(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData):void{ } } }//package org.papervision3d.core.material
Section 56
//FastRectangleTools (org.papervision3d.core.math.util.FastRectangleTools) package org.papervision3d.core.math.util { import flash.geom.*; import org.papervision3d.core.math.*; public class FastRectangleTools { public static function getRotatedBounds(_arg1:Rectangle, _arg2:Number, _arg3:Rectangle=null):Rectangle{ if (!_arg3){ _arg3 = new Rectangle(); }; _arg2 = (_arg2 * Number3D.toRADIANS); var _local4:Number = _arg1.width; var _local5:Number = _arg1.height; var _local6:Number = Math.abs(Math.sin(_arg2)); var _local7:Number = Math.abs(Math.cos(_arg2)); _arg3.left = (_arg1.x - (0.5 * ((_local4 * _local7) + (_local5 * _local6)))); _arg3.right = (_arg1.x + (0.5 * ((_local4 * _local7) + (_local5 * _local6)))); _arg3.top = (_arg1.y - (0.5 * ((_local4 * _local6) + (_local5 * _local7)))); _arg3.bottom = (_arg1.y + (0.5 * ((_local4 * _local6) + (_local5 * _local7)))); return (_arg3); } public static function intersection(_arg1:Rectangle, _arg2:Rectangle, _arg3:Rectangle=null):Rectangle{ if (!_arg3){ _arg3 = new Rectangle(); }; if (!intersects(_arg1, _arg2)){ _arg3.x = (_arg3.y = (_arg3.width = (_arg3.height = 0))); return (_arg3); }; _arg3.left = ((_arg1.left)>_arg2.left) ? _arg1.left : _arg2.left; _arg3.right = ((_arg1.right)<_arg2.right) ? _arg1.right : _arg2.right; _arg3.top = ((_arg1.top)>_arg2.top) ? _arg1.top : _arg2.top; _arg3.bottom = ((_arg1.bottom)<_arg2.bottom) ? _arg1.bottom : _arg2.bottom; return (_arg3); } public static function intersects(_arg1:Rectangle, _arg2:Rectangle):Boolean{ if (((!((((_arg1.right < _arg2.left)) || ((_arg1.left > _arg2.right))))) && (!((((_arg1.bottom < _arg2.top)) || ((_arg1.top > _arg2.bottom))))))){ return (true); }; return (false); } } }//package org.papervision3d.core.math.util
Section 57
//GLU (org.papervision3d.core.math.util.GLU) package org.papervision3d.core.math.util { public class GLU { public static function unProject(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array, _arg5:Array, _arg6:Array, _arg7:Array):Boolean{ var _local8:Array = new Array(16); var _local9:Array = new Array(4); multMatrices(_arg4, _arg5, _local8); if (!invertMatrix(_local8, _local8)){ return (false); }; _local9[0] = _arg1; _local9[1] = _arg2; _local9[2] = _arg3; _local9[3] = 1; _local9[0] = ((_local9[0] - _arg6[0]) / _arg6[2]); _local9[1] = ((_local9[1] - _arg6[1]) / _arg6[3]); _local9[0] = ((_local9[0] * 2) - 1); _local9[1] = ((_local9[1] * 2) - 1); _local9[2] = ((_local9[2] * 2) - 1); multMatrixVec(_local8, _local9, _arg7); if (_arg7[3] == 0){ return (false); }; _arg7[0] = (_arg7[0] / _arg7[3]); _arg7[1] = (_arg7[1] / _arg7[3]); _arg7[2] = (_arg7[2] / _arg7[3]); return (true); } public static function scale(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Number):void{ makeIdentity(_arg1); _arg1[0] = _arg2; _arg1[5] = _arg3; _arg1[10] = _arg4; } public static function multMatrixVec(_arg1:Array, _arg2:Array, _arg3:Array):void{ var _local4:int; _local4 = 0; while (_local4 < 4) { _arg3[_local4] = ((((_arg2[0] * _arg1[int(((0 * 4) + _local4))]) + (_arg2[1] * _arg1[int(((1 * 4) + _local4))])) + (_arg2[2] * _arg1[int(((2 * 4) + _local4))])) + (_arg2[3] * _arg1[int(((3 * 4) + _local4))])); _local4++; }; } public static function invertMatrix(_arg1:Array, _arg2:Array):Boolean{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:Number; var _local8:Array = new Array(4); _local3 = 0; while (_local3 < 4) { _local8[_local3] = new Array(4); _local4 = 0; while (_local4 < 4) { _local8[_local3][_local4] = _arg1[((_local3 * 4) + _local4)]; _local4++; }; _local3++; }; makeIdentity(_arg2); _local3 = 0; while (_local3 < 4) { _local6 = _local3; _local4 = (_local3 + 1); while (_local4 < 4) { if (Math.abs(_local8[_local4][_local3]) > Math.abs(_local8[_local3][_local3])){ _local6 = _local4; }; _local4++; }; if (_local6 != _local3){ _local5 = 0; while (_local5 < 4) { _local7 = _local8[_local3][_local5]; _local8[_local3][_local5] = _local8[_local6][_local5]; _local8[_local6][_local5] = _local7; _local7 = _arg2[((_local3 * 4) + _local5)]; _arg2[((_local3 * 4) + _local5)] = _arg2[((_local6 * 4) + _local5)]; _arg2[((_local6 * 4) + _local5)] = _local7; _local5++; }; }; if (_local8[_local3][_local3] == 0){ return (false); }; _local7 = _local8[_local3][_local3]; _local5 = 0; while (_local5 < 4) { _local8[_local3][_local5] = (_local8[_local3][_local5] / _local7); _arg2[((_local3 * 4) + _local5)] = (_arg2[((_local3 * 4) + _local5)] / _local7); _local5++; }; _local4 = 0; while (_local4 < 4) { if (_local4 != _local3){ _local7 = _local8[_local4][_local3]; _local5 = 0; while (_local5 < 4) { _local8[_local4][_local5] = (_local8[_local4][_local5] - (_local8[_local3][_local5] * _local7)); _arg2[((_local4 * 4) + _local5)] = (_arg2[((_local4 * 4) + _local5)] - (_arg2[((_local3 * 4) + _local5)] * _local7)); _local5++; }; }; _local4++; }; _local3++; }; return (true); } public static function _fp2956(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Boolean{ var _local8:Number = ((_arg3 + _arg2) / (_arg3 - _arg2)); var _local9:Number = ((_arg4 + _arg5) / (_arg4 - _arg5)); var _local10:Number = ((_arg7 + _arg6) / (_arg7 - _arg6)); makeIdentity(_arg1); _arg1[0] = (2 / (_arg3 - _arg2)); _arg1[5] = (2 / (_arg4 - _arg5)); _arg1[10] = (-2 / (_arg7 - _arg6)); _arg1[12] = _local8; _arg1[13] = _local9; _arg1[14] = _local10; return (true); } public static function multMatrices(_arg1:Array, _arg2:Array, _arg3:Array):void{ var _local4:int; var _local5:int; _local4 = 0; while (_local4 < 4) { _local5 = 0; while (_local5 < 4) { _arg3[int(((_local4 * 4) + _local5))] = ((((_arg1[int(((_local4 * 4) + 0))] * _arg2[int(((0 * 4) + _local5))]) + (_arg1[int(((_local4 * 4) + 1))] * _arg2[int(((1 * 4) + _local5))])) + (_arg1[int(((_local4 * 4) + 2))] * _arg2[int(((2 * 4) + _local5))])) + (_arg1[int(((_local4 * 4) + 3))] * _arg2[int(((3 * 4) + _local5))])); _local5++; }; _local4++; }; } public static function _sg324(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Boolean{ var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number = ((_arg2 / 2) * (Math.PI / 180)); _local8 = (_arg5 - _arg4); _local6 = Math.sin(_local9); if ((((((_local8 == 0)) || ((_local6 == 0)))) || ((_arg3 == 0)))){ return (false); }; _local7 = (Math.cos(_local9) / _local6); makeIdentity(_arg1); _arg1[0] = (_local7 / _arg3); _arg1[5] = _local7; _arg1[10] = (-((_arg5 + _arg4)) / _local8); _arg1[11] = -1; _arg1[14] = (-(((2 * _arg4) * _arg5)) / _local8); _arg1[15] = 0; return (true); } public static function makeIdentity(_arg1:Array):void{ _arg1[(0 + (4 * 0))] = 1; _arg1[(0 + (4 * 1))] = 0; _arg1[(0 + (4 * 2))] = 0; _arg1[(0 + (4 * 3))] = 0; _arg1[(1 + (4 * 0))] = 0; _arg1[(1 + (4 * 1))] = 1; _arg1[(1 + (4 * 2))] = 0; _arg1[(1 + (4 * 3))] = 0; _arg1[(2 + (4 * 0))] = 0; _arg1[(2 + (4 * 1))] = 0; _arg1[(2 + (4 * 2))] = 1; _arg1[(2 + (4 * 3))] = 0; _arg1[(3 + (4 * 0))] = 0; _arg1[(3 + (4 * 1))] = 0; _arg1[(3 + (4 * 2))] = 0; _arg1[(3 + (4 * 3))] = 1; } } }//package org.papervision3d.core.math.util
Section 58
//AxisAlignedBoundingBox (org.papervision3d.core.math.AxisAlignedBoundingBox) package org.papervision3d.core.math { import org.papervision3d.core.geom.renderables.*; public class AxisAlignedBoundingBox { public var _xx2751:Number; public var _wn386:Number; public var _im2982:Number; public var _ff2962:Number; public var _ig1084:Number; public var _sq1872:Number; protected var _is2267:Array; public function AxisAlignedBoundingBox(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){ this._xx2751 = _arg1; this._wn386 = _arg2; this._im2982 = _arg3; this._ff2962 = _arg4; this._ig1084 = _arg5; this._sq1872 = _arg6; _fi1869(); } protected function _fi1869():void{ _is2267 = new Array(); _is2267.push(new Vertex3D(_xx2751, _wn386, _im2982)); _is2267.push(new Vertex3D(_xx2751, _wn386, _sq1872)); _is2267.push(new Vertex3D(_xx2751, _ig1084, _im2982)); _is2267.push(new Vertex3D(_xx2751, _ig1084, _sq1872)); _is2267.push(new Vertex3D(_ff2962, _wn386, _im2982)); _is2267.push(new Vertex3D(_ff2962, _wn386, _sq1872)); _is2267.push(new Vertex3D(_ff2962, _ig1084, _im2982)); _is2267.push(new Vertex3D(_ff2962, _ig1084, _sq1872)); } public function _gh381():Array{ return (_is2267); } public function merge(_arg1:AxisAlignedBoundingBox):void{ this._xx2751 = Math.min(this._xx2751, _arg1._xx2751); this._wn386 = Math.min(this._wn386, _arg1._wn386); this._im2982 = Math.min(this._im2982, _arg1._im2982); this._ff2962 = Math.max(this._ff2962, _arg1._ff2962); this._ig1084 = Math.max(this._ig1084, _arg1._ig1084); this._sq1872 = Math.max(this._sq1872, _arg1._sq1872); _fi1869(); } public static function createFromVertices(_arg1:Array):AxisAlignedBoundingBox{ var _local8:Vertex3D; var _local2:Number = Number.MAX_VALUE; var _local3:Number = Number.MAX_VALUE; var _local4:Number = Number.MAX_VALUE; var _local5:Number = -(_local2); var _local6:Number = -(_local3); var _local7:Number = -(_local4); for each (_local8 in _arg1) { _local2 = Math.min(_local2, _local8.x); _local3 = Math.min(_local3, _local8.y); _local4 = Math.min(_local4, _local8.z); _local5 = Math.max(_local5, _local8.x); _local6 = Math.max(_local6, _local8.y); _local7 = Math.max(_local7, _local8.z); }; return (new AxisAlignedBoundingBox(_local2, _local3, _local4, _local5, _local6, _local7)); } } }//package org.papervision3d.core.math
Section 59
//BoundingSphere (org.papervision3d.core.math.BoundingSphere) package org.papervision3d.core.math { import org.papervision3d.core.geom.renderables.*; public class BoundingSphere { public var _mn2029:Number; public var radius:Number; public function BoundingSphere(_arg1:Number){ this._mn2029 = _arg1; this.radius = Math.sqrt(_arg1); } public static function getFromVertices(_arg1:Array):BoundingSphere{ var _local3:Number; var _local4:Vertex3D; var _local2:Number = 0; for each (_local4 in _arg1) { _local3 = (((_local4.x * _local4.x) + (_local4.y * _local4.y)) + (_local4.z * _local4.z)); _local2 = ((_local3)>_local2) ? _local3 : _local2; }; return (new BoundingSphere(_local2)); } } }//package org.papervision3d.core.math
Section 60
//Matrix3D (org.papervision3d.core.math.Matrix3D) package org.papervision3d.core.math { import org.papervision3d.*; public class Matrix3D { public var _jm2768:Number; public var _vb1203:Number; public var _uy942:Number; public var _jp1065:Number; public var _fq2145:Number; public var _fa1348:Number; public var _co210:Number; public var _vo1924:Number; public var _wg1803:Number; public var _ds2925:Number; public var _pf1124:Number; public var _ou2421:Number; public var _py2591:Number; public var _pr1642:Number; public var _ok2829:Number; public var _yj2288:Number; private static var _cos:Function = Math.cos; private static var _sin:Function = Math.sin; private static var temp:Matrix3D = Matrix3D.IDENTITY; private static var n3Di:Number3D = Number3D.ZERO; private static var n3Dj:Number3D = Number3D.ZERO; private static var n3Dk:Number3D = Number3D.ZERO; private static var toDEGREES:Number = 57.2957795130823; private static var toRADIANS:Number = 0.0174532925199433; public function Matrix3D(_arg1:Array=null){ reset(_arg1); } public function _ln2486(_arg1:Matrix3D, _arg2:Matrix3D):void{ var _local3:Number = _arg1._uy942; var _local4:Number = _arg2._uy942; var _local5:Number = _arg1._pf1124; var _local6:Number = _arg2._pf1124; var _local7:Number = _arg1._jm2768; var _local8:Number = _arg2._jm2768; var _local9:Number = _arg1._vo1924; var _local10:Number = _arg2._vo1924; var _local11:Number = _arg1._ou2421; var _local12:Number = _arg2._ou2421; var _local13:Number = _arg1._vb1203; var _local14:Number = _arg2._vb1203; var _local15:Number = _arg1._fq2145; var _local16:Number = _arg2._fq2145; var _local17:Number = _arg1._py2591; var _local18:Number = _arg2._py2591; var _local19:Number = _arg1._co210; var _local20:Number = _arg2._co210; this._uy942 = (((_local3 * _local4) + (_local9 * _local6)) + (_local15 * _local8)); this._vo1924 = (((_local3 * _local10) + (_local9 * _local12)) + (_local15 * _local14)); this._fq2145 = (((_local3 * _local16) + (_local9 * _local18)) + (_local15 * _local20)); this._pf1124 = (((_local5 * _local4) + (_local11 * _local6)) + (_local17 * _local8)); this._ou2421 = (((_local5 * _local10) + (_local11 * _local12)) + (_local17 * _local14)); this._py2591 = (((_local5 * _local16) + (_local11 * _local18)) + (_local17 * _local20)); this._jm2768 = (((_local7 * _local4) + (_local13 * _local6)) + (_local19 * _local8)); this._vb1203 = (((_local7 * _local10) + (_local13 * _local12)) + (_local19 * _local14)); this._co210 = (((_local7 * _local16) + (_local13 * _local18)) + (_local19 * _local20)); } public function _nl1608(_arg1:Matrix3D, _arg2:Matrix3D):void{ var _local3:Number = _arg1._uy942; var _local4:Number = _arg2._uy942; var _local5:Number = _arg1._pf1124; var _local6:Number = _arg2._pf1124; var _local7:Number = _arg1._jm2768; var _local8:Number = _arg2._jm2768; var _local9:Number = _arg1._wg1803; var _local10:Number = _arg2._wg1803; var _local11:Number = _arg1._vo1924; var _local12:Number = _arg2._vo1924; var _local13:Number = _arg1._ou2421; var _local14:Number = _arg2._ou2421; var _local15:Number = _arg1._vb1203; var _local16:Number = _arg2._vb1203; var _local17:Number = _arg1._ds2925; var _local18:Number = _arg2._ds2925; var _local19:Number = _arg1._fq2145; var _local20:Number = _arg2._fq2145; var _local21:Number = _arg1._py2591; var _local22:Number = _arg2._py2591; var _local23:Number = _arg1._co210; var _local24:Number = _arg2._co210; var _local25:Number = _arg1._yj2288; var _local26:Number = _arg2._yj2288; var _local27:Number = _arg1._fa1348; var _local28:Number = _arg2._fa1348; var _local29:Number = _arg1._pr1642; var _local30:Number = _arg2._pr1642; var _local31:Number = _arg1._jp1065; var _local32:Number = _arg2._jp1065; var _local33:Number = _arg1._ok2829; var _local34:Number = _arg2._ok2829; this._uy942 = (((_local3 * _local4) + (_local11 * _local6)) + (_local19 * _local8)); this._vo1924 = (((_local3 * _local12) + (_local11 * _local14)) + (_local19 * _local16)); this._fq2145 = (((_local3 * _local20) + (_local11 * _local22)) + (_local19 * _local24)); this._fa1348 = ((((_local3 * _local28) + (_local11 * _local30)) + (_local19 * _local32)) + _local27); this._pf1124 = (((_local5 * _local4) + (_local13 * _local6)) + (_local21 * _local8)); this._ou2421 = (((_local5 * _local12) + (_local13 * _local14)) + (_local21 * _local16)); this._py2591 = (((_local5 * _local20) + (_local13 * _local22)) + (_local21 * _local24)); this._pr1642 = ((((_local5 * _local28) + (_local13 * _local30)) + (_local21 * _local32)) + _local29); this._jm2768 = (((_local7 * _local4) + (_local15 * _local6)) + (_local23 * _local8)); this._vb1203 = (((_local7 * _local12) + (_local15 * _local14)) + (_local23 * _local16)); this._co210 = (((_local7 * _local20) + (_local15 * _local22)) + (_local23 * _local24)); this._jp1065 = ((((_local7 * _local28) + (_local15 * _local30)) + (_local23 * _local32)) + _local31); this._wg1803 = (((_local9 * _local4) + (_local17 * _local6)) + (_local25 * _local8)); this._ds2925 = (((_local9 * _local12) + (_local17 * _local14)) + (_local25 * _local16)); this._yj2288 = (((_local9 * _local20) + (_local17 * _local22)) + (_local25 * _local24)); this._ok2829 = ((((_local9 * _local28) + (_local17 * _local30)) + (_local25 * _local32)) + _local33); } public function _dl111(_arg1:Number3D):void{ this._uy942 = 0; this._vo1924 = -(_arg1.z); this._fq2145 = _arg1.y; this._pf1124 = _arg1.z; this._ou2421 = 0; this._py2591 = -(_arg1.x); this._jm2768 = -(_arg1.y); this._vb1203 = _arg1.x; this._co210 = 0; } public function get _eh680():Number{ return ((((((this._uy942 * this._ou2421) - (this._pf1124 * this._vo1924)) * this._co210) - (((this._uy942 * this._vb1203) - (this._jm2768 * this._vo1924)) * this._py2591)) + (((this._pf1124 * this._vb1203) - (this._jm2768 * this._ou2421)) * this._fq2145))); } public function copy(_arg1:Matrix3D):Matrix3D{ this._uy942 = _arg1._uy942; this._vo1924 = _arg1._vo1924; this._fq2145 = _arg1._fq2145; this._fa1348 = _arg1._fa1348; this._pf1124 = _arg1._pf1124; this._ou2421 = _arg1._ou2421; this._py2591 = _arg1._py2591; this._pr1642 = _arg1._pr1642; this._jm2768 = _arg1._jm2768; this._vb1203 = _arg1._vb1203; this._co210 = _arg1._co210; this._jp1065 = _arg1._jp1065; return (this); } public function _qg258(_arg1:Matrix3D):Matrix3D{ this._uy942 = _arg1._uy942; this._vo1924 = _arg1._vo1924; this._fq2145 = _arg1._fq2145; this._pf1124 = _arg1._pf1124; this._ou2421 = _arg1._ou2421; this._py2591 = _arg1._py2591; this._jm2768 = _arg1._jm2768; this._vb1203 = _arg1._vb1203; this._co210 = _arg1._co210; return (this); } public function _xg1780(_arg1:Matrix3D, _arg2:Matrix3D):void{ this._uy942 = (_arg1._uy942 + _arg2._uy942); this._vo1924 = (_arg1._vo1924 + _arg2._vo1924); this._fq2145 = (_arg1._fq2145 + _arg2._fq2145); this._fa1348 = (_arg1._fa1348 + _arg2._fa1348); this._pf1124 = (_arg1._pf1124 + _arg2._pf1124); this._ou2421 = (_arg1._ou2421 + _arg2._ou2421); this._py2591 = (_arg1._py2591 + _arg2._py2591); this._pr1642 = (_arg1._pr1642 + _arg2._pr1642); this._jm2768 = (_arg1._jm2768 + _arg2._jm2768); this._vb1203 = (_arg1._vb1203 + _arg2._vb1203); this._co210 = (_arg1._co210 + _arg2._co210); this._jp1065 = (_arg1._jp1065 + _arg2._jp1065); } public function _xl162(_arg1:Matrix3D, _arg2:Matrix3D):void{ var _local3:Number = _arg1._uy942; var _local4:Number = _arg2._uy942; var _local5:Number = _arg1._pf1124; var _local6:Number = _arg2._pf1124; var _local7:Number = _arg1._jm2768; var _local8:Number = _arg2._jm2768; var _local9:Number = _arg1._vo1924; var _local10:Number = _arg2._vo1924; var _local11:Number = _arg1._ou2421; var _local12:Number = _arg2._ou2421; var _local13:Number = _arg1._vb1203; var _local14:Number = _arg2._vb1203; var _local15:Number = _arg1._fq2145; var _local16:Number = _arg2._fq2145; var _local17:Number = _arg1._py2591; var _local18:Number = _arg2._py2591; var _local19:Number = _arg1._co210; var _local20:Number = _arg2._co210; var _local21:Number = _arg1._fa1348; var _local22:Number = _arg2._fa1348; var _local23:Number = _arg1._pr1642; var _local24:Number = _arg2._pr1642; var _local25:Number = _arg1._jp1065; var _local26:Number = _arg2._jp1065; this._uy942 = (((_local3 * _local4) + (_local9 * _local6)) + (_local15 * _local8)); this._vo1924 = (((_local3 * _local10) + (_local9 * _local12)) + (_local15 * _local14)); this._fq2145 = (((_local3 * _local16) + (_local9 * _local18)) + (_local15 * _local20)); this._fa1348 = ((((_local3 * _local22) + (_local9 * _local24)) + (_local15 * _local26)) + _local21); this._pf1124 = (((_local5 * _local4) + (_local11 * _local6)) + (_local17 * _local8)); this._ou2421 = (((_local5 * _local10) + (_local11 * _local12)) + (_local17 * _local14)); this._py2591 = (((_local5 * _local16) + (_local11 * _local18)) + (_local17 * _local20)); this._pr1642 = ((((_local5 * _local22) + (_local11 * _local24)) + (_local17 * _local26)) + _local23); this._jm2768 = (((_local7 * _local4) + (_local13 * _local6)) + (_local19 * _local8)); this._vb1203 = (((_local7 * _local10) + (_local13 * _local12)) + (_local19 * _local14)); this._co210 = (((_local7 * _local16) + (_local13 * _local18)) + (_local19 * _local20)); this._jp1065 = ((((_local7 * _local22) + (_local13 * _local24)) + (_local19 * _local26)) + _local25); } public function reset(_arg1:Array=null):void{ if (((!(_arg1)) || ((_arg1.length < 12)))){ _uy942 = (_ou2421 = (_co210 = (_ok2829 = 1))); _vo1924 = (_fq2145 = (_fa1348 = (_pf1124 = (_py2591 = (_pr1642 = (_jm2768 = (_vb1203 = (_jp1065 = (_wg1803 = (_ds2925 = (_yj2288 = 0))))))))))); } else { _uy942 = _arg1[0]; _vo1924 = _arg1[1]; _fq2145 = _arg1[2]; _fa1348 = _arg1[3]; _pf1124 = _arg1[4]; _ou2421 = _arg1[5]; _py2591 = _arg1[6]; _pr1642 = _arg1[7]; _jm2768 = _arg1[8]; _vb1203 = _arg1[9]; _co210 = _arg1[10]; _jp1065 = _arg1[11]; if (_arg1.length == 16){ _wg1803 = _arg1[12]; _ds2925 = _arg1[13]; _yj2288 = _arg1[14]; _ok2829 = _arg1[15]; } else { _wg1803 = (_ds2925 = (_yj2288 = 0)); _ok2829 = 1; }; }; } public function invert():void{ temp.copy(this); _fy1061(temp); } public function _fy1061(_arg1:Matrix3D):void{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local2:Number = _arg1._eh680; if (Math.abs(_local2) > 0.001){ _local2 = (1 / _local2); _local3 = _arg1._uy942; _local4 = _arg1._pf1124; _local5 = _arg1._jm2768; _local6 = _arg1._vo1924; _local7 = _arg1._ou2421; _local8 = _arg1._vb1203; _local9 = _arg1._fq2145; _local10 = _arg1._py2591; _local11 = _arg1._co210; _local12 = _arg1._fa1348; _local13 = _arg1._pr1642; _local14 = _arg1._jp1065; this._uy942 = (_local2 * ((_local7 * _local11) - (_local8 * _local10))); this._vo1924 = (-(_local2) * ((_local6 * _local11) - (_local8 * _local9))); this._fq2145 = (_local2 * ((_local6 * _local10) - (_local7 * _local9))); this._fa1348 = (-(_local2) * (((_local6 * ((_local10 * _local14) - (_local11 * _local13))) - (_local7 * ((_local9 * _local14) - (_local11 * _local12)))) + (_local8 * ((_local9 * _local13) - (_local10 * _local12))))); this._pf1124 = (-(_local2) * ((_local4 * _local11) - (_local5 * _local10))); this._ou2421 = (_local2 * ((_local3 * _local11) - (_local5 * _local9))); this._py2591 = (-(_local2) * ((_local3 * _local10) - (_local4 * _local9))); this._pr1642 = (_local2 * (((_local3 * ((_local10 * _local14) - (_local11 * _local13))) - (_local4 * ((_local9 * _local14) - (_local11 * _local12)))) + (_local5 * ((_local9 * _local13) - (_local10 * _local12))))); this._jm2768 = (_local2 * ((_local4 * _local8) - (_local5 * _local7))); this._vb1203 = (-(_local2) * ((_local3 * _local8) - (_local5 * _local6))); this._co210 = (_local2 * ((_local3 * _local7) - (_local4 * _local6))); this._jp1065 = (-(_local2) * (((_local3 * ((_local7 * _local14) - (_local8 * _local13))) - (_local4 * ((_local6 * _local14) - (_local8 * _local12)))) + (_local5 * ((_local6 * _local13) - (_local7 * _local12))))); }; } public function _ij129():void{ var _local1:Number = this._uy942; var _local2:Number = this._pf1124; var _local3:Number = this._jm2768; var _local4:Number = this._wg1803; var _local5:Number = this._vo1924; var _local6:Number = this._ou2421; var _local7:Number = this._vb1203; var _local8:Number = this._ds2925; var _local9:Number = this._fq2145; var _local10:Number = this._py2591; var _local11:Number = this._co210; var _local12:Number = this._yj2288; var _local13:Number = this._fa1348; var _local14:Number = this._pr1642; var _local15:Number = this._jp1065; var _local16:Number = this._ok2829; this._uy942 = _local1; this._vo1924 = _local2; this._fq2145 = _local3; this._fa1348 = _local4; this._pf1124 = _local5; this._ou2421 = _local6; this._py2591 = _local7; this._pr1642 = _local8; this._jm2768 = _local9; this._vb1203 = _local10; this._co210 = _local11; this._jp1065 = _local12; this._wg1803 = _local13; this._ds2925 = _local14; this._yj2288 = _local15; this._ok2829 = _local16; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + ((((((((int((_uy942 * 1000)) / 1000) + "\t\t") + (int((_vo1924 * 1000)) / 1000)) + "\t\t") + (int((_fq2145 * 1000)) / 1000)) + "\t\t") + (int((_fa1348 * 1000)) / 1000)) + "\n")); _local1 = (_local1 + ((((((((int((_pf1124 * 1000)) / 1000) + "\t\t") + (int((_ou2421 * 1000)) / 1000)) + "\t\t") + (int((_py2591 * 1000)) / 1000)) + "\t\t") + (int((_pr1642 * 1000)) / 1000)) + "\n")); _local1 = (_local1 + ((((((((int((_jm2768 * 1000)) / 1000) + "\t\t") + (int((_vb1203 * 1000)) / 1000)) + "\t\t") + (int((_co210 * 1000)) / 1000)) + "\t\t") + (int((_jp1065 * 1000)) / 1000)) + "\n")); _local1 = (_local1 + ((((((((int((_wg1803 * 1000)) / 1000) + "\t\t") + (int((_ds2925 * 1000)) / 1000)) + "\t\t") + (int((_yj2288 * 1000)) / 1000)) + "\t\t") + (int((_ok2829 * 1000)) / 1000)) + "\n")); return (_local1); } public static function rotationMatrixWithReference(_arg1:Number3D, _arg2:Number, _arg3:Number3D):Matrix3D{ var _local4:Matrix3D = Matrix3D.translationMatrix(_arg3.x, -(_arg3.y), _arg3.z); Matrix3D.translationMatrix(_arg3.x, -(_arg3.y), _arg3.z)._xl162(_local4, Matrix3D.rotationMatrix(_arg1.x, _arg1.y, _arg1.z, _arg2)); _local4._xl162(_local4, Matrix3D.translationMatrix(-(_arg3.x), _arg3.y, -(_arg3.z))); return (_local4); } public static function multiplyVector(_arg1:Matrix3D, _arg2:Number3D):void{ var _local4:Number; var _local5:Number; var _local3:Number = _arg2.x; _local4 = _arg2.y; _local5 = _arg2.z; _arg2.x = ((((_local3 * _arg1._uy942) + (_local4 * _arg1._vo1924)) + (_local5 * _arg1._fq2145)) + _arg1._fa1348); _arg2.y = ((((_local3 * _arg1._pf1124) + (_local4 * _arg1._ou2421)) + (_local5 * _arg1._py2591)) + _arg1._pr1642); _arg2.z = ((((_local3 * _arg1._jm2768) + (_local4 * _arg1._vb1203)) + (_local5 * _arg1._co210)) + _arg1._jp1065); } public static function multiplyVector4x4(_arg1:Matrix3D, _arg2:Number3D):void{ var _local3:Number; var _local4:Number; var _local6:Number; _local3 = _arg2.x; _local4 = _arg2.y; var _local5:Number = _arg2.z; _local6 = (1 / ((((_local3 * _arg1._wg1803) + (_local4 * _arg1._ds2925)) + (_local5 * _arg1._yj2288)) + _arg1._ok2829)); _arg2.x = ((((_local3 * _arg1._uy942) + (_local4 * _arg1._vo1924)) + (_local5 * _arg1._fq2145)) + _arg1._fa1348); _arg2.y = ((((_local3 * _arg1._pf1124) + (_local4 * _arg1._ou2421)) + (_local5 * _arg1._py2591)) + _arg1._pr1642); _arg2.z = ((((_local3 * _arg1._jm2768) + (_local4 * _arg1._vb1203)) + (_local5 * _arg1._co210)) + _arg1._jp1065); _arg2.x = (_arg2.x * _local6); _arg2.y = (_arg2.y * _local6); _arg2.z = (_arg2.z * _local6); } public static function multiply3x3(_arg1:Matrix3D, _arg2:Matrix3D):Matrix3D{ var _local3:Matrix3D = new (Matrix3D); _local3._ln2486(_arg1, _arg2); return (_local3); } public static function normalizeQuaternion(_arg1:Object):Object{ var _local2:Number = magnitudeQuaternion(_arg1); _arg1.x = (_arg1.x / _local2); _arg1.y = (_arg1.y / _local2); _arg1.z = (_arg1.z / _local2); _arg1.w = (_arg1.w / _local2); return (_arg1); } public static function multiplyVector3x3(_arg1:Matrix3D, _arg2:Number3D):void{ var _local3:Number = _arg2.x; var _local4:Number = _arg2.y; var _local5:Number = _arg2.z; _arg2.x = (((_local3 * _arg1._uy942) + (_local4 * _arg1._vo1924)) + (_local5 * _arg1._fq2145)); _arg2.y = (((_local3 * _arg1._pf1124) + (_local4 * _arg1._ou2421)) + (_local5 * _arg1._py2591)); _arg2.z = (((_local3 * _arg1._jm2768) + (_local4 * _arg1._vb1203)) + (_local5 * _arg1._co210)); } public static function axis2quaternion(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Object{ var _local5:Number = Math.sin((_arg4 / 2)); var _local6:Number = Math.cos((_arg4 / 2)); var _local7:Object = new Object(); _local7.x = (_arg1 * _local5); _local7.y = (_arg2 * _local5); _local7.z = (_arg3 * _local5); _local7.w = _local6; return (normalizeQuaternion(_local7)); } public static function translationMatrix(_arg1:Number, _arg2:Number, _arg3:Number):Matrix3D{ var _local4:Matrix3D = IDENTITY; _local4._fa1348 = _arg1; _local4._pr1642 = _arg2; _local4._jp1065 = _arg3; return (_local4); } public static function magnitudeQuaternion(_arg1:Object):Number{ return (Math.sqrt(((((_arg1.w * _arg1.w) + (_arg1.x * _arg1.x)) + (_arg1.y * _arg1.y)) + (_arg1.z * _arg1.z)))); } public static function rotationX(_arg1:Number):Matrix3D{ var _local2:Matrix3D = IDENTITY; var _local3:Number = Math.cos(_arg1); var _local4:Number = Math.sin(_arg1); _local2._ou2421 = _local3; _local2._py2591 = -(_local4); _local2._vb1203 = _local4; _local2._co210 = _local3; return (_local2); } public static function rotationY(_arg1:Number):Matrix3D{ var _local2:Matrix3D = IDENTITY; var _local3:Number = Math.cos(_arg1); var _local4:Number = Math.sin(_arg1); _local2._uy942 = _local3; _local2._fq2145 = -(_local4); _local2._jm2768 = _local4; _local2._co210 = _local3; return (_local2); } public static function rotationZ(_arg1:Number):Matrix3D{ var _local2:Matrix3D = IDENTITY; var _local3:Number = Math.cos(_arg1); var _local4:Number = Math.sin(_arg1); _local2._uy942 = _local3; _local2._vo1924 = -(_local4); _local2._pf1124 = _local4; _local2._ou2421 = _local3; return (_local2); } public static function clone(_arg1:Matrix3D):Matrix3D{ return (new Matrix3D([_arg1._uy942, _arg1._vo1924, _arg1._fq2145, _arg1._fa1348, _arg1._pf1124, _arg1._ou2421, _arg1._py2591, _arg1._pr1642, _arg1._jm2768, _arg1._vb1203, _arg1._co210, _arg1._jp1065])); } public static function rotationMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Matrix3D=null):Matrix3D{ var _local6:Matrix3D; if (!_arg5){ _local6 = IDENTITY; } else { _local6 = _arg5; }; var _local7:Number = Math.cos(_arg4); var _local8:Number = Math.sin(_arg4); var _local9:Number = (1 - _local7); var _local10:Number = ((_arg1 * _arg2) * _local9); var _local11:Number = ((_arg2 * _arg3) * _local9); var _local12:Number = ((_arg1 * _arg3) * _local9); var _local13:Number = (_local8 * _arg3); var _local14:Number = (_local8 * _arg2); var _local15:Number = (_local8 * _arg1); _local6._uy942 = (_local7 + ((_arg1 * _arg1) * _local9)); _local6._vo1924 = (-(_local13) + _local10); _local6._fq2145 = (_local14 + _local12); _local6._fa1348 = 0; _local6._pf1124 = (_local13 + _local10); _local6._ou2421 = (_local7 + ((_arg2 * _arg2) * _local9)); _local6._py2591 = (-(_local15) + _local11); _local6._pr1642 = 0; _local6._jm2768 = (-(_local14) + _local12); _local6._vb1203 = (_local15 + _local11); _local6._co210 = (_local7 + ((_arg3 * _arg3) * _local9)); _local6._jp1065 = 0; return (_local6); } public static function add(_arg1:Matrix3D, _arg2:Matrix3D):Matrix3D{ var _local3:Matrix3D = new (Matrix3D); _local3._xg1780(_arg1, _arg2); return (_local3); } public static function multiply(_arg1:Matrix3D, _arg2:Matrix3D):Matrix3D{ var _local3:Matrix3D = new (Matrix3D); _local3._xl162(_arg1, _arg2); return (_local3); } public static function euler2quaternion(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Quaternion=null):Quaternion{ var _local13:Quaternion; var _local5:Number = Math.sin((_arg1 * 0.5)); var _local6:Number = Math.cos((_arg1 * 0.5)); var _local7:Number = Math.sin((_arg2 * 0.5)); var _local8:Number = Math.cos((_arg2 * 0.5)); var _local9:Number = Math.sin((_arg3 * 0.5)); var _local10:Number = Math.cos((_arg3 * 0.5)); var _local11:Number = (_local6 * _local8); var _local12:Number = (_local5 * _local7); if (!_arg4){ _local13 = new Quaternion(); } else { _local13 = _arg4; }; _local13.x = ((_local9 * _local11) - (_local10 * _local12)); _local13.y = (((_local10 * _local5) * _local8) + ((_local9 * _local6) * _local7)); _local13.z = (((_local10 * _local6) * _local7) - ((_local9 * _local5) * _local8)); _local13.w = ((_local10 * _local11) + (_local9 * _local12)); return (_local13); } public static function quaternion2matrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Matrix3D=null):Matrix3D{ var _local15:Matrix3D; var _local6:Number = (_arg1 * _arg1); var _local7:Number = (_arg1 * _arg2); var _local8:Number = (_arg1 * _arg3); var _local9:Number = (_arg1 * _arg4); var _local10:Number = (_arg2 * _arg2); var _local11:Number = (_arg2 * _arg3); var _local12:Number = (_arg2 * _arg4); var _local13:Number = (_arg3 * _arg3); var _local14:Number = (_arg3 * _arg4); if (!_arg5){ _local15 = IDENTITY; } else { _local15 = _arg5; }; _local15._uy942 = (1 - (2 * (_local10 + _local13))); _local15._vo1924 = (2 * (_local7 - _local14)); _local15._fq2145 = (2 * (_local8 + _local12)); _local15._pf1124 = (2 * (_local7 + _local14)); _local15._ou2421 = (1 - (2 * (_local6 + _local13))); _local15._py2591 = (2 * (_local11 - _local9)); _local15._jm2768 = (2 * (_local8 - _local12)); _local15._vb1203 = (2 * (_local11 + _local9)); _local15._co210 = (1 - (2 * (_local6 + _local10))); return (_local15); } public static function inverse(_arg1:Matrix3D):Matrix3D{ var _local2:Matrix3D = new (Matrix3D); _local2._fy1061(_arg1); return (_local2); } public static function euler2matrix(_arg1:Number3D):Matrix3D{ temp.reset(); var _local2:Matrix3D = temp; _local2 = temp; var _local3:Number = (_arg1.x * toRADIANS); var _local4:Number = (_arg1.y * toRADIANS); var _local5:Number = (_arg1.z * toRADIANS); var _local6:Number = Math.cos(_local3); var _local7:Number = Math.sin(_local3); var _local8:Number = Math.cos(_local4); var _local9:Number = Math.sin(_local4); var _local10:Number = Math.cos(_local5); var _local11:Number = Math.sin(_local5); var _local12:Number = (_local6 * _local9); var _local13:Number = (_local7 * _local9); _local2._uy942 = (_local8 * _local10); _local2._vo1924 = (-(_local8) * _local11); _local2._fq2145 = _local9; _local2._pf1124 = ((_local13 * _local10) + (_local6 * _local11)); _local2._ou2421 = ((-(_local13) * _local11) + (_local6 * _local10)); _local2._py2591 = (-(_local7) * _local8); _local2._jm2768 = ((-(_local12) * _local10) + (_local7 * _local11)); _local2._vb1203 = ((_local12 * _local11) + (_local7 * _local10)); _local2._co210 = (_local6 * _local8); return (_local2); } public static function scaleMatrix(_arg1:Number, _arg2:Number, _arg3:Number):Matrix3D{ var _local4:Matrix3D = IDENTITY; _local4._uy942 = _arg1; _local4._ou2421 = _arg2; _local4._co210 = _arg3; return (_local4); } public static function rotateAxis(_arg1:Matrix3D, _arg2:Number3D):void{ var _local3:Number = _arg2.x; var _local4:Number = _arg2.y; var _local5:Number = _arg2.z; _arg2.x = (((_local3 * _arg1._uy942) + (_local4 * _arg1._vo1924)) + (_local5 * _arg1._fq2145)); _arg2.y = (((_local3 * _arg1._pf1124) + (_local4 * _arg1._ou2421)) + (_local5 * _arg1._py2591)); _arg2.z = (((_local3 * _arg1._jm2768) + (_local4 * _arg1._vb1203)) + (_local5 * _arg1._co210)); _arg2.normalize(); } public static function matrix2euler(_arg1:Matrix3D, _arg2:Number3D=null, _arg3:Number3D=null):Number3D{ _arg2 = ((_arg2) || (new Number3D())); var _local4:Number = (((_arg3) && ((_arg3.x == 1)))) ? 1 : Math.sqrt((((_arg1._uy942 * _arg1._uy942) + (_arg1._pf1124 * _arg1._pf1124)) + (_arg1._jm2768 * _arg1._jm2768))); var _local5:Number = (((_arg3) && ((_arg3.y == 1)))) ? 1 : Math.sqrt((((_arg1._vo1924 * _arg1._vo1924) + (_arg1._ou2421 * _arg1._ou2421)) + (_arg1._vb1203 * _arg1._vb1203))); var _local6:Number = (((_arg3) && ((_arg3.z == 1)))) ? 1 : Math.sqrt((((_arg1._fq2145 * _arg1._fq2145) + (_arg1._py2591 * _arg1._py2591)) + (_arg1._co210 * _arg1._co210))); var _local7:Number = (_arg1._uy942 / _local4); var _local8:Number = (_arg1._pf1124 / _local5); var _local9:Number = (_arg1._jm2768 / _local6); var _local10:Number = (_arg1._vb1203 / _local6); var _local11:Number = (_arg1._co210 / _local6); _local9 = ((_local9 > 1)) ? 1 : _local9; _local9 = ((_local9 < -1)) ? -1 : _local9; _arg2.y = Math.asin(-(_local9)); _arg2.z = Math.atan2(_local8, _local7); _arg2.x = Math.atan2(_local10, _local11); if (Papervision3D.useDEGREES){ _arg2.x = (_arg2.x * toDEGREES); _arg2.y = (_arg2.y * toDEGREES); _arg2.z = (_arg2.z * toDEGREES); }; return (_arg2); } public static function multiplyQuaternion(_arg1:Object, _arg2:Object):Object{ var _local3:Number = _arg1.x; var _local4:Number = _arg1.y; var _local5:Number = _arg1.z; var _local6:Number = _arg1.w; var _local7:Number = _arg2.x; var _local8:Number = _arg2.y; var _local9:Number = _arg2.z; var _local10:Number = _arg2.w; var _local11:Object = new Object(); _local11.x = ((((_local6 * _local7) + (_local3 * _local10)) + (_local4 * _local9)) - (_local5 * _local8)); _local11.y = ((((_local6 * _local8) + (_local4 * _local10)) + (_local5 * _local7)) - (_local3 * _local9)); _local11.z = ((((_local6 * _local9) + (_local5 * _local10)) + (_local3 * _local8)) - (_local4 * _local7)); _local11.w = ((((_local6 * _local10) - (_local3 * _local7)) - (_local4 * _local8)) - (_local5 * _local9)); return (_local11); } public static function get IDENTITY():Matrix3D{ return (new Matrix3D([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1])); } } }//package org.papervision3d.core.math
Section 61
//Number2D (org.papervision3d.core.math.Number2D) package org.papervision3d.core.math { import org.papervision3d.*; public class Number2D { public var x:Number; public var y:Number; public static const DEGTORAD:Number = 0.0174532925199433; public static const RADTODEG:Number = 57.2957795130823; public function Number2D(_arg1:Number=0, _arg2:Number=0){ this.x = _arg1; this.y = _arg2; } public function _lk1933(_arg1:Number):Boolean{ return ((_ka1816 < (_arg1 * _arg1))); } public function reverse():void{ this.x = -(this.x); this.y = -(this.y); } public function _sv2205(_arg1:Number):void{ x = (x / _arg1); y = (y / _arg1); } public function _kq13(_arg1:Number2D):void{ x = (x + _arg1.x); y = (y + _arg1.y); } public function _rc2154(_arg1:Number):void{ x = (x * _arg1); y = (y * _arg1); } public function _ke1559(_arg1:Number):Boolean{ return ((_ka1816 > (_arg1 * _arg1))); } public function toString():String{ var _local1:Number = (Math.round((this.x * 1000)) / 1000); var _local2:Number = (Math.round((this.y * 1000)) / 1000); return ((((("[" + _local1) + ", ") + _local2) + "]")); } public function reset(_arg1:Number=0, _arg2:Number=0):void{ this.x = _arg1; this.y = _arg2; } public function get _ka1816():Number{ return (((this.x * this.x) + (this.y * this.y))); } public function _cp1935():void{ var _local1:Number = this._ec1196; this.x = (this.x / _local1); this.y = (this.y / _local1); } public function get _ec1196():Number{ return (Math.sqrt(((x * x) + (y * y)))); } public function copyTo(_arg1:Number2D):void{ _arg1.x = this.x; _arg1.y = this.y; } public function angle():Number{ if (Papervision3D.useDEGREES){ return ((RADTODEG * Math.atan2(y, x))); }; return (Math.atan2(y, x)); } public function rotate(_arg1:Number):void{ var _local4:Number2D; if (Papervision3D.useDEGREES){ _arg1 = (_arg1 * DEGTORAD); }; var _local2:Number = Math.cos(_arg1); var _local3:Number = Math.sin(_arg1); _local4 = clone(); this.x = ((_local4.x * _local2) - (_local4.y * _local3)); this.y = ((_local4.x * _local3) + (_local4.y * _local2)); } public function _is3081(_arg1:Number2D):void{ x = (x - _arg1.x); y = (y - _arg1.y); } public function clone():Number2D{ return (new Number2D(this.x, this.y)); } public function _yy1624(_arg1:Number):Boolean{ return ((_ka1816 == (_arg1 * _arg1))); } public function copyFrom(_arg1:Number2D):void{ this.x = _arg1.x; this.y = _arg1.y; } public static function multiplyScalar(_arg1:Number2D, _arg2:Number):Number2D{ return (new Number2D((_arg1.x * _arg2), (_arg1.y * _arg2))); } public static function add(_arg1:Number2D, _arg2:Number2D):Number2D{ return (new Number2D((_arg1.x + _arg2.x), (_arg1.y + _arg2.y))); } public static function dot(_arg1:Number2D, _arg2:Number2D):Number{ return (((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y))); } public static function subtract(_arg1:Number2D, _arg2:Number2D):Number2D{ return (new Number2D((_arg1.x - _arg2.x), (_arg1.y - _arg2.y))); } } }//package org.papervision3d.core.math
Section 62
//Number3D (org.papervision3d.core.math.Number3D) package org.papervision3d.core.math { import org.papervision3d.*; public class Number3D { public var x:Number; public var y:Number; public var z:Number; public static var toDEGREES:Number = 57.2957795130823; private static var temp:Number3D = Number3D.ZERO; public static var toRADIANS:Number = 0.0174532925199433; public function Number3D(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0){ this.x = _arg1; this.y = _arg2; this.z = _arg3; } public function _lk1933(_arg1:Number):Boolean{ return ((_ka1816 < (_arg1 * _arg1))); } public function _ph1829(_arg1:Number):void{ if (Papervision3D.useDEGREES){ _arg1 = (_arg1 * toRADIANS); }; var _local2:Number = Math.cos(_arg1); var _local3:Number = Math.sin(_arg1); temp.copyFrom(this); this.y = ((temp.y * _local2) - (temp.z * _local3)); this.z = ((temp.y * _local3) + (temp.z * _local2)); } public function _ic614(_arg1:Number):void{ if (Papervision3D.useDEGREES){ _arg1 = (_arg1 * toRADIANS); }; var _local2:Number = Math.cos(_arg1); var _local3:Number = Math.sin(_arg1); temp.copyFrom(this); this.x = ((temp.x * _local2) + (temp.z * _local3)); this.z = ((temp.x * -(_local3)) + (temp.z * _local2)); } public function _kq13(_arg1:Number3D):void{ x = (x + _arg1.x); y = (y + _arg1.y); z = (z + _arg1.z); } public function _rc2154(_arg1:Number):void{ x = (x * _arg1); y = (y * _arg1); z = (z * _arg1); } public function toString():String{ return (((((("x:" + (Math.round((x * 100)) / 100)) + " y:") + (Math.round((y * 100)) / 100)) + " z:") + (Math.round((z * 100)) / 100))); } public function normalize():void{ var _local1:Number = Math.sqrt((((this.x * this.x) + (this.y * this.y)) + (this.z * this.z))); if (((!((_local1 == 0))) && (!((_local1 == 1))))){ _local1 = (1 / _local1); this.x = (this.x * _local1); this.y = (this.y * _local1); this.z = (this.z * _local1); }; } public function _ud586(_arg1:Number):void{ if (Papervision3D.useDEGREES){ _arg1 = (_arg1 * toRADIANS); }; var _local2:Number = Math.cos(_arg1); var _local3:Number = Math.sin(_arg1); temp.copyFrom(this); this.x = ((temp.x * _local2) - (temp.y * _local3)); this.y = ((temp.x * _local3) + (temp.y * _local2)); } public function reset(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0):void{ x = _arg1; y = _arg2; z = _arg3; } public function get _ka1816():Number{ return ((((this.x * this.x) + (this.y * this.y)) + (this.z * this.z))); } public function get _ec1196():Number{ return (Math.sqrt((((this.x * this.x) + (this.y * this.y)) + (this.z * this.z)))); } public function copyTo(_arg1:Number3D):void{ _arg1.x = x; _arg1.y = y; _arg1.z = z; } public function _ke1559(_arg1:Number):Boolean{ return ((_ka1816 > (_arg1 * _arg1))); } public function _is3081(_arg1:Number3D):void{ x = (x - _arg1.x); y = (y - _arg1.y); z = (z - _arg1.z); } public function clone():Number3D{ return (new Number3D(this.x, this.y, this.z)); } public function _yy1624(_arg1:Number):Boolean{ return ((_ka1816 == (_arg1 * _arg1))); } public function copyFrom(_arg1:Number3D):void{ x = _arg1.x; y = _arg1.y; z = _arg1.z; } public static function sub(_arg1:Number3D, _arg2:Number3D):Number3D{ return (new Number3D((_arg1.x - _arg2.x), (_arg1.y - _arg2.y), (_arg1.z - _arg2.z))); } public static function add(_arg1:Number3D, _arg2:Number3D):Number3D{ return (new Number3D((_arg1.x + _arg2.x), (_arg1.y + _arg2.y), (_arg1.z + _arg2.z))); } public static function cross(_arg1:Number3D, _arg2:Number3D, _arg3:Number3D=null):Number3D{ if (!_arg3){ _arg3 = ZERO; }; _arg3.reset(((_arg2.y * _arg1.z) - (_arg2.z * _arg1.y)), ((_arg2.z * _arg1.x) - (_arg2.x * _arg1.z)), ((_arg2.x * _arg1.y) - (_arg2.y * _arg1.x))); return (_arg3); } public static function dot(_arg1:Number3D, _arg2:Number3D):Number{ return ((((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y)) + (_arg2.z * _arg1.z))); } public static function get ZERO():Number3D{ return (new Number3D(0, 0, 0)); } } }//package org.papervision3d.core.math
Section 63
//NumberUV (org.papervision3d.core.math.NumberUV) package org.papervision3d.core.math { public class NumberUV { public var _hc45:Number; public var _md2120:Number; public function NumberUV(_arg1:Number=0, _arg2:Number=0){ this._hc45 = _arg1; this._md2120 = _arg2; } public function toString():String{ return (((("u:" + _hc45) + " v:") + _md2120)); } public function clone():NumberUV{ return (new NumberUV(this._hc45, this._md2120)); } public static function get ZERO():NumberUV{ return (new NumberUV(0, 0)); } public static function median(_arg1:NumberUV, _arg2:NumberUV):NumberUV{ if (_arg1 == null){ return (null); }; if (_arg2 == null){ return (null); }; return (new NumberUV(((_arg1._hc45 + _arg2._hc45) / 2), ((_arg1._md2120 + _arg2._md2120) / 2))); } public static function weighted(_arg1:NumberUV, _arg2:NumberUV, _arg3:Number, _arg4:Number):NumberUV{ if (_arg1 == null){ return (null); }; if (_arg2 == null){ return (null); }; var _local5:Number = (_arg3 + _arg4); var _local6:Number = (_arg3 / _local5); var _local7:Number = (_arg4 / _local5); return (new NumberUV(((_arg1._hc45 * _local6) + (_arg2._hc45 * _local7)), ((_arg1._md2120 * _local6) + (_arg2._md2120 * _local7)))); } } }//package org.papervision3d.core.math
Section 64
//Quaternion (org.papervision3d.core.math.Quaternion) package org.papervision3d.core.math { public class Quaternion { private var _ab1625:Matrix3D; public var w:Number; public var x:Number; public var y:Number; public var z:Number; public static const EPSILON:Number = 1E-6; public static const DEGTORAD:Number = 0.0174532925199433; public static const RADTODEG:Number = 57.2957795130823; public function Quaternion(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=1){ this.x = _arg1; this.y = _arg2; this.z = _arg3; this.w = _arg4; _ab1625 = Matrix3D.IDENTITY; } public function get matrix():Matrix3D{ var _local1:Number = (x * x); var _local2:Number = (x * y); var _local3:Number = (x * z); var _local4:Number = (x * w); var _local5:Number = (y * y); var _local6:Number = (y * z); var _local7:Number = (y * w); var _local8:Number = (z * z); var _local9:Number = (z * w); _ab1625._uy942 = (1 - (2 * (_local5 + _local8))); _ab1625._vo1924 = (2 * (_local2 - _local9)); _ab1625._fq2145 = (2 * (_local3 + _local7)); _ab1625._pf1124 = (2 * (_local2 + _local9)); _ab1625._ou2421 = (1 - (2 * (_local1 + _local8))); _ab1625._py2591 = (2 * (_local6 - _local4)); _ab1625._jm2768 = (2 * (_local3 - _local7)); _ab1625._vb1203 = (2 * (_local6 + _local4)); _ab1625._co210 = (1 - (2 * (_local1 + _local5))); return (_ab1625); } public function _vy2003(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Boolean=false):void{ if (_arg4){ _arg1 = (_arg1 * DEGTORAD); _arg2 = (_arg2 * DEGTORAD); _arg3 = (_arg3 * DEGTORAD); }; var _local5:Number = Math.sin((_arg1 * 0.5)); var _local6:Number = Math.cos((_arg1 * 0.5)); var _local7:Number = Math.sin((_arg2 * 0.5)); var _local8:Number = Math.cos((_arg2 * 0.5)); var _local9:Number = Math.sin((_arg3 * 0.5)); var _local10:Number = Math.cos((_arg3 * 0.5)); var _local11:Number = (_local6 * _local8); var _local12:Number = (_local5 * _local7); this.x = ((_local9 * _local11) - (_local10 * _local12)); this.y = (((_local10 * _local5) * _local8) + ((_local9 * _local6) * _local7)); this.z = (((_local10 * _local6) * _local7) - ((_local9 * _local5) * _local8)); this.w = ((_local10 * _local11) + (_local9 * _local12)); } public function _lv2208(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{ var _local5:Number = Math.sin((_arg4 / 2)); var _local6:Number = Math.cos((_arg4 / 2)); this.x = (_arg1 * _local5); this.y = (_arg2 * _local5); this.z = (_arg3 * _local5); this.w = _local6; this.normalize(); } public function _xl162(_arg1:Quaternion, _arg2:Quaternion):void{ this.x = ((((_arg1.w * _arg2.x) + (_arg1.x * _arg2.w)) + (_arg1.y * _arg2.z)) - (_arg1.z * _arg2.y)); this.y = ((((_arg1.w * _arg2.y) - (_arg1.x * _arg2.z)) + (_arg1.y * _arg2.w)) + (_arg1.z * _arg2.x)); this.z = ((((_arg1.w * _arg2.z) + (_arg1.x * _arg2.y)) - (_arg1.y * _arg2.x)) + (_arg1.z * _arg2.w)); this.w = ((((_arg1.w * _arg2.w) - (_arg1.x * _arg2.x)) - (_arg1.y * _arg2.y)) - (_arg1.z * _arg2.z)); } public function toString():String{ return (((((((("Quaternion: x:" + this.x) + " y:") + this.y) + " z:") + this.z) + " w:") + this.w)); } public function normalize():void{ var _local2:Number; var _local1:Number = this._ec1196; if (Math.abs(_local1) < EPSILON){ x = (y = (z = 0)); w = 1; } else { _local2 = (1 / _local1); x = (x * _local2); y = (y * _local2); z = (z * _local2); w = (w * _local2); }; } public function _ps518():Number3D{ var _local1:Number3D = new Number3D(); var _local2:Quaternion = this; var _local3:Number = ((_local2.x * _local2.y) + (_local2.z * _local2.w)); if (_local3 > 0.499){ _local1.x = (2 * Math.atan2(_local2.x, _local2.w)); _local1.y = (Math.PI / 2); _local1.z = 0; return (_local1); }; if (_local3 < -0.499){ _local1.x = (-2 * Math.atan2(_local2.x, _local2.w)); _local1.y = (-(Math.PI) / 2); _local1.z = 0; return (_local1); }; var _local4:Number = (_local2.x * _local2.x); var _local5:Number = (_local2.y * _local2.y); var _local6:Number = (_local2.z * _local2.z); _local1.x = Math.atan2((((2 * _local2.y) * _local2.w) - ((2 * _local2.x) * _local2.z)), ((1 - (2 * _local5)) - (2 * _local6))); _local1.y = Math.asin((2 * _local3)); _local1.z = Math.atan2((((2 * _local2.x) * _local2.w) - ((2 * _local2.y) * _local2.z)), ((1 - (2 * _local4)) - (2 * _local6))); return (_local1); } public function get _ec1196():Number{ return (Math.sqrt(((((x * x) + (y * y)) + (z * z)) + (w * w)))); } public function clone():Quaternion{ return (new Quaternion(this.x, this.y, this.z, this.w)); } public function _wh1803(_arg1:Quaternion):void{ var _local2:Number = this.w; var _local3:Number = this.x; var _local4:Number = this.y; var _local5:Number = this.z; x = ((((_local2 * _arg1.x) + (_local3 * _arg1.w)) + (_local4 * _arg1.z)) - (_local5 * _arg1.y)); y = ((((_local2 * _arg1.y) - (_local3 * _arg1.z)) + (_local4 * _arg1.w)) + (_local5 * _arg1.x)); z = ((((_local2 * _arg1.z) + (_local3 * _arg1.y)) - (_local4 * _arg1.x)) + (_local5 * _arg1.w)); w = ((((_local2 * _arg1.w) - (_local3 * _arg1.x)) - (_local4 * _arg1.y)) - (_local5 * _arg1.z)); } public static function sub(_arg1:Quaternion, _arg2:Quaternion):Quaternion{ return (new Quaternion((_arg1.x - _arg2.x), (_arg1.y - _arg2.y), (_arg1.z - _arg2.z), (_arg1.w - _arg2.w))); } public static function add(_arg1:Quaternion, _arg2:Quaternion):Quaternion{ return (new Quaternion((_arg1.x + _arg2.x), (_arg1.y + _arg2.y), (_arg1.z + _arg2.z), (_arg1.w + _arg2.w))); } public static function createFromEuler(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Boolean=false):Quaternion{ if (_arg4){ _arg1 = (_arg1 * DEGTORAD); _arg2 = (_arg2 * DEGTORAD); _arg3 = (_arg3 * DEGTORAD); }; var _local5:Number = Math.sin((_arg1 * 0.5)); var _local6:Number = Math.cos((_arg1 * 0.5)); var _local7:Number = Math.sin((_arg2 * 0.5)); var _local8:Number = Math.cos((_arg2 * 0.5)); var _local9:Number = Math.sin((_arg3 * 0.5)); var _local10:Number = Math.cos((_arg3 * 0.5)); var _local11:Number = (_local6 * _local8); var _local12:Number = (_local5 * _local7); var _local13:Quaternion = new (Quaternion); _local13.x = ((_local9 * _local11) - (_local10 * _local12)); _local13.y = (((_local10 * _local5) * _local8) + ((_local9 * _local6) * _local7)); _local13.z = (((_local10 * _local6) * _local7) - ((_local9 * _local5) * _local8)); _local13.w = ((_local10 * _local11) + (_local9 * _local12)); return (_local13); } public static function createFromMatrix(_arg1:Matrix3D):Quaternion{ var _local3:Number; var _local5:int; var _local6:int; var _local7:int; var _local9:Array; var _local10:Array; var _local2:Quaternion = new (Quaternion); var _local4:Array = new Array(4); var _local8:Number = ((_arg1._uy942 + _arg1._ou2421) + _arg1._co210); if (_local8 > 0){ _local3 = Math.sqrt((_local8 + 1)); _local2.w = (_local3 / 2); _local3 = (0.5 / _local3); _local2.x = ((_arg1._vb1203 - _arg1._py2591) * _local3); _local2.y = ((_arg1._fq2145 - _arg1._jm2768) * _local3); _local2.z = ((_arg1._pf1124 - _arg1._vo1924) * _local3); } else { _local9 = [1, 2, 0]; _local10 = [[_arg1._uy942, _arg1._vo1924, _arg1._fq2145, _arg1._fa1348], [_arg1._pf1124, _arg1._ou2421, _arg1._py2591, _arg1._pr1642], [_arg1._jm2768, _arg1._vb1203, _arg1._co210, _arg1._jp1065]]; _local5 = 0; if (_local10[1][1] > _local10[0][0]){ _local5 = 1; }; if (_local10[2][2] > _local10[_local5][_local5]){ _local5 = 2; }; _local6 = _local9[_local5]; _local7 = _local9[_local6]; _local3 = Math.sqrt(((_local10[_local5][_local5] - (_local10[_local6][_local6] + _local10[_local7][_local7])) + 1)); _local4[_local5] = (_local3 * 0.5); if (_local3 != 0){ _local3 = (0.5 / _local3); }; _local4[3] = ((_local10[_local7][_local6] - _local10[_local6][_local7]) * _local3); _local4[_local6] = ((_local10[_local6][_local5] + _local10[_local5][_local6]) * _local3); _local4[_local7] = ((_local10[_local7][_local5] + _local10[_local5][_local7]) * _local3); _local2.x = _local4[0]; _local2.y = _local4[1]; _local2.z = _local4[2]; _local2.w = _local4[3]; }; return (_local2); } public static function dot(_arg1:Quaternion, _arg2:Quaternion):Number{ return (((((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y)) + (_arg1.z * _arg2.z)) + (_arg1.w * _arg2.w))); } public static function multiply(_arg1:Quaternion, _arg2:Quaternion):Quaternion{ var _local3:Quaternion = new (Quaternion); _local3.x = ((((_arg1.w * _arg2.x) + (_arg1.x * _arg2.w)) + (_arg1.y * _arg2.z)) - (_arg1.z * _arg2.y)); _local3.y = ((((_arg1.w * _arg2.y) - (_arg1.x * _arg2.z)) + (_arg1.y * _arg2.w)) + (_arg1.z * _arg2.x)); _local3.z = ((((_arg1.w * _arg2.z) + (_arg1.x * _arg2.y)) - (_arg1.y * _arg2.x)) + (_arg1.z * _arg2.w)); _local3.w = ((((_arg1.w * _arg2.w) - (_arg1.x * _arg2.x)) - (_arg1.y * _arg2.y)) - (_arg1.z * _arg2.z)); return (_local3); } public static function createFromAxisAngle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Quaternion{ var _local5:Quaternion = new (Quaternion); _local5._lv2208(_arg1, _arg2, _arg3, _arg4); return (_local5); } public static function slerp(_arg1:Quaternion, _arg2:Quaternion, _arg3:Number):Quaternion{ var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local4:Number = ((((_arg1.w * _arg2.w) + (_arg1.x * _arg2.x)) + (_arg1.y * _arg2.y)) + (_arg1.z * _arg2.z)); if (_local4 < 0){ _arg1.x = (_arg1.x * -1); _arg1.y = (_arg1.y * -1); _arg1.z = (_arg1.z * -1); _arg1.w = (_arg1.w * -1); _local4 = (_local4 * -1); }; if ((_local4 + 1) > EPSILON){ if ((1 - _local4) >= EPSILON){ _local7 = Math.acos(_local4); _local8 = (1 / Math.sin(_local7)); _local5 = (Math.sin((_local7 * (1 - _arg3))) * _local8); _local6 = (Math.sin((_local7 * _arg3)) * _local8); } else { _local5 = (1 - _arg3); _local6 = _arg3; }; } else { _arg2.y = -(_arg1.y); _arg2.x = _arg1.x; _arg2.w = -(_arg1.w); _arg2.z = _arg1.z; _local5 = Math.sin((Math.PI * (0.5 - _arg3))); _local6 = Math.sin((Math.PI * _arg3)); }; return (new Quaternion(((_local5 * _arg1.x) + (_local6 * _arg2.x)), ((_local5 * _arg1.y) + (_local6 * _arg2.y)), ((_local5 * _arg1.z) + (_local6 * _arg2.z)), ((_local5 * _arg1.w) + (_local6 * _arg2.w)))); } public static function createFromOrthoMatrix(_arg1:Matrix3D):Quaternion{ var _local2:Quaternion = new (Quaternion); _local2.w = (Math.sqrt(Math.max(0, (((1 + _arg1._uy942) + _arg1._ou2421) + _arg1._co210))) / 2); _local2.x = (Math.sqrt(Math.max(0, (((1 + _arg1._uy942) - _arg1._ou2421) - _arg1._co210))) / 2); _local2.y = (Math.sqrt(Math.max(0, (((1 - _arg1._uy942) + _arg1._ou2421) - _arg1._co210))) / 2); _local2.z = (Math.sqrt(Math.max(0, (((1 - _arg1._uy942) - _arg1._ou2421) + _arg1._co210))) / 2); _local2.x = (((_arg1._vb1203 - _arg1._py2591) < 0)) ? ((_local2.x < 0)) ? _local2.x : -(_local2.x) : ((_local2.x < 0)) ? -(_local2.x) : _local2.x; _local2.y = (((_arg1._fq2145 - _arg1._jm2768) < 0)) ? ((_local2.y < 0)) ? _local2.y : -(_local2.y) : ((_local2.y < 0)) ? -(_local2.y) : _local2.y; _local2.z = (((_arg1._pf1124 - _arg1._vo1924) < 0)) ? ((_local2.z < 0)) ? _local2.z : -(_local2.z) : ((_local2.z < 0)) ? -(_local2.z) : _local2.z; return (_local2); } public static function conjugate(_arg1:Quaternion):Quaternion{ var _local2:Quaternion = new (Quaternion); _local2.x = -(_arg1.x); _local2.y = -(_arg1.y); _local2.z = -(_arg1.z); _local2.w = _arg1.w; return (_local2); } public static function slerpOld(_arg1:Quaternion, _arg2:Quaternion, _arg3:Number):Quaternion{ var _local4:Quaternion = new (Quaternion); var _local5:Number = ((((_arg1.w * _arg2.w) + (_arg1.x * _arg2.x)) + (_arg1.y * _arg2.y)) + (_arg1.z * _arg2.z)); if (Math.abs(_local5) >= 1){ _local4.w = _arg1.w; _local4.x = _arg1.x; _local4.y = _arg1.y; _local4.z = _arg1.z; return (_local4); }; var _local6:Number = Math.acos(_local5); var _local7:Number = Math.sqrt((1 - (_local5 * _local5))); if (Math.abs(_local7) < 0.001){ _local4.w = ((_arg1.w * 0.5) + (_arg2.w * 0.5)); _local4.x = ((_arg1.x * 0.5) + (_arg2.x * 0.5)); _local4.y = ((_arg1.y * 0.5) + (_arg2.y * 0.5)); _local4.z = ((_arg1.z * 0.5) + (_arg2.z * 0.5)); return (_local4); }; var _local8:Number = (Math.sin(((1 - _arg3) * _local6)) / _local7); var _local9:Number = (Math.sin((_arg3 * _local6)) / _local7); _local4.w = ((_arg1.w * _local8) + (_arg2.w * _local9)); _local4.x = ((_arg1.x * _local8) + (_arg2.x * _local9)); _local4.y = ((_arg1.y * _local8) + (_arg2.y * _local9)); _local4.z = ((_arg1.z * _local8) + (_arg2.z * _local9)); return (_local4); } } }//package org.papervision3d.core.math
Section 65
//pv3dview (org.papervision3d.core.ns.pv3dview) package org.papervision3d.core.ns { public namespace pv3dview; }//package org.papervision3d.core.ns
Section 66
//CameraObject3D (org.papervision3d.core.proto.CameraObject3D) package org.papervision3d.core.proto { import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.culling.*; import org.papervision3d.core.math.*; import org.papervision3d.core.log.*; import org.papervision3d.*; import org.papervision3d.core.math.util.*; public class CameraObject3D extends DisplayObject3D { protected var _fp1501:Number;// = 1 public var _pr138:IObjectCuller; public var sort:Boolean; public var _dx2443:Rectangle; protected var _target:DisplayObject3D; protected var _vu2144:Matrix3D; public var _et1052:Matrix3D; protected var _ck2187:Boolean; protected var _cn2098:Boolean; public var zoom:Number; public var _yh807:Boolean; public var focus:Number; protected var _ty1691:Boolean; protected var _ml920:Number; public static var DEFAULT_VIEWPORT:Rectangle = new Rectangle(0, 0, 550, 400); public static var DEFAULT_POS:Number3D = new Number3D(0, 0, -1000); public static var DEFAULT_UP:Number3D = new Number3D(0, 1, 0); private static var _flipY:Matrix3D = Matrix3D.scaleMatrix(1, -1, 1); public function CameraObject3D(_arg1:Number=500, _arg2:Number=3){ this.x = DEFAULT_POS.x; this.y = DEFAULT_POS.y; this.z = DEFAULT_POS.z; this.zoom = _arg2; this.focus = _arg1; this._et1052 = Matrix3D.IDENTITY; this._dx2443 = DEFAULT_VIEWPORT; this.sort = true; _ck2187 = false; _vu2144 = Matrix3D.scaleMatrix(1, 1, 1); if (Papervision3D.useRIGHTHANDED){ DEFAULT_UP.y = -1; this._yh807 = false; this._sk1812(DisplayObject3D.ZERO); } else { this._yh807 = true; }; } public function get target():DisplayObject3D{ return (_target); } public function get _ut1477():Boolean{ return (_ty1691); } public function set _ni787(_arg1:Number):void{ if (((!(_dx2443)) || (_dx2443.isEmpty()))){ PaperLogger._rw2203("CameraObject3D#viewport not set, can't set fov!"); return; }; var _local2:Number = 0; var _local3:Number = 0; var _local4:Number = 0; if (_target){ _local2 = _target._ik714._fa1348; _local3 = _target._ik714._pr1642; _local4 = _target._ik714._jp1065; }; var _local5:Number = (_dx2443.height / 2); var _local6:Number = ((_arg1 / 2) * (Math.PI / 180)); this.focus = ((_local5 / Math.tan(_local6)) / this.zoom); } public function pan(_arg1:Number):void{ } public function get _ss1303():Number{ return (_ml920); } public function set target(_arg1:DisplayObject3D):void{ _target = _arg1; } public function _ju850(_arg1:Array, _arg2:DisplayObject3D, _arg3:RenderSessionData):Number{ return (0); } public function get _ch2809():Boolean{ return (_cn2098); } public function set _ss1303(_arg1:Number):void{ if (_arg1 > this.focus){ _ml920 = _arg1; }; } public function get _ta2429():Number{ return (this.focus); } public function _dg1754(_arg1:Matrix3D=null):void{ if (this._yh807){ _et1052._xl162(((_arg1) || (this.transform)), _flipY); _et1052.invert(); } else { _et1052._fy1061(((_arg1) || (this.transform))); }; } public function set _ut1477(_arg1:Boolean):void{ _ty1691 = _arg1; } public function _nu3069(_arg1:Number):void{ } override public function _sk1812(_arg1:DisplayObject3D, _arg2:Number3D=null):void{ if (this._yh807){ super._sk1812(_arg1, _arg2); } else { super._sk1812(_arg1, ((_arg2) || (DEFAULT_UP))); }; } public function get _fp2956():Boolean{ return (_ck2187); } public function _am2487(_arg1:Number, _arg2:Number, _arg3:Boolean=true, _arg4:DisplayObject3D=null):void{ } public function get _ni787():Number{ if (((!(_dx2443)) || (_dx2443.isEmpty()))){ PaperLogger._rw2203("CameraObject3D#viewport not set, can't calculate fov!"); return (NaN); }; var _local1:Number = 0; var _local2:Number = 0; var _local3:Number = 0; if (_target){ _local1 = _target._ik714._fa1348; _local2 = _target._ik714._pr1642; _local3 = _target._ik714._jp1065; }; var _local4:Number = (this.x - _local1); var _local5:Number = (this.y - _local2); var _local6:Number = (this.z - _local3); var _local7:Number = this.focus; var _local8:Number = this.zoom; var _local9:Number = (Math.sqrt((((_local4 * _local4) + (_local5 * _local5)) + (_local6 * _local6))) + _local7); var _local10:Number = (_dx2443.height / 2); var _local11:Number = (180 / Math.PI); return (((Math.atan(((((_local9 / _local7) / _local8) * _local10) / _local9)) * _local11) * 2)); } public function set _ta2429(_arg1:Number):void{ if (_arg1 > 0){ this.focus = _arg1; }; } public function set _ch2809(_arg1:Boolean):void{ _cn2098 = _arg1; } public function set _hp847(_arg1:Number):void{ _fp1501 = ((_arg1 > 0)) ? _arg1 : 0.0001; _vu2144._uy942 = _fp1501; _vu2144._ou2421 = _fp1501; _vu2144._co210 = _fp1501; } public function _sg1182(_arg1:Number, _arg2:Number, _arg3:Number=0):Number3D{ var _local4:Number3D; var _local5:Matrix3D; var _local6:Array; var _local7:Array; var _local8:Array; var _local9:Array; var _local10:Array; var _local11:Array; var _local12:Number; if (_ty1691){ if (!_dx2443){ return (null); }; _local5 = this.transform; _local6 = [(-(_dx2443.width) / 2), (-(_dx2443.height) / 2), _dx2443.width, _dx2443.height]; _local7 = [_local5._uy942, _local5._pf1124, _local5._jm2768, _local5._wg1803, _local5._vo1924, _local5._ou2421, _local5._vb1203, _local5._ds2925, _local5._fq2145, _local5._py2591, _local5._co210, _local5._yj2288, _local5._fa1348, _local5._pr1642, _local5._jp1065, _local5._ok2829]; _local8 = new Array(16); _local9 = new Array(4); GLU.invertMatrix(_local7, _local7); if (_ck2187){ _local10 = new Array(16); _local11 = new Array(16); GLU._fp2956(_local11, (_dx2443.width / 2), (-(_dx2443.width) / 2), (-(_dx2443.height) / 2), (_dx2443.height / 2), _ss1303, _ta2429); GLU.scale(_local10, _fp1501, _fp1501, 1); GLU.multMatrices(_local10, _local11, _local8); } else { GLU._sg324(_local8, _ni787, (_dx2443.width / _dx2443.height), -(_ta2429), -(_ss1303)); }; GLU.unProject(-(_arg1), _arg2, _arg3, _local7, _local8, _local6, _local9); _local4 = new Number3D(); _local4.x = _local9[0]; _local4.y = _local9[1]; _local4.z = _local9[2]; } else { _local12 = ((focus * zoom) / focus); _local4 = new Number3D((_arg1 / _local12), ((_yh807) ? -(_arg2) : _arg2 / _local12), focus); Matrix3D.multiplyVector3x3(transform, _local4); }; return (_local4); } public function set _fp2956(_arg1:Boolean):void{ _ck2187 = _arg1; } public function _ci891(_arg1:Array, _arg2:DisplayObject3D, _arg3:RenderSessionData):Number{ return (0); } public function get _hp847():Number{ return (_fp1501); } } }//package org.papervision3d.core.proto
Section 67
//DisplayObjectContainer3D (org.papervision3d.core.proto.DisplayObjectContainer3D) package org.papervision3d.core.proto { import flash.events.*; import flash.utils.*; import org.papervision3d.objects.*; import org.papervision3d.core.log.*; public class DisplayObjectContainer3D extends EventDispatcher { protected var _rk1133:Object; public var root:DisplayObjectContainer3D; private var _vy3114:int; protected var _nr1501:Dictionary; public function DisplayObjectContainer3D():void{ this._nr1501 = new Dictionary(false); this._rk1133 = new Dictionary(true); this._vy3114 = 0; } private function _uy2815(_arg1:String, _arg2:DisplayObject3D=null):DisplayObject3D{ var _local3:DisplayObject3D; var _local4:DisplayObject3D; _arg2 = ((_arg2) || (DisplayObject3D(this))); if (!_arg2){ return (null); }; if (_arg2.name == _arg1){ return (_arg2); }; for each (_local3 in _arg2.children) { _local4 = _uy2815(_arg1, _local3); if (_local4){ return (_local4); }; }; return (null); } public function getChildByName(_arg1:String, _arg2:Boolean=false):DisplayObject3D{ if (_arg2){ return (_uy2815(_arg1)); }; return (this._rk1133[_arg1]); } override public function toString():String{ return (_vw530()); } public function _mx410(_arg1:DisplayObject3D):DisplayObjectContainer3D{ var _local2:DisplayObject3D; for each (_local2 in _arg1.children) { _arg1.removeChild(_local2); this.addChild(_local2); }; return (this); } public function get numChildren():int{ return (this._vy3114); } public function removeChild(_arg1:DisplayObject3D):DisplayObject3D{ if (((_arg1) && (_nr1501[_arg1]))){ delete _rk1133[this._nr1501[_arg1]]; delete _nr1501[_arg1]; _arg1.parent = null; _arg1.root = null; _vy3114--; return (_arg1); }; return (null); } public function _tm601(_arg1:String):DisplayObject3D{ return (removeChild(getChildByName(_arg1))); } public function addChild(_arg1:DisplayObject3D, _arg2:String=null):DisplayObject3D{ if (_arg1.parent){ PaperLogger.error("DisplayObjectContainer.addChild : DisplayObject3D already has a parent, ie is already added to scene."); }; _arg2 = ((((_arg2) || (_arg1.name))) || (String(_arg1.id))); this._nr1501[_arg1] = _arg2; this._rk1133[_arg2] = _arg1; this._vy3114++; _arg1.parent = this; _arg1.root = this.root; return (_arg1); } public function _vw530():String{ var _local2:String; var _local1 = ""; for (_local2 in this._nr1501) { _local1 = (_local1 + (_local2 + "\n")); }; return (_local1); } public function get children():Object{ return (this._rk1133); } } }//package org.papervision3d.core.proto
Section 68
//GeometryObject3D (org.papervision3d.core.proto.GeometryObject3D) package org.papervision3d.core.proto { import flash.events.*; import flash.utils.*; import org.papervision3d.objects.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; public class GeometryObject3D extends EventDispatcher { protected var _ec1031:Boolean;// = true public var _nw451:Boolean; protected var _wl912:Boolean;// = true public var _eb611:Boolean;// = false protected var _eo208:BoundingSphere; public var _av2739:Array; private var _tq484:uint;// = 0 public var vertices:Array; protected var _so788:AxisAlignedBoundingBox; public function GeometryObject3D():void{ _nw451 = true; } public function _bb852(_arg1:Matrix3D):void{ var _local15:Vertex3D; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local2:Number = _arg1._uy942; var _local3:Number = _arg1._vo1924; var _local4:Number = _arg1._fq2145; var _local5:Number = _arg1._pf1124; var _local6:Number = _arg1._ou2421; var _local7:Number = _arg1._py2591; var _local8:Number = _arg1._jm2768; var _local9:Number = _arg1._vb1203; var _local10:Number = _arg1._co210; var _local11:Number = _arg1._fa1348; var _local12:Number = _arg1._pr1642; var _local13:Number = _arg1._jp1065; var _local14:int = vertices.length; while ((_local15 = vertices[--_local14])) { _local16 = _local15.x; _local17 = _local15.y; _local18 = _local15.z; _local19 = ((((_local16 * _local2) + (_local17 * _local3)) + (_local18 * _local4)) + _local11); _local20 = ((((_local16 * _local5) + (_local17 * _local6)) + (_local18 * _local7)) + _local12); _local21 = ((((_local16 * _local8) + (_local17 * _local9)) + (_local18 * _local10)) + _local13); _local15.x = _local19; _local15.y = _local20; _local15.z = _local21; }; } public function set ready(_arg1:Boolean):void{ if (_arg1){ _ih2192(); this._nw451 = false; }; _eb611 = _arg1; } public function _ds1636():void{ var _local1:Triangle3D; var _local2:Vertex3D; for each (_local1 in this._av2739) { _local2 = _local1._ed697; _local1._ed697 = _local1._at2737; _local1._at2737 = _local2; _local1._ji1695(); }; this.ready = true; } private function _ih2192():void{ var _local2:Triangle3D; var _local3:Vertex3D; var _local1:Dictionary = new Dictionary(true); for each (_local2 in _av2739) { _local2._ed697._qo712[_local2] = _local2; _local2._bw1102._qo712[_local2] = _local2; _local2._at2737._qo712[_local2] = _local2; _local1[_local2._ed697] = _local2._ed697; _local1[_local2._bw1102] = _local2._bw1102; _local1[_local2._at2737] = _local2._at2737; }; for each (_local3 in _local1) { _local3._lf735(); }; } public function get _xv716():BoundingSphere{ if (_ec1031){ _eo208 = BoundingSphere.getFromVertices(vertices); _ec1031 = false; }; return (_eo208); } public function clone(_arg1:DisplayObject3D=null):GeometryObject3D{ var _local5:int; var _local6:MaterialObject3D; var _local7:Vertex3D; var _local8:Triangle3D; var _local9:Vertex3D; var _local10:Vertex3D; var _local11:Vertex3D; var _local2:Dictionary = new Dictionary(true); var _local3:Dictionary = new Dictionary(true); var _local4:GeometryObject3D = new GeometryObject3D(); _local4.vertices = new Array(); _local4._av2739 = new Array(); _local5 = 0; while (_local5 < this.vertices.length) { _local7 = this.vertices[_local5]; _local3[_local7] = _local7.clone(); _local4.vertices.push(_local3[_local7]); _local5++; }; _local5 = 0; while (_local5 < this._av2739.length) { _local8 = this._av2739[_local5]; _local9 = _local3[_local8._ed697]; _local10 = _local3[_local8._bw1102]; _local11 = _local3[_local8._at2737]; _local4._av2739.push(new Triangle3D(_arg1, [_local9, _local10, _local11], _local8._kg2044, _local8._br1645)); _local2[_local8._kg2044] = _local8._kg2044; _local5++; }; for each (_local6 in _local2) { if (_local6){ _local6._sh3150(_arg1); }; }; return (_local4); } public function get ready():Boolean{ return (_eb611); } public function get _ja583():AxisAlignedBoundingBox{ if (_wl912){ _so788 = AxisAlignedBoundingBox.createFromVertices(vertices); _wl912 = false; }; return (_so788); } } }//package org.papervision3d.core.proto
Section 69
//LightObject3D (org.papervision3d.core.proto.LightObject3D) package org.papervision3d.core.proto { import org.papervision3d.objects.*; import org.papervision3d.core.math.*; import org.papervision3d.materials.*; import org.papervision3d.objects.primitives.*; public class LightObject3D extends DisplayObject3D { public var _vs2770:Boolean; public var _ni3059:Matrix3D; private var _qf692:Boolean; private var _mc37:Sphere; public function LightObject3D(_arg1:Boolean=false, _arg2:Boolean=false){ this._ni3059 = Matrix3D.IDENTITY; this._fu2343 = _arg1; this._vs2770 = _arg2; } public function get _fu2343():Boolean{ return (_qf692); } public function set _fu2343(_arg1:Boolean):void{ if (_qf692){ removeChild(_mc37); }; if (_arg1){ _mc37 = new Sphere(new WireframeMaterial(0xFFFF00), 10, 3, 2); addChild(_mc37); }; _qf692 = _arg1; } } }//package org.papervision3d.core.proto
Section 70
//MaterialObject3D (org.papervision3d.core.proto.MaterialObject3D) package org.papervision3d.core.proto { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.render.material.*; import org.papervision3d.materials.*; import org.papervision3d.core.render.draw.*; public class MaterialObject3D extends EventDispatcher implements ITriangleDrawer { public var _dm263:Number;// = 0 public var name:String; public var _al381:Number;// = 0 public var _ci2063:Number;// = 0 public var _xy102:Number; public var id:Number; protected var _wh2014:Dictionary; public var _to1520:Boolean;// = false public var _gy1364:Boolean;// = false public var smooth:Boolean;// = false public var _ba1161:BitmapData; public var _tn853:Number;// = 0 public var _nj1519:Number; public var _ai1913:Number;// = 1 public var interactive:Boolean;// = false public var _dn1817:Boolean;// = true public var _mf2073:Boolean;// = false public var _fl762:Number; public var _up2189:Boolean;// = false public var _nu1314:Number; public static var DEFAULT_COLOR:int = 0; public static var DEBUG_COLOR:int = 0xFF00FF; private static var _totalMaterialObjects:Number = 0; public function MaterialObject3D(){ _nj1519 = DEFAULT_COLOR; _xy102 = DEFAULT_COLOR; super(); this.id = _totalMaterialObjects++; MaterialManager.registerMaterial(this); _wh2014 = new Dictionary(true); } public function _jh2866():Dictionary{ return (_wh2014); } override public function toString():String{ return (((((("[MaterialObject3D] bitmap:" + this._ba1161) + " lineColor:") + this._nj1519) + " fillColor:") + _xy102)); } public function _xl468(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData):void{ } public function get _vk1963():Boolean{ return (!(this._dn1817)); } public function _nt2232(_arg1:DisplayObject3D):void{ if (((_wh2014) && (_wh2014[_arg1]))){ _wh2014[_arg1] = null; }; } public function set _vk1963(_arg1:Boolean):void{ this._dn1817 = !(_arg1); } public function _sh3150(_arg1:DisplayObject3D):void{ _wh2014[_arg1] = true; } public function _ti844():void{ } public function clone():MaterialObject3D{ var _local1:MaterialObject3D = new MaterialObject3D(); _local1.copy(this); return (_local1); } public function _ug2190():Boolean{ return (!(_to1520)); } public function copy(_arg1:MaterialObject3D):void{ this._ba1161 = _arg1._ba1161; this.smooth = _arg1.smooth; this._nj1519 = _arg1._nj1519; this._tn853 = _arg1._tn853; this._xy102 = _arg1._xy102; this._ci2063 = _arg1._ci2063; this._dn1817 = _arg1._dn1817; this._mf2073 = _arg1._mf2073; this._gy1364 = _arg1._gy1364; this.name = _arg1.name; this._fl762 = _arg1._fl762; this._nu1314 = _arg1._nu1314; } public function _sf1512():void{ _wh2014 = null; _ba1161 = null; MaterialManager.unRegisterMaterial(this); } public function _ck963(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData, _arg4:BitmapData=null, _arg5:Matrix=null):void{ } public static function get DEFAULT():MaterialObject3D{ var _local1:MaterialObject3D = new WireframeMaterial(); _local1._nj1519 = (0xFFFFFF * Math.random()); _local1._tn853 = 1; _local1._xy102 = DEFAULT_COLOR; _local1._ci2063 = 1; _local1._vk1963 = false; return (_local1); } public static function get DEBUG():MaterialObject3D{ var _local1:MaterialObject3D = new (MaterialObject3D); _local1._nj1519 = (0xFFFFFF * Math.random()); _local1._tn853 = 1; _local1._xy102 = DEBUG_COLOR; _local1._ci2063 = 0.37; _local1._vk1963 = true; return (_local1); } } }//package org.papervision3d.core.proto
Section 71
//SceneObject3D (org.papervision3d.core.proto.SceneObject3D) package org.papervision3d.core.proto { import org.papervision3d.objects.*; import org.papervision3d.core.log.*; import org.papervision3d.materials.utils.*; import org.papervision3d.*; public class SceneObject3D extends DisplayObjectContainer3D { public var _wh2014:Array; public var _xk2861:MaterialsList; public function SceneObject3D(){ this._wh2014 = new Array(); this._xk2861 = new MaterialsList(); PaperLogger.info((((((Papervision3D.NAME + " ") + Papervision3D.VERSION) + " (") + Papervision3D.DATE) + ")\n")); this.root = this; } override public function removeChild(_arg1:DisplayObject3D):DisplayObject3D{ super.removeChild(_arg1); var _local2:int; while (_local2 < this._wh2014.length) { if (this._wh2014[_local2] === _arg1){ this._wh2014.splice(_local2, 1); return (_arg1); }; _local2++; }; return (_arg1); } override public function addChild(_arg1:DisplayObject3D, _arg2:String=null):DisplayObject3D{ var _local3:DisplayObject3D = super.addChild(_arg1, (_arg2) ? _arg2 : _arg1.name); _arg1._gj2355 = this; _arg1.parent = null; this._wh2014.push(_local3); return (_local3); } } }//package org.papervision3d.core.proto
Section 72
//AbstractRenderListItem (org.papervision3d.core.render.command.AbstractRenderListItem) package org.papervision3d.core.render.command { import flash.display.*; import org.papervision3d.core.render.data.*; public class AbstractRenderListItem implements IRenderListItem { public var _id609:Number; public function _mj1810(_arg1:RenderSessionData, _arg2:Graphics):void{ } } }//package org.papervision3d.core.render.command
Section 73
//IRenderListItem (org.papervision3d.core.render.command.IRenderListItem) package org.papervision3d.core.render.command { import flash.display.*; import org.papervision3d.core.render.data.*; public interface IRenderListItem { function _mj1810(_arg1:RenderSessionData, _arg2:Graphics):void; } }//package org.papervision3d.core.render.command
Section 74
//RenderableListItem (org.papervision3d.core.render.command.RenderableListItem) package org.papervision3d.core.render.command { import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.geom.renderables.*; public class RenderableListItem extends AbstractRenderListItem { public var _xx2751:Number; public var _wn386:Number; public var _im2982:Number; public var _gm2540:Number; public var _td331:DisplayObject3D; public var _vm2293:AbstractRenderable; public var _ho1756:Class; public var _ff2962:Number; public var _ig1084:Number; public var _sq1872:Number; public var _hk835:QuadTreeNode; public function _ku3200(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return (_id609); } public function update():void{ } public function _rm1950(_arg1:Point, _arg2:RenderHitData):RenderHitData{ return (_arg2); } public function _ee3002(_arg1:Number):Array{ return ([]); } } }//package org.papervision3d.core.render.command
Section 75
//RenderLine (org.papervision3d.core.render.command.RenderLine) package org.papervision3d.core.render.command { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.materials.special.*; public class RenderLine extends RenderableListItem implements IRenderListItem { public var size:Number; private var _di2647:Number; private var _st2514:Number; private var _mh40:Number; private var _ph1258:Number; public var _bw1102:Vertex3DInstance; private var _sm886:Number; private var _xp3102:Number; private var _ao2168:Number; private var _eh680:Number; private var _as3036:Number; private var _fl531:Number; private var _cy2981:Number; private var _ru2448:Number; private var _ob1278:Number; public var renderer:LineMaterial; private var _xi2776:Number2D; private var _os2207:Number2D; private var _xt79:Number; private var _cb1876:Number; public var _gq2522:Vertex3DInstance; private var _oy341:Number; private var _om574:Number; private var _xs1780:Number; public var length:Number; private var _uw1679:Number; private var _be909:Number3D; private var _nv2075:Number; private var _rb613:Number2D; private var _md2120:Number2D; public var _ed697:Vertex3DInstance; public var line:Line3D; private var _wh2883:Number; private static var mouseVector:Number3D = Number3D.ZERO; private static var lineVector:Number3D = Number3D.ZERO; public function RenderLine(_arg1:Line3D){ this._ho1756 = Line3D; this._vm2293 = _arg1; this.line = _arg1; this._td331 = _arg1._td331; _ed697 = _arg1._ed697._vg530; _bw1102 = _arg1._bw1102._vg530; _gq2522 = _arg1._gq2522._vg530; _rb613 = new Number2D(); _xi2776 = new Number2D(); _os2207 = new Number2D(); _md2120 = new Number2D(); _be909 = new Number3D(); } override public function _mj1810(_arg1:RenderSessionData, _arg2:Graphics):void{ renderer._mg68(this, _arg2, _arg1); } override public function _ku3200(_arg1:Number, _arg2:Number, _arg3:Number):Number{ _cy2981 = _ed697.x; _ru2448 = _ed697.y; _ob1278 = _ed697.z; _oy341 = _bw1102.x; _om574 = _bw1102.y; _xs1780 = _bw1102.z; if ((((_cy2981 == _arg1)) && ((_ru2448 == _arg2)))){ return (_ob1278); }; if ((((_oy341 == _arg1)) && ((_om574 == _arg2)))){ return (_xs1780); }; _sm886 = (_oy341 - _cy2981); _xp3102 = (_om574 - _ru2448); _xt79 = (_ob1278 / _arg3); _mh40 = (_xs1780 / _arg3); _ao2168 = (1 + _xt79); _di2647 = (1 + _mh40); _uw1679 = _arg1; _wh2883 = _arg2; _ph1258 = ((_cy2981 * _ao2168) - (_arg1 * _xt79)); _cb1876 = ((_oy341 * _di2647) - (_arg1 * _mh40)); _as3036 = ((_ru2448 * _ao2168) - (_arg2 * _xt79)); _nv2075 = ((_om574 * _di2647) - (_arg2 * _mh40)); _eh680 = ((_sm886 * (_ph1258 - _cb1876)) + (_xp3102 * (_as3036 - _nv2075))); _st2514 = ((_sm886 * (_ph1258 - _arg1)) + (_xp3102 * (_as3036 - _arg2))); _fl531 = ((_sm886 * (_arg1 - _cb1876)) + (_xp3102 * (_arg2 - _nv2075))); return ((((_fl531 * _ob1278) + (_st2514 * _xs1780)) / _eh680)); } override public function _rm1950(_arg1:Point, _arg2:RenderHitData):RenderHitData{ var _local3:Number; var _local4:Number; var _local5:Number; if (renderer.interactive){ _local3 = line.size; _rb613.reset(_arg1.x, _arg1.y); _xi2776.reset(line._ed697._vg530.x, line._ed697._vg530.y); _os2207.reset(line._bw1102._vg530.x, line._bw1102._vg530.y); _md2120.copyFrom(_os2207); _md2120._is3081(_xi2776); _local4 = ((((_rb613.x - _xi2776.x) * (_os2207.x - _xi2776.x)) + ((_rb613.y - _xi2776.y) * (_os2207.y - _xi2776.y))) / ((_md2120.x * _md2120.x) + (_md2120.y * _md2120.y))); if ((((_local4 > 0)) && ((_local4 < 1)))){ _md2120._rc2154(_local4); _md2120._kq13(_xi2776); _md2120._is3081(_rb613); _local5 = ((_md2120.x * _md2120.x) + (_md2120.y * _md2120.y)); if (_local5 < (_local3 * _local3)){ _arg2._ad2978 = line._td331; _arg2._kg2044 = renderer; _arg2._ho1756 = line; _arg2._vx390 = true; _be909.reset((line._bw1102.x - line._ed697.x), (line._bw1102.y - line._ed697.y), (line._bw1102.x - line._ed697.x)); _be909.x = (_be909.x * _local4); _be909.y = (_be909.y * _local4); _be909.z = (_be909.z * _local4); _be909.x = (_be909.x + line._ed697.x); _be909.y = (_be909.y + line._ed697.y); _be909.z = (_be909.z + line._ed697.z); _arg2.x = _be909.x; _arg2.y = _be909.y; _arg2.z = _be909.z; _arg2._hc45 = 0; _arg2._md2120 = 0; return (_arg2); }; }; }; return (_arg2); } } }//package org.papervision3d.core.render.command
Section 76
//RenderParticle (org.papervision3d.core.render.command.RenderParticle) package org.papervision3d.core.render.command { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.materials.special.*; public class RenderParticle extends RenderableListItem implements IRenderListItem { public var _kj2647:ParticleMaterial; public var _un893:Particle; public function RenderParticle(_arg1:Particle){ this._un893 = _arg1; this._vm2293 = _arg1; this._ho1756 = Particle; this._td331 = _arg1._td331; } override public function _mj1810(_arg1:RenderSessionData, _arg2:Graphics):void{ _un893._kg2044._sg1341(_un893, _arg2, _arg1); } override public function _rm1950(_arg1:Point, _arg2:RenderHitData):RenderHitData{ _kj2647 = _un893._kg2044; if (_kj2647.interactive){ if (_un893._ur694.contains(_arg1.x, _arg1.y)){ _arg2._ad2978 = _un893._td331; _arg2._kg2044 = _kj2647; _arg2._ho1756 = _un893; _arg2._vx390 = true; _arg2.x = _un893.x; _arg2.y = _un893.y; _arg2.z = _un893.z; _arg2._hc45 = 0; _arg2._md2120 = 0; return (_arg2); }; }; return (_arg2); } } }//package org.papervision3d.core.render.command
Section 77
//RenderTriangle (org.papervision3d.core.render.command.RenderTriangle) package org.papervision3d.core.render.command { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.materials.*; import org.papervision3d.core.render.draw.*; public class RenderTriangle extends RenderableListItem implements IRenderListItem { public var _yd1270:Triangle3D; private var _mh40:Number; private var _ph1258:Number; private var _eh680:Number; private var _tk2617:Vertex3DInstance; private var _ao2168:Number; private var position:Number3D; private var _as3036:Number; private var _ok957:Number; private var _gd1102:Number; private var _cy2981:Number; private var _ru2448:Number; private var _ob1278:Number; private var _kr53:Vertex3DInstance; private var _di2647:Number; private var _xt79:Number; private var _yq2050:Number; private var _um741:Number; private var _oy341:Number; private var _om574:Number; private var _xs1780:Number; private var _yc728:Number; private var _pw1183:NumberUV; private var _eb2635:Number; private var _ug647:Number; private var _vg587:Number; private var _vt2239:Number; private var _dv994:Number; public var _ed697:Vertex3DInstance; public var _bw1102:Vertex3DInstance; private var _fl531:Number; private var _st2514:Number; private var _rj1797:Number; public var container:Sprite; private var _lk2295:NumberUV; public var _at2737:Vertex3DInstance; private var _mc2168:Number; private var _bi1353:NumberUV; protected var _ta271:Vertex3DInstance; public var _un2451:NumberUV; public var _bu2836:NumberUV; public var _dg317:NumberUV; protected var _or2990:Vertex3DInstance; protected var _pe996:Vertex3DInstance; public var renderer:ITriangleDrawer; private var _xl2727:Number; private var _xf2502:Number; private var _cb1876:Number; protected var _fo2463:Vertex3DInstance; public var _kj2647:MaterialObject3D; private var _nv2075:Number; private var _iv994:Vertex3DInstance; public var create:Function; protected static var resPA:Vertex3DInstance = new Vertex3DInstance(); protected static var resBA:Vertex3DInstance = new Vertex3DInstance(); protected static var vPoint:Vertex3DInstance = new Vertex3DInstance(); protected static var resRA:Vertex3DInstance = new Vertex3DInstance(); public function RenderTriangle(_arg1:Triangle3D):void{ position = new Number3D(); super(); this._yd1270 = _arg1; this._td331 = _arg1._td331; _vm2293 = _arg1; _ho1756 = Triangle3D; this._ed697 = _arg1._ed697._vg530; this._bw1102 = _arg1._bw1102._vg530; this._at2737 = _arg1._at2737._vg530; this._un2451 = _arg1._un2451; this._bu2836 = _arg1._bu2836; this._dg317 = _arg1._dg317; this.renderer = _arg1._kg2044; update(); } private function _bf2425(_arg1:Triangle3D, _arg2:Vertex3DInstance, _arg3:RenderHitData):RenderHitData{ var _local44:MovieMaterial; var _local45:Rectangle; var _local4:Vertex3DInstance = _arg1._ed697._vg530; var _local5:Vertex3DInstance = _arg1._bw1102._vg530; var _local6:Vertex3DInstance = _arg1._at2737._vg530; var _local7:Number = (_local6.x - _local4.x); var _local8:Number = (_local6.y - _local4.y); var _local9:Number = (_local5.x - _local4.x); var _local10:Number = (_local5.y - _local4.y); var _local11:Number = (_arg2.x - _local4.x); var _local12:Number = (_arg2.y - _local4.y); var _local13:Number = ((_local7 * _local7) + (_local8 * _local8)); var _local14:Number = ((_local7 * _local9) + (_local8 * _local10)); var _local15:Number = ((_local7 * _local11) + (_local8 * _local12)); var _local16:Number = ((_local9 * _local9) + (_local10 * _local10)); var _local17:Number = ((_local9 * _local11) + (_local10 * _local12)); var _local18:Number = (1 / ((_local13 * _local16) - (_local14 * _local14))); var _local19:Number = (((_local16 * _local15) - (_local14 * _local17)) * _local18); var _local20:Number = (((_local13 * _local17) - (_local14 * _local15)) * _local18); var _local21:Number = (_arg1._at2737.x - _arg1._ed697.x); var _local22:Number = (_arg1._at2737.y - _arg1._ed697.y); var _local23:Number = (_arg1._at2737.z - _arg1._ed697.z); var _local24:Number = (_arg1._bw1102.x - _arg1._ed697.x); var _local25:Number = (_arg1._bw1102.y - _arg1._ed697.y); var _local26:Number = (_arg1._bw1102.z - _arg1._ed697.z); var _local27:Number = ((_arg1._ed697.x + (_local21 * _local19)) + (_local24 * _local20)); var _local28:Number = ((_arg1._ed697.y + (_local22 * _local19)) + (_local25 * _local20)); var _local29:Number = ((_arg1._ed697.z + (_local23 * _local19)) + (_local26 * _local20)); var _local30:Array = _arg1._br1645; var _local31:Number = _local30[0]._hc45; var _local32:Number = _local30[1]._hc45; var _local33:Number = _local30[2]._hc45; var _local34:Number = _local30[0]._md2120; var _local35:Number = _local30[1]._md2120; var _local36:Number = _local30[2]._md2120; var _local37:Number = ((((_local32 - _local31) * _local20) + ((_local33 - _local31) * _local19)) + _local31); var _local38:Number = ((((_local35 - _local34) * _local20) + ((_local36 - _local34) * _local19)) + _local34); if (_yd1270._kg2044){ _kj2647 = _arg1._kg2044; } else { _kj2647 = _arg1._td331._kg2044; }; var _local39:BitmapData = _kj2647._ba1161; var _local40:Number = 1; var _local41:Number = 1; var _local42:Number = 0; var _local43:Number = 0; if ((_kj2647 is MovieMaterial)){ _local44 = (_kj2647 as MovieMaterial); _local45 = _local44.rect; if (_local45){ _local42 = _local45.x; _local43 = _local45.y; _local40 = _local45.width; _local41 = _local45.height; }; } else { if (_local39){ _local40 = (BitmapMaterial.AUTO_MIP_MAPPING) ? _kj2647._dm263 : _local39.width; _local41 = (BitmapMaterial.AUTO_MIP_MAPPING) ? _kj2647._al381 : _local39.height; }; }; _arg3._ad2978 = _arg1._td331; _arg3._kg2044 = _kj2647; _arg3._ho1756 = _arg1; _arg3._vx390 = true; position.x = _local27; position.y = _local28; position.z = _local29; Matrix3D.multiplyVector(_arg1._td331._ik714, position); _arg3.x = position.x; _arg3.y = position.y; _arg3.z = position.z; _arg3._hc45 = ((_local37 * _local40) + _local42); _arg3._md2120 = ((_local41 - (_local38 * _local41)) + _local43); return (_arg3); } override public function _rm1950(_arg1:Point, _arg2:RenderHitData):RenderHitData{ _kj2647 = _yd1270._kg2044; if (!_kj2647){ _kj2647 = _yd1270._td331._kg2044; }; if (((_kj2647) && (_kj2647.interactive))){ _fo2463 = RenderTriangle.vPoint; _fo2463.x = _arg1.x; _fo2463.y = _arg1.y; _ta271 = _yd1270._ed697._vg530; _or2990 = _yd1270._bw1102._vg530; _pe996 = _yd1270._at2737._vg530; if (_nw900(_fo2463, _ta271, _or2990, _pe996)){ if (_nw900(_fo2463, _or2990, _ta271, _pe996)){ if (_nw900(_fo2463, _pe996, _ta271, _or2990)){ return (_bf2425(_yd1270, _fo2463, _arg2)); }; }; }; }; return (_arg2); } public function _ob641(_arg1:Vertex3DInstance, _arg2:Vertex3DInstance, _arg3:Vertex3DInstance, _arg4:Vertex3DInstance, _arg5:Vertex3DInstance, _arg6:NumberUV, _arg7:NumberUV, _arg8:NumberUV, _arg9:NumberUV, _arg10:NumberUV):Array{ if (_arg1._lj2992(_arg4) < _arg2._lj2992(_arg5)){ return ([create(_vm2293, renderer, _arg1, _arg2, _arg4, _arg6, _arg7, _arg9), create(_vm2293, renderer, _arg2, _arg3, _arg4, _arg7, _arg8, _arg9), create(_vm2293, renderer, _arg1, _arg4, _arg5, _arg6, _arg9, _arg10)]); }; return ([create(_vm2293, renderer, _arg1, _arg2, _arg5, _arg6, _arg7, _arg10), create(_vm2293, renderer, _arg2, _arg3, _arg4, _arg7, _arg8, _arg9), create(_vm2293, renderer, _arg2, _arg4, _arg5, _arg7, _arg9, _arg10)]); } override public function _mj1810(_arg1:RenderSessionData, _arg2:Graphics):void{ renderer._ck963(this, _arg2, _arg1); } final override public function _ee3002(_arg1:Number):Array{ if (_gm2540 < 20){ return (null); }; _iv994 = Vertex3DInstance.median(_ed697, _bw1102, _arg1); _tk2617 = Vertex3DInstance.median(_bw1102, _at2737, _arg1); _kr53 = Vertex3DInstance.median(_at2737, _ed697, _arg1); _pw1183 = NumberUV.median(_un2451, _bu2836); _lk2295 = NumberUV.median(_bu2836, _dg317); _bi1353 = NumberUV.median(_dg317, _un2451); return ([create(_vm2293, renderer, _ed697, _iv994, _kr53, _un2451, _pw1183, _bi1353), create(_vm2293, renderer, _bw1102, _tk2617, _iv994, _bu2836, _lk2295, _pw1183), create(_vm2293, renderer, _at2737, _kr53, _tk2617, _dg317, _bi1353, _lk2295), create(_vm2293, renderer, _iv994, _tk2617, _kr53, _pw1183, _lk2295, _bi1353)]); } final override public function _ku3200(_arg1:Number, _arg2:Number, _arg3:Number):Number{ _cy2981 = _ed697.x; _ru2448 = _ed697.y; _ob1278 = _ed697.z; _oy341 = _bw1102.x; _om574 = _bw1102.y; _xs1780 = _bw1102.z; _vg587 = _at2737.x; _vt2239 = _at2737.y; _dv994 = _at2737.z; if ((((_cy2981 == _arg1)) && ((_ru2448 == _arg2)))){ return (_ob1278); }; if ((((_oy341 == _arg1)) && ((_om574 == _arg2)))){ return (_xs1780); }; if ((((_vg587 == _arg1)) && ((_vt2239 == _arg2)))){ return (_dv994); }; _xt79 = (_ob1278 / _arg3); _mh40 = (_xs1780 / _arg3); _xf2502 = (_dv994 / _arg3); _ao2168 = (1 + _xt79); _di2647 = (1 + _mh40); _yc728 = (1 + _xf2502); _ph1258 = ((_cy2981 * _ao2168) - (_arg1 * _xt79)); _cb1876 = ((_oy341 * _di2647) - (_arg1 * _mh40)); _mc2168 = ((_vg587 * _yc728) - (_arg1 * _xf2502)); _as3036 = ((_ru2448 * _ao2168) - (_arg2 * _xt79)); _nv2075 = ((_om574 * _di2647) - (_arg2 * _mh40)); _xl2727 = ((_vt2239 * _yc728) - (_arg2 * _xf2502)); _eh680 = (((_ph1258 * (_nv2075 - _xl2727)) + (_cb1876 * (_xl2727 - _as3036))) + (_mc2168 * (_as3036 - _nv2075))); _fl531 = (((_arg1 * (_nv2075 - _xl2727)) + (_cb1876 * (_xl2727 - _arg2))) + (_mc2168 * (_arg2 - _nv2075))); _st2514 = (((_ph1258 * (_arg2 - _xl2727)) + (_arg1 * (_xl2727 - _as3036))) + (_mc2168 * (_as3036 - _arg2))); _rj1797 = (((_ph1258 * (_nv2075 - _arg2)) + (_cb1876 * (_arg2 - _as3036))) + (_arg1 * (_as3036 - _nv2075))); return (((((_fl531 * _ob1278) + (_st2514 * _xs1780)) + (_rj1797 * _dv994)) / _eh680)); } override public function update():void{ if (_ed697.x > _bw1102.x){ if (_ed697.x > _at2737.x){ _ff2962 = _ed697.x; } else { _ff2962 = _at2737.x; }; } else { if (_bw1102.x > _at2737.x){ _ff2962 = _bw1102.x; } else { _ff2962 = _at2737.x; }; }; if (_ed697.x < _bw1102.x){ if (_ed697.x < _at2737.x){ _xx2751 = _ed697.x; } else { _xx2751 = _at2737.x; }; } else { if (_bw1102.x < _at2737.x){ _xx2751 = _bw1102.x; } else { _xx2751 = _at2737.x; }; }; if (_ed697.y > _bw1102.y){ if (_ed697.y > _at2737.y){ _ig1084 = _ed697.y; } else { _ig1084 = _at2737.y; }; } else { if (_bw1102.y > _at2737.y){ _ig1084 = _bw1102.y; } else { _ig1084 = _at2737.y; }; }; if (_ed697.y < _bw1102.y){ if (_ed697.y < _at2737.y){ _wn386 = _ed697.y; } else { _wn386 = _at2737.y; }; } else { if (_bw1102.y < _at2737.y){ _wn386 = _bw1102.y; } else { _wn386 = _at2737.y; }; }; if (_ed697.z > _bw1102.z){ if (_ed697.z > _at2737.z){ _sq1872 = _ed697.z; } else { _sq1872 = _at2737.z; }; } else { if (_bw1102.z > _at2737.z){ _sq1872 = _bw1102.z; } else { _sq1872 = _at2737.z; }; }; if (_ed697.z < _bw1102.z){ if (_ed697.z < _at2737.z){ _im2982 = _ed697.z; } else { _im2982 = _at2737.z; }; } else { if (_bw1102.z < _at2737.z){ _im2982 = _bw1102.z; } else { _im2982 = _at2737.z; }; }; _id609 = (((_ed697.z + _bw1102.z) + _at2737.z) / 3); _gm2540 = (0.5 * (((_ed697.x * (_at2737.y - _bw1102.y)) + (_bw1102.x * (_ed697.y - _at2737.y))) + (_at2737.x * (_bw1102.y - _ed697.y)))); } public function _nw900(_arg1:Vertex3DInstance, _arg2:Vertex3DInstance, _arg3:Vertex3DInstance, _arg4:Vertex3DInstance):Boolean{ Vertex3DInstance.subTo(_arg4, _arg3, resBA); Vertex3DInstance.subTo(_arg1, _arg3, resPA); Vertex3DInstance.subTo(_arg2, _arg3, resRA); return (((Vertex3DInstance.cross(resBA, resPA) * Vertex3DInstance.cross(resBA, resRA)) >= 0)); } } }//package org.papervision3d.core.render.command
Section 78
//QuadTree (org.papervision3d.core.render.data.QuadTree) package org.papervision3d.core.render.data { import flash.display.*; import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.clipping.draw.*; public final class QuadTree { private var _ky962:QuadTreeNode; private var _fl2088:RectangleClipping; private var _eh2345:Array; private var _mx2012:uint;// = 4 private var _xu1911:Number; private var _xj186:Number; private var _br1453:RenderableListItem; private var _nr1501:Array; private var _oj2195:Number; private var _fw332:Number; private var _mg1708:int; private var _hy1060:Clipping; private var _po40:Array; private var _os403:DisplayObject3D; public function get maxLevel():uint{ return (_mx2012); } public function remove(_arg1:RenderableListItem):void{ _po40 = _arg1._hk835.center; _po40.splice(_po40.indexOf(_arg1), 1); } public function set maxLevel(_arg1:uint):void{ _mx2012 = _arg1; if (_ky962){ _ky962._od1595 = _mx2012; }; } public function _kn1898(_arg1:RenderableListItem, _arg2:DisplayObject3D=null):Array{ _eh2345 = []; _oj2195 = _arg1._xx2751; _fw332 = _arg1._wn386; _xu1911 = _arg1._ff2962; _xj186 = _arg1._ig1084; _os403 = _arg2; getList(_arg1._hk835); getParent(_arg1._hk835); return (_eh2345); } public function get clip():Clipping{ return (_hy1060); } public function _mj1810(_arg1:RenderSessionData, _arg2:Graphics):void{ _ky962._mj1810(-(Infinity), _arg1, _arg2); } public function list():Array{ _eh2345 = []; _oj2195 = -1000000; _fw332 = -1000000; _xu1911 = 1000000; _xj186 = 1000000; _os403 = null; getList(_ky962); return (_eh2345); } public function getRoot():QuadTreeNode{ return (_ky962); } private function getList(_arg1:QuadTreeNode):void{ if (!_arg1){ return; }; if (((_arg1._tk777) && ((_os403 == _arg1._lm3194)))){ return; }; if (_oj2195 < _arg1._in2328){ if (((_arg1._jg2467) && ((_fw332 < _arg1._ap553)))){ getList(_arg1._tv655); }; if (((_arg1._je1536) && ((_xj186 > _arg1._ap553)))){ getList(_arg1._gm2532); }; }; if (_xu1911 > _arg1._in2328){ if (((_arg1._uo3144) && ((_fw332 < _arg1._ap553)))){ getList(_arg1._px783); }; if (((_arg1._tk462) && ((_xj186 > _arg1._ap553)))){ getList(_arg1._sw2146); }; }; _nr1501 = _arg1.center; if (_nr1501 != null){ _mg1708 = _nr1501.length; while (_mg1708--) { _br1453 = _nr1501[_mg1708]; if ((((((((((((_os403 == null)) || (!((_br1453._td331 == _os403))))) && ((_br1453._ff2962 > _oj2195)))) && ((_br1453._xx2751 < _xu1911)))) && ((_br1453._ig1084 > _fw332)))) && ((_br1453._wn386 < _xj186)))){ _eh2345.push(_br1453); }; }; }; } private function getParent(_arg1:QuadTreeNode=null):void{ if (!_arg1){ return; }; _arg1 = _arg1.parent; if ((((_arg1 == null)) || (((_arg1._tk777) && ((_os403 == _arg1._lm3194)))))){ return; }; _nr1501 = _arg1.center; if (_nr1501 != null){ _mg1708 = _nr1501.length; while (_mg1708--) { _br1453 = _nr1501[_mg1708]; if ((((((((((((_os403 == null)) || (!((_br1453._td331 == _os403))))) && ((_br1453._ff2962 > _oj2195)))) && ((_br1453._xx2751 < _xu1911)))) && ((_br1453._ig1084 > _fw332)))) && ((_br1453._wn386 < _xj186)))){ _eh2345.push(_br1453); }; }; }; getParent(_arg1); } public function add(_arg1:RenderableListItem):void{ if (_hy1060._pw2298(_arg1)){ _ky962.push(_arg1); }; } public function set clip(_arg1:Clipping):void{ _hy1060 = _arg1; _fl2088 = _hy1060._ak2962(); if (!_ky962){ _ky962 = new QuadTreeNode(((_fl2088._xx2751 + _fl2088._ff2962) / 2), ((_fl2088._wn386 + _fl2088._ig1084) / 2), (_fl2088._ff2962 - _fl2088._xx2751), (_fl2088._ig1084 - _fl2088._wn386), 0, null, _mx2012); } else { _ky962.reset(((_fl2088._xx2751 + _fl2088._ff2962) / 2), ((_fl2088._wn386 + _fl2088._ig1084) / 2), (_fl2088._ff2962 - _fl2088._xx2751), (_fl2088._ig1084 - _fl2088._wn386), _mx2012); }; } } }//package org.papervision3d.core.render.data
Section 79
//QuadTreeNode (org.papervision3d.core.render.data.QuadTreeNode) package org.papervision3d.core.render.data { import flash.display.*; import flash.geom.*; import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; public final class QuadTreeNode { public var parent:QuadTreeNode; public var create:Function; private var level:int; public var _uo3144:Boolean; public var _km1018:Boolean;// = false public var _sw2146:QuadTreeNode; public var _px783:QuadTreeNode; public var _tk462:Boolean; public var _lm3194:DisplayObject3D; public var _in2328:Number; private var _nd629:Number; public var center:Array; public var _od1595:int;// = 4 private var _sp1395:int;// = -1 public var _tk777:Boolean;// = true private var _kl3035:int;// = -1 private var _fa1471:Number; public var _tv655:QuadTreeNode; public var _ap553:Number; public var _gm2532:QuadTreeNode; public var _jg2467:Boolean; public var _je1536:Boolean; public function QuadTreeNode(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int, _arg6:QuadTreeNode=null, _arg7:uint=4){ this.level = _arg5; this._in2328 = _arg1; this._ap553 = _arg2; _fa1471 = (_arg3 / 2); _nd629 = (_arg4 / 2); this.parent = _arg6; this._od1595 = _arg7; } public function reset(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint):void{ this._in2328 = _arg1; this._ap553 = _arg2; _fa1471 = (_arg3 / 2); _nd629 = (_arg4 / 2); _jg2467 = false; _je1536 = false; _uo3144 = false; _tk462 = false; _tk777 = true; _lm3194 = null; _sp1395 = -1; _kl3035 = -1; _km1018 = false; _od1595 = _arg5; } public function push(_arg1:RenderableListItem):void{ _km1018 = true; if (_tk777){ if (((!((_lm3194 == null))) && (!((_lm3194 == _arg1._td331))))){ _tk777 = false; }; _lm3194 = _arg1._td331; }; if (level < _od1595){ if (_arg1._ff2962 <= _in2328){ if (_arg1._ig1084 <= _ap553){ if (_tv655 == null){ _jg2467 = true; _tv655 = new QuadTreeNode((_in2328 - (_fa1471 / 2)), (_ap553 - (_nd629 / 2)), _fa1471, _nd629, (level + 1), this, _od1595); } else { if (!_jg2467){ _jg2467 = true; _tv655.reset((_in2328 - (_fa1471 / 2)), (_ap553 - (_nd629 / 2)), _fa1471, _nd629, _od1595); }; }; _tv655.push(_arg1); return; } else { if (_arg1._wn386 >= _ap553){ if (_gm2532 == null){ _je1536 = true; _gm2532 = new QuadTreeNode((_in2328 - (_fa1471 / 2)), (_ap553 + (_nd629 / 2)), _fa1471, _nd629, (level + 1), this, _od1595); } else { if (!_je1536){ _je1536 = true; _gm2532.reset((_in2328 - (_fa1471 / 2)), (_ap553 + (_nd629 / 2)), _fa1471, _nd629, _od1595); }; }; _gm2532.push(_arg1); return; }; }; } else { if (_arg1._xx2751 >= _in2328){ if (_arg1._ig1084 <= _ap553){ if (_px783 == null){ _uo3144 = true; _px783 = new QuadTreeNode((_in2328 + (_fa1471 / 2)), (_ap553 - (_nd629 / 2)), _fa1471, _nd629, (level + 1), this, _od1595); } else { if (!_uo3144){ _uo3144 = true; _px783.reset((_in2328 + (_fa1471 / 2)), (_ap553 - (_nd629 / 2)), _fa1471, _nd629, _od1595); }; }; _px783.push(_arg1); return; } else { if (_arg1._wn386 >= _ap553){ if (_sw2146 == null){ _tk462 = true; _sw2146 = new QuadTreeNode((_in2328 + (_fa1471 / 2)), (_ap553 + (_nd629 / 2)), _fa1471, _nd629, (level + 1), this, _od1595); } else { if (!_tk462){ _tk462 = true; _sw2146.reset((_in2328 + (_fa1471 / 2)), (_ap553 + (_nd629 / 2)), _fa1471, _nd629, _od1595); }; }; _sw2146.push(_arg1); return; }; }; }; }; }; if (center == null){ center = new Array(); }; center.push(_arg1); _arg1._hk835 = this; } public function _mj1810(_arg1:Number, _arg2:RenderSessionData, _arg3:Graphics):void{ var _local4:RenderableListItem; if (_sp1395 == -1){ if (center != null){ _sp1395 = center.length; if (_sp1395 > 1){ center.sortOn("_id609", (Array.DESCENDING | Array.NUMERIC)); }; } else { _sp1395 = 0; }; _kl3035 = 0; }; while (_kl3035 < _sp1395) { _local4 = center[_kl3035]; if (_local4._id609 < _arg1){ break; }; _so902(_local4._id609, _arg2, _arg3); _local4._mj1810(_arg2, _arg3); _arg2._rj27._rm1725.push(_local4); _kl3035++; }; if (_kl3035 == _sp1395){ center = null; }; _so902(_arg1, _arg2, _arg3); } public function getRect():Rectangle{ return (new Rectangle(_in2328, _ap553, (_fa1471 * 2), (_nd629 * 2))); } private function _so902(_arg1:Number, _arg2:RenderSessionData, _arg3:Graphics):void{ if (_jg2467){ _tv655._mj1810(_arg1, _arg2, _arg3); }; if (_je1536){ _gm2532._mj1810(_arg1, _arg2, _arg3); }; if (_uo3144){ _px783._mj1810(_arg1, _arg2, _arg3); }; if (_tk462){ _sw2146._mj1810(_arg1, _arg2, _arg3); }; } } }//package org.papervision3d.core.render.data
Section 80
//RenderHitData (org.papervision3d.core.render.data.RenderHitData) package org.papervision3d.core.render.data { import org.papervision3d.objects.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.geom.renderables.*; public class RenderHitData { public var y:Number; public var z:Number; public var _yy2308:int;// = 0 public var startTime:int;// = 0 public var _ad2978:DisplayObject3D; public var _vx390:Boolean;// = false public var _kg2044:MaterialObject3D; public var _ho1756:IRenderable; public var _hc45:Number; public var _md2120:Number; public var x:Number; public function RenderHitData():void{ } public function clear():void{ startTime = 0; _yy2308 = 0; _vx390 = false; _ad2978 = null; _kg2044 = null; _ho1756 = null; _hc45 = 0; _md2120 = 0; x = 0; y = 0; z = 0; } public function clone():RenderHitData{ var _local1:RenderHitData = new RenderHitData(); _local1.startTime = startTime; _local1._yy2308 = _yy2308; _local1._vx390 = _vx390; _local1._ad2978 = _ad2978; _local1._kg2044 = _kg2044; _local1._ho1756 = _ho1756; _local1._hc45 = _hc45; _local1._md2120 = _md2120; _local1.x = x; _local1.y = y; _local1.z = z; return (_local1); } public function toString():String{ return (((_ad2978 + " ") + _ho1756)); } } }//package org.papervision3d.core.render.data
Section 81
//RenderSessionData (org.papervision3d.core.render.data.RenderSessionData) package org.papervision3d.core.render.data { import flash.display.*; import org.papervision3d.core.culling.*; import org.papervision3d.core.proto.*; import org.papervision3d.view.*; import org.papervision3d.core.render.*; import org.papervision3d.core.clipping.*; public class RenderSessionData { public var container:Sprite; public var renderer:IRenderEngine; public var _ri1362:IParticleCuller; public var _rj27:Viewport3D; public var _rw2020:ITriangleCuller; public var _pv3003:DefaultClipping; public var _gj2355:SceneObject3D; public var _th899:RenderStatistics; public var _ss3109:Array; public var _dy954:CameraObject3D; public var _lv1471:Array; public var _ch57:QuadTree; public var _is211:Boolean; public function RenderSessionData():void{ this._th899 = new RenderStatistics(); } public function _sf1512():void{ _rw2020 = null; _ri1362 = null; _rj27 = null; container = null; _gj2355 = null; _dy954 = null; renderer = null; _th899 = null; _ss3109 = null; _lv1471 = null; _pv3003 = null; _ch57 = null; } public function clone():RenderSessionData{ var _local1:RenderSessionData = new RenderSessionData(); _local1._rw2020 = _rw2020; _local1._ri1362 = _ri1362; _local1._rj27 = _rj27; _local1.container = container; _local1._gj2355 = _gj2355; _local1._dy954 = _dy954; _local1.renderer = renderer; _local1._th899 = _th899.clone(); _local1._pv3003 = _pv3003; _local1._ch57 = _ch57; return (_local1); } } }//package org.papervision3d.core.render.data
Section 82
//RenderStatistics (org.papervision3d.core.render.data.RenderStatistics) package org.papervision3d.core.render.data { public class RenderStatistics { public var _yl382:int;// = 0 public var _hi2308:int;// = 0 public var _sc2177:int;// = 0 public var _ir2250:int;// = 0 public var _cy2641:int;// = 0 public var _tr157:int;// = 0 public var _sa2066:int;// = 0 public var _fe370:int;// = 0 public var _jl2390:int;// = 0 public var _mw550:int;// = 0 public var _vg1561:int;// = 0 public function clear():void{ _jl2390 = 0; _yl382 = 0; _fe370 = 0; _sa2066 = 0; _tr157 = 0; _cy2641 = 0; _ir2250 = 0; _vg1561 = 0; _sc2177 = 0; _mw550 = 0; _hi2308 = 0; } public function clone():RenderStatistics{ var _local1:RenderStatistics = new RenderStatistics(); _local1._jl2390 = _jl2390; _local1._yl382 = _yl382; _local1._fe370 = _fe370; _local1._sa2066 = _sa2066; _local1._tr157 = _tr157; _local1._cy2641 = _cy2641; _local1._vg1561 = _vg1561; _local1._sc2177 = _sc2177; _local1._mw550 = _mw550; _local1._hi2308 = _hi2308; return (_local1); } public function toString():String{ return (new String((((((((((((((((((("ProjectionTime:" + _jl2390) + " RenderTime:") + _yl382) + " Particles:") + _sa2066) + " CulledParticles :") + _ir2250) + " Triangles:") + _tr157) + " ShadedTriangles :") + _sc2177) + " CulledTriangles:") + _cy2641) + " FilteredObjects:") + _mw550) + " CulledObjects:") + _hi2308) + ""))); } } }//package org.papervision3d.core.render.data
Section 83
//ILineDrawer (org.papervision3d.core.render.draw.ILineDrawer) package org.papervision3d.core.render.draw { import flash.display.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; public interface ILineDrawer { function _mg68(_arg1:RenderLine, _arg2:Graphics, _arg3:RenderSessionData):void; } }//package org.papervision3d.core.render.draw
Section 84
//IParticleDrawer (org.papervision3d.core.render.draw.IParticleDrawer) package org.papervision3d.core.render.draw { import flash.display.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.geom.renderables.*; public interface IParticleDrawer { function _sg1341(_arg1:Particle, _arg2:Graphics, _arg3:RenderSessionData):void; function _de609(_arg1:Particle):void; } }//package org.papervision3d.core.render.draw
Section 85
//ITriangleDrawer (org.papervision3d.core.render.draw.ITriangleDrawer) package org.papervision3d.core.render.draw { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; public interface ITriangleDrawer { function _ck963(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData, _arg4:BitmapData=null, _arg5:Matrix=null):void; function _xl468(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData):void; } }//package org.papervision3d.core.render.draw
Section 86
//BasicRenderFilter (org.papervision3d.core.render.filter.BasicRenderFilter) package org.papervision3d.core.render.filter { public class BasicRenderFilter implements IRenderFilter { public function filter(_arg1:Array):int{ return (0); } } }//package org.papervision3d.core.render.filter
Section 87
//IRenderFilter (org.papervision3d.core.render.filter.IRenderFilter) package org.papervision3d.core.render.filter { public interface IRenderFilter { function filter(_arg1:Array):int; } }//package org.papervision3d.core.render.filter
Section 88
//IUpdateAfterMaterial (org.papervision3d.core.render.material.IUpdateAfterMaterial) package org.papervision3d.core.render.material { import org.papervision3d.core.render.data.*; public interface IUpdateAfterMaterial { function _tc3099(_arg1:RenderSessionData):void; } }//package org.papervision3d.core.render.material
Section 89
//IUpdateBeforeMaterial (org.papervision3d.core.render.material.IUpdateBeforeMaterial) package org.papervision3d.core.render.material { import org.papervision3d.core.render.data.*; public interface IUpdateBeforeMaterial { function _ug2190():Boolean; function _gt2568(_arg1:RenderSessionData):void; } }//package org.papervision3d.core.render.material
Section 90
//MaterialManager (org.papervision3d.core.render.material.MaterialManager) package org.papervision3d.core.render.material { import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.proto.*; public class MaterialManager { private var _xk2861:Dictionary; private static var _td331:MaterialManager; public function MaterialManager():void{ if (_td331){ throw (new Error("Only 1 instance of materialmanager allowed")); }; init(); } private function init():void{ _xk2861 = new Dictionary(true); } private function _fv1555(_arg1:MaterialObject3D):void{ delete _xk2861[_arg1]; } public function _rw958(_arg1:RenderSessionData):void{ var _local2:IUpdateAfterMaterial; var _local3:*; for (_local3 in _xk2861) { if ((_local3 is IUpdateAfterMaterial)){ _local2 = (_local3 as IUpdateAfterMaterial); _local2._tc3099(_arg1); }; }; } private function _gl140(_arg1:MaterialObject3D):void{ _xk2861[_arg1] = true; } public function _nk1279(_arg1:RenderSessionData):void{ var _local2:IUpdateBeforeMaterial; var _local3:*; for (_local3 in _xk2861) { if ((_local3 is IUpdateBeforeMaterial)){ _local2 = (_local3 as IUpdateBeforeMaterial); if (_local2._ug2190()){ _local2._gt2568(_arg1); }; }; }; } public static function getInstance():MaterialManager{ if (!_td331){ _td331 = new (MaterialManager); }; return (_td331); } public static function unRegisterMaterial(_arg1:MaterialObject3D):void{ getInstance()._fv1555(_arg1); } public static function registerMaterial(_arg1:MaterialObject3D):void{ getInstance()._gl140(_arg1); } } }//package org.papervision3d.core.render.material
Section 91
//BasicProjectionPipeline (org.papervision3d.core.render.project.BasicProjectionPipeline) package org.papervision3d.core.render.project { import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; public class BasicProjectionPipeline extends ProjectionPipeline { public function BasicProjectionPipeline(){ init(); } protected function init():void{ } override public function project(_arg1:RenderSessionData):void{ var _local3:DisplayObject3D; var _local5:Number; _arg1._dy954._dg1754(); var _local2:Array = _arg1._ss3109; var _local4:Number = _local2.length; if (_arg1._dy954._ut1477){ for each (_local3 in _local2) { if (_local3.visible){ if (_arg1._rj27._al62){ _local5 = _arg1._rj27._al62._ov2787(_local3); if (_local5){ _ju1410(_local3, _arg1, _local5); } else { _arg1._th899._mw550++; }; } else { _ju1410(_local3, _arg1, 1); }; }; }; } else { for each (_local3 in _local2) { if (_local3.visible){ if (_arg1._rj27._al62){ _local5 = _arg1._rj27._al62._ov2787(_local3); if (_local5){ _ju1410(_local3, _arg1, _local5); } else { _arg1._th899._mw550++; }; } else { _ju1410(_local3, _arg1, 1); }; }; }; }; } protected function _ju1410(_arg1:DisplayObject3D, _arg2:RenderSessionData, _arg3:Number):void{ _arg1._oq2615 = _arg3; if (_arg1.parent){ _arg1.project((_arg1.parent as DisplayObject3D), _arg2); } else { _arg1.project(_arg2._dy954, _arg2); }; } } }//package org.papervision3d.core.render.project
Section 92
//ProjectionPipeline (org.papervision3d.core.render.project.ProjectionPipeline) package org.papervision3d.core.render.project { import org.papervision3d.core.render.data.*; public class ProjectionPipeline { public function project(_arg1:RenderSessionData):void{ } } }//package org.papervision3d.core.render.project
Section 93
//IShaderRenderer (org.papervision3d.core.render.shader.IShaderRenderer) package org.papervision3d.core.render.shader { import flash.display.*; import org.papervision3d.core.render.data.*; import org.papervision3d.materials.shaders.*; public interface IShaderRenderer { function _sf1512():void; function _oq1843(_arg1:Shader):Sprite; function clear():void; function _mj1810(_arg1:RenderSessionData):void; } }//package org.papervision3d.core.render.shader
Section 94
//ShaderObjectData (org.papervision3d.core.render.shader.ShaderObjectData) package org.papervision3d.core.render.shader { import flash.display.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.objects.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.materials.*; import org.papervision3d.materials.shaders.*; public class ShaderObjectData { public var _rl1760:ShaderRenderer; public var _ur993:Dictionary; public var _tu452:Dictionary; public var _gh1887:Dictionary; public var _qi368:ShadedMaterial; public var _qy1290:Dictionary; private var origin:Point; public var _kg2044:BitmapMaterial; public var _nj310:Dictionary; protected var _mu1369:Dictionary; public var object:DisplayObject3D; public function ShaderObjectData(_arg1:DisplayObject3D, _arg2:BitmapMaterial, _arg3:ShadedMaterial):void{ origin = new Point(0, 0); super(); _rl1760 = new ShaderRenderer(); _gh1887 = new Dictionary(); _qy1290 = new Dictionary(); this.object = _arg1; this._kg2044 = _arg2; this._qi368 = _arg3; _ur993 = new Dictionary(); _tu452 = new Dictionary(); _mu1369 = new Dictionary(); _nj310 = new Dictionary(); } public function _qk1017(_arg1:Triangle3D):Matrix{ var _local2:Matrix; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Rectangle; if (!_ur993[_arg1]){ _local2 = (_ur993[_arg1] = new Matrix()); _local3 = _kg2044._ba1161.width; _local4 = _kg2044._ba1161.height; _local5 = (_arg1._br1645[0]._hc45 * _local3); _local6 = ((1 - _arg1._br1645[0]._md2120) * _local4); _local7 = (_arg1._br1645[1]._hc45 * _local3); _local8 = ((1 - _arg1._br1645[1]._md2120) * _local4); _local9 = (_arg1._br1645[2]._hc45 * _local3); _local10 = ((1 - _arg1._br1645[2]._md2120) * _local4); _local11 = _ow1204(_arg1); _local2.tx = (_local5 - _local11.x); _local2.ty = (_local6 - _local11.y); _local2.a = (_local7 - _local5); _local2.b = (_local8 - _local6); _local2.c = (_local9 - _local5); _local2.d = (_local10 - _local6); _local2.invert(); }; return (_ur993[_arg1]); } public function _ow1204(_arg1:Triangle3D):Rectangle{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; if (!_nj310[_arg1]){ _local2 = _kg2044._ba1161.width; _local3 = _kg2044._ba1161.height; _local4 = (_arg1._br1645[0]._hc45 * _local2); _local5 = ((1 - _arg1._br1645[0]._md2120) * _local3); _local6 = (_arg1._br1645[1]._hc45 * _local2); _local7 = ((1 - _arg1._br1645[1]._md2120) * _local3); _local8 = (_arg1._br1645[2]._hc45 * _local2); _local9 = ((1 - _arg1._br1645[2]._md2120) * _local3); _local10 = Math.min(Math.min(_local4, _local6), _local8); _local11 = Math.min(Math.min(_local5, _local7), _local9); _local12 = Math.max(Math.max(_local4, _local6), _local8); _local13 = Math.max(Math.max(_local5, _local7), _local9); _local14 = (_local12 - _local10); _local15 = (_local13 - _local11); if (_local14 <= 0){ _local14 = 1; }; if (_local15 <= 0){ _local15 = 1; }; return ((_nj310[_arg1] = new Rectangle(_local10, _local11, _local14, _local15))); }; return (_nj310[_arg1]); } private function _go2626(_arg1:Matrix, _arg2:Triangle3D, _arg3:Number=2):void{ var _local4:Number = _kg2044._ba1161.width; var _local5:Number = _kg2044._ba1161.height; var _local6:Number = _arg2._br1645[0]._hc45; var _local7:Number = (1 - _arg2._br1645[0]._md2120); var _local8:Number = _arg2._br1645[1]._hc45; var _local9:Number = (1 - _arg2._br1645[1]._md2120); var _local10:Number = _arg2._br1645[2]._hc45; var _local11:Number = (1 - _arg2._br1645[2]._md2120); var _local12:Number = (_local6 * _local4); var _local13:Number = (_local7 * _local5); var _local14:Number = (_local8 * _local4); var _local15:Number = (_local9 * _local5); var _local16:Number = (_local10 * _local4); var _local17:Number = (_local11 * _local5); var _local18:Number = (((_local10 + _local8) + _local6) / 3); var _local19:Number = (((_local11 + _local9) + _local7) / 3); var _local20:Number = (_local6 - _local18); var _local21:Number = (_local7 - _local19); var _local22:Number = (_local8 - _local18); var _local23:Number = (_local9 - _local19); var _local24:Number = (_local10 - _local18); var _local25:Number = (_local11 - _local19); var _local26:Number = ((_local20)<0) ? -(_local20) : _local20; var _local27:Number = ((_local21)<0) ? -(_local21) : _local21; var _local28:Number = ((_local22)<0) ? -(_local22) : _local22; var _local29:Number = ((_local23)<0) ? -(_local23) : _local23; var _local30:Number = ((_local24)<0) ? -(_local24) : _local24; var _local31:Number = ((_local25)<0) ? -(_local25) : _local25; var _local32:Number = ((_local26)>_local27) ? (1 / _local26) : (1 / _local27); var _local33:Number = ((_local28)>_local29) ? (1 / _local28) : (1 / _local29); var _local34:Number = ((_local30)>_local31) ? (1 / _local30) : (1 / _local31); _local12 = (_local12 - ((-(_local20) * _local32) * _arg3)); _local13 = (_local13 - ((-(_local21) * _local32) * _arg3)); _local14 = (_local14 - ((-(_local22) * _local33) * _arg3)); _local15 = (_local15 - ((-(_local23) * _local33) * _arg3)); _local16 = (_local16 - ((-(_local24) * _local34) * _arg3)); _local17 = (_local17 - ((-(_local25) * _local34) * _arg3)); _arg1.tx = _local12; _arg1.ty = _local13; _arg1.a = (_local14 - _local12); _arg1.b = (_local15 - _local13); _arg1.c = (_local16 - _local12); _arg1.d = (_local17 - _local13); } public function _ph2873(_arg1:Triangle3D):BitmapData{ var _local2:Rectangle; var _local3:BitmapData; var _local4:Rectangle; if (!_mu1369[_arg1]){ _local2 = _ow1204(_arg1); _local3 = (_mu1369[_arg1] = new BitmapData(Math.ceil(_local2.width), Math.ceil(_local2.height), false, 0)); _local4 = new Rectangle(0, 0, _local3.width, _local3.height); _local3.copyPixels(_kg2044._ba1161, _local4, origin); } else { _local2 = _ow1204(_arg1); }; if (((_kg2044._ba1161) && (_local2))){ _mu1369[_arg1].copyPixels(_kg2044._ba1161, _local2, origin); }; return (_mu1369[_arg1]); } public function _gt2568():void{ } public function _hj2205(_arg1:Triangle3D):Matrix{ var _local2:Matrix; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Rectangle; if (!_tu452[_arg1]){ _local2 = (_tu452[_arg1] = new Matrix()); _local3 = _kg2044._ba1161.width; _local4 = _kg2044._ba1161.height; _local5 = (_arg1._br1645[0]._hc45 * _local3); _local6 = ((1 - _arg1._br1645[0]._md2120) * _local4); _local7 = (_arg1._br1645[1]._hc45 * _local3); _local8 = ((1 - _arg1._br1645[1]._md2120) * _local4); _local9 = (_arg1._br1645[2]._hc45 * _local3); _local10 = ((1 - _arg1._br1645[2]._md2120) * _local4); _local11 = _ow1204(_arg1); _local2.tx = (_local5 - _local11.x); _local2.ty = (_local6 - _local11.y); _local2.a = (_local7 - _local5); _local2.b = (_local8 - _local6); _local2.c = (_local9 - _local5); _local2.d = (_local10 - _local6); }; return (_tu452[_arg1]); } public function _ou2595(_arg1:Triangle3D, _arg2:Boolean=false):Matrix{ var _local3:Matrix; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; _local3 = _qy1290[_arg1]; if (!_local3){ _local3 = new Matrix(); if (_arg2){ _go2626(_local3, _arg1, 2); } else { if (_kg2044._ba1161){ _local4 = _kg2044._ba1161.width; _local5 = _kg2044._ba1161.height; _local6 = (_arg1._br1645[0]._hc45 * _local4); _local7 = ((1 - _arg1._br1645[0]._md2120) * _local5); _local8 = (_arg1._br1645[1]._hc45 * _local4); _local9 = ((1 - _arg1._br1645[1]._md2120) * _local5); _local10 = (_arg1._br1645[2]._hc45 * _local4); _local11 = ((1 - _arg1._br1645[2]._md2120) * _local5); _local3.tx = _local6; _local3.ty = _local7; _local3.a = (_local8 - _local6); _local3.b = (_local9 - _local7); _local3.c = (_local10 - _local6); _local3.d = (_local11 - _local7); }; }; if (_kg2044._ba1161){ _qy1290[_arg1] = _local3; }; }; return (_local3); } public function _sf1512():void{ var _local1:Object; for each (_local1 in _qy1290) { _qy1290[_local1] = null; }; _qy1290 = null; _rl1760._sf1512(); _rl1760 = null; _gh1887 = null; } } }//package org.papervision3d.core.render.shader
Section 95
//ShaderRenderer (org.papervision3d.core.render.shader.ShaderRenderer) package org.papervision3d.core.render.shader { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.materials.shaders.*; public class ShaderRenderer extends EventDispatcher implements IShaderRenderer { public var container:Sprite; public var _dl247:Dictionary; public var _sg2298:BitmapData; public var _sq1209:Bitmap; public var _dj1902:Boolean;// = false public var _ok1730:Sprite; private var _dy2266:BitmapData; public function ShaderRenderer(){ container = new Sprite(); _ok1730 = new Sprite(); _sq1209 = new Bitmap(); _ok1730.addChild(_sq1209); _ok1730.blendMode = BlendMode.NORMAL; _dl247 = new Dictionary(); container.addChild(_ok1730); } public function clear():void{ var _local1:Sprite; for each (_local1 in _dl247) { if (((((_lu962) && ((_lu962.width > 0)))) && ((_lu962.height > 0)))){ _local1.graphics.clear(); _local1.graphics.beginFill(0, 1); _local1.graphics.drawRect(0, 0, _lu962.width, _lu962.height); _local1.graphics.endFill(); }; }; } public function _mj1810(_arg1:RenderSessionData):void{ if (_sg2298){ _sg2298.fillRect(_sg2298.rect, 0); _sq1209.bitmapData = _lu962; _sg2298.draw(container, null, null, null, _sg2298.rect, false); if (_sg2298.transparent){ _sg2298.copyChannel(_lu962, _sg2298.rect, new Point(0, 0), BitmapDataChannel.ALPHA, BitmapDataChannel.ALPHA); }; }; } public function get _lu962():BitmapData{ return (_dy2266); } public function set _lu962(_arg1:BitmapData):void{ if (_arg1 != null){ if (_dy2266 != _arg1){ _dy2266 = _arg1; if (_sg2298){ if (((!((_dy2266.width == _sg2298.width))) || (!((_dy2266.height == _sg2298.height))))){ _dj1902 = true; _sg2298.dispose(); _sg2298 = _dy2266.clone(); }; } else { _dj1902 = true; _sg2298 = _dy2266.clone(); }; }; }; } public function _oq1843(_arg1:Shader):Sprite{ var _local2:Sprite = new Sprite(); _dl247[_arg1] = _local2; var _local3:Sprite = new Sprite(); _local2.addChild(_local3); if (_lu962 != null){ _local3.graphics.beginFill(0, 0); _local3.graphics.drawRect(0, 0, _lu962.width, _lu962.height); _local3.graphics.endFill(); }; container.addChild(_local2); _local2.blendMode = _arg1._jd724; return (_local2); } public function _sf1512():void{ _ok1730 = null; _sg2298.dispose(); } } }//package org.papervision3d.core.render.shader
Section 96
//BasicRenderSorter (org.papervision3d.core.render.sort.BasicRenderSorter) package org.papervision3d.core.render.sort { public class BasicRenderSorter implements IRenderSorter { public function sort(_arg1:Array):void{ _arg1.sortOn("_id609", Array.NUMERIC); } } }//package org.papervision3d.core.render.sort
Section 97
//IRenderSorter (org.papervision3d.core.render.sort.IRenderSorter) package org.papervision3d.core.render.sort { public interface IRenderSorter { function sort(_arg1:Array):void; } }//package org.papervision3d.core.render.sort
Section 98
//AbstractRenderEngine (org.papervision3d.core.render.AbstractRenderEngine) package org.papervision3d.core.render { import flash.events.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.proto.*; import org.papervision3d.view.*; public class AbstractRenderEngine extends EventDispatcher implements IRenderEngine { public function AbstractRenderEngine(_arg1:IEventDispatcher=null){ super(_arg1); } public function _au3067(_arg1:RenderableListItem):int{ return (0); } public function _xh1651(_arg1:IRenderListItem):int{ return (0); } public function _kp610(_arg1:SceneObject3D, _arg2:CameraObject3D, _arg3:Viewport3D):RenderStatistics{ return (null); } } }//package org.papervision3d.core.render
Section 99
//IRenderEngine (org.papervision3d.core.render.IRenderEngine) package org.papervision3d.core.render { import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.proto.*; import org.papervision3d.view.*; public interface IRenderEngine { function _au3067(_arg1:RenderableListItem):int; function _xh1651(_arg1:IRenderListItem):int; function _kp610(_arg1:SceneObject3D, _arg2:CameraObject3D, _arg3:Viewport3D):RenderStatistics; } }//package org.papervision3d.core.render
Section 100
//IVirtualMouseEvent (org.papervision3d.core.utils.virtualmouse.IVirtualMouseEvent) package org.papervision3d.core.utils.virtualmouse { public interface IVirtualMouseEvent { } }//package org.papervision3d.core.utils.virtualmouse
Section 101
//VirtualMouse (org.papervision3d.core.utils.virtualmouse.VirtualMouse) package org.papervision3d.core.utils.virtualmouse { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.core.log.*; public class VirtualMouse extends EventDispatcher { private var _xq1591:Sprite; private var _jd2397:Stage; private var _yd1671:DisplayObject; private var target:InteractiveObject; private var _jt1880:Boolean;// = false private var _aw2083:Class; private var _nn868:Event; private var _vn1611:Class; private var location:Point; private var delta:int;// = 0 private var _no1649:Object; private var _dv1387:Dictionary; private var _hh951:Boolean;// = false private var _nv2601:Boolean;// = true private var _pr1946:Point; private var _uf2678:Boolean;// = false private var _kp211:Boolean;// = false private var ctrlKey:Boolean;// = false private var altKey:Boolean;// = false private var _td3129:Boolean;// = false private var shiftKey:Boolean;// = false public static const UPDATE:String = "update"; private static var _mouseIsDown:Boolean = false; public function VirtualMouse(_arg1:Stage=null, _arg2:Sprite=null, _arg3:Number=0, _arg4:Number=0){ _no1649 = new Object(); _dv1387 = new Dictionary(true); _aw2083 = VirtualMouseEvent; _vn1611 = VirtualMouseMouseEvent; super(); this.stage = _arg1; this.container = _arg2; location = new Point(_arg3, _arg4); _pr1946 = location.clone(); addEventListener(UPDATE, _ip1396); update(); } public function get _ig1553():Boolean{ return (_mouseIsDown); } public function get container():Sprite{ return (_xq1591); } public function _qc2927():void{ if (!container){ return; }; var _local1:Point = target.globalToLocal(location); if (!_no1649[MouseEvent.MOUSE_OUT]){ _nn868 = new _vn1611(MouseEvent.MOUSE_OUT, true, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); container.dispatchEvent(new _vn1611(MouseEvent.MOUSE_OUT, true, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta)); dispatchEvent(new _vn1611(MouseEvent.MOUSE_OUT, true, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta)); }; if (!_no1649[MouseEvent.ROLL_OUT]){ _nn868 = new _vn1611(MouseEvent.ROLL_OUT, false, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); container.dispatchEvent(new _vn1611(MouseEvent.ROLL_OUT, false, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta)); dispatchEvent(new _vn1611(MouseEvent.ROLL_OUT, false, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta)); }; if (target != container){ if (!_no1649[MouseEvent.MOUSE_OUT]){ _nn868 = new _vn1611(MouseEvent.MOUSE_OUT, true, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); target.dispatchEvent(new _vn1611(MouseEvent.MOUSE_OUT, true, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta)); dispatchEvent(new _vn1611(MouseEvent.MOUSE_OUT, true, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta)); }; if (!_no1649[MouseEvent.ROLL_OUT]){ _nn868 = new _vn1611(MouseEvent.ROLL_OUT, false, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); target.dispatchEvent(new _vn1611(MouseEvent.ROLL_OUT, false, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta)); dispatchEvent(new _vn1611(MouseEvent.ROLL_OUT, false, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta)); }; }; target = _jd2397; } public function release():void{ _jt1880 = true; _mouseIsDown = false; if (!_hh951){ update(); }; } private function _mv1903(_arg1:KeyboardEvent):void{ altKey = _arg1.altKey; ctrlKey = _arg1.ctrlKey; shiftKey = _arg1.shiftKey; } public function _mn2728():void{ _va414(); release(); } public function _ww1467(_arg1:String):void{ _no1649[_arg1] = true; } public function set container(_arg1:Sprite):void{ _xq1591 = _arg1; } public function get _jh2758():Event{ return (_nn868); } private function _ip1396(_arg1:Event):void{ var _local4:InteractiveObject; var _local5:DisplayObject; var _local9:Boolean; if (!container){ return; }; if (container.scrollRect){ PaperLogger._rw2203("The container that virtualMouse is trying to test against has a scrollRect defined, and may cause an issue with finding objects under a defined point. Use MovieMaterial.rect to set a rectangle area instead"); }; var _local2:Point = new Point(); _local2.x = container.x; _local2.y = container.y; container.x = (container.y = 0); var _local3:Array = container.getObjectsUnderPoint(location); container.x = _local2.x; container.y = _local2.y; var _local6:int = _local3.length; while (_local6--) { _local5 = _local3[_local6]; while (_local5) { if (_dv1387[_local5]){ _local4 = null; break; }; if (((_local4) && ((_local5 is SimpleButton)))){ _local4 = null; } else { if (((_local4) && (!(DisplayObjectContainer(_local5).mouseChildren)))){ _local4 = null; }; }; if (((((!(_local4)) && ((_local5 is InteractiveObject)))) && (InteractiveObject(_local5).mouseEnabled))){ _local4 = InteractiveObject(_local5); }; _local5 = _local5.parent; }; if (_local4){ break; }; }; if (!_local4){ _local4 = container; }; var _local7:Point = target.globalToLocal(location); var _local8:Point = _local4.globalToLocal(location); if (((!((_pr1946.x == location.x))) || (!((_pr1946.y == location.y))))){ _local9 = false; if (stage){ _local9 = (((((((location.x >= 0)) && ((location.y >= 0)))) && ((location.x <= stage.stageWidth)))) && ((location.y <= stage.stageHeight))); }; if (((((!(_local9)) && (_nv2601))) && (!(_no1649[Event.MOUSE_LEAVE])))){ _nn868 = new _aw2083(Event.MOUSE_LEAVE, false, false); stage.dispatchEvent(_nn868); dispatchEvent(_nn868); }; if (((_local9) && (!(_no1649[MouseEvent.MOUSE_MOVE])))){ _nn868 = new _vn1611(MouseEvent.MOUSE_MOVE, true, false, _local8.x, _local8.y, _local4, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local4.dispatchEvent(_nn868); dispatchEvent(_nn868); }; _nv2601 = _local9; }; if (_local4 != target){ if (!_no1649[MouseEvent.MOUSE_OUT]){ _nn868 = new _vn1611(MouseEvent.MOUSE_OUT, true, false, _local7.x, _local7.y, _local4, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); target.dispatchEvent(_nn868); dispatchEvent(_nn868); }; if (!_no1649[MouseEvent.ROLL_OUT]){ _nn868 = new _vn1611(MouseEvent.ROLL_OUT, false, false, _local7.x, _local7.y, _local4, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); target.dispatchEvent(_nn868); dispatchEvent(_nn868); }; if (!_no1649[MouseEvent.MOUSE_OVER]){ _nn868 = new _vn1611(MouseEvent.MOUSE_OVER, true, false, _local8.x, _local8.y, target, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local4.dispatchEvent(_nn868); dispatchEvent(_nn868); }; if (!_no1649[MouseEvent.ROLL_OVER]){ _nn868 = new _vn1611(MouseEvent.ROLL_OVER, false, false, _local8.x, _local8.y, target, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local4.dispatchEvent(_nn868); dispatchEvent(_nn868); }; }; if (_jt1880){ if (_mouseIsDown){ if (!_no1649[MouseEvent.MOUSE_DOWN]){ _nn868 = new _vn1611(MouseEvent.MOUSE_DOWN, true, false, _local8.x, _local8.y, _local4, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local4.dispatchEvent(_nn868); dispatchEvent(_nn868); }; _yd1671 = _local4; _jt1880 = false; } else { if (!_no1649[MouseEvent.MOUSE_UP]){ _nn868 = new _vn1611(MouseEvent.MOUSE_UP, true, false, _local8.x, _local8.y, _local4, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local4.dispatchEvent(_nn868); dispatchEvent(_nn868); }; if (((!(_no1649[MouseEvent.CLICK])) && ((_local4 == _yd1671)))){ _nn868 = new _vn1611(MouseEvent.CLICK, true, false, _local8.x, _local8.y, _local4, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local4.dispatchEvent(_nn868); dispatchEvent(_nn868); }; _yd1671 = null; _jt1880 = false; }; }; if (((((_uf2678) && (!(_no1649[MouseEvent.DOUBLE_CLICK])))) && (_local4.doubleClickEnabled))){ _nn868 = new _vn1611(MouseEvent.DOUBLE_CLICK, true, false, _local8.x, _local8.y, _local4, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local4.dispatchEvent(_nn868); dispatchEvent(_nn868); }; _pr1946 = location.clone(); _kp211 = _mouseIsDown; target = _local4; } public function _bc2575():Point{ return (location.clone()); } public function lock():void{ _hh951 = true; } public function get _wv967():Boolean{ return (_td3129); } public function _ns1058(_arg1, _arg2=null):void{ var _local3:Point; if ((_arg1 is Point)){ _local3 = (_arg1 as Point); location.x = _local3.x; location.y = _local3.y; } else { location.x = Number(_arg1); location.y = Number(_arg2); }; if (!_hh951){ update(); }; } public function _xh804(_arg1:DisplayObject):void{ if ((_arg1 in _dv1387)){ delete _dv1387[_arg1]; }; } public function _wn1385():void{ if (_hh951){ release(); } else { _mn2728(); _va414(); _uf2678 = true; release(); _uf2678 = false; }; } public function update():void{ dispatchEvent(new Event(UPDATE, false, false)); } public function unlock():void{ _hh951 = false; update(); } public function _fu2638(_arg1:DisplayObject):void{ _dv1387[_arg1] = true; } public function _hn2462(_arg1:String):void{ if ((_arg1 in _no1649)){ delete _no1649[_arg1]; }; } public function _va414():void{ _jt1880 = true; _mouseIsDown = true; if (!_hh951){ update(); }; } public function set _wv967(_arg1:Boolean):void{ if (_arg1 == _td3129){ return; }; _td3129 = _arg1; if (_td3129){ _aw2083 = VirtualMouseEvent; _vn1611 = VirtualMouseMouseEvent; } else { _aw2083 = Event; _vn1611 = MouseEvent; }; } public function set x(_arg1:Number):void{ location.x = _arg1; if (!_hh951){ update(); }; } public function set y(_arg1:Number):void{ location.y = _arg1; if (!_hh951){ update(); }; } public function get y():Number{ return (location.y); } public function set stage(_arg1:Stage):void{ var _local2:Boolean; if (_jd2397){ _local2 = true; _jd2397.removeEventListener(KeyboardEvent.KEY_DOWN, _mv1903); _jd2397.removeEventListener(KeyboardEvent.KEY_UP, _mv1903); } else { _local2 = false; }; _jd2397 = _arg1; if (_jd2397){ _jd2397.addEventListener(KeyboardEvent.KEY_DOWN, _mv1903); _jd2397.addEventListener(KeyboardEvent.KEY_UP, _mv1903); target = _jd2397; if (!_local2){ update(); }; }; } public function get stage():Stage{ return (_jd2397); } public function get x():Number{ return (location.x); } } }//package org.papervision3d.core.utils.virtualmouse
Section 102
//VirtualMouseEvent (org.papervision3d.core.utils.virtualmouse.VirtualMouseEvent) package org.papervision3d.core.utils.virtualmouse { import flash.events.*; public class VirtualMouseEvent extends Event implements IVirtualMouseEvent { public function VirtualMouseEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } } }//package org.papervision3d.core.utils.virtualmouse
Section 103
//VirtualMouseMouseEvent (org.papervision3d.core.utils.virtualmouse.VirtualMouseMouseEvent) package org.papervision3d.core.utils.virtualmouse { import flash.events.*; import flash.display.*; public class VirtualMouseMouseEvent extends MouseEvent implements IVirtualMouseEvent { public function VirtualMouseMouseEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=NaN, _arg5:Number=NaN, _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); } } }//package org.papervision3d.core.utils.virtualmouse
Section 104
//InteractiveSceneManager (org.papervision3d.core.utils.InteractiveSceneManager) package org.papervision3d.core.utils { import flash.events.*; import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.proto.*; import org.papervision3d.view.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.materials.*; import org.papervision3d.events.*; import org.papervision3d.core.utils.virtualmouse.*; public class InteractiveSceneManager extends EventDispatcher { public var _xf646:MaterialObject3D; public var container:Sprite; public var _tp1929:Point; public var debug:Boolean;// = false public var _tx1528:Mouse3D; public var _bt478:Boolean;// = true public var _vq11:DisplayObject3D; public var _uk1649:Boolean;// = false public var _yg3036:VirtualMouse; public var _yd1664:Point; public var _dx2443:Viewport3D; public var _yi54:RenderHitData; public var _tv705:DisplayObject3D;// = null public static var MOUSE_IS_DOWN:Boolean = false; public function InteractiveSceneManager(_arg1:Viewport3D){ _yg3036 = new VirtualMouse(); _tx1528 = new Mouse3D(); _tp1929 = new Point(); _yd1664 = new Point(); super(); this._dx2443 = _arg1; this.container = _arg1._nw912; init(); } protected function _cd2301(_arg1:MouseEvent):void{ if ((_arg1 is IVirtualMouseEvent)){ return; }; if (((_yi54) && (_yi54._vx390))){ _qn980(InteractiveScene3DEvent.OBJECT_CLICK, _vq11); }; } protected function handleEnterFrame(_arg1:Event):void{ var _local3:MovieMaterial; var _local2:Boolean = _vc744(); if (((_local2) || (_uk1649))){ _ei2793(); _uk1649 = false; if ((_arg1 is IVirtualMouseEvent)){ return; }; if (((_yg3036) && (_yi54))){ _local3 = (_xf646 as MovieMaterial); if (_local3){ _yg3036.container = (_local3.movie as Sprite); }; if (_yg3036.container){ _yg3036._ns1058(_yi54._hc45, _yi54._md2120); }; if (((((Mouse3D.enabled) && (_yi54))) && (_yi54._vx390))){ _tx1528._yw2211(_yi54); }; _qn980(InteractiveScene3DEvent.OBJECT_MOVE, _vq11); } else { if (((_yi54) && (_yi54._vx390))){ _qn980(InteractiveScene3DEvent.OBJECT_MOVE, _vq11); }; }; }; _yd1664.x = _tp1929.x; _yd1664.y = _tp1929.y; } public function _tc3099():void{ _uk1649 = true; } public function _tw2925():void{ if (_dx2443.interactive){ container.addEventListener(MouseEvent.MOUSE_DOWN, _rm868, false, 0, true); container.addEventListener(MouseEvent.MOUSE_UP, _iu2872, false, 0, true); container.addEventListener(MouseEvent.CLICK, _cd2301, false, 0, true); container.addEventListener(MouseEvent.DOUBLE_CLICK, _yp1029, false, 0, true); container.stage.addEventListener(Event.ENTER_FRAME, handleEnterFrame, false, 0, true); }; } protected function _fa977():void{ _yg3036.stage = container.stage; _yg3036.container = container; } protected function _sa2620(_arg1:DisplayObject3D):void{ if (_vc744()){ _qn980(InteractiveScene3DEvent.OBJECT_OVER, _arg1); }; } protected function _fa1357():void{ _yi54 = (_dx2443._rm1950(_tp1929) as RenderHitData); } public function _ei2793():void{ _fa1357(); _vq11 = _yi54._ad2978; _xf646 = _yi54._kg2044; _pc2468(); } protected function _vc744():Boolean{ _tp1929.x = container.mouseX; _tp1929.y = container.mouseY; return (!(_tp1929.equals(_yd1664))); } protected function _qn980(_arg1:String, _arg2:DisplayObject3D):void{ var _local3:Number; var _local4:Number; var _local5:InteractiveScene3DEvent; if (((_yi54) && (_yi54._vx390))){ _local3 = (_yi54._hc45) ? _yi54._hc45 : 0; _local4 = (_yi54._md2120) ? _yi54._md2120 : 0; _local5 = new InteractiveScene3DEvent(_arg1, _arg2, container, (_yi54._ho1756 as Triangle3D), _local3, _local4, _yi54); _local5._yi54 = _yi54; dispatchEvent(_local5); _arg2.dispatchEvent(_local5); } else { dispatchEvent(new InteractiveScene3DEvent(_arg1, _arg2, container)); if (_arg2){ _arg2.dispatchEvent(new InteractiveScene3DEvent(_arg1, _arg2, container)); }; }; } protected function _yp1029(_arg1:MouseEvent):void{ if ((_arg1 is IVirtualMouseEvent)){ return; }; if (((_yi54) && (_yi54._vx390))){ _qn980(InteractiveScene3DEvent.OBJECT_DOUBLE_CLICK, _vq11); }; } protected function _iu2872(_arg1:MouseEvent):void{ if ((_arg1 is IVirtualMouseEvent)){ return; }; MOUSE_IS_DOWN = false; if (_yg3036){ _yg3036.release(); }; if (((((Mouse3D.enabled) && (_yi54))) && (!((_yi54._ho1756 == null))))){ _tx1528._yw2211(_yi54); }; if (((_yi54) && (_yi54._vx390))){ _qn980(InteractiveScene3DEvent.OBJECT_RELEASE, _vq11); }; } protected function handleAddedToStage(_arg1:Event):void{ container.removeEventListener(Event.ADDED_TO_STAGE, handleAddedToStage); _fa977(); _tw2925(); } protected function _nc2951(_arg1:DisplayObject3D):void{ var _local2:MovieMaterial; if (!_vc744()){ return; }; if (_arg1){ _local2 = (_arg1._kg2044 as MovieMaterial); if (_local2){ _yg3036._qc2927(); }; }; _qn980(InteractiveScene3DEvent.OBJECT_OUT, _arg1); } protected function _pc2468():void{ if (!_bt478){ return; }; if (((_yi54) && (_yi54._vx390))){ if (((!(_tv705)) && (_vq11))){ _sa2620(_vq11); _tv705 = _vq11; } else { if (((_tv705) && (!((_tv705 == _vq11))))){ _nc2951(_tv705); _sa2620(_vq11); _tv705 = _vq11; }; }; } else { if (_tv705 != null){ _nc2951(_tv705); _tv705 = null; }; }; } public function _sf1512():void{ _dx2443 = null; _yi54 = null; _vq11 = null; _xf646 = null; _tv705 = null; _yg3036.stage = null; _yg3036.container = null; container.removeEventListener(MouseEvent.MOUSE_DOWN, _rm868); container.removeEventListener(MouseEvent.MOUSE_UP, _iu2872); container.removeEventListener(MouseEvent.CLICK, _cd2301); container.removeEventListener(MouseEvent.DOUBLE_CLICK, _yp1029); if (container.stage){ container.stage.removeEventListener(Event.ENTER_FRAME, handleEnterFrame); }; container = null; } public function init():void{ if (container){ if (container.stage){ _fa977(); _tw2925(); } else { container.addEventListener(Event.ADDED_TO_STAGE, handleAddedToStage, false, 0, true); }; }; } protected function _rm868(_arg1:MouseEvent):void{ if ((_arg1 is IVirtualMouseEvent)){ return; }; MOUSE_IS_DOWN = true; if (_yg3036){ _yg3036._va414(); }; if (((((Mouse3D.enabled) && (_yi54))) && (!((_yi54._ho1756 == null))))){ _tx1528._yw2211(_yi54); }; if (((_yi54) && (_yi54._vx390))){ _qn980(InteractiveScene3DEvent.OBJECT_PRESS, _vq11); }; } } }//package org.papervision3d.core.utils
Section 105
//Mouse3D (org.papervision3d.core.utils.Mouse3D) package org.papervision3d.core.utils { import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; public class Mouse3D extends DisplayObject3D { private var target:Number3D; public static var enabled:Boolean = false; private static var UP:Number3D = new Number3D(0, 1, 0); public function Mouse3D():void{ target = new Number3D(); super(); } public function _yw2211(_arg1:RenderHitData):void{ var _local3:Matrix3D; var _local5:Number3D; var _local6:Number3D; var _local2:Triangle3D = (_arg1._ho1756 as Triangle3D); target.x = _local2._na3208.x; target.y = _local2._na3208.y; target.z = _local2._na3208.z; var _local4:Number3D = Number3D.sub(target, position); _local4.normalize(); if (_local4._ec1196 > 0.1){ _local5 = Number3D.cross(_local4, UP); _local5.normalize(); _local6 = Number3D.cross(_local4, _local5); _local6.normalize(); _local3 = this.transform; _local3._uy942 = _local5.x; _local3._pf1124 = _local5.y; _local3._jm2768 = _local5.z; _local3._vo1924 = -(_local6.x); _local3._ou2421 = -(_local6.y); _local3._vb1203 = -(_local6.z); _local3._fq2145 = _local4.x; _local3._py2591 = _local4.y; _local3._co210 = _local4.z; } else { _local3 = Matrix3D.IDENTITY; }; this.transform = Matrix3D.multiply(_local2._td331._ik714, _local3); x = _arg1.x; y = _arg1.y; z = _arg1.z; } } }//package org.papervision3d.core.utils
Section 106
//StopWatch (org.papervision3d.core.utils.StopWatch) package org.papervision3d.core.utils { import flash.events.*; import flash.utils.*; public class StopWatch extends EventDispatcher { private var startTime:int; private var _yd2274:int; private var _tt770:Boolean; private var _qu2514:int; public function start():void{ if (!_tt770){ startTime = getTimer(); _tt770 = true; }; } public function stop():int{ if (_tt770){ _qu2514 = getTimer(); _yd2274 = (_qu2514 - startTime); _tt770 = false; return (_yd2274); }; return (0); } public function reset():void{ _tt770 = false; } } }//package org.papervision3d.core.utils
Section 107
//IViewport3D (org.papervision3d.core.view.IViewport3D) package org.papervision3d.core.view { import org.papervision3d.core.render.data.*; public interface IViewport3D { function _tc3099(_arg1:RenderSessionData):void; function _gt2568(_arg1:RenderSessionData):void; } }//package org.papervision3d.core.view
Section 108
//InteractiveScene3DEvent (org.papervision3d.events.InteractiveScene3DEvent) package org.papervision3d.events { import flash.events.*; import flash.display.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.geom.renderables.*; public class InteractiveScene3DEvent extends Event { public var y:Number;// = 0 public var _vk1128:Sprite;// = null public var _yi54:RenderHitData; public var _rx1212:Triangle3D;// = null public var x:Number;// = 0 public var _ad2978:DisplayObject3D;// = null public static const OBJECT_ADDED:String = "objectAdded"; public static const OBJECT_PRESS:String = "mousePress"; public static const OBJECT_RELEASE:String = "mouseRelease"; public static const OBJECT_CLICK:String = "mouseClick"; public static const OBJECT_RELEASE_OUTSIDE:String = "mouseReleaseOutside"; public static const OBJECT_OUT:String = "mouseOut"; public static const OBJECT_MOVE:String = "mouseMove"; public static const OBJECT_OVER:String = "mouseOver"; public static const OBJECT_DOUBLE_CLICK:String = "mouseDoubleClick"; public function InteractiveScene3DEvent(_arg1:String, _arg2:DisplayObject3D=null, _arg3:Sprite=null, _arg4:Triangle3D=null, _arg5:Number=0, _arg6:Number=0, _arg7:RenderHitData=null, _arg8:Boolean=false, _arg9:Boolean=false){ super(_arg1, _arg8, _arg9); this._ad2978 = _arg2; this._vk1128 = _arg3; this._rx1212 = _arg4; this.x = _arg5; this.y = _arg6; this._yi54 = _arg7; } override public function toString():String{ return (((((((("Type : " + type) + ", DO3D : ") + _ad2978) + " Sprite : ") + _vk1128) + " Face : ") + _rx1212)); } } }//package org.papervision3d.events
Section 109
//RendererEvent (org.papervision3d.events.RendererEvent) package org.papervision3d.events { import flash.events.*; import org.papervision3d.core.render.data.*; public class RendererEvent extends Event { public var _mb1850:RenderSessionData; public static const PROJECTION_DONE:String = "projectionDone"; public static const RENDER_DONE:String = "renderDone"; public function RendererEvent(_arg1:String, _arg2:RenderSessionData){ super(_arg1); this._mb1850 = _arg2; } public function clear():void{ _mb1850 = null; } override public function clone():Event{ return (new RendererEvent(type, _mb1850)); } } }//package org.papervision3d.events
Section 110
//PointLight3D (org.papervision3d.lights.PointLight3D) package org.papervision3d.lights { import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; public class PointLight3D extends LightObject3D { public static var DEFAULT_POS:Number3D = new Number3D(0, 0, -1000); public function PointLight3D(_arg1:Boolean=false, _arg2:Boolean=false){ super(_arg1, _arg2); x = DEFAULT_POS.x; y = DEFAULT_POS.y; z = DEFAULT_POS.z; } } }//package org.papervision3d.lights
Section 111
//ILightShader (org.papervision3d.materials.shaders.ILightShader) package org.papervision3d.materials.shaders { import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.shader.*; public interface ILightShader { function _lu2164(_arg1:ShaderObjectData, _arg2:RenderSessionData):void; } }//package org.papervision3d.materials.shaders
Section 112
//IShader (org.papervision3d.materials.shaders.IShader) package org.papervision3d.materials.shaders { import flash.display.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.render.shader.*; public interface IShader { function _tc3099(_arg1:RenderSessionData, _arg2:ShaderObjectData):void; function _sf1512():void; function _vt823(_arg1:Triangle3D, _arg2:RenderSessionData, _arg3:ShaderObjectData):void; function _rs3055(_arg1:Triangle3D, _arg2:RenderSessionData, _arg3:ShaderObjectData, _arg4:BitmapData):void; } }//package org.papervision3d.materials.shaders
Section 113
//ShadedMaterial (org.papervision3d.materials.shaders.ShadedMaterial) package org.papervision3d.materials.shaders { import flash.display.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.log.*; import org.papervision3d.core.render.material.*; import org.papervision3d.materials.*; import org.papervision3d.core.render.shader.*; import org.papervision3d.core.render.draw.*; import org.papervision3d.core.material.*; public class ShadedMaterial extends TriangleMaterial implements ITriangleDrawer, IUpdateBeforeMaterial, IUpdateAfterMaterial { public var shader:Shader; private var _bl1256:int; public var _kg2044:BitmapMaterial; public var _mq370:Dictionary; private static var bmp:BitmapData; public function ShadedMaterial(_arg1:BitmapMaterial, _arg2:Shader, _arg3:int=0){ this.shader = _arg2; this._kg2044 = _arg1; _po423 = _arg3; init(); } override public function _sh3150(_arg1:DisplayObject3D):void{ super._sh3150(_arg1); var _local2:ShaderObjectData = (_mq370[_arg1] = new ShaderObjectData(_arg1, _kg2044, this)); _local2._rl1760._lu962 = _kg2044._ba1161; shader._dr2069(_arg1, _local2._rl1760._oq1843(shader)); } public function _tc3099(_arg1:RenderSessionData):void{ var _local2:ShaderObjectData; for each (_local2 in _mq370) { shader._tc3099(_arg1, _local2); if (_po423 == ShaderCompositeModes.PER_LAYER){ _local2._rl1760._mj1810(_arg1); }; }; } override public function _ck963(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData, _arg4:BitmapData=null, _arg5:Matrix=null):void{ var _local6:ShaderObjectData = ShaderObjectData(_mq370[_arg1._vm2293._td331]); if (_po423 == ShaderCompositeModes.PER_LAYER){ _kg2044._ck963(_arg1, _arg2, _arg3, _local6._rl1760._sg2298); shader._vt823(_arg1._yd1270, _arg3, _local6); } else { if (_po423 == ShaderCompositeModes.PER_TRIANGLE_IN_BITMAP){ bmp = _local6._ph2873(_arg1._yd1270); _kg2044._ck963(_arg1, _arg2, _arg3, bmp, (_local6._ur993[_arg1._yd1270]) ? _local6._ur993[_arg1._yd1270] : _local6._qk1017(_arg1._yd1270)); shader._rs3055(_arg1._yd1270, _arg3, _local6, bmp); }; }; } private function init():void{ _mq370 = new Dictionary(); } public function set _po423(_arg1:int):void{ _bl1256 = _arg1; } public function get _po423():int{ return (_bl1256); } public function _mx2036(_arg1:DisplayObject3D):BitmapData{ var _local2:ShaderObjectData; if (_po423 == ShaderCompositeModes.PER_LAYER){ if (_mq370[_arg1]){ _local2 = ShaderObjectData(_mq370[_arg1]); return (_local2._rl1760._sg2298); }; PaperLogger._rw2203("object not registered with shaded material"); } else { PaperLogger._rw2203("getOutputBitmapDataFor only works on per layer mode"); }; return (null); } override public function _sf1512():void{ var _local1:ShaderObjectData; super._sf1512(); for each (_local1 in _mq370) { _local1._sf1512(); }; _kg2044 = null; shader = null; } override public function _nt2232(_arg1:DisplayObject3D):void{ super._nt2232(_arg1); var _local2:ShaderObjectData = _mq370[_arg1]; _local2._sf1512(); delete _mq370[_arg1]; } public function _gt2568(_arg1:RenderSessionData):void{ var _local2:ShaderObjectData; var _local3:ILightShader; for each (_local2 in _mq370) { _local2._rl1760._lu962 = _kg2044._ba1161; if (_po423 == ShaderCompositeModes.PER_LAYER){ if (_local2._rl1760._dj1902){ _local2._rl1760._dj1902 = false; _local2._qy1290 = new Dictionary(); }; _local2._rl1760.clear(); }; if ((shader is ILightShader)){ _local3 = (shader as ILightShader); _local3._lu2164(_local2, _arg1); }; }; } } }//package org.papervision3d.materials.shaders
Section 114
//Shader (org.papervision3d.materials.shaders.Shader) package org.papervision3d.materials.shaders { import flash.events.*; import flash.display.*; import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.render.shader.*; import flash.filters.*; public class Shader extends EventDispatcher implements IShader { protected var _qj582:Dictionary; protected var _ck1565:String;// = "multiply" protected var _filter:BitmapFilter; protected var _im1340:DisplayObject3D; public function Shader(){ this._qj582 = new Dictionary(true); } public function set _jd724(_arg1:String):void{ _ck1565 = _arg1; } public function _dr2069(_arg1:DisplayObject3D, _arg2:Sprite):void{ _qj582[_arg1] = _arg2; } public function _tc3099(_arg1:RenderSessionData, _arg2:ShaderObjectData):void{ } public function set filter(_arg1:BitmapFilter):void{ _filter = _arg1; } public function get _jd724():String{ return (_ck1565); } public function get filter():BitmapFilter{ return (_filter); } public function _sf1512():void{ } public function _rs3055(_arg1:Triangle3D, _arg2:RenderSessionData, _arg3:ShaderObjectData, _arg4:BitmapData):void{ } public function _vt823(_arg1:Triangle3D, _arg2:RenderSessionData, _arg3:ShaderObjectData):void{ } } }//package org.papervision3d.materials.shaders
Section 115
//ShaderCompositeModes (org.papervision3d.materials.shaders.ShaderCompositeModes) package org.papervision3d.materials.shaders { public class ShaderCompositeModes { public static var PER_TRIANGLE_IN_BITMAP:int = 1; public static var PER_LAYER:int = 0; } }//package org.papervision3d.materials.shaders
Section 116
//CompositeMaterial (org.papervision3d.materials.special.CompositeMaterial) package org.papervision3d.materials.special { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.render.draw.*; import org.papervision3d.core.material.*; public class CompositeMaterial extends TriangleMaterial implements ITriangleDrawer { public var _xk2861:Array; public function CompositeMaterial(){ init(); } private function init():void{ _xk2861 = new Array(); } override public function _sh3150(_arg1:DisplayObject3D):void{ var _local2:MaterialObject3D; super._sh3150(_arg1); for each (_local2 in _xk2861) { _local2._sh3150(_arg1); }; } override public function _ck963(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData, _arg4:BitmapData=null, _arg5:Matrix=null):void{ var _local6:MaterialObject3D; for each (_local6 in _xk2861) { if (!_local6._gy1364){ _local6._ck963(_arg1, _arg2, _arg3); }; }; } public function _cx2917():void{ _xk2861 = new Array(); } override public function _nt2232(_arg1:DisplayObject3D):void{ var _local2:MaterialObject3D; super._nt2232(_arg1); for each (_local2 in _xk2861) { _local2._nt2232(_arg1); }; } public function _wv1186(_arg1:MaterialObject3D):void{ _xk2861.splice(_xk2861.indexOf(_arg1), 1); } public function _yl394(_arg1:MaterialObject3D):void{ var _local2:Object; var _local3:DisplayObject3D; _xk2861.push(_arg1); for (_local2 in _wh2014) { _local3 = (_local2 as DisplayObject3D); _arg1._sh3150(_local3); }; } } }//package org.papervision3d.materials.special
Section 117
//LineMaterial (org.papervision3d.materials.special.LineMaterial) package org.papervision3d.materials.special { import flash.display.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.render.draw.*; public class LineMaterial extends MaterialObject3D implements ILineDrawer { public function LineMaterial(_arg1:Number=0xFF0000, _arg2:Number=1){ this._nj1519 = _arg1; this._tn853 = _arg2; } public function _mg68(_arg1:RenderLine, _arg2:Graphics, _arg3:RenderSessionData):void{ _arg2.lineStyle(_arg1.size, _nj1519, _tn853); _arg2.moveTo(_arg1._ed697.x, _arg1._ed697.y); if (_arg1._gq2522){ _arg2.curveTo(_arg1._gq2522.x, _arg1._gq2522.y, _arg1._bw1102.x, _arg1._bw1102.y); } else { _arg2.lineTo(_arg1._bw1102.x, _arg1._bw1102.y); }; _arg2.moveTo(0, 0); _arg2.lineStyle(); } } }//package org.papervision3d.materials.special
Section 118
//ParticleMaterial (org.papervision3d.materials.special.ParticleMaterial) package org.papervision3d.materials.special { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.log.*; import org.papervision3d.core.render.draw.*; public class ParticleMaterial extends MaterialObject3D implements IParticleDrawer { public var _jg1519:int; public var scale:Number; public static var SHAPE_SQUARE:int = 0; public static var SHAPE_CIRCLE:int = 1; public function ParticleMaterial(_arg1:Number, _arg2:Number, _arg3:int=0, _arg4:Number=1){ this._jg1519 = _arg3; this._ci2063 = _arg2; this._xy102 = _arg1; this.scale = _arg4; } public function _sg1341(_arg1:Particle, _arg2:Graphics, _arg3:RenderSessionData):void{ _arg2.beginFill(_xy102, _ci2063); var _local4:Rectangle = _arg1._ur694; if (_jg1519 == SHAPE_SQUARE){ _arg2.drawRect(_local4.x, _local4.y, _local4.width, _local4.height); } else { if (_jg1519 == SHAPE_CIRCLE){ _arg2.drawCircle((_local4.x + (_local4.width / 2)), (_local4.y + (_local4.width / 2)), (_local4.width / 2)); } else { PaperLogger._rw2203("Particle material has no valid shape - Must be ParticleMaterial.SHAPE_SQUARE or ParticleMaterial.SHAPE_CIRCLE"); }; }; _arg2.endFill(); _arg3._th899._sa2066++; } public function _de609(_arg1:Particle):void{ var _local2:Rectangle = _arg1._ur694; if (_arg1.size == 0){ _local2.width = 1; _local2.height = 1; } else { _local2.width = ((_arg1._hl3144 * _arg1.size) * scale); _local2.height = ((_arg1._hl3144 * _arg1.size) * scale); }; _local2.x = (_arg1._jd630._vg530.x - (_local2.width / 2)); _local2.y = (_arg1._jd630._vg530.y - (_local2.width / 2)); } } }//package org.papervision3d.materials.special
Section 119
//LightMatrix (org.papervision3d.materials.utils.LightMatrix) package org.papervision3d.materials.utils { import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.*; import org.papervision3d.lights.*; public class LightMatrix { private static var _targetPos:Number3D = new Number3D(); private static var _lightUp:Number3D = new Number3D(); private static var _lightSide:Number3D = new Number3D(); private static var _lightDir:Number3D = new Number3D(); private static var _ni3059:Matrix3D = Matrix3D.IDENTITY; private static var invMatrix:Matrix3D = Matrix3D.IDENTITY; protected static var UP:Number3D = new Number3D(0, 1, 0); private static var _lightPos:Number3D = new Number3D(); public static function getLightMatrix(_arg1:LightObject3D, _arg2:DisplayObject3D, _arg3:RenderSessionData, _arg4:Matrix3D):Matrix3D{ var _local6:Matrix3D; var _local7:Matrix3D; var _local5:Matrix3D = (_arg4) ? _arg4 : Matrix3D.IDENTITY; if (_arg1 == null){ _arg1 = new PointLight3D(); _arg1._mo3147(_arg3._dy954); }; _targetPos.reset(); _lightPos.reset(); _lightDir.reset(); _lightUp.reset(); _lightSide.reset(); if (!_arg2){ return (_local5); }; _local6 = _arg1.transform; _local7 = _arg2._ik714; _lightPos.x = -(_local6._fa1348); _lightPos.y = -(_local6._pr1642); _lightPos.z = -(_local6._jp1065); _targetPos.x = -(_local7._fa1348); _targetPos.y = -(_local7._pr1642); _targetPos.z = -(_local7._jp1065); _lightDir.x = (_targetPos.x - _lightPos.x); _lightDir.y = (_targetPos.y - _lightPos.y); _lightDir.z = (_targetPos.z - _lightPos.z); invMatrix._fy1061(_arg2._ik714); Matrix3D.multiplyVector3x3(invMatrix, _lightDir); _lightDir.normalize(); _lightSide.x = ((_lightDir.y * UP.z) - (_lightDir.z * UP.y)); _lightSide.y = ((_lightDir.z * UP.x) - (_lightDir.x * UP.z)); _lightSide.z = ((_lightDir.x * UP.y) - (_lightDir.y * UP.x)); _lightSide.normalize(); _lightUp.x = ((_lightSide.y * _lightDir.z) - (_lightSide.z * _lightDir.y)); _lightUp.y = ((_lightSide.z * _lightDir.x) - (_lightSide.x * _lightDir.z)); _lightUp.z = ((_lightSide.x * _lightDir.y) - (_lightSide.y * _lightDir.x)); _lightUp.normalize(); if (((Papervision3D.useRIGHTHANDED) || (_arg2._fa1744))){ _lightDir.x = -(_lightDir.x); _lightDir.y = -(_lightDir.y); _lightDir.z = -(_lightDir.z); }; _local5._uy942 = _lightSide.x; _local5._vo1924 = _lightSide.y; _local5._fq2145 = _lightSide.z; _local5._pf1124 = _lightUp.x; _local5._ou2421 = _lightUp.y; _local5._py2591 = _lightUp.z; _local5._jm2768 = _lightDir.x; _local5._vb1203 = _lightDir.y; _local5._co210 = _lightDir.z; return (_local5); } } }//package org.papervision3d.materials.utils
Section 120
//MaterialsList (org.papervision3d.materials.utils.MaterialsList) package org.papervision3d.materials.utils { import flash.utils.*; import org.papervision3d.core.proto.*; public class MaterialsList { protected var _vn573:Dictionary; public var _gu625:Dictionary; private var _dl216:int; public function MaterialsList(_arg1=null):void{ var _local2:String; var _local3:String; super(); this._gu625 = new Dictionary(true); this._vn573 = new Dictionary(false); this._dl216 = 0; if (_arg1){ if ((_arg1 is Array)){ for (_local2 in _arg1) { this._yl394(_arg1[_local2]); }; } else { if ((_arg1 is Object)){ for (_local3 in _arg1) { this._yl394(_arg1[_local3], _local3); }; }; }; }; } public function get _kt1935():int{ return (_dl216); } public function _yl394(_arg1:MaterialObject3D, _arg2:String=null):MaterialObject3D{ _arg2 = ((((_arg2) || (_arg1.name))) || (String(_arg1.id))); this._vn573[_arg1] = _arg2; this._gu625[_arg2] = _arg1; this._dl216++; return (_arg1); } public function _wv1186(_arg1:MaterialObject3D):MaterialObject3D{ if (this._vn573[_arg1]){ delete this._gu625[this._vn573[_arg1]]; delete this._vn573[_arg1]; _dl216--; }; return (_arg1); } public function toString():String{ var _local2:MaterialObject3D; var _local1 = ""; for each (_local2 in this._gu625) { _local1 = (_local1 + (this._vn573[_local2] + "\n")); }; return (_local1); } public function _cm2368(_arg1:String):MaterialObject3D{ return (_wv1186(_ww1784(_arg1))); } public function clone():MaterialsList{ var _local2:MaterialObject3D; var _local1:MaterialsList = new MaterialsList(); for each (_local2 in this._gu625) { _local1._yl394(_local2.clone(), this._vn573[_local2]); }; return (_local1); } public function _ww1784(_arg1:String):MaterialObject3D{ return ((this._gu625[_arg1]) ? this._gu625[_arg1] : this._gu625["all"]); } } }//package org.papervision3d.materials.utils
Section 121
//PrecisionMode (org.papervision3d.materials.utils.PrecisionMode) package org.papervision3d.materials.utils { public class PrecisionMode { public static var ORIGINAL:int = 0; public static var STABLE:int = 1; } }//package org.papervision3d.materials.utils
Section 122
//RenderRecStorage (org.papervision3d.materials.utils.RenderRecStorage) package org.papervision3d.materials.utils { import flash.geom.*; import org.papervision3d.core.geom.renderables.*; public class RenderRecStorage { public var _gp1618:Matrix; public var _ed697:Vertex3DInstance; public var _bw1102:Vertex3DInstance; public var _at2737:Vertex3DInstance; public function RenderRecStorage(){ _ed697 = new Vertex3DInstance(); _bw1102 = new Vertex3DInstance(); _at2737 = new Vertex3DInstance(); _gp1618 = new Matrix(); super(); } } }//package org.papervision3d.materials.utils
Section 123
//BitmapMaterial (org.papervision3d.materials.BitmapMaterial) package org.papervision3d.materials { import flash.display.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.log.*; import org.papervision3d.materials.utils.*; import org.papervision3d.core.render.draw.*; import org.papervision3d.core.material.*; import org.papervision3d.*; public class BitmapMaterial extends TriangleMaterial implements ITriangleDrawer { protected var _ah909:Array; protected var _ld248:Number; private var _ot847:Number; private var _wy1446:Number; public var _qy1290:Dictionary; protected var _ql472:Boolean; protected var _ao2168:Number; protected var _ll262:Number; protected var _cy2981:Number; protected var _ru2448:Number; protected var _ob1278:Number; private var _kf215:Number; protected var _nb1166:Graphics; public var _vr100:int; protected var _di2647:Number; private var _dt2148:Number; protected var _nh1066:Number; protected var _ss615:Number; protected var _sv342:Number; private var _io3078:Number; protected var _oy341:Number; protected var _om574:Number; protected var _xs1780:Number; protected var _yc728:Number; public var _hy2370:Number;// = 4 protected var _ei1967:Number; protected var _vq1280:Number; protected var _vg587:Number; protected var _qf2734:Rectangle; protected var _dv994:Number; protected var _vt2239:Number; protected var _lr2715:Number; protected var _xh665:Number; private var _xp3102:Number; protected var _lr422:int;// = 8 protected var _oc796:Number; protected var _rv550:RenderSessionData; private var _sm886:Number; private var _dn2560:Number; private var _fy1567:Number; private var _og200:Number; protected var _ho2223:Number; protected var _le690:Number; protected var _no1132:Number; private var _hp2262:Number; protected var focus:Number;// = 200 private var _nr2804:Number; protected var _vl162:Object; protected var _up1216:BitmapData; private var _sb2711:Number; protected var _vl1893:Matrix; protected var _un1984:Number; protected var _if2996:Number; private var _ta2452:Number; protected var _mk1734:Number; protected var _rh2146:Number; protected var _id2705:Number; protected var _gs310:Number; private var _yf815:Number; protected var _precision:int;// = 8 protected static const DEFAULT_FOCUS:Number = 200; protected static var _triMatrix:Matrix = new Matrix(); protected static var _triMap:Matrix; public static var AUTO_MIP_MAPPING:Boolean = false; public static var MIP_MAP_DEPTH:Number = 8; protected static var hitRect:Rectangle = new Rectangle(); protected static var _localMatrix:Matrix = new Matrix(); public function BitmapMaterial(_arg1:BitmapData=null, _arg2:Boolean=false){ _vr100 = PrecisionMode.ORIGINAL; _qy1290 = new Dictionary(); _vl1893 = new Matrix(); super(); if (_arg1){ _xt1623 = _arg1; }; this._jw2186 = _arg2; _kf3151(); } public function _ha2827(_arg1:Triangle3D):Matrix{ var _local2:Array; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Matrix; var _local16:Matrix; if (!_arg1._br1645){ PaperLogger.error("MaterialObject3D: transformUV() uv not found!"); } else { if (_ba1161){ _local2 = _arg1._br1645; _local3 = (_ba1161.width * _fl762); _local4 = (_ba1161.height * _nu1314); _local5 = (_local3 * _arg1._un2451._hc45); _local6 = (_local4 * (1 - _arg1._un2451._md2120)); _local7 = (_local3 * _arg1._bu2836._hc45); _local8 = (_local4 * (1 - _arg1._bu2836._md2120)); _local9 = (_local3 * _arg1._dg317._hc45); _local10 = (_local4 * (1 - _arg1._dg317._md2120)); if ((((((_local5 == _local7)) && ((_local6 == _local8)))) || ((((_local5 == _local9)) && ((_local6 == _local10)))))){ _local5 = (_local5 - ((_local5)>0.05) ? 0.05 : -0.05); _local6 = (_local6 - ((_local6)>0.07) ? 0.07 : -0.07); }; if ((((_local9 == _local7)) && ((_local10 == _local8)))){ _local9 = (_local9 - ((_local9)>0.05) ? 0.04 : -0.04); _local10 = (_local10 - ((_local10)>0.06) ? 0.06 : -0.06); }; _local11 = (_local7 - _local5); _local12 = (_local8 - _local6); _local13 = (_local9 - _local5); _local14 = (_local10 - _local6); _local15 = new Matrix(_local11, _local12, _local13, _local14, _local5, _local6); if (Papervision3D.useRIGHTHANDED){ _local15.scale(-1, 1); _local15.translate(_local3, 0); }; _local15.invert(); _local16 = (_qy1290[_arg1] = _local15.clone()); _local16.a = _local15.a; _local16.b = _local15.b; _local16.c = _local15.c; _local16.d = _local15.d; _local16.tx = _local15.tx; _local16.ty = _local15.ty; } else { PaperLogger.error("MaterialObject3D: transformUV() material.bitmap not found!"); }; }; return (_local16); } public function _la445(_arg1:RenderTriangle):Matrix{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Matrix; var _local15:Matrix; if (_ba1161){ _local2 = (_ba1161.width * _fl762); _local3 = (_ba1161.height * _nu1314); _local4 = (_local2 * _arg1._un2451._hc45); _local5 = (_local3 * (1 - _arg1._un2451._md2120)); _local6 = (_local2 * _arg1._bu2836._hc45); _local7 = (_local3 * (1 - _arg1._bu2836._md2120)); _local8 = (_local2 * _arg1._dg317._hc45); _local9 = (_local3 * (1 - _arg1._dg317._md2120)); if ((((((_local4 == _local6)) && ((_local5 == _local7)))) || ((((_local4 == _local8)) && ((_local5 == _local9)))))){ _local4 = (_local4 - ((_local4)>0.05) ? 0.05 : -0.05); _local5 = (_local5 - ((_local5)>0.07) ? 0.07 : -0.07); }; if ((((_local8 == _local6)) && ((_local9 == _local7)))){ _local8 = (_local8 - ((_local8)>0.05) ? 0.04 : -0.04); _local9 = (_local9 - ((_local9)>0.06) ? 0.06 : -0.06); }; _local10 = (_local6 - _local4); _local11 = (_local7 - _local5); _local12 = (_local8 - _local4); _local13 = (_local9 - _local5); _local14 = new Matrix(_local10, _local11, _local12, _local13, _local4, _local5); if (Papervision3D.useRIGHTHANDED){ _local14.scale(-1, 1); _local14.translate(_local2, 0); }; _local14.invert(); _local15 = (_qy1290[_arg1] = _local14.clone()); _local15.a = _local14.a; _local15.b = _local14.b; _local15.c = _local14.c; _local15.d = _local14.d; _local15.tx = _local14.tx; _local15.ty = _local14.ty; } else { PaperLogger.error("MaterialObject3D: transformUV() material.bitmap not found!"); }; return (_local15); } protected function _wh3151(_arg1:Matrix, _arg2:Vertex3DInstance, _arg3:Vertex3DInstance, _arg4:Vertex3DInstance, _arg5:Number):void{ _ob1278 = _arg2.z; _xs1780 = _arg3.z; _dv994 = _arg4.z; if ((((((_ob1278 <= 0)) && ((_xs1780 <= 0)))) && ((_dv994 <= 0)))){ return; }; _vg587 = _arg4.x; _vt2239 = _arg4.y; _oy341 = _arg3.x; _om574 = _arg3.y; _cy2981 = _arg2.x; _ru2448 = _arg2.y; if (_qf2734){ hitRect.x = ((_oy341 < _cy2981)) ? ((_oy341 < _vg587)) ? _oy341 : _vg587 : ((_cy2981 < _vg587)) ? _cy2981 : _vg587; hitRect.width = (((_oy341 > _cy2981)) ? ((_oy341 > _vg587)) ? _oy341 : _vg587 : ((_cy2981 > _vg587)) ? _cy2981 : _vg587 + ((hitRect.x < 0)) ? -(hitRect.x) : hitRect.x); hitRect.y = ((_om574 < _ru2448)) ? ((_om574 < _vt2239)) ? _om574 : _vt2239 : ((_ru2448 < _vt2239)) ? _ru2448 : _vt2239; hitRect.height = (((_om574 > _ru2448)) ? ((_om574 > _vt2239)) ? _om574 : _vt2239 : ((_ru2448 > _vt2239)) ? _ru2448 : _vt2239 + ((hitRect.y < 0)) ? -(hitRect.y) : hitRect.y); if (!(((hitRect.right < _qf2734.left)) || ((hitRect.left > _qf2734.right)))){ if (!(((hitRect.bottom < _qf2734.top)) || ((hitRect.top > _qf2734.bottom)))){ } else { return; }; } else { return; }; }; if ((((((((_arg5 >= 100)) || ((hitRect.width < _hy2370)))) || ((hitRect.height < _hy2370)))) || ((focus == Infinity)))){ _yf815 = (_arg3.x - _arg2.x); _wy1446 = (_arg3.y - _arg2.y); _dt2148 = (_arg4.x - _arg2.x); _io3078 = (_arg4.y - _arg2.y); _vl1893.a = ((_arg1.a * _yf815) + (_arg1.b * _dt2148)); _vl1893.b = ((_arg1.a * _wy1446) + (_arg1.b * _io3078)); _vl1893.c = ((_arg1.c * _yf815) + (_arg1.d * _dt2148)); _vl1893.d = ((_arg1.c * _wy1446) + (_arg1.d * _io3078)); _vl1893.tx = (((_arg1.tx * _yf815) + (_arg1.ty * _dt2148)) + _arg2.x); _vl1893.ty = (((_arg1.tx * _wy1446) + (_arg1.ty * _io3078)) + _arg2.y); if (_tn853){ _nb1166.lineStyle(_ai1913, _nj1519, _tn853); }; _nb1166.beginBitmapFill(_up1216, _vl1893, _up2189, smooth); _nb1166.moveTo(_arg2.x, _arg2.y); _nb1166.lineTo(_arg3.x, _arg3.y); _nb1166.lineTo(_arg4.x, _arg4.y); _nb1166.endFill(); if (_tn853){ _nb1166.lineStyle(); }; _rv550._th899._tr157++; return; }; _ao2168 = (focus + _ob1278); _di2647 = (focus + _xs1780); _yc728 = (focus + _dv994); _if2996 = (2 / (_ao2168 + _di2647)); _le690 = (2 / (_di2647 + _yc728)); _sv342 = (2 / (_yc728 + _ao2168)); _rh2146 = (((_cy2981 * _ao2168) + (_oy341 * _di2647)) * _if2996); _un1984 = (((_ru2448 * _ao2168) + (_om574 * _di2647)) * _if2996); _no1132 = (((_oy341 * _di2647) + (_vg587 * _yc728)) * _le690); _ho2223 = (((_om574 * _di2647) + (_vt2239 * _yc728)) * _le690); _nh1066 = (((_vg587 * _yc728) + (_cy2981 * _ao2168)) * _sv342); _ss615 = (((_vt2239 * _yc728) + (_ru2448 * _ao2168)) * _sv342); _xh665 = ((_cy2981 + _oy341) - _rh2146); _oc796 = ((_ru2448 + _om574) - _un1984); _ei1967 = ((_oy341 + _vg587) - _no1132); _vq1280 = ((_om574 + _vt2239) - _ho2223); _id2705 = ((_vg587 + _cy2981) - _nh1066); _gs310 = ((_vt2239 + _ru2448) - _ss615); _mk1734 = ((_xh665 * _xh665) + (_oc796 * _oc796)); _ld248 = ((_ei1967 * _ei1967) + (_vq1280 * _vq1280)); _ll262 = ((_id2705 * _id2705) + (_gs310 * _gs310)); var _local6:int = (_arg5 + 1); var _local7:RenderRecStorage = RenderRecStorage(_ah909[int(_arg5)]); var _local8:Matrix = _local7._gp1618; if ((((((_mk1734 <= _precision)) && ((_ll262 <= _precision)))) && ((_ld248 <= _precision)))){ _yf815 = (_arg3.x - _arg2.x); _wy1446 = (_arg3.y - _arg2.y); _dt2148 = (_arg4.x - _arg2.x); _io3078 = (_arg4.y - _arg2.y); _vl1893.a = ((_arg1.a * _yf815) + (_arg1.b * _dt2148)); _vl1893.b = ((_arg1.a * _wy1446) + (_arg1.b * _io3078)); _vl1893.c = ((_arg1.c * _yf815) + (_arg1.d * _dt2148)); _vl1893.d = ((_arg1.c * _wy1446) + (_arg1.d * _io3078)); _vl1893.tx = (((_arg1.tx * _yf815) + (_arg1.ty * _dt2148)) + _arg2.x); _vl1893.ty = (((_arg1.tx * _wy1446) + (_arg1.ty * _io3078)) + _arg2.y); if (_tn853){ _nb1166.lineStyle(_ai1913, _nj1519, _tn853); }; _nb1166.beginBitmapFill(_up1216, _vl1893, _up2189, smooth); _nb1166.moveTo(_arg2.x, _arg2.y); _nb1166.lineTo(_arg3.x, _arg3.y); _nb1166.lineTo(_arg4.x, _arg4.y); _nb1166.endFill(); if (_tn853){ _nb1166.lineStyle(); }; _rv550._th899._tr157++; return; }; if ((((((_mk1734 > _precision)) && ((_ll262 > _precision)))) && ((_ld248 > _precision)))){ _local8.a = (_arg1.a * 2); _local8.b = (_arg1.b * 2); _local8.c = (_arg1.c * 2); _local8.d = (_arg1.d * 2); _local8.tx = (_arg1.tx * 2); _local8.ty = (_arg1.ty * 2); _local7._ed697.x = (_rh2146 * 0.5); _local7._ed697.y = (_un1984 * 0.5); _local7._ed697.z = ((_ob1278 + _xs1780) * 0.5); _local7._bw1102.x = (_no1132 * 0.5); _local7._bw1102.y = (_ho2223 * 0.5); _local7._bw1102.z = ((_xs1780 + _dv994) * 0.5); _local7._at2737.x = (_nh1066 * 0.5); _local7._at2737.y = (_ss615 * 0.5); _local7._at2737.z = ((_dv994 + _ob1278) * 0.5); _wh3151(_local8, _arg2, _local7._ed697, _local7._at2737, _local6); _local8.tx = (_local8.tx - 1); _wh3151(_local8, _local7._ed697, _arg3, _local7._bw1102, _local6); _local8.ty = (_local8.ty - 1); _local8.tx = (_arg1.tx * 2); _wh3151(_local8, _local7._at2737, _local7._bw1102, _arg4, _local6); _local8.a = (-(_arg1.a) * 2); _local8.b = (-(_arg1.b) * 2); _local8.c = (-(_arg1.c) * 2); _local8.d = (-(_arg1.d) * 2); _local8.tx = ((-(_arg1.tx) * 2) + 1); _local8.ty = ((-(_arg1.ty) * 2) + 1); _wh3151(_local8, _local7._bw1102, _local7._at2737, _local7._ed697, _local6); return; }; if (_vr100 == PrecisionMode.ORIGINAL){ _ta2452 = _mk1734; _ot847 = _ld248; _kf215 = _ll262; _lr2715 = ((_ll262 > _ld248)) ? ((_ll262 > _mk1734)) ? _ll262 : _mk1734 : ((_ld248 > _mk1734)) ? _ld248 : _mk1734; } else { _sm886 = (_arg2.x - _arg3.x); _xp3102 = (_arg2.y - _arg3.y); _ta2452 = ((_sm886 * _sm886) + (_xp3102 * _xp3102)); _sm886 = (_arg3.x - _arg4.x); _xp3102 = (_arg3.y - _arg4.y); _ot847 = ((_sm886 * _sm886) + (_xp3102 * _xp3102)); _sm886 = (_arg4.x - _arg2.x); _xp3102 = (_arg4.y - _arg2.y); _kf215 = ((_sm886 * _sm886) + (_xp3102 * _xp3102)); _lr2715 = ((_kf215 > _ot847)) ? ((_kf215 > _ta2452)) ? _kf215 : _ta2452 : ((_ot847 > _ta2452)) ? _ot847 : _ta2452; }; if (_ta2452 == _lr2715){ _local8.a = (_arg1.a * 2); _local8.b = _arg1.b; _local8.c = (_arg1.c * 2); _local8.d = _arg1.d; _local8.tx = (_arg1.tx * 2); _local8.ty = _arg1.ty; _local7._ed697.x = (_rh2146 * 0.5); _local7._ed697.y = (_un1984 * 0.5); _local7._ed697.z = ((_ob1278 + _xs1780) * 0.5); _wh3151(_local8, _arg2, _local7._ed697, _arg4, _local6); _local8.a = ((_arg1.a * 2) + _arg1.b); _local8.c = ((2 * _arg1.c) + _arg1.d); _local8.tx = (((_arg1.tx * 2) + _arg1.ty) - 1); _wh3151(_local8, _local7._ed697, _arg3, _arg4, _local6); return; }; if (_kf215 == _lr2715){ _local8.a = _arg1.a; _local8.b = (_arg1.b * 2); _local8.c = _arg1.c; _local8.d = (_arg1.d * 2); _local8.tx = _arg1.tx; _local8.ty = (_arg1.ty * 2); _local7._at2737.x = (_nh1066 * 0.5); _local7._at2737.y = (_ss615 * 0.5); _local7._at2737.z = ((_dv994 + _ob1278) * 0.5); _wh3151(_local8, _arg2, _arg3, _local7._at2737, _local6); _local8.b = (_local8.b + _arg1.a); _local8.d = (_local8.d + _arg1.c); _local8.ty = (_local8.ty + (_arg1.tx - 1)); _wh3151(_local8, _local7._at2737, _arg3, _arg4, _local6); return; }; _local8.a = (_arg1.a - _arg1.b); _local8.b = (_arg1.b * 2); _local8.c = (_arg1.c - _arg1.d); _local8.d = (_arg1.d * 2); _local8.tx = (_arg1.tx - _arg1.ty); _local8.ty = (_arg1.ty * 2); _local7._bw1102.x = (_no1132 * 0.5); _local7._bw1102.y = (_ho2223 * 0.5); _local7._bw1102.z = ((_xs1780 + _dv994) * 0.5); _wh3151(_local8, _arg2, _arg3, _local7._bw1102, _local6); _local8.a = (_arg1.a * 2); _local8.b = (_arg1.b - _arg1.a); _local8.c = (_arg1.c * 2); _local8.d = (_arg1.d - _arg1.c); _local8.tx = (_arg1.tx * 2); _local8.ty = (_arg1.ty - _arg1.tx); _wh3151(_local8, _arg2, _local7._bw1102, _arg4, _local6); } protected function _kf3151():void{ this._ah909 = new Array(); var _local1:int; while (_local1 <= 100) { this._ah909[_local1] = new RenderRecStorage(); _local1++; }; } public function get _xt1623():Object{ return (this._vl162); } public function _gm2210():void{ _qy1290 = new Dictionary(false); } public function set _fl2642(_arg1:int):void{ _precision = ((_arg1 * _arg1) * 1.4); _lr422 = _arg1; } protected function _pm2798(_arg1:BitmapData):BitmapData{ var _local2:BitmapData; var _local3:Number = (1 << MIP_MAP_DEPTH); var _local4:Number = (_arg1.width / _local3); _local4 = ((_local4 == uint(_local4))) ? _local4 : (uint(_local4) + 1); var _local5:Number = (_arg1.height / _local3); _local5 = ((_local5 == uint(_local5))) ? _local5 : (uint(_local5) + 1); var _local6:Number = (_local3 * _local4); var _local7:Number = (_local3 * _local5); var _local8:Boolean; if (_local6 > 2880){ _local6 = _arg1.width; _local8 = false; }; if (_local7 > 2880){ _local7 = _arg1.height; _local8 = false; }; if (!_local8){ PaperLogger._rw2203((("Material " + this.name) + ": Texture too big for mip mapping. Resizing recommended for better performance and quality.")); }; if (((_arg1) && (((!(((_arg1.width % _local3) == 0))) || (!(((_arg1.height % _local3) == 0))))))){ _local2 = new BitmapData(_local6, _local7, _arg1.transparent, 0); _dm263 = _arg1.width; _al381 = _arg1.height; this._fl762 = (_arg1.width / _local6); this._nu1314 = (_arg1.height / _local7); _local2.draw(_arg1); _jo3022(_local2, _arg1.width, _arg1.height); } else { this._fl762 = (this._nu1314 = 1); _local2 = _arg1; }; return (_local2); } protected function _so1144(_arg1:BitmapData):BitmapData{ var _local2:BitmapData; _aw1485(); if (AUTO_MIP_MAPPING){ _local2 = _pm2798(_arg1); } else { this._fl762 = (this._nu1314 = 1); _local2 = _arg1; }; return (_local2); } public function get _jw2186():Boolean{ return (_ql472); } public function set _xt1623(_arg1:Object):void{ if ((_arg1 is BitmapData) == false){ PaperLogger.error("BitmapMaterial.texture requires a BitmapData object for the texture"); return; }; _ba1161 = _so1144(BitmapData(_arg1)); _vl162 = _arg1; } override public function clone():MaterialObject3D{ var _local1:MaterialObject3D = super.clone(); _local1._fl762 = this._fl762; _local1._nu1314 = this._nu1314; return (_local1); } override public function _ck963(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData, _arg4:BitmapData=null, _arg5:Matrix=null):void{ _triMap = (_arg5) ? _arg5 : ((_qy1290[_arg1]) || (_la445(_arg1))); if (((!(_ql472)) || (!(_triMap)))){ if (_tn853){ _arg2.lineStyle(_ai1913, _nj1519, _tn853); }; if (_ba1161){ _dn2560 = _arg1._ed697.x; _hp2262 = _arg1._ed697.y; _fy1567 = _arg1._bw1102.x; _sb2711 = _arg1._bw1102.y; _og200 = _arg1._at2737.x; _nr2804 = _arg1._at2737.y; _triMatrix.a = (_fy1567 - _dn2560); _triMatrix.b = (_sb2711 - _hp2262); _triMatrix.c = (_og200 - _dn2560); _triMatrix.d = (_nr2804 - _hp2262); _triMatrix.tx = _dn2560; _triMatrix.ty = _hp2262; _localMatrix.a = _triMap.a; _localMatrix.b = _triMap.b; _localMatrix.c = _triMap.c; _localMatrix.d = _triMap.d; _localMatrix.tx = _triMap.tx; _localMatrix.ty = _triMap.ty; _localMatrix.concat(_triMatrix); _arg2.beginBitmapFill((_arg4) ? _arg4 : _ba1161, _localMatrix, _up2189, smooth); }; _arg2.moveTo(_dn2560, _hp2262); _arg2.lineTo(_fy1567, _sb2711); _arg2.lineTo(_og200, _nr2804); _arg2.lineTo(_dn2560, _hp2262); if (_ba1161){ _arg2.endFill(); }; if (_tn853){ _arg2.lineStyle(); }; _arg3._th899._tr157++; } else { if (_ba1161){ focus = _arg3._dy954.focus; _up1216 = (_arg4) ? _arg4 : _ba1161; _rv550 = _arg3; _nb1166 = _arg2; _qf2734 = _arg3._rj27._yf1452; _wh3151(_triMap, _arg1._ed697, _arg1._bw1102, _arg1._at2737, 0); }; }; } public function get precision():int{ return (_precision); } public function _aw1485():void{ _qy1290 = new Dictionary(); } override public function copy(_arg1:MaterialObject3D):void{ super.copy(_arg1); this._fl762 = _arg1._fl762; this._nu1314 = _arg1._nu1314; } override public function toString():String{ return (((((("Texture:" + this._xt1623) + " lineColor:") + this._nj1519) + " lineAlpha:") + this._tn853)); } public function get _fl2642():int{ return (_lr422); } public function set _jw2186(_arg1:Boolean):void{ _ql472 = _arg1; } protected function _jo3022(_arg1:BitmapData, _arg2:Number, _arg3:Number):void{ var _local6:int; var _local4:Rectangle = new Rectangle(); var _local5:Point = new Point(); if (_arg1.width > _arg2){ _local4.x = (_arg2 - 1); _local4.y = 0; _local4.width = 1; _local4.height = _arg3; _local5.y = 0; _local6 = _arg2; while (_local6 < _arg1.width) { _local5.x = _local6; _arg1.copyPixels(_arg1, _local4, _local5); _local6++; }; }; if (_arg1.height > _arg3){ _local4.x = 0; _local4.y = (_arg3 - 1); _local4.width = _arg1.width; _local4.height = 1; _local5.x = 0; _local6 = _arg3; while (_local6 < _arg1.height) { _local5.y = _local6; _arg1.copyPixels(_arg1, _local4, _local5); _local6++; }; }; } override public function _sf1512():void{ super._sf1512(); if (_qy1290){ _qy1290 = null; }; if (_ba1161){ _ba1161.dispose(); }; this._ah909 = null; } public function set precision(_arg1:int):void{ _precision = _arg1; } } }//package org.papervision3d.materials
Section 124
//MovieMaterial (org.papervision3d.materials.MovieMaterial) package org.papervision3d.materials { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.log.*; import org.papervision3d.core.render.material.*; import org.papervision3d.core.render.draw.*; public class MovieMaterial extends BitmapMaterial implements ITriangleDrawer, IUpdateBeforeMaterial, IUpdateAfterMaterial { public var _fe1979:Boolean; private var quality:String; private var _jq951:Boolean;// = false private var stage:Stage; private var _nf1776:Rectangle; public var _mt51:Boolean;// = false public var movie:DisplayObject; private var _rw2144:Boolean; protected var _xs2386:Boolean; private var _lp2597:Rectangle; public function MovieMaterial(_arg1:DisplayObject=null, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:Rectangle=null){ _fe1979 = _arg2; this._qp704 = _arg3; this._jw2186 = _arg4; _lp2597 = _arg5; if (_arg1){ _xt1623 = _arg1; }; } protected function _id1684(_arg1:DisplayObject):BitmapData{ movie = _arg1; _lu412(movie); _gh2808(); _ba1161 = super._so1144(_ba1161); return (_ba1161); } public function set rect(_arg1:Rectangle):void{ _lp2597 = _arg1; _id1684(movie); } public function _tc3099(_arg1:RenderSessionData):void{ if ((((_rw2144 == true)) && ((_jq951 == true)))){ _gh2808(); if (_xs2386){ _ba1161 = super._so1144(_ba1161); _xs2386 = false; }; }; } public function set _qp704(_arg1:Boolean):void{ _rw2144 = _arg1; } public function _gh2808():void{ var _local3:String; _ba1161.fillRect(_ba1161.rect, _xy102); if (((stage) && (quality))){ _local3 = stage.quality; stage.quality = quality; }; var _local1:Rectangle = rect; var _local2:Matrix = new Matrix(1, 0, 0, 1, -(_local1.x), -(_local1.y)); _ba1161.draw(movie, _local2, movie.transform.colorTransform, null); if (!_lp2597){ _nf1776 = movie.getBounds(movie); }; if (((stage) && (quality))){ stage.quality = _local3; }; } override public function get _xt1623():Object{ return (this._vl162); } public function _gt2568(_arg1:RenderSessionData):void{ var _local2:int; var _local3:int; _jq951 = false; if (_rw2144){ if (_lp2597){ _local2 = int((_lp2597.width + 0.5)); _local3 = int((_lp2597.height + 0.5)); } else { _local2 = int((movie.width + 0.5)); _local3 = int((movie.height + 0.5)); }; if (((_mt51) && (((!((_local2 == _ba1161.width))) || (!((_local3 == _ba1161.height))))))){ _lu412(movie); _xs2386 = true; }; }; } protected function _lu412(_arg1:DisplayObject):void{ if (_ba1161){ _ba1161.dispose(); }; if (_lp2597){ _ba1161 = new BitmapData(int((_lp2597.width + 0.5)), int((_lp2597.height + 0.5)), _fe1979, _xy102); } else { if ((((_arg1.width == 0)) || ((_arg1.height == 0)))){ _ba1161 = new BitmapData(0x0100, 0x0100, _fe1979, _xy102); } else { _ba1161 = new BitmapData(int((_arg1.width + 0.5)), int((_arg1.height + 0.5)), _fe1979, _xy102); }; }; } public function get _qp704():Boolean{ return (_rw2144); } public function get rect():Rectangle{ var _local1:Rectangle = ((_lp2597) || (_nf1776)); if (((!(_local1)) && (movie))){ _local1 = movie.getBounds(movie); }; return (_local1); } override public function set _xt1623(_arg1:Object):void{ if ((_arg1 is DisplayObject) == false){ PaperLogger.error("MovieMaterial.texture requires a Sprite to be passed as the object"); return; }; _ba1161 = _id1684(DisplayObject(_arg1)); _vl162 = _arg1; } override public function _ck963(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData, _arg4:BitmapData=null, _arg5:Matrix=null):void{ _jq951 = true; super._ck963(_arg1, _arg2, _arg3, _arg4, _arg5); } public function setQuality(_arg1:String, _arg2:Stage, _arg3:Boolean=true):void{ this.quality = _arg1; this.stage = _arg2; if (_arg3){ _id1684(movie); }; } } }//package org.papervision3d.materials
Section 125
//WireframeMaterial (org.papervision3d.materials.WireframeMaterial) package org.papervision3d.materials { import flash.display.*; import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.render.draw.*; import org.papervision3d.core.material.*; public class WireframeMaterial extends TriangleMaterial implements ITriangleDrawer { public function WireframeMaterial(_arg1:Number=0xFF00FF, _arg2:Number=1, _arg3:Number=0){ this._nj1519 = _arg1; this._tn853 = _arg2; this._ai1913 = _arg3; this._vk1963 = false; } override public function toString():String{ return (((("WireframeMaterial - color:" + this._nj1519) + " alpha:") + this._tn853)); } override public function _ck963(_arg1:RenderTriangle, _arg2:Graphics, _arg3:RenderSessionData, _arg4:BitmapData=null, _arg5:Matrix=null):void{ var _local6:Number = _arg1._ed697.x; var _local7:Number = _arg1._ed697.y; if (_tn853){ _arg2.lineStyle(_ai1913, _nj1519, _tn853); _arg2.moveTo(_local6, _local7); _arg2.lineTo(_arg1._bw1102.x, _arg1._bw1102.y); _arg2.lineTo(_arg1._at2737.x, _arg1._at2737.y); _arg2.lineTo(_local6, _local7); _arg2.lineStyle(); _arg3._th899._tr157++; }; } } }//package org.papervision3d.materials
Section 126
//Plane (org.papervision3d.objects.primitives.Plane) package org.papervision3d.objects.primitives { import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.geom.*; import org.papervision3d.*; public class Plane extends TriangleMesh3D { public var _ec518:Number; public var _ko672:Number; public static var DEFAULT_SCALE:Number = 1; public static var DEFAULT_SEGMENTS:Number = 1; public static var DEFAULT_SIZE:Number = 500; public function Plane(_arg1:MaterialObject3D=null, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){ super(_arg1, new Array(), new Array(), null); this._ko672 = ((_arg4) || (DEFAULT_SEGMENTS)); this._ec518 = ((_arg5) || (this._ko672)); var _local6:Number = DEFAULT_SCALE; if (!_arg3){ if (_arg2){ _local6 = _arg2; }; if (((_arg1) && (_arg1._ba1161))){ _arg2 = (_arg1._ba1161.width * _local6); _arg3 = (_arg1._ba1161.height * _local6); } else { _arg2 = (DEFAULT_SIZE * _local6); _arg3 = (DEFAULT_SIZE * _local6); }; }; _ia1806(_arg2, _arg3); } private function _ia1806(_arg1:Number, _arg2:Number):void{ var _local14:NumberUV; var _local15:NumberUV; var _local16:NumberUV; var _local17:int; var _local18:Number; var _local19:Number; var _local20:Vertex3D; var _local21:Vertex3D; var _local22:Vertex3D; var _local3:Number = this._ko672; var _local4:Number = this._ec518; var _local5:Number = (_local3 + 1); var _local6:Number = (_local4 + 1); var _local7:Array = this._ce47.vertices; var _local8:Array = this._ce47._av2739; var _local9:Number = (_arg1 / 2); var _local10:Number = (_arg2 / 2); var _local11:Number = (_arg1 / _local3); var _local12:Number = (_arg2 / _local4); var _local13:int; while (_local13 < (_local3 + 1)) { _local17 = 0; while (_local17 < _local6) { _local18 = ((_local13 * _local11) - _local9); _local19 = ((_local17 * _local12) - _local10); _local7.push(new Vertex3D(_local18, _local19, 0)); _local17++; }; _local13++; }; _local13 = 0; while (_local13 < _local3) { _local17 = 0; while (_local17 < _local4) { _local20 = _local7[((_local13 * _local6) + _local17)]; _local21 = _local7[((_local13 * _local6) + (_local17 + 1))]; _local22 = _local7[(((_local13 + 1) * _local6) + _local17)]; _local14 = new NumberUV((_local13 / _local3), (_local17 / _local4)); _local15 = new NumberUV((_local13 / _local3), ((_local17 + 1) / _local4)); _local16 = new NumberUV(((_local13 + 1) / _local3), (_local17 / _local4)); _local8.push(new Triangle3D(this, [_local20, _local22, _local21], _kg2044, [_local14, _local16, _local15])); _local20 = _local7[(((_local13 + 1) * _local6) + (_local17 + 1))]; _local21 = _local7[(((_local13 + 1) * _local6) + _local17)]; _local22 = _local7[((_local13 * _local6) + (_local17 + 1))]; _local14 = new NumberUV(((_local13 + 1) / _local3), ((_local17 + 1) / _local4)); _local15 = new NumberUV(((_local13 + 1) / _local3), (_local17 / _local4)); _local16 = new NumberUV((_local13 / _local3), ((_local17 + 1) / _local4)); _local8.push(new Triangle3D(this, [_local20, _local22, _local21], _kg2044, [_local14, _local16, _local15])); _local17++; }; _local13++; }; this._ce47.ready = true; if (Papervision3D.useRIGHTHANDED){ this._ce47._ds1636(); }; } } }//package org.papervision3d.objects.primitives
Section 127
//Sphere (org.papervision3d.objects.primitives.Sphere) package org.papervision3d.objects.primitives { import org.papervision3d.core.proto.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.geom.*; import org.papervision3d.*; public class Sphere extends TriangleMesh3D { private var _ec518:Number; private var _ko672:Number; public static var MIN_SEGMENTSW:Number = 3; public static var DEFAULT_SCALE:Number = 1; public static var DEFAULT_RADIUS:Number = 100; public static var DEFAULT_SEGMENTSH:Number = 6; public static var MIN_SEGMENTSH:Number = 2; public static var DEFAULT_SEGMENTSW:Number = 8; public function Sphere(_arg1:MaterialObject3D=null, _arg2:Number=100, _arg3:int=8, _arg4:int=6){ super(_arg1, new Array(), new Array(), null); this._ko672 = Math.max(MIN_SEGMENTSW, ((_arg3) || (DEFAULT_SEGMENTSW))); this._ec518 = Math.max(MIN_SEGMENTSH, ((_arg4) || (DEFAULT_SEGMENTSH))); if (_arg2 == 0){ _arg2 = DEFAULT_RADIUS; }; var _local5:Number = DEFAULT_SCALE; _de1931(_arg2); } private function _de1931(_arg1:Number):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local11:Triangle3D; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Array; var _local16:Vertex3D; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:int; var _local21:Boolean; var _local22:Vertex3D; var _local23:Vertex3D; var _local24:Vertex3D; var _local25:Vertex3D; var _local26:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:NumberUV; var _local31:NumberUV; var _local32:NumberUV; var _local33:NumberUV; var _local5:Number = Math.max(3, this._ko672); var _local6:Number = Math.max(2, this._ec518); var _local7:Array = this._ce47.vertices; var _local8:Array = this._ce47._av2739; var _local9:Array = new Array(); _local3 = 0; while (_local3 < (_local6 + 1)) { _local12 = Number((_local3 / _local6)); _local13 = (-(_arg1) * Math.cos((_local12 * Math.PI))); _local14 = (_arg1 * Math.sin((_local12 * Math.PI))); _local15 = new Array(); _local2 = 0; while (_local2 < _local5) { _local17 = Number(((2 * _local2) / _local5)); _local18 = (_local14 * Math.sin((_local17 * Math.PI))); _local19 = (_local14 * Math.cos((_local17 * Math.PI))); if (!(((((_local3 == 0)) || ((_local3 == _local6)))) && ((_local2 > 0)))){ _local16 = new Vertex3D(_local19, _local13, _local18); _local7.push(_local16); }; _local15.push(_local16); _local2++; }; _local9.push(_local15); _local3++; }; var _local10:int = _local9.length; _local3 = 0; while (_local3 < _local10) { _local20 = _local9[_local3].length; if (_local3 > 0){ _local2 = 0; while (_local2 < _local20) { _local21 = (_local2 == (_local20 - 1)); _local22 = _local9[_local3][(_local21) ? 0 : (_local2 + 1)]; _local23 = _local9[_local3][(_local21) ? (_local20 - 1) : _local2]; _local24 = _local9[(_local3 - 1)][(_local21) ? (_local20 - 1) : _local2]; _local25 = _local9[(_local3 - 1)][(_local21) ? 0 : (_local2 + 1)]; _local26 = (_local3 / (_local10 - 1)); _local27 = ((_local3 - 1) / (_local10 - 1)); _local28 = ((_local2 + 1) / _local20); _local29 = (_local2 / _local20); _local30 = new NumberUV(_local28, _local27); _local31 = new NumberUV(_local28, _local26); _local32 = new NumberUV(_local29, _local26); _local33 = new NumberUV(_local29, _local27); if (_local3 < (_local9.length - 1)){ _local8.push(new Triangle3D(this, new Array(_local22, _local23, _local24), _kg2044, new Array(_local31, _local32, _local33))); }; if (_local3 > 1){ _local8.push(new Triangle3D(this, new Array(_local22, _local24, _local25), _kg2044, new Array(_local31, _local33, _local30))); }; _local2++; }; }; _local3++; }; for each (_local11 in _local8) { _local11._nh614.create = _so1360; }; this._ce47.ready = true; if (Papervision3D.useRIGHTHANDED){ this._ce47._ds1636(); }; } } }//package org.papervision3d.objects.primitives
Section 128
//DisplayObject3D (org.papervision3d.objects.DisplayObject3D) package org.papervision3d.objects { import org.papervision3d.core.render.data.*; import org.papervision3d.view.layer.*; import org.papervision3d.core.proto.*; import org.papervision3d.view.*; import org.papervision3d.core.data.*; import org.papervision3d.core.math.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.log.*; import org.papervision3d.materials.utils.*; import org.papervision3d.materials.shaders.*; import org.papervision3d.core.material.*; import org.papervision3d.*; public class DisplayObject3D extends DisplayObjectContainer3D { public var _nb21:Object; public var _eg1568:int;// = 0 private var _fm2971:Quaternion; public var id:int; private var _cr50:Number; private var _nu1917:Number; public var _oq2615:Number;// = 0 private var _wf282:Number3D; public var _xk2861:MaterialsList; public var _mt3098:uint;// = 1 private var _wy356:Number; private var _mh705:Quaternion; private var _ho579:Number3D; private var _rx995:Number3D; private var _ql949:Boolean;// = false private var _vd775:Boolean;// = false private var _kp1912:Number3D; private var _tn1219:uint;// = 0 public var alpha:Number;// = 1 public var _cc2194:Boolean;// = true public var screen:Number3D; private var _fh1317:Number; private var _oh1531:Number; private var _ui139:Number; public var _ce47:GeometryObject3D; private var _ct927:Quaternion; public var visible:Boolean; protected var _sj1468:UserData; public var _id609:Number; public var container:ViewportLayer; protected var _uo949:Boolean;// = false public var transform:Matrix3D; private var _cq2697:MaterialObject3D; private var _position:Number3D; public var name:String; protected var _db2874:SceneObject3D;// = null private var _mx2920:Quaternion; private var _jx434:Number;// = 0 public var _rl447:Boolean; public var _ik714:Matrix3D; public var blendMode:String;// = "_lv2795" private var _xl2856:Number;// = 0 private var _wl207:Number;// = 0 public var view:Matrix3D; public var parent:DisplayObjectContainer3D; public var _av2739:Array; private var _xm583:Number3D; public var _fa1744:Boolean;// = false private var _sn2692:Number3D; protected var _kc2377:Boolean;// = false protected var _hx2548:Array; private var _bf1144:Boolean;// = false public var _dp2245:DisplayObject3D; public var _he2427:Boolean;// = true public var filters:Array; public static const MESH_SORT_CENTER:uint = 1; private static const LEFT:Number3D = new Number3D(-1, 0, 0); public static const MESH_SORT_CLOSE:uint = 3; private static const BACKWARD:Number3D = new Number3D(0, 0, -1); private static const FORWARD:Number3D = new Number3D(0, 0, 1); public static const MESH_SORT_FAR:uint = 2; private static const DOWN:Number3D = new Number3D(0, -1, 0); private static const UP:Number3D = new Number3D(0, 1, 0); private static const RIGHT:Number3D = new Number3D(1, 0, 0); private static var entry_count:uint = 0; private static var _newID:int = 0; private static var _tempMatrix:Matrix3D = Matrix3D.IDENTITY; public static var sortedArray:Array = new Array(); public static var faceLevelMode:Boolean; private static var _tempQuat:Quaternion = new Quaternion(); private static var toRADIANS:Number = 0.0174532925199433; private static var toDEGREES:Number = 57.2957795130823; public function DisplayObject3D(_arg1:String=null, _arg2:GeometryObject3D=null):void{ _av2739 = new Array(); filters = []; screen = new Number3D(); _position = Number3D.ZERO; _wf282 = Number3D.ZERO; _rx995 = Number3D.ZERO; _ho579 = Number3D.ZERO; _xm583 = Number3D.ZERO; _sn2692 = Number3D.ZERO; _fm2971 = new Quaternion(); _ct927 = new Quaternion(); _mh705 = new Quaternion(); _mx2920 = new Quaternion(); super(); if (_arg1 != null){ PaperLogger.info(("DisplayObject3D: " + _arg1)); }; this._rl447 = false; this.transform = Matrix3D.IDENTITY; this._ik714 = Matrix3D.IDENTITY; this.view = Matrix3D.IDENTITY; this.x = 0; this.y = 0; this.z = 0; rotationX = 0; rotationY = 0; rotationZ = 0; _xl2856 = (_wl207 = (_jx434 = 0)); var _local3:Number = (Papervision3D.usePERCENT) ? 100 : 1; scaleX = _local3; scaleY = _local3; scaleZ = _local3; _kp1912 = new Number3D(); this.visible = true; this.id = _newID++; this.name = ((_arg1) || (String(this.id))); _tn1219 = 0; if (_arg2){ _yw2183(_arg2); }; } public function set _ny405(_arg1:Number):void{ _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; if (this._kc2377){ updateTransform(); }; _ct927._lv2208(transform._uy942, transform._pf1124, transform._jm2768, (_xl2856 - _arg1)); this.transform._ln2486(_ct927.matrix, transform); _xl2856 = _arg1; _bf1144 = true; } public function set y(_arg1:Number):void{ this.transform._pr1642 = _arg1; } public function set z(_arg1:Number):void{ this.transform._jp1065 = _arg1; } override public function addChild(_arg1:DisplayObject3D, _arg2:String=null):DisplayObject3D{ _arg1 = super.addChild(_arg1, _arg2); if (_arg1._gj2355 == null){ _arg1._gj2355 = _gj2355; }; if (this._yl2785){ _arg1._dp2245 = this; }; return (_arg1); } public function _dm809(_arg1:String, _arg2:MaterialObject3D):void{ _lh1888(getChildByName(_arg1, true), _arg2); } public function _lj484(_arg1:Number):void{ translate(_arg1, DOWN); } public function project(_arg1:DisplayObject3D, _arg2:RenderSessionData):Number{ var _local5:DisplayObject3D; if (this._kc2377){ updateTransform(); }; this._ik714._xl162(_arg1._ik714, this.transform); if (_arg2._dy954._pr138){ if (this === _arg2._dy954){ this._rl447 = true; } else { this._rl447 = (_arg2._dy954._pr138._ov2787(this) < 0); }; if (this._rl447){ _arg2._th899._hi2308++; return (0); }; } else { this._rl447 = false; }; if (_arg1 !== _arg2._dy954){ if (_arg2._dy954._ut1477){ this.view._nl1608(_arg1.view, this.transform); } else { this.view._xl162(_arg1.view, this.transform); }; } else { if (_arg2._dy954._ut1477){ this.view._nl1608(_arg2._dy954._et1052, this.transform); } else { this.view._xl162(_arg2._dy954._et1052, this.transform); }; }; if (_vd775){ _ee324(_arg2._dy954); }; var _local3:Number = 0; var _local4:Number = 0; for each (_local5 in this._rk1133) { if (_local5.visible){ _local3 = (_local3 + _local5.project(this, _arg2)); _local4++; }; }; return ((this._id609 = (_local3 / _local4))); } public function set _gj2355(_arg1:SceneObject3D):void{ var _local2:DisplayObject3D; _db2874 = _arg1; for each (_local2 in this._rk1133) { if (_local2._gj2355 == null){ _local2._gj2355 = _db2874; }; }; } public function _lh1888(_arg1:DisplayObject3D, _arg2:MaterialObject3D, _arg3:MaterialObject3D=null):void{ var _local4:Triangle3D; if (!_arg1){ return; }; if (((!(_arg3)) || ((_arg1._kg2044 === _arg3)))){ _arg1._kg2044 = _arg2; }; if (((_arg1._ce47) && (_arg1._ce47._av2739))){ for each (_local4 in _arg1._ce47._av2739) { if (((!(_arg3)) || ((_local4._kg2044 === _arg3)))){ _local4._kg2044 = _arg2; }; }; }; } public function get userData():UserData{ return (_sj1468); } public function get _kg2044():MaterialObject3D{ return (_cq2697); } public function set userData(_arg1:UserData):void{ _sj1468 = _arg1; } public function set rotationX(_arg1:Number):void{ this._wy356 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; this._kc2377 = true; } public function _ee324(_arg1:CameraObject3D):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; if (_arg1._ut1477){ _local2 = 0; _local3 = 0; _local4 = 0; _local5 = ((((_local2 * view._wg1803) + (_local3 * view._ds2925)) + (_local4 * view._yj2288)) + view._ok2829); _local6 = (_arg1._dx2443.width / 2); _local7 = (_arg1._dx2443.height / 2); screen.x = (((((_local2 * view._uy942) + (_local3 * view._vo1924)) + (_local4 * view._fq2145)) + view._fa1348) / _local5); screen.y = (((((_local2 * view._pf1124) + (_local3 * view._ou2421)) + (_local4 * view._py2591)) + view._pr1642) / _local5); screen.z = ((((_local2 * view._jm2768) + (_local3 * view._vb1203)) + (_local4 * view._co210)) + view._jp1065); screen.x = (screen.x * _local6); screen.y = (screen.y * _local7); } else { _local8 = ((_arg1.focus * _arg1.zoom) / (_arg1.focus + view._jp1065)); screen.x = (view._fa1348 * _local8); screen.y = (view._pr1642 * _local8); screen.z = view._jp1065; }; } public function _sk1812(_arg1:DisplayObject3D, _arg2:Number3D=null):void{ var _local3:DisplayObject3D; var _local4:Matrix3D; if ((this is CameraObject3D)){ _position.reset(this.x, this.y, this.z); } else { _local3 = (this.parent as DisplayObject3D); if (_local3){ _ik714._xl162(_local3._ik714, transform); } else { _ik714.copy(transform); }; _position.reset(_ik714._fa1348, _ik714._pr1642, _ik714._jp1065); }; if ((_arg1 is CameraObject3D)){ _wf282.reset(_arg1.x, _arg1.y, _arg1.z); } else { _local3 = (_arg1.parent as DisplayObject3D); if (_local3){ _arg1._ik714._xl162(_local3._ik714, _arg1.transform); } else { _arg1._ik714.copy(_arg1.transform); }; _wf282.reset(_arg1._ik714._fa1348, _arg1._ik714._pr1642, _arg1._ik714._jp1065); }; _rx995.copyFrom(_wf282); _rx995._is3081(_position); _rx995.normalize(); if (_rx995._ec1196 > 0.1){ _ho579 = Number3D.cross(_rx995, ((_arg2) || (UP)), _ho579); _ho579.normalize(); _xm583 = Number3D.cross(_rx995, _ho579, _xm583); _xm583.normalize(); _local4 = this.transform; _local4._uy942 = (_ho579.x * _fh1317); _local4._pf1124 = (_ho579.y * _fh1317); _local4._jm2768 = (_ho579.z * _fh1317); _local4._vo1924 = (-(_xm583.x) * _oh1531); _local4._ou2421 = (-(_xm583.y) * _oh1531); _local4._vb1203 = (-(_xm583.z) * _oh1531); _local4._fq2145 = (_rx995.x * _ui139); _local4._py2591 = (_rx995.y * _ui139); _local4._co210 = (_rx995.z * _ui139); _xl2856 = (_wl207 = (_jx434 = 0)); this._kc2377 = false; this._bf1144 = true; } else { PaperLogger.error("lookAt error"); }; } public function set rotationZ(_arg1:Number):void{ this._nu1917 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; this._kc2377 = true; } public function _ft2989(_arg1:Number):void{ _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; if (this._kc2377){ updateTransform(); }; _ct927._lv2208(transform._uy942, transform._pf1124, transform._jm2768, _arg1); this.transform._ln2486(_ct927.matrix, transform); _xl2856 = (_xl2856 + _arg1); _bf1144 = true; } public function set rotationY(_arg1:Number):void{ this._cr50 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; this._kc2377 = true; } public function get position():Number3D{ _position.reset(this.x, this.y, this.z); return (_position); } public function get _qr1833():Number{ return (this._ik714._fa1348); } public function get scaleX():Number{ if (Papervision3D.usePERCENT){ return ((this._fh1317 * 100)); }; return (this._fh1317); } public function get scaleY():Number{ if (Papervision3D.usePERCENT){ return ((this._oh1531 * 100)); }; return (this._oh1531); } public function get scaleZ():Number{ if (Papervision3D.usePERCENT){ return ((this._ui139 * 100)); }; return (this._ui139); } public function get scale():Number{ if ((((this._fh1317 == this._oh1531)) && ((this._fh1317 == this._ui139)))){ if (Papervision3D.usePERCENT){ return ((this._fh1317 * 100)); }; return (this._fh1317); //unresolved jump }; return (NaN); } public function set position(_arg1:Number3D):void{ this.x = _arg1.x; this.y = _arg1.y; this.z = _arg1.z; } public function _ng1752(_arg1:Number):void{ translate(_arg1, UP); } public function get _ax2878():Number{ return (this._ik714._jp1065); } public function get _to1714():Number{ return (this._ik714._pr1642); } public function _ih2801(_arg1:DisplayObject3D):Number{ var _local2:Number = (this.x - _arg1.x); var _local3:Number = (this.y - _arg1.y); var _local4:Number = (this.z - _arg1.z); return (Math.sqrt((((_local2 * _local2) + (_local3 * _local3)) + (_local4 * _local4)))); } public function _yw2183(_arg1:GeometryObject3D=null):void{ if (_arg1){ this._ce47 = _arg1; }; } protected function _es2379(_arg1:DisplayObject3D, _arg2:Boolean=true):void{ var _local3:DisplayObject3D; if (((_arg2) && (!((_arg1 == this))))){ _dp2245 = _arg1; }; for each (_local3 in children) { _local3._es2379(_arg1, _arg2); }; } private function _gs2212(_arg1:DisplayObject3D, _arg2:MaterialObject3D, _arg3:MaterialObject3D):void{ var _local4:DisplayObject3D; var _local5:Triangle3D; _arg2._nt2232(_arg1); if ((((_arg3 is AbstractLightShadeMaterial)) || ((_arg3 is ShadedMaterial)))){ _arg3._sh3150(_arg1); }; if (_arg1._kg2044 === _arg2){ _arg1._kg2044 = _arg3; }; if (((((_arg1._ce47) && (_arg1._ce47._av2739))) && (_arg1._ce47._av2739.length))){ for each (_local5 in _arg1._ce47._av2739) { if (_local5._kg2044 === _arg2){ _local5._kg2044 = _arg3; }; }; }; for each (_local4 in _arg1.children) { _gs2212(_local4, _arg2, _arg3); }; } public function clone():DisplayObject3D{ var _local3:DisplayObject3D; var _local1:String = ((this.name + "_") + _tn1219++); var _local2:DisplayObject3D = new DisplayObject3D(_local1); if (this._kg2044){ _local2._kg2044 = this._kg2044; }; if (this._xk2861){ _local2._xk2861 = this._xk2861.clone(); }; if (this._ce47){ _local2._ce47 = this._ce47.clone(_local2); _local2._ce47.ready = true; }; _local2._km2613(this); for each (_local3 in this.children) { _local2.addChild(_local3.clone()); }; return (_local2); } public function set _kg2044(_arg1:MaterialObject3D):void{ if (_cq2697){ _cq2697._nt2232(this); }; _cq2697 = _arg1; if (_cq2697){ _cq2697._sh3150(this); }; } private function _kn2027():void{ _kp1912.x = (Papervision3D.usePERCENT) ? (_fh1317 * 100) : _fh1317; _kp1912.y = (Papervision3D.usePERCENT) ? (_oh1531 * 100) : _oh1531; _kp1912.z = (Papervision3D.usePERCENT) ? (_ui139 * 100) : _ui139; _sn2692 = Matrix3D.matrix2euler(this.transform, _sn2692, _kp1912); this._wy356 = (_sn2692.x * toRADIANS); this._cr50 = (_sn2692.y * toRADIANS); this._nu1917 = (_sn2692.z * toRADIANS); this._bf1144 = false; } public function hitTestObject(_arg1:DisplayObject3D, _arg2:Number=1):Boolean{ var _local3:Number = (this.x - _arg1.x); var _local4:Number = (this.y - _arg1.y); var _local5:Number = (this.z - _arg1.z); var _local6:Number = (((_local3 * _local3) + (_local4 * _local4)) + (_local5 * _local5)); var _local7:Number = (this._ce47) ? this._ce47._xv716._mn2029 : 0; var _local8:Number = (_arg1._ce47) ? _arg1._ce47._xv716._mn2029 : 0; _local7 = (_local7 * _arg2); return (((_local7 + _local8) > _local6)); } public function translate(_arg1:Number, _arg2:Number3D):void{ var _local3:Number3D = _arg2.clone(); if (this._kc2377){ updateTransform(); }; Matrix3D.rotateAxis(transform, _local3); this.x = (this.x + (_arg1 * _local3.x)); this.y = (this.y + (_arg1 * _local3.y)); this.z = (this.z + (_arg1 * _local3.z)); } public function get _bk2523():Number{ return ((Papervision3D.useDEGREES) ? (_jx434 * toDEGREES) : _jx434); } public function get _aj484():Number{ return ((Papervision3D.useDEGREES) ? (_wl207 * toDEGREES) : _wl207); } public function get z():Number{ return (this.transform._jp1065); } public function get _ny405():Number{ return ((Papervision3D.useDEGREES) ? (_xl2856 * toDEGREES) : _xl2856); } public function get x():Number{ return (this.transform._fa1348); } public function get y():Number{ return (this.transform._pr1642); } public function _sq1563(_arg1:Number):void{ translate(_arg1, LEFT); } public function _xj2618(_arg1:MaterialObject3D, _arg2:String):void{ if (!this._xk2861){ return; }; var _local3:MaterialObject3D = this._xk2861._ww1784(_arg2); if (!_local3){ return; }; if (this._kg2044 === _local3){ this._kg2044 = _arg1; }; _local3 = this._xk2861._wv1186(_local3); _arg1 = this._xk2861._yl394(_arg1, _arg2); _gs2212(this, _local3, _arg1); } public function get _gj2355():SceneObject3D{ return (_db2874); } public function set _yl2785(_arg1:Boolean):void{ _uo949 = _arg1; _es2379(this, true); } public function _ww1784(_arg1:String):MaterialObject3D{ var _local3:DisplayObject3D; var _local2:MaterialObject3D = (this._xk2861) ? this._xk2861._ww1784(_arg1) : null; if (_local2){ return (_local2); }; for each (_local3 in this._rk1133) { _local2 = _local3._ww1784(_arg1); if (_local2){ return (_local2); }; }; return (null); } public function _km2613(_arg1):void{ var _local4:DisplayObject3D; if ((_arg1 is DisplayObject3D)){ _local4 = DisplayObject3D(_arg1); if (_local4._kc2377){ _local4.updateTransform(); }; }; var _local2:Matrix3D = this.transform; var _local3:Matrix3D = ((_arg1 is DisplayObject3D)) ? _arg1.transform : _arg1; _local2._uy942 = _local3._uy942; _local2._vo1924 = _local3._vo1924; _local2._fq2145 = _local3._fq2145; _local2._fa1348 = _local3._fa1348; _local2._pf1124 = _local3._pf1124; _local2._ou2421 = _local3._ou2421; _local2._py2591 = _local3._py2591; _local2._pr1642 = _local3._pr1642; _local2._jm2768 = _local3._jm2768; _local2._vb1203 = _local3._vb1203; _local2._co210 = _local3._co210; _local2._jp1065 = _local3._jp1065; this._kc2377 = false; this._bf1144 = true; } public function get rotationY():Number{ if (this._bf1144){ _kn2027(); }; return ((Papervision3D.useDEGREES) ? (this._cr50 * toDEGREES) : this._cr50); } public function get rotationZ():Number{ if (this._bf1144){ _kn2027(); }; return ((Papervision3D.useDEGREES) ? (this._nu1917 * toDEGREES) : this._nu1917); } public function set scaleY(_arg1:Number):void{ if (this._bf1144){ _kn2027(); }; if (Papervision3D.usePERCENT){ this._oh1531 = (_arg1 / 100); } else { this._oh1531 = _arg1; }; this._kc2377 = true; } public function _mo1854(_arg1:Number):void{ _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; if (_kc2377){ updateTransform(); }; _mx2920._lv2208(transform._fq2145, transform._py2591, transform._co210, _arg1); transform._ln2486(_mx2920.matrix, transform); _jx434 = (_jx434 + _arg1); _bf1144 = true; } public function set scaleZ(_arg1:Number):void{ if (this._bf1144){ _kn2027(); }; if (Papervision3D.usePERCENT){ this._ui139 = (_arg1 / 100); } else { this._ui139 = _arg1; }; this._kc2377 = true; } public function get rotationX():Number{ if (this._bf1144){ _kn2027(); }; return ((Papervision3D.useDEGREES) ? (this._wy356 * toDEGREES) : this._wy356); } public function set scale(_arg1:Number):void{ if (this._bf1144){ _kn2027(); }; if (Papervision3D.usePERCENT){ _arg1 = (_arg1 / 100); }; this._fh1317 = (this._oh1531 = (this._ui139 = _arg1)); this._kc2377 = true; } public function get _bs2735():Boolean{ return (_vd775); } public function _jd1531(_arg1:Number):void{ _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; if (_kc2377){ updateTransform(); }; _mh705._lv2208(transform._vo1924, transform._ou2421, transform._vb1203, _arg1); transform._ln2486(_mh705.matrix, transform); _wl207 = (_wl207 + _arg1); _bf1144 = true; } public function set scaleX(_arg1:Number):void{ if (this._bf1144){ _kn2027(); }; if (Papervision3D.usePERCENT){ this._fh1317 = (_arg1 / 100); } else { this._fh1317 = _arg1; }; this._kc2377 = true; } public function _lf1609(_arg1:Viewport3D, _arg2:Boolean=true):ViewportLayer{ var _local3:ViewportLayer = _arg1._oa1866(this, true); if (_arg2){ _aw444(this, _local3); }; return (_local3); } override public function toString():String{ return (((((((this.name + ": x:") + Math.round(this.x)) + " y:") + Math.round(this.y)) + " z:") + Math.round(this.z))); } public function _cm1850(_arg1:Number):void{ translate(_arg1, FORWARD); } public function _aw444(_arg1:DisplayObject3D, _arg2:ViewportLayer):void{ var _local3:DisplayObject3D; for each (_local3 in _arg1.children) { _arg2._pj3106(_local3); _local3._aw444(_local3, _arg2); }; } public function _mo3147(_arg1):void{ var _local2:Matrix3D = this.transform; var _local3:Matrix3D = ((_arg1 is DisplayObject3D)) ? _arg1.transform : _arg1; _local2._fa1348 = _local3._fa1348; _local2._pr1642 = _local3._pr1642; _local2._jp1065 = _local3._jp1065; } public function get _yl2785():Boolean{ return (_uo949); } public function updateTransform():void{ _fm2971._vy2003(_cr50, _nu1917, _wy356); this.transform._qg258(_fm2971.matrix); _tempMatrix.reset(); _tempMatrix._uy942 = this._fh1317; _tempMatrix._ou2421 = this._oh1531; _tempMatrix._co210 = this._ui139; this.transform._xl162(this.transform, _tempMatrix); _kc2377 = false; } public function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{ var _local4:Number = (this.x - _arg1); var _local5:Number = (this.y - _arg2); var _local6:Number = (this.z - _arg3); var _local7:Number = (((_local4 * _local4) + (_local5 * _local5)) + (_local6 * _local6)); var _local8:Number = (this._ce47) ? this._ce47._xv716._mn2029 : 0; return ((_local8 > _local7)); } public function _af876(_arg1:Number):void{ translate(_arg1, BACKWARD); } public function set _aj484(_arg1:Number):void{ _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; if (_kc2377){ updateTransform(); }; _mh705._lv2208(transform._vo1924, transform._ou2421, transform._vb1203, (_wl207 - _arg1)); transform._ln2486(_mh705.matrix, transform); _wl207 = _arg1; _bf1144 = true; } public function set _bk2523(_arg1:Number):void{ _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; if (_kc2377){ updateTransform(); }; _mx2920._lv2208(transform._fq2145, transform._py2591, transform._co210, (_jx434 - _arg1)); transform._ln2486(_mx2920.matrix, transform); _jx434 = _arg1; _bf1144 = true; } public function _sw76(_arg1:Number):void{ translate(_arg1, RIGHT); } public function set x(_arg1:Number):void{ this.transform._fa1348 = _arg1; } public function _ey1479():String{ var _local2:String; var _local3:DisplayObject3D; var _local1 = ""; for (_local2 in this._xk2861) { _local1 = (_local1 + (_local2 + "\n")); }; for each (_local3 in this._rk1133) { for (_local2 in _local3._xk2861._gu625) { _local1 = (_local1 + (("+ " + _local2) + "\n")); }; }; return (_local1); } public function set _bs2735(_arg1:Boolean):void{ _vd775 = _arg1; } public static function get ZERO():DisplayObject3D{ return (new (DisplayObject3D)); } } }//package org.papervision3d.objects
Section 129
//BasicRenderEngine (org.papervision3d.render.BasicRenderEngine) package org.papervision3d.render { import flash.geom.*; import org.papervision3d.core.render.data.*; import org.papervision3d.view.layer.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.proto.*; import org.papervision3d.view.*; import org.papervision3d.core.render.material.*; import org.papervision3d.core.utils.*; import org.papervision3d.core.render.*; import org.papervision3d.core.clipping.*; import org.papervision3d.events.*; import org.papervision3d.core.render.sort.*; import org.papervision3d.core.render.project.*; import org.papervision3d.core.render.filter.*; public class BasicRenderEngine extends AbstractRenderEngine implements IRenderEngine { public var _pv3003:DefaultClipping; protected var _if693:RendererEvent; public var _bm3042:IRenderSorter; public var _ul457:ProjectionPipeline; protected var _qf1882:Array; protected var _th899:RenderStatistics; protected var _qh1676:RenderHitData; protected var _la244:RendererEvent; protected var _mb1850:RenderSessionData; protected var _wy1718:StopWatch; public var filter:IRenderFilter; public function BasicRenderEngine():void{ _qh1676 = new RenderHitData(); super(); init(); } protected function _yl647(_arg1:RenderSessionData, _arg2:Array=null):RenderStatistics{ var _local3:RenderableListItem; var _local5:ViewportLayer; _wy1718.reset(); _wy1718.start(); MaterialManager.getInstance()._nk1279(_arg1); filter.filter(_qf1882); _bm3042.sort(_qf1882); var _local4:Viewport3D = _arg1._rj27; while ((_local3 = _qf1882.pop())) { _local5 = _local4._yq2727(_local3, true); _local3._mj1810(_arg1, _local5._eb2048); _local4._rm1725.push(_local3); _local5._nt316(_local3); }; MaterialManager.getInstance()._rw958(_arg1); _arg1._th899._yl382 = _wy1718.stop(); _arg1._rj27._tc3099(_arg1); return (_th899); } protected function init():void{ _th899 = new RenderStatistics(); _ul457 = new BasicProjectionPipeline(); _wy1718 = new StopWatch(); _bm3042 = new BasicRenderSorter(); filter = new BasicRenderFilter(); _qf1882 = new Array(); _pv3003 = null; _mb1850 = new RenderSessionData(); _mb1850.renderer = this; _la244 = new RendererEvent(RendererEvent.PROJECTION_DONE, _mb1850); _if693 = new RendererEvent(RendererEvent.RENDER_DONE, _mb1850); } override public function _kp610(_arg1:SceneObject3D, _arg2:CameraObject3D, _arg3:Viewport3D):RenderStatistics{ _arg2._dx2443 = _arg3._aw1811; _mb1850._gj2355 = _arg1; _mb1850._dy954 = _arg2; _mb1850._rj27 = _arg3; _mb1850.container = _arg3._nw912; _mb1850._rw2020 = _arg3._rw2020; _mb1850._ri1362 = _arg3._ri1362; _mb1850._ss3109 = _arg1._wh2014; _mb1850._lv1471 = null; _mb1850._th899.clear(); _mb1850._pv3003 = _pv3003; if (_pv3003){ _pv3003.reset(_mb1850); }; _arg3._gt2568(_mb1850); _ul457.project(_mb1850); if (hasEventListener(RendererEvent.PROJECTION_DONE)){ dispatchEvent(_la244); }; _yl647(_mb1850, null); if (hasEventListener(RendererEvent.RENDER_DONE)){ dispatchEvent(_if693); }; return (_mb1850._th899); } public function _rm1950(_arg1:Point, _arg2:Viewport3D):RenderHitData{ return (_arg2._rm1950(_arg1)); } override public function _xh1651(_arg1:IRenderListItem):int{ return (_qf1882.splice(_qf1882.indexOf(_arg1), 1)); } override public function _au3067(_arg1:RenderableListItem):int{ return (_qf1882.push(_arg1)); } private function _lx1306(_arg1:Array):Array{ var _local3:ViewportLayer; var _local2:Array = new Array(); for each (_local3 in _arg1) { _local2 = _local2.concat(_local3._lx1306()); }; return (_local2); } public function _sf1512():void{ _if693 = null; _la244 = null; _ul457 = null; _bm3042 = null; filter = null; _th899 = null; _qf1882 = null; _mb1850._sf1512(); _mb1850 = null; _qh1676 = null; _wy1718 = null; _pv3003 = null; } public function _lv1471(_arg1:SceneObject3D, _arg2:CameraObject3D, _arg3:Viewport3D, _arg4:Array=null):RenderStatistics{ _mb1850._gj2355 = _arg1; _mb1850._dy954 = _arg2; _mb1850._rj27 = _arg3; _mb1850.container = _arg3._nw912; _mb1850._rw2020 = _arg3._rw2020; _mb1850._ri1362 = _arg3._ri1362; _mb1850._ss3109 = _lx1306(_arg4); _mb1850._lv1471 = _arg4; _mb1850._th899.clear(); _mb1850._pv3003 = _pv3003; _arg3._gt2568(_mb1850); _ul457.project(_mb1850); if (hasEventListener(RendererEvent.PROJECTION_DONE)){ dispatchEvent(_la244); }; _yl647(_mb1850); if (hasEventListener(RendererEvent.RENDER_DONE)){ dispatchEvent(_if693); }; return (_mb1850._th899); } } }//package org.papervision3d.render
Section 130
//Scene3D (org.papervision3d.scenes.Scene3D) package org.papervision3d.scenes { import org.papervision3d.core.proto.*; public class Scene3D extends SceneObject3D { } }//package org.papervision3d.scenes
Section 131
//ViewportLayerSortMode (org.papervision3d.view.layer.util.ViewportLayerSortMode) package org.papervision3d.view.layer.util { public class ViewportLayerSortMode { public static var Z_SORT:String = "z"; public static var ORIGIN_SORT:String = "origin"; public static var INDEX_SORT:String = "index"; } }//package org.papervision3d.view.layer.util
Section 132
//ViewportBaseLayer (org.papervision3d.view.layer.ViewportBaseLayer) package org.papervision3d.view.layer { import org.papervision3d.objects.*; import org.papervision3d.view.*; public class ViewportBaseLayer extends ViewportLayer { public function ViewportBaseLayer(_arg1:Viewport3D){ super(_arg1, null); } override public function _oa1866(_arg1:DisplayObject3D, _arg2:Boolean=true, _arg3:Boolean=false):ViewportLayer{ if (_qj582[_arg1]){ return (_qj582[_arg1]); }; if (((_arg2) || (_arg1._yl2785))){ return (_dm3091(_arg1, _arg3)); }; return (this); } override public function _gt2568():void{ clear(); var _local1:int = (_we225.length - 1); while (_local1 >= 0) { if (_we225[_local1]._if3223){ _cw1643(_local1); }; _local1--; }; super._gt2568(); } } }//package org.papervision3d.view.layer
Section 133
//ViewportLayer (org.papervision3d.view.layer.ViewportLayer) package org.papervision3d.view.layer { import flash.display.*; import flash.utils.*; import org.papervision3d.objects.*; import org.papervision3d.core.render.command.*; import org.papervision3d.view.*; import org.papervision3d.core.log.*; import org.papervision3d.view.layer.util.*; public class ViewportLayer extends Sprite { public var _pr784:Number; public var _qj582:Dictionary; public var _we225:Array; public var weight:Number;// = 0 public var _if3223:Boolean;// = false public var _yn2819:Boolean;// = false public var _ad2978:DisplayObject3D; public var _ya2268:String; protected var _dx2443:Viewport3D; public var _yq1540:Dictionary; public var _eb2048:Graphics; public var _dc2845:Number;// = 0 public var _lt1164:Number;// = 0 public function ViewportLayer(_arg1:Viewport3D, _arg2:DisplayObject3D, _arg3:Boolean=false){ _qj582 = new Dictionary(true); _yq1540 = new Dictionary(true); _ya2268 = ViewportLayerSortMode.Z_SORT; super(); this._dx2443 = _arg1; this._ad2978 = _arg2; this._if3223 = _arg3; this._eb2048 = this.graphics; if (_arg3){ this.filters = _arg2.filters; this.blendMode = _arg2.blendMode; this.alpha = _arg2.alpha; }; if (_arg2){ _pj3106(_arg2); _arg2.container = this; }; init(); } public function _cw1643(_arg1:Number):void{ var _local2:DisplayObject3D; for each (_local2 in _we225[_arg1]._yq1540) { _vu1550(_local2); }; removeChild(_we225[_arg1]); _we225.splice(_arg1, 1); } private function _jw956(_arg1:ViewportLayerEvent):void{ if (_arg1._le326){ _wm1720(_arg1._le326, _arg1._ay1170, _arg1); }; } public function _oc103(_arg1:ViewportLayer):void{ var _local2:DisplayObject3D; var _local3:ViewportLayer; if (_we225.indexOf(_arg1) != -1){ PaperLogger._rw2203("Child layer already exists in ViewportLayer"); return; }; _we225.push(_arg1); addChild(_arg1); _arg1.addEventListener(ViewportLayerEvent.CHILD_ADDED, _jw956); _arg1.addEventListener(ViewportLayerEvent.CHILD_REMOVED, _wd51); for each (_local2 in _arg1._yq1540) { _wm1720(_local2, _arg1); }; for each (_local3 in _arg1._qj582) { for each (_local2 in _local3._yq1540) { _wm1720(_local2, _local3); }; }; } protected function _dm3091(_arg1:DisplayObject3D, _arg2:Boolean=false):ViewportLayer{ var _local3:ViewportLayer; if (_arg1){ _local3 = new ViewportLayer(_dx2443, _arg1, _arg1._yl2785); _oc103(_local3); if (_arg2){ _arg1._aw444(_arg1, _local3); }; return (_local3); } else { PaperLogger._rw2203("Needs to be a do3d"); }; return (null); } public function _tc3099():void{ var _local1:ViewportLayer; for each (_local1 in _we225) { _local1._tc3099(); }; } protected function init():void{ _we225 = new Array(); } public function clear():void{ _eb2048.clear(); reset(); } public function _rt1510(_arg1:DisplayObject3D):Number{ _arg1 = (_arg1._dp2245) ? _arg1._dp2245 : _arg1; var _local2:int; while (_local2 < _we225.length) { if (_we225[_local2]._cu677(_arg1)){ return (_local2); }; _local2++; }; return (-1); } protected function reset():void{ if (!_yn2819){ _lt1164 = 0; _dc2845 = 0; }; this.weight = 0; } public function _di2789():void{ var _local1:ViewportLayer; for each (_local1 in _we225) { _local1._di2789(); if (!_yn2819){ if (!isNaN(_local1._lt1164)){ this.weight = (this.weight + _local1.weight); this._lt1164 = (this._lt1164 + (_local1._lt1164 * _local1.weight)); this._dc2845 = (this._dc2845 + (_local1._dc2845 * _local1.weight)); }; }; }; if (!_yn2819){ this._lt1164 = (this._lt1164 / this.weight); this._dc2845 = (this._dc2845 / this.weight); }; } public function _oa1866(_arg1:DisplayObject3D, _arg2:Boolean=true, _arg3:Boolean=false):ViewportLayer{ _arg1 = (_arg1._dp2245) ? _arg1._dp2245 : _arg1; if (_qj582[_arg1]){ return (_qj582[_arg1]); }; if (_arg2){ return (_dm3091(_arg1, _arg3)); }; return (null); } protected function _kd2345():void{ var _local2:ViewportLayer; var _local1:int; while (_local1 < _we225.length) { _local2 = _we225[_local1]; if (this.getChildIndex(_local2) != _local1){ this.setChildIndex(_local2, _local1); }; _local2._tl1881(); _local1++; }; } public function _gt2568():void{ var _local1:ViewportLayer; clear(); for each (_local1 in _we225) { _local1._gt2568(); }; } public function _cu677(_arg1:DisplayObject3D):Boolean{ return (!((_yq1540[_arg1] == null))); } public function _tl1881():void{ switch (_ya2268){ case ViewportLayerSortMode.Z_SORT: _we225.sortOn("_lt1164", (Array.DESCENDING | Array.NUMERIC)); break; case ViewportLayerSortMode.INDEX_SORT: _we225.sortOn("_pr784", Array.NUMERIC); break; case ViewportLayerSortMode.ORIGIN_SORT: _we225.sortOn(["_dc2845", "_lt1164"], [(Array.DESCENDING | Array.NUMERIC), (Array.DESCENDING | Array.NUMERIC)]); break; }; _kd2345(); } private function _wd51(_arg1:ViewportLayerEvent):void{ if (_arg1._le326){ _vu1550(_arg1._le326, _arg1); }; } public function _ss341():void{ var _local1:int = (_we225.length - 1); while (_local1 >= 0) { _cw1643(_local1); _local1--; }; } public function _nt316(_arg1:RenderableListItem):void{ if (!_yn2819){ if (!isNaN(_arg1._id609)){ this._lt1164 = (this._lt1164 + _arg1._id609); if (_arg1._td331){ this._dc2845 = (this._dc2845 + _arg1._td331._ik714._jp1065); this._dc2845 = (this._dc2845 + _arg1._td331.screen.z); }; this.weight++; }; }; } public function _ow865(_arg1:ViewportLayer):void{ var _local2:int = getChildIndex(_arg1); if (_local2 > -1){ _cw1643(_local2); } else { PaperLogger.error("Layer not found for removal."); }; } private function _wm1720(_arg1:DisplayObject3D, _arg2:ViewportLayer, _arg3:ViewportLayerEvent=null):void{ _qj582[_arg1] = _arg2; dispatchEvent(new ViewportLayerEvent(ViewportLayerEvent.CHILD_ADDED, _arg1, _arg2)); } public function _pj3106(_arg1:DisplayObject3D, _arg2:Boolean=false):void{ if (!_arg1){ return; }; _yq1540[_arg1] = _arg1; dispatchEvent(new ViewportLayerEvent(ViewportLayerEvent.CHILD_ADDED, _arg1, this)); if (_arg2){ _arg1._aw444(_arg1, this); }; } public function _qp3133(_arg1:DisplayObject3D):void{ _yq1540[_arg1] = null; dispatchEvent(new ViewportLayerEvent(ViewportLayerEvent.CHILD_REMOVED, _arg1, this)); } private function _vu1550(_arg1:DisplayObject3D, _arg2:ViewportLayerEvent=null):void{ _qj582[_arg1] = null; dispatchEvent(new ViewportLayerEvent(ViewportLayerEvent.CHILD_REMOVED, _arg1)); } public function _lx1306(_arg1:Array=null):Array{ var _local2:DisplayObject3D; var _local3:ViewportLayer; if (!_arg1){ _arg1 = new Array(); }; for each (_local2 in this._yq1540) { if (_local2){ _arg1.push(_local2); }; }; for each (_local3 in _we225) { _local3._lx1306(_arg1); }; return (_arg1); } } }//package org.papervision3d.view.layer
Section 134
//ViewportLayerEvent (org.papervision3d.view.layer.ViewportLayerEvent) package org.papervision3d.view.layer { import flash.events.*; import org.papervision3d.objects.*; public class ViewportLayerEvent extends Event { public var _ay1170:ViewportLayer; public var _le326:DisplayObject3D; public static const CHILD_REMOVED:String = "childRemoved"; public static const CHILD_ADDED:String = "childAdded"; public function ViewportLayerEvent(_arg1:String, _arg2:DisplayObject3D=null, _arg3:ViewportLayer=null){ super(_arg1, false, false); this._le326 = _arg2; this._ay1170 = _arg3; } } }//package org.papervision3d.view.layer
Section 135
//Viewport3D (org.papervision3d.view.Viewport3D) package org.papervision3d.view { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.core.render.data.*; import org.papervision3d.objects.*; import org.papervision3d.view.layer.*; import org.papervision3d.core.render.command.*; import org.papervision3d.core.culling.*; import org.papervision3d.core.geom.renderables.*; import org.papervision3d.core.log.*; import org.papervision3d.core.view.*; import org.papervision3d.core.utils.*; import org.papervision3d.core.render.*; public class Viewport3D extends Sprite implements IViewport3D { public var _dt3189:InteractiveSceneManager; public var _rm1725:Array; public var _yf1452:Rectangle; protected var _ne283:Boolean; private var _th2455:Boolean;// = false protected var _bx2519:Boolean; protected var _rd2024:ViewportObjectFilter; public var _ri1362:IParticleCuller; protected var _height:Number; protected var _width:Number; public var _uo1509:ILineCuller; protected var _ek246:Dictionary; protected var _xb2845:Boolean; public var _rw2020:ITriangleCuller; protected var _pp451:IRenderEngine; protected var _wk2890:Number; protected var _uf120:ViewportBaseLayer; protected var _nx187:Number; public var _aw1811:Rectangle; protected var _yi54:RenderHitData; protected var _he3054:Boolean; public function Viewport3D(_arg1:Number=640, _arg2:Number=480, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:Boolean=true, _arg6:Boolean=true){ init(); this.interactive = _arg4; this._sn714 = _arg1; this._gj1578 = _arg2; this._vt2098 = _arg5; this._pn3133 = _arg6; this._of1877 = _arg3; this._ek246 = new Dictionary(true); } public function set _sn714(_arg1:Number):void{ _width = _arg1; _wk2890 = (_arg1 / 2); _nw912.x = _wk2890; _yf1452.x = -(_wk2890); _yf1452.width = _arg1; _aw1811.width = _arg1; if (_he3054){ scrollRect = _aw1811; }; } public function get _pn3133():Boolean{ return (_bx2519); } protected function _id1705(_arg1:Event=null):void{ if (_xb2845){ _sn714 = stage.stageWidth; _gj1578 = stage.stageHeight; }; } public function set _pn3133(_arg1:Boolean):void{ if (_arg1){ _rw2020 = new RectangleTriangleCuller(_yf1452); _ri1362 = new RectangleParticleCuller(_yf1452); _uo1509 = new RectangleLineCuller(_yf1452); } else { if (!_arg1){ _rw2020 = new DefaultTriangleCuller(); _ri1362 = new DefaultParticleCuller(); _uo1509 = new DefaultLineCuller(); }; }; _bx2519 = _arg1; } public function _oa1866(_arg1:DisplayObject3D, _arg2:Boolean=true, _arg3:Boolean=true):ViewportLayer{ return (_nw912._oa1866(_arg1, _arg2, _arg3)); } protected function init():void{ this._yi54 = new RenderHitData(); _rm1725 = new Array(); _aw1811 = new Rectangle(); _yf1452 = new Rectangle(); _uf120 = new ViewportBaseLayer(this); _uf120.doubleClickEnabled = true; addChild(_uf120); addEventListener(Event.ADDED_TO_STAGE, _lh1051); addEventListener(Event.REMOVED_FROM_STAGE, _sh1532); } public function get _vt2098():Boolean{ return (_he3054); } public function _tc3099(_arg1:RenderSessionData):void{ var _local2:ViewportLayer; if (interactive){ _dt3189._tc3099(); }; if (_arg1._lv1471){ for each (_local2 in _arg1._lv1471) { _local2._di2789(); _local2._tl1881(); _local2._tc3099(); }; } else { _nw912._di2789(); _nw912._tc3099(); }; _nw912._tl1881(); } protected function _lh1051(_arg1:Event):void{ if (_xb2845){ _ej2655(); }; stage.addEventListener(Event.RESIZE, _id1705); _id1705(); } public function get _nw912():ViewportLayer{ return (_uf120); } public function set _vt2098(_arg1:Boolean):void{ if (_arg1){ scrollRect = _aw1811; } else { scrollRect = null; }; _he3054 = _arg1; } protected function _ej2655():void{ if (!_th2455){ PaperLogger.info("Viewport autoScaleToStage : Papervision has changed the Stage scale mode."); stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; _th2455 = true; }; } public function _yq2727(_arg1:RenderableListItem, _arg2:Boolean=false):ViewportLayer{ var _local3:DisplayObject3D; if (_arg1._vm2293){ _local3 = _arg1._vm2293._td331; _local3 = (_local3._dp2245) ? _local3._dp2245 : _local3; if (_nw912._qj582[_local3]){ if (_arg2){ _local3.container = _nw912._qj582[_local3]; }; return (_nw912._qj582[_local3]); } else { if (_local3._yl2785){ return (_nw912._oa1866(_local3, true, true)); }; }; }; return (_nw912); } public function get _sn714():Number{ return (_width); } public function set interactive(_arg1:Boolean):void{ if (_arg1 != _ne283){ if (((_ne283) && (_dt3189))){ _dt3189._sf1512(); _dt3189 = null; }; _ne283 = _arg1; if (_arg1){ _dt3189 = new InteractiveSceneManager(this); }; }; } public function set _al62(_arg1:ViewportObjectFilter):void{ _rd2024 = _arg1; } public function set _of1877(_arg1:Boolean):void{ _xb2845 = _arg1; if (((_arg1) && (!((stage == null))))){ _ej2655(); _id1705(); }; } public function set _gj1578(_arg1:Number):void{ _height = _arg1; _nx187 = (_arg1 / 2); _nw912.y = _nx187; _yf1452.y = -(_nx187); _yf1452.height = _arg1; _aw1811.height = _arg1; if (_he3054){ scrollRect = _aw1811; }; } public function _gt2568(_arg1:RenderSessionData):void{ var _local2:ViewportLayer; _rm1725.length = 0; if (_arg1._lv1471){ for each (_local2 in _arg1._lv1471) { _local2._gt2568(); }; } else { _uf120._gt2568(); }; _ek246 = new Dictionary(true); } public function _ot1440():RenderHitData{ var _local1:Point = new Point(_nw912.mouseX, _nw912.mouseY); return (_rm1950(_local1)); } public function get interactive():Boolean{ return (_ne283); } public function get _of1877():Boolean{ return (_xb2845); } public function _kv1057(_arg1:Point, _arg2:DisplayObject3D):RenderHitData{ var _local3:RenderableListItem; var _local4:RenderHitData; var _local5:IRenderListItem; var _local6:uint; if (interactive){ _local4 = new RenderHitData(); _local6 = _rm1725.length; while ((_local5 = _rm1725[--_local6])) { if ((_local5 is RenderableListItem)){ _local3 = (_local5 as RenderableListItem); if ((_local3._vm2293 is Triangle3D)){ if (Triangle3D(_local3._vm2293)._td331 != _arg2){ continue; }; } else { continue; }; _local4 = _local3._rm1950(_arg1, _local4); if (_local4._vx390){ return (_local4); }; }; }; }; return (new RenderHitData()); } public function _rm1950(_arg1:Point):RenderHitData{ var _local2:RenderableListItem; var _local3:RenderHitData; var _local4:IRenderListItem; var _local5:uint; _yi54.clear(); if (interactive){ _local3 = _yi54; _local5 = _rm1725.length; while ((_local4 = _rm1725[--_local5])) { if ((_local4 is RenderableListItem)){ _local2 = (_local4 as RenderableListItem); _local3 = _local2._rm1950(_arg1, _local3); if (_local3._vx390){ return (_local3); }; }; }; }; return (_yi54); } protected function _sh1532(_arg1:Event):void{ stage.removeEventListener(Event.RESIZE, _id1705); } public function get _gj1578():Number{ return (_height); } public function _sf1512():void{ if (_dt3189){ _dt3189._sf1512(); _dt3189 = null; }; _rm1725 = null; } public function get _al62():ViewportObjectFilter{ return (_rd2024); } } }//package org.papervision3d.view
Section 136
//Papervision3D (org.papervision3d.Papervision3D) package org.papervision3d { import org.papervision3d.core.log.*; public class Papervision3D { public static var useDEGREES:Boolean = true; public static var useRIGHTHANDED:Boolean = false; public static var PAPERLOGGER:PaperLogger = PaperLogger.getInstance(); public static var NAME:String = "Papervision3D"; public static var DATE:String = "March 12th, 2009"; public static var AUTHOR:String = "(c) 2006-2008 Copyright by Carlos Ulloa | John Grden | Ralph Hauwert | Tim Knip | Andy Zupko"; public static var VERSION:String = "2.0.0"; public static var usePERCENT:Boolean = false; } }//package org.papervision3d
Section 137
//Achievements (Achievements) package { import flash.geom.*; public class Achievements { public static const ACHIEVEMENT_FLOOR_1000:int = 40; public static const ACHIEVEMENT_1000_KILLS:int = 43; public static const ACHIEVEMENT_FIRST_WARP:int = 6; public static const ACHIEVEMENT_LAST_SECOND:int = 16; public static const ACHIEVEMENT_250_KILLS:int = 23; public static const ACHIEVEMENT_DIE_20_TIMES:int = 37; public static const ACHIEVEMENT_FIRST_FAIRY:int = 4; public static const ACHIEVEMENT_YOU_CAN_STOP_NOW:int = 49; public static const ACHIEVEMENT_100_FLOORS_AND_NO_KILLS:int = 28; public static const ACHIEVEMENT_30_MINUTES:int = 41; public static const ACHIEVEMENT_100_BOMB_KILLS:int = 47; public static const ACHIEVEMENT_10_FAIRIES:int = 34; public static const ACHIEVEMENT_JUMP_OVER_DEVIL:int = 19; public static const ACHIEVEMENT_15_FAIRIES:int = 44; public static const ACHIEVEMENT_KILL_ONE_OF_EACH:int = 45; public static const ACHIEVEMENT_50_KILLS:int = 3; public static const ACHIEVEMENT_50_PILEDRIVERS:int = 46; public static const ACHIEVEMENT_FLOOR_250:int = 20; public static const ACHIEVEMENT_100000_POINTS:int = 12; public static const ACHIEVEMENT_500000_POINTS:int = 32; public static const NUM_ACHIEVEMENTS:int = 50; public static const ACHIEVEMENT_FIRE_ESCAPE:int = 17; public static const ACHIEVEMENT_TRIPLE_COMBO:int = 27; public static const ACHIEVEMENT_2_MINUTES:int = 1; public static const ACHIEVEMENT_KILL_BAHAMUT:int = 39; public static const ACHIEVEMENT_5_MINUTES:int = 11; public static const ACHIEVEMENT_20_ITEMS_IN_BONUS_MODE:int = 38; public static const ACHIEVEMENT_1000000_POINTS:int = 42; public static const ACHIEVEMENT_DEATH_FROM_ABOVE:int = 25; public static const ACHIEVEMENT_100_GAMES:int = 29; public static const ACHIEVEMENT_FIRST_JUMP:int = 7; public static const ACHIEVEMENT_250000_POINTS:int = 22; public static const ACHIEVEMENT_100_KILLS:int = 13; public static const ACHIEVEMENT_500_KILLS:int = 33; public static const ACHIEVEMENT_FIRST_BOMB_KILL:int = 9; public static const ACHIEVEMENT_99_SHURIKENS:int = 35; public static const ACHIEVEMENT_50000_POINTS_WITH_ONE_LIFE:int = 36; public static const ACHIEVEMENT_10_MINUTES:int = 21; public static const ACHIEVEMENT_3_FAIRIES:int = 14; public static const ACHIEVEMENT_5_FAIRIES:int = 24; public static const ACHIEVEMENT_50000_POINTS:int = 2; public static const ACHIEVEMENT_SUICIDE:int = 15; public static const ACHIEVEMENT_FIRST_KILL:int = 5; public static const ACHIEVEMENT_JUMPY_NINJA:int = 48; public static const MAX_MESSAGES:int = 8; public static const ACHIEVEMENT_BREAK_BLOCK:int = 8; public static const ACHIEVEMENT_20_MINUTES:int = 31; public static const ACHIEVEMENT_FLOOR_500:int = 30; public static const ACHIEVEMENT_QUICK_RECOVERY:int = 18; public static const ACHIEVEMENT_THRIFTY_NINJA:int = 26; public static const ACHIEVEMENT_FLOOR_100:int = 10; public static const ACHIEVEMENT_FLOOR_50:int = 0; public static var message_hold:Array = new Array(MAX_MESSAGES); public static var message_image:Array = new Array(MAX_MESSAGES); public static var message_xo:Array = new Array(MAX_MESSAGES); public static var bar_top:int; public static var m:int; public static var message_width:Array = new Array(MAX_MESSAGES); public static var bar_left:int; public static var message_opacity:Array = new Array(MAX_MESSAGES); public static var achievement_unlocked:Array = new Array(NUM_ACHIEVEMENTS); public static function init():void{ m = 0; while (m < NUM_ACHIEVEMENTS) { achievement_unlocked[m] = false; m++; }; } public static function unlock(_arg1:int):void{ if (Preloader.achievements_on){ if (!achievement_unlocked[_arg1]){ achievement_unlocked[_arg1] = true; add(((Main.getXMLString(("achievement_" + _arg1.toString())) + " ") + Res.text_XML.unlocked)); Audio.cueSound(((_arg1 < 30)) ? Res.SOUND_ACHIEVEMENT : Res.SOUND_ACHIEVEMENT_LONG); if (achievement_unlocked.indexOf(false) == -1){ unlock(ACHIEVEMENT_YOU_CAN_STOP_NOW); }; }; }; } public static function draw():void{ m = 0; while (m < MAX_MESSAGES) { if (message_opacity[m] > 0){ bar_left = ((Main._um3215 - message_width[m]) + message_xo[m]); bar_top = (32 + (m * 32)); Gfx.drawFrame(Main._lk34, Res.IMAGE_ACHIEVEMENT_BAR, (bar_left - 72), bar_top, 0, 1, 1, -1, new ColorTransform(1, 1, 1, message_opacity[m])); Gfx.drawFrame(Main._lk34, message_image[m], (bar_left + 4), (bar_top + 4), 0, 1, 1, -1, new ColorTransform(1, 1, 1, message_opacity[m])); }; m++; }; } public static function clear():void{ m = 0; while (m < MAX_MESSAGES) { message_opacity[m] = 0; m++; }; } public static function tick():void{ m = 0; while (m < MAX_MESSAGES) { if (message_opacity[m] > 0){ if (message_xo[m] > 0){ message_xo[m] = (message_xo[m] - (1 + (message_xo[m] * 0.2))); } else { var _local1 = message_hold; var _local2 = m; var _local3 = (_local1[_local2] - 1); _local1[_local2] = _local3; if (_local3 < 0){ message_opacity[m] = (message_opacity[m] - 0.05); }; }; }; m++; }; } public static function add(_arg1:String):void{ m = 0; while (m < MAX_MESSAGES) { if (message_opacity[m] <= 0){ message_image[m] = Gfx.stringToImage(_arg1, -1, "game_font", 16, 0xFFFFFF, false); message_width[m] = message_image[m].width; message_xo[m] = Main._um3215; message_opacity[m] = 1; message_hold[m] = 80; m = MAX_MESSAGES; }; m++; }; } } }//package
Section 138
//Assassin (Assassin) package { public class Assassin { public const _vc283:int = 1; public const _lf3116:Boolean = false; public const _gp1063:int = 0x880000; public const WIDTH:int = 18; public const _pg2828:int = 40; public const _yx2572:Boolean = true; public const _nj251:Boolean = true; public const _kd542:Number = 1; public const _cm2639:Number = 0; public const _nx1446:Number = 0; public const _wq2071:Number = 0.05; public const _du2681:int; public const _aa3156:int; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _mu928:uint = 4294901760; public const _tf894:Boolean = true; public const _tg1046:int = 7; public const _cl2507:int = 200; public const STATE:int; public const _ur743:int = 8; public const _np1949:Number = 1; public const _le3056:int = 15; public const _up141:int; public const _kx2846:int = 500; public var _fq406:int;// = 0 public function Assassin(){ _ij2888 = Main.GROUP_ENEMY; _aa3156 = (_cl2507 >> 3); STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_ASSASSIN; super(); } } }//package
Section 139
//Audio (Audio) package { import flash.display.*; import flash.media.*; public class Audio { public static const MP3_OFFSET:int = 20; public static const MAX_CUE_SOUNDS:int = 16; public static const MUSIC_VOLUME:Number = 1; public static const SOUND_VOLUME:Number = 1; public static var cue_sound:Array = new Array(MAX_CUE_SOUNDS); public static var cue_sound_timer:Array = new Array(MAX_CUE_SOUNDS); public static var sound_channel:SoundChannel = new SoundChannel(); public static var sound_cue_index:int; public static var music_transform:SoundTransform = new SoundTransform(); public static var music_playing:Class = null; public static var music_channel:SoundChannel = new SoundChannel(); public static var steps_channel:SoundChannel = new SoundChannel(); public static var cue_sound_volume:Array = new Array(MAX_CUE_SOUNDS); public static var music_mc:MovieClip = null; public static var sound_transform:SoundTransform = new SoundTransform(); public static function stopMusic():void{ if (music_mc != null){ music_mc.stop(); Main.stage_ref.removeChild(music_mc); music_mc = null; music_playing = null; }; } public static function playMP3Music(_arg1:Sound):void{ music_transform.volume = (Main.music_on) ? MUSIC_VOLUME : 0; music_channel = _arg1.play(0, int.MAX_VALUE); music_channel.soundTransform = music_transform; } public static function playMusic(_arg1:Class, _arg2:Number=1):void{ if (Main.music_on){ if (music_playing != _arg1){ SoundMixer.soundTransform = new SoundTransform(0); stopMusic(); if (_arg1 == Res.CLASS_MUSIC_TITLE){ Main.music_fade = 0; }; music_playing = _arg1; music_mc = new (_arg1); Main.stage_ref.addChild(music_mc); music_mc.soundTransform = new SoundTransform((MUSIC_VOLUME * _arg2), 0); SoundMixer.soundTransform = new SoundTransform(1); }; }; } public static function cueSound(_arg1:Sound, _arg2:Number=1, _arg3:int=0):void{ var _local4:int; if (_arg1 != null){ _local4 = 0; while (_local4 < MAX_CUE_SOUNDS) { if ((((cue_sound_timer[_local4] == _arg3)) && ((_arg1.length == cue_sound[_local4].length)))){ return; }; _local4++; }; cue_sound[sound_cue_index] = _arg1; cue_sound_timer[sound_cue_index] = _arg3; cue_sound_volume[sound_cue_index] = _arg2; if (++sound_cue_index >= MAX_CUE_SOUNDS){ sound_cue_index = 0; }; }; } public static function tick():void{ var _local1:int; while (_local1 < MAX_CUE_SOUNDS) { if ((((cue_sound_timer[_local1] >= 0)) && ((--cue_sound_timer[_local1] == -1)))){ Audio.playSound(cue_sound[_local1], cue_sound_volume[_local1]); }; _local1++; }; } public static function playSound(_arg1:Sound, _arg2:Number=1, _arg3:Number=0):void{ if (((Main.sfx_on) && (!((_arg1 == null))))){ sound_transform.volume = (_arg2 * SOUND_VOLUME); sound_transform.pan = _arg3; sound_channel = _arg1.play(MP3_OFFSET, 0, sound_transform); }; } } }//package
Section 140
//BackgroundItem (BackgroundItem) package { public class BackgroundItem { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = -1; public const _du2681:int; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = false; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public function BackgroundItem(){ _ij2888 = Main.GROUP_SPECIAL; STATE = Main.STATE_STATIC; _du2681 = (Gfx.BOTTOM | Gfx.LEFT); super(); } } }//package
Section 141
//Bahamut (Bahamut) package { public class Bahamut { public const _vc283:int = 20; public const _id486:int = 6; public const _lf3116:Boolean = false; public const _gp1063:int = 0xFF0000; public const _yx2572:Boolean = true; public const _nj251:Boolean = true; public const _ky1648:Boolean = true; public const _kd542:Number = 1; public const _cm2639:Number = 0; public const _nx1446:Number = 0; public const _du2681:int; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _wq2071:Number = 1; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = true; public const _tg1046:int = 5; public const _np1949:Number = 0; public const _up141:int; public const _kx2846:int = 10000; public var _aa561:int; public var angle:Number;// = 0 public var _fq406:int;// = 0 public var _gn2728:Number;// = 0 public var _aw2470:Number;// = 0 public var _js2814:int;// = 100 public function Bahamut(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx._dt1890); _up141 = Main.KILL_BAHAMUT; super(); } } }//package
Section 142
//Bird (Bird) package { public class Bird { public const _up141:int; public const _cm2639:Number = 0; public const _nx1446:Number = -5; public const _vc283:int = 1; public const _du2681:int; public const _id486:int = 3; public const _mi702:int = 0; public const _mu928:uint = 4294901760; public const _kx2211:Boolean = true; public const _lf3116:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 1; public const _gp1063:int = 0x880000; public const WIDTH:int = 16; public const _pg2828:int = 40; public const _nj251:Boolean = true; public const _tf894:Boolean = true; public const _wq2071:Number = 0.05; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _np1949:Number = 0.2; public const _kx2846:int = 300; public var _fq406:int;// = 0 public function Bird(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_BIRD; super(); } } }//package
Section 143
//Blade (Blade) package { public class Blade { public const _vc283:int = 1; public const _id486:int = 2; public const _lf3116:Boolean = true; public const _gp1063:int = 0xFFFFFF; public const WIDTH:int = 24; public const _pg2828:int = 24; public const _yx2572:Boolean = true; public const _nj251:Boolean = false; public const _kd542:Number = 1; public const _cm2639:Number; public const _nx1446:Number = 0; public const _wq2071:Number = 0; public const _mu928:uint = 4294901760; public const _du2681:int; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = true; public const _tg1046:int = 2; public const _np1949:Number = 0; public const _up141:int; public const _kx2846:int = 100; public var align:int; public var _fq406:int;// = 0 public var _kj3056:Boolean;// = false public function Blade(){ _ij2888 = Main.GROUP_ENEMY; _cm2639 = Main.FUZZY_SPEED; align = Gfx.BOTTOM; _du2681 = (Gfx._rm371 | Gfx._dt1890); _up141 = Main.KILL_BLADE; super(); } } }//package
Section 144
//Bomb (Bomb) package { public class Bomb { public const _cm2639:int = 12; public const _nx1446:int = -8; public const _aa3156:int = 60; public const _du2681:int; public const _xl1111:int = 128; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mi702:int = 0; public const _mu2489:Number = 0.5; public const WIDTH:int = 14; public const _pg2828:int = 16; public const _tf894:Boolean = false; public const _kd542:Number = 0.95; public const _np1949:Number = 1; public var _kj3056:Boolean;// = false public function Bomb(){ _ij2888 = Main.GROUP_PROJECTILE; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); super(); } } }//package
Section 145
//BombExplosion (BombExplosion) package { public class BombExplosion { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _du2681:int; public const _id486:int = 3; public const _aa3156:int = 0; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const WIDTH:int = 14; public const _pg2828:int = 16; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public function BombExplosion(){ _ij2888 = Main.GROUP_EFFECT; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); super(); } } }//package
Section 146
//Bottle (Bottle) package { public class Bottle { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = -1; public const _du2681:int; public const _id486:int = 4; public const _mu928:uint = 4294967040; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const WIDTH:int = 36; public const _pg2828:int = 32; public const _mi702:int = 0; public const _tf894:Boolean = false; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public function Bottle(){ _ij2888 = Main.GROUP_ITEM; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); super(); } } }//package
Section 147
//Bouncer (Bouncer) package { public class Bouncer { public const _up141:int; public const _cm2639:Number = 3; public const _nx1446:Number = 3; public const _vc283:int = 1; public const _du2681:int; public const _id486:int = 3; public const _mi702:int = 0; public const _mu928:uint = 4294901760; public const _kx2211:Boolean = false; public const _lf3116:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 1; public const _gp1063:int = 0xFFFFFF; public const WIDTH:Number = 22; public const _pg2828:Number = 22; public const _tf894:Boolean = true; public const _wq2071:Number = 0; public const _ky1648:Boolean = true; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _np1949:Number = 0; public const _kx2846:int = 100; public var _kj3056:Boolean;// = false public var _fq406:int;// = 0 public function Bouncer(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_BALL; super(); } } }//package
Section 148
//Crumble (Crumble) package { public class Crumble { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = 0; public const _du2681:int; public const _id486:int = 3; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public function Crumble(){ _ij2888 = Main.GROUP_EFFECT; STATE = Main.STATE_STATIC; _du2681 = (Gfx.TOP | Gfx.LEFT); super(); } } }//package
Section 149
//Devil (Devil) package { public class Devil { public const _vc283:int = 1; public const _id486:int = 6; public const _lf3116:Boolean = false; public const _gp1063:int = 0x880000; public const _yx2572:Boolean = true; public const _nj251:Boolean = false; public const _kd542:Number = 1; public const _cm2639:Number = 3; public const _nx1446:Number = 0; public const _wq2071:Number = 0.05; public const _du2681:int; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = true; public const _tg1046:int = 9; public const _ur743:int = 11; public const _np1949:Number = 0; public const _le3056:int = 29; public const _up141:int; public const _kx2846:int = 666; public var _hd839:int; public var angle:Number;// = 0 public var _fq406:int;// = 0 public function Devil(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_DEVIL; super(); } } }//package
Section 150
//Door (Door) package { public class Door { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = 0; public const _du2681:int; public const _id486:int = 3; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public var _fp2914:Boolean;// = false public function Door(){ _ij2888 = Main.GROUP_SPECIAL; STATE = Main.STATE_STATIC; _du2681 = (Gfx.BOTTOM | Gfx._rm371); super(); } } }//package
Section 151
//Dragon (Dragon) package { public class Dragon { public const _vc283:int = 1; public const _lf3116:Boolean = false; public const _gp1063:int = 0x880000; public const WIDTH:int = 16; public const _pg2828:int = 40; public const _yx2572:Boolean = true; public const _nj251:Boolean = false; public const _kd542:Number = 1; public const _cm2639:Number = 0; public const _nx1446:Number = 0; public const _wq2071:Number = 0.05; public const _du2681:int; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = true; public const STATE:int; public const _ur743:int = 24; public const _np1949:Number = 1; public const _le3056:int = 32; public const _up141:int; public const _kx2846:int = 1000; public var _fq406:int;// = 0 public function Dragon(){ _ij2888 = Main.GROUP_ENEMY; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_DRAGON; super(); } } }//package
Section 152
//Enemy_0 (Enemy_0) package { public class Enemy_0 { public const _up141:int; public const _cm2639:Number = 2; public const _nx1446:Number = 0; public const _vc283:int = 1; public const _du2681:int; public const _wq2071:Number = 0.05; public const _mu928:uint = 4294901760; public const _mi702:int = -4; public const _kx2211:Boolean = true; public const _lf3116:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _gp1063:int = 0x880000; public const WIDTH:int = 18; public const _pg2828:int = 40; public const _tg1046:int = 9; public const _tf894:Boolean = true; public const _ur743:int = 10; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _le3056:int = 13; public const _np1949:Number = 1; public const _kx2846:int = 100; public var _fq406:int;// = 0 public function Enemy_0(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_ENEMY_0; super(); } } }//package
Section 153
//Enemy_1 (Enemy_1) package { public class Enemy_1 { public const _up141:int; public const _cm2639:Number = 2; public const _nx1446:Number = 0; public const _vc283:int = 1; public const _du2681:int; public const _wq2071:Number = 0.05; public const _mu928:uint = 4294901760; public const _mi702:int = -4; public const _kx2211:Boolean = true; public const _lf3116:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _gp1063:int = 0x880000; public const WIDTH:int = 18; public const _pg2828:int = 40; public const _tg1046:int = 9; public const _tf894:Boolean = true; public const _ur743:int = 10; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _le3056:int = 13; public const _np1949:Number = 1; public const _kx2846:int = 200; public var _fq406:int;// = 0 public function Enemy_1(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_ENEMY_1; super(); } } }//package
Section 154
//Enemy_2 (Enemy_2) package { public class Enemy_2 { public const _up141:int; public const _cm2639:Number = 1.5; public const _nx1446:Number = 0; public const _vc283:int = 2; public const _du2681:int; public const _wq2071:Number = 0.05; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _lf3116:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _gp1063:int = 0x880000; public const WIDTH:int = 28; public const _pg2828:int = 40; public const _tg1046:int = 9; public const _tf894:Boolean = true; public const _ur743:int = 10; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _le3056:int = 16; public const _np1949:Number = 1; public const _kx2846:int = 300; public var _fq406:int;// = 0 public function Enemy_2(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_ENEMY_2; super(); } } }//package
Section 155
//Fireball (Fireball) package { public class Fireball { public const _up141:int; public const _cm2639:int = 10; public const _nx1446:int = 0; public const _aa3156:int = 100; public const _du2681:int; public const _id486:int = 3; public const _eo2101:Boolean = true; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0.2; public const _kd542:Number = 1; public const _np1949:Number = 0; public var _kj3056:Boolean;// = false public function Fireball(){ _ij2888 = Main.GROUP_ENEMY_PROJECTILE; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_DRAGON; super(); } } }//package
Section 156
//Frog (Frog) package { public class Frog { public const _vc283:int = 1; public const _ky932:int = 9; public const _lf3116:Boolean = true; public const _gp1063:int = 0x880000; public const WIDTH:int = 16; public const _pg2828:int = 16; public const _nj251:Boolean = false; public const _yx2572:Boolean = true; public const _kd542:Number = 1; public const _cm2639:Number = 0; public const _nx1446:Number = 0; public const _wq2071:Number = 0.05; public const _dx1012:int = 15; public const _du2681:int; public const _mu928:uint = 4294901760; public const _lk2766:int = 100; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = true; public const STATE:int; public const _np1949:Number = 1; public const _up141:int; public const _kx2846:int = 250; public var _fq406:int;// = 0 public function Frog(){ _ij2888 = Main.GROUP_ENEMY; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_FROG; super(); } } }//package
Section 157
//FrogSplat (FrogSplat) package { public class FrogSplat { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = 0; public const _du2681:int; public const _id486:int = 3; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public function FrogSplat(){ _ij2888 = Main.GROUP_EFFECT; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx._dt1890); super(); } } }//package
Section 158
//Gfx (Gfx) package { import flash.display.*; import flash.geom.*; import flash.filters.*; import flash.text.*; public class Gfx { public static const game_font:String = "Gfx_game_font"; public static const LEFT:int = 8; public static const tf_tutorial:TextFormat = new TextFormat("game_font", 12, 0xFFFFFF, true); public static const tf_menu:TextFormat = new TextFormat("game_font", 20, 0xAEAEAE, true); public static const tf_bonus:TextFormat = new TextFormat("game_font", 20, 0xFFFFFF, true); public static const tf_bonus_desc:TextFormat = new TextFormat("game_font", 12, 0xFFFFFF, true); public static const _rm371:int = 0x0100; public static const tf_hud:TextFormat = new TextFormat("game_font", 12, 0xAEAEAE, true); public static const BOTTOM:int = 4; public static const _dt1890:int = 0x0200; public static const TOP:int = 1; public static const TEXT_OFFSET:int = -2; public static const RIGHT:int = 2; public static var tf:TextFormat = new TextFormat("game_font", 20, 0xFFFFFF, true); public static var hframe:int; public static var text_box_bd:BitmapData; public static var temp_bd:BitmapData; public static var vscale:Number; public static var point:Point = new Point(); public static var height:int; public static var line_xo:int; public static var image_sizes:Array = new Array(); public static var vframe:int; public static var canvas_filter:ColorMatrixFilter; public static var matrix:Matrix = new Matrix(); public static var char_value:int; public static var width:int; public static var text_field:TextField; public static var hscale:Number; public static var cm_filter:ColorMatrixFilter; public static var _uo622:Rectangle = new Rectangle(); public static var text_field_bd:BitmapData; public static var prev_quality:String; public static function colourTransform(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:ColorTransform):void{ if (_arg6 != -1){ _arg2 = (_arg2 + alignX(_arg6, _arg4)); _arg3 = (_arg3 + alignY(_arg6, _arg5)); }; _uo622.x = _arg2; _uo622.y = _arg3; _uo622.width = _arg4; _uo622.height = _arg5; _arg1.colorTransform(_uo622, _arg7); } public static function drawFrame(_arg1:BitmapData, _arg2:BitmapData, _arg3:int=0, _arg4:int=0, _arg5:int=0, _arg6:int=1, _arg7:int=1, _arg8:int=-1, _arg9:ColorTransform=null, _arg10:Boolean=false, _arg11:Boolean=false, _arg12:int=-1, _arg13:int=-1):void{ width = ((_arg12 == -1)) ? (_arg2.width / _arg6) : _arg12; height = ((_arg13 == -1)) ? (_arg2.height / _arg7) : _arg13; _uo622.width = width; _uo622.height = height; if (_arg8 != -1){ _arg3 = (_arg3 + alignX(_arg8, width)); _arg4 = (_arg4 + alignY(_arg8, height)); }; hframe = (_arg5 % _arg6); vframe = (_arg5 / _arg6); if (((((_arg10) || (_arg11))) || (!((_arg9 == null))))){ matrix.identity(); if (((_arg10) || (_arg11))){ matrix.scale((_arg10) ? -1 : 1, (_arg11) ? -1 : 1); matrix.translate((_arg10) ? ((_arg3 + (hframe * width)) + width) : (_arg3 - (hframe * width)), (_arg11) ? ((_arg4 + (vframe * height)) + height) : (_arg4 - (vframe * height))); } else { matrix.translate((_arg3 - (hframe * width)), (_arg4 - (vframe * height))); }; _uo622.x = _arg3; _uo622.y = _arg4; _arg1.draw(_arg2, matrix, _arg9, null, _uo622, false); } else { _uo622.x = (hframe * width); _uo622.y = (vframe * height); point.x = _arg3; point.y = _arg4; _arg1.copyPixels(_arg2, _uo622, point, null, null, false); }; } public static function darken(_arg1:BitmapData, _arg2:Number):void{ _arg1.colorTransform(_arg1.rect, new ColorTransform((1 - _arg2), (1 - _arg2), (1 - _arg2), 1, 1, 1, 1, 1)); } public static function drawRectangle(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):void{ if (_arg6 != -1){ _arg2 = (_arg2 + alignX(_arg6, _arg4)); _arg3 = (_arg3 + alignY(_arg6, _arg5)); }; _arg1.fillRect(new Rectangle(_arg2, _arg3, _arg4, _arg8), _arg7); _arg1.fillRect(new Rectangle(((_arg2 + _arg4) - _arg8), _arg3, _arg8, _arg5), _arg7); _arg1.fillRect(new Rectangle(_arg2, ((_arg3 + _arg5) - _arg8), _arg4, _arg8), _arg7); _arg1.fillRect(new Rectangle(_arg2, _arg3, _arg8, _arg5), _arg7); } public static function fillRect(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):void{ if (_arg6 != -1){ _arg2 = (_arg2 + alignX(_arg6, _arg4)); _arg3 = (_arg3 + alignY(_arg6, _arg5)); }; _uo622.x = _arg2; _uo622.y = _arg3; _uo622.width = _arg4; _uo622.height = _arg5; _arg1.fillRect(_uo622, _arg7); } public static function drawScaledPrecise(_arg1:BitmapData, _arg2:BitmapData, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int, _arg9:ColorTransform, _arg10:Number, _arg11:Number, _arg12:Boolean=false, _arg13:Boolean=false):void{ width = (_arg2.width / _arg4); height = (_arg2.height / _arg5); hscale = (_arg10 / width); vscale = (_arg11 / height); width = (width * hscale); height = (height * vscale); if (_arg8 != -1){ _arg6 = (_arg6 + alignX(_arg8, width)); _arg7 = (_arg7 + alignY(_arg8, height)); }; matrix.identity(); if (_arg12){ matrix.scale(-(hscale), vscale); matrix.translate(((_arg6 + ((_arg3 % _arg4) * width)) + width), (_arg7 - (int((_arg3 / _arg4)) * height))); } else { matrix.scale(hscale, vscale); matrix.translate((_arg6 - ((_arg3 % _arg4) * width)), (_arg7 - (int((_arg3 / _arg4)) * height))); }; _uo622.x = _arg6; _uo622.y = _arg7; _uo622.width = width; _uo622.height = height; _arg1.draw(_arg2, matrix, _arg9, null, _uo622, _arg13); } public static function drawScaled(_arg1:BitmapData, _arg2:BitmapData, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int, _arg9:ColorTransform, _arg10:Number=1, _arg11:Number=1, _arg12:Boolean=false, _arg13:Boolean=false):void{ width = ((_arg2.width / _arg6) * _arg10); height = ((_arg2.height / _arg7) * _arg11); if (_arg8 != -1){ _arg3 = (_arg3 + alignX(_arg8, width)); _arg4 = (_arg4 + alignY(_arg8, height)); }; matrix.identity(); if (_arg12){ matrix.scale(-(_arg10), _arg11); matrix.translate(((_arg3 + ((_arg5 % _arg6) * width)) + width), (_arg4 - (int((_arg5 / _arg6)) * height))); } else { matrix.scale(_arg10, _arg11); matrix.translate((_arg3 - ((_arg5 % _arg6) * width)), (_arg4 - (int((_arg5 / _arg6)) * height))); }; _uo622.x = _arg3; _uo622.y = _arg4; _uo622.width = (width + 1); _uo622.height = (height + 1); _arg1.draw(_arg2, matrix, _arg9, null, _uo622, _arg13); } public static function stringToImage(_arg1:String, _arg2:int, _arg3:String="", _arg4:int=0, _arg5:int=0, _arg6:Boolean=false, _arg7:Boolean=true):BitmapData{ if (_arg7){ prev_quality = Main.stage_ref.quality; Main.stage_ref.quality = StageQuality.HIGH; }; text_field = new TextField(); tf.font = _arg3; tf.size = _arg4; tf.color = _arg5; tf.bold = true; text_field.autoSize = TextFieldAutoSize.LEFT; text_field.defaultTextFormat = tf; text_field.embedFonts = true; text_field.htmlText = (("<b>" + _arg1) + "</b>"); if (_arg6){ text_field.filters = [new GlowFilter(0, 1, 4, 4, 3, 1, false, false)]; }; if (_arg2 != -1){ text_field.width = _arg2; text_field.wordWrap = true; } else { text_field.wordWrap = false; }; text_field_bd = new BitmapData(text_field.width, text_field.height, true, 0); matrix.identity(); matrix.ty = TEXT_OFFSET; text_field_bd.draw(text_field, matrix, null, null, null, true); if (_arg7){ Main.stage_ref.quality = prev_quality; }; return (text_field_bd); } public static function addCommas(_arg1:Number):String{ var _local2:String = String(_arg1); var _local3 = ""; var _local4:String = ((_local2.indexOf(".") == -1)) ? _local2 : _local2.substr(0, _local2.indexOf(".")); var _local5:int = _local4.length; while (_local5 >= 0) { _local3 = (_local4.substr(_local5, 1) + _local3); if ((((((((_local4.length - _local5) % 3) == 0)) && ((_local5 < _local4.length)))) && ((_local5 > 0)))){ _local3 = ("," + _local3); }; _local5--; }; return (_local3); } public static function drawRegion(_arg1:BitmapData, _arg2:BitmapData, _arg3:Number, _arg4:Number, _arg5:int, _arg6:int, _arg7:int=-1):void{ width = _arg2.width; height = _arg2.height; var _local8:int = (width * (_arg3 / _arg4)); if (_arg7 != -1){ _arg5 = (_arg5 + Gfx.alignX(_arg7, width)); _arg6 = (_arg6 + Gfx.alignY(_arg7, height)); }; _uo622.width = _local8; _uo622.height = height; _uo622.x = 0; _uo622.y = 0; point.x = _arg5; point.y = _arg6; _arg1.copyPixels(_arg2, _uo622, point); } public static function drawRotatedImage(_arg1:BitmapData, _arg2:BitmapData, _arg3:int, _arg4:int, _arg5:int, _arg6:ColorTransform, _arg7:Number=0, _arg8:Boolean=false, _arg9:Number=1, _arg10:Boolean=false):void{ width = (_arg2.width * _arg9); height = (_arg2.height * _arg9); if (_arg5 != -1){ _arg3 = (_arg3 + alignX(_arg5, width)); _arg4 = (_arg4 + alignY(_arg5, height)); }; matrix.identity(); if (_arg8){ matrix.scale(-1, 1); matrix.translate(width, 0); }; matrix.scale((1 / _arg9), (1 / _arg9)); matrix.translate((-(width) >> 1), (-(height) >> 1)); matrix.rotate(_arg7); matrix.translate((width >> 1), (height >> 1)); matrix.translate(_arg3, _arg4); _arg1.draw(_arg2, matrix, _arg6, null, null, _arg10); } public static function drawBitmapText(_arg1:BitmapData, _arg2:String, _arg3:int=0, _arg4:int=0, _arg5:int=-1):void{ var _local7:int; if (_arg5 != -1){ if ((_arg5 & LEFT) == 0){ _local7 = getBitmapTextWidth(_arg2); if ((_arg5 & _rm371) != 0){ _arg3 = (_arg3 - (_local7 >> 1)); } else { if ((_arg5 & RIGHT) != 0){ _arg3 = (_arg3 - _local7); }; }; }; if ((_arg5 & _dt1890) != 0){ _arg4 = (_arg4 - (Res.BITMAP_FONT_HEIGHT >> 1)); } else { if ((_arg5 & BOTTOM) != 0){ _arg4 = (_arg4 - Res.BITMAP_FONT_HEIGHT); }; }; }; var _local6:int; while (_local6 < _arg2.length) { char_value = (_arg2.charCodeAt(_local6) + Res.BITMAP_FONT_CHARACTER_OFFSET); if (char_value != 0){ _arg1.copyPixels(Res.IMAGE_FONT_TEXT, new Rectangle((char_value * Res.BITMAP_FONT_CELL_WIDTH), 0, Res.bitmap_char_widths[char_value], Res.BITMAP_FONT_HEIGHT), new Point(_arg3, _arg4), null, null, false); }; _arg3 = (_arg3 + Res.bitmap_char_widths[char_value]); _local6++; }; } public static function saturateImage(_arg1:BitmapData):BitmapData{ var _local2:Number = 0; var _local3:Number = 0.3086; var _local4:Number = 0.6094; var _local5:Number = 0.082; var _local6:Number = (((1 - _local2) * _local3) + _local2); var _local7:Number = ((1 - _local2) * _local4); var _local8:Number = ((1 - _local2) * _local5); var _local9:Number = ((1 - _local2) * _local3); var _local10:Number = (((1 - _local2) * _local4) + _local2); var _local11:Number = ((1 - _local2) * _local5); var _local12:Number = ((1 - _local2) * _local3); var _local13:Number = ((1 - _local2) * _local4); var _local14:Number = (((1 - _local2) * _local5) + _local2); cm_filter = new ColorMatrixFilter([_local6, _local7, _local8, 0, 0, _local9, _local10, _local11, 0, 0, _local12, _local13, _local14, 0, 0, 0, 0, 0, 1, 0]); _arg1.applyFilter(_arg1, _arg1.rect, new Point(0, 0), cm_filter); return (_arg1); } public static function alignX(_arg1:int, _arg2:Number):int{ if ((_arg1 & _rm371) != 0){ return ((-(_arg2) >> 1)); }; if ((_arg1 & RIGHT) != 0){ return (-(_arg2)); }; return (0); } public static function alignY(_arg1:int, _arg2:Number):int{ if ((_arg1 & _dt1890) != 0){ return ((-(_arg2) >> 1)); }; if ((_arg1 & BOTTOM) != 0){ return (-(_arg2)); }; return (0); } public static function drawString(_arg1:BitmapData, _arg2:String, _arg3:Number, _arg4:Number, _arg5:int, _arg6:ColorTransform, _arg7:String, _arg8:int, _arg9:int=0, _arg10:Boolean=false, _arg11:Boolean=true):void{ if (_arg2.length == 0){ return; }; tf.font = _arg7; tf.size = _arg8; tf.color = _arg9; tf.bold = true; stringToImage(_arg2, -1, _arg7, _arg8, _arg9, _arg10, _arg11); Gfx.drawFrame(_arg1, Gfx.text_field_bd, _arg3, _arg4, 0, 1, 1, _arg5, _arg6); } public static function getBitmapTextWidth(_arg1:String):int{ var _local3:int; var _local4:int; var _local2:int; _local4 = 0; while (_local4 < _arg1.length) { _local3 = (_arg1.charCodeAt(_local4) + Res.BITMAP_FONT_CHARACTER_OFFSET); _local2 = (_local2 + Res.bitmap_char_widths[_local3]); _local4++; }; return (_local2); } } }//package
Section 159
//Gfx_game_font (Gfx_game_font) package { import mx.core.*; public class Gfx_game_font extends FontAsset { } }//package
Section 160
//Grave (Grave) package { public class Grave { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = 0; public const _du2681:int; public const _id486:int = 0; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public function Grave(){ _ij2888 = Main.GROUP_SPECIAL; STATE = Main.STATE_STATIC; _du2681 = (Gfx.BOTTOM | Gfx._rm371); super(); } } }//package
Section 161
//Item (Item) package { public class Item { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = -1; public const _du2681:int; public const _mu928:uint = 4294967040; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0.3; public const _tf894:Boolean = false; public const STATE:int; public const _kd542:Number = 0.95; public const _np1949:Number = 1; public function Item(){ _ij2888 = Main.GROUP_ITEM; STATE = Main.STATE_ACTIVE; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); super(); } } }//package
Section 162
//Knife (Knife) package { public class Knife { public const _up141:int; public const _cm2639:int = 10; public const _nx1446:int = 0; public const _aa3156:int = 100; public const _du2681:int; public const _eo2101:Boolean = true; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0.2; public const _kd542:Number = 1; public const _np1949:Number = 0; public var origin:int;// = -1 public var _kj3056:Boolean;// = false public function Knife(){ _ij2888 = Main.GROUP_ENEMY_PROJECTILE; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_ASSASSIN; super(); } } }//package
Section 163
//Laser (Laser) package { public class Laser { public const _wq2071:Number = 0; public const _up141:int; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _lf3116:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 1; public const _gp1063:uint = 0xFFFFFF; public const _tf894:Boolean = true; public const _aa3156:int = 50; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _np1949:Number = 0; public const _kx2846:int = 100; public var _cm2639:Number;// = 0 public var _nx1446:Number;// = 0 public var _du2681:int; public var _fq406:int;// = 0 public var _is2384:int;// = 0 public var _he885:int;// = 0 public var align:int; public var _qv1061:int;// = 0 public function Laser(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); align = Gfx.LEFT; _up141 = Main.KILL_LASER; super(); } } }//package
Section 164
//Magic (Magic) package { public class Magic { public const _up141:int; public const _cm2639:int = 8; public const _nx1446:int = 0; public const _aa3156:int = 1000; public const _du2681:int; public const _id486:int = 3; public const _eo2101:Boolean = true; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _kd542:Number = 1; public const _np1949:Number = 0; public var _kj3056:Boolean;// = false public function Magic(){ _ij2888 = Main.GROUP_ENEMY_PROJECTILE; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_WIZARD; super(); } } }//package
Section 165
//Main (Main) package { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import org.papervision3d.materials.*; import mochi.as3.*; import flash.net.*; import org.papervision3d.objects.primitives.*; import flash.system.*; import flash.ui.*; import flash.external.*; public class Main extends PaperBase { private const LEFT:int = 8; private const _dm1482:int = 17; private const _bt1320:int = 28; private const _re2127:int = 20; private const _rm371:int = 0x0100; private const _or1318:int = 22; private const _ol1741:int = 2; private const _xn336:int = 70; private const _mb1862:int = 19; private const _nk1484:int = 3; private const _se2648:int = 3; private const _ea1800:int = 3; private const _vv1581:int = 7; private const _vq2821:int = 4; private const _ke377:int = -1; private const _ai235:int = 144; private const _jv234:int = 100; private const _jk2049:int = 5; private const _na509:int = 32; private const _yi1277:int = 3; private const _lv2265:int = 6; private const _sa1051:int = 5; private const _ec1136:int = 14; private const _gw1216:int = 15; private const _ao537:int = 180; private const _ir2730:int = 4; private const _hd932:int = 31; private const _ee1184:Number = 0.2; private const _va2181:int = 12; private const _gm662:int = 34; private const _pe1380:int = 11; private const _du232:int = 5; private const _rv3164:int = 0; private const _sc2870:int = 8; private const _xk2529:int = 80; private const _py375:int = 1024; private const _cp2807:int = 296; private const _qt1405:int = 28; private const _ex1256:int = 29; private const _kp768:int = 37; private const _ss550:int = 9; private const _ox1197:int; private const _le1707:int = 1; private const _rn211:int = 31; private const _iv2269:int = 1; private const _uu1618:int = 16; private const _sg3010:int = 12; private const TOP:int = 1; private const _sf1364:int = 22; private const _kj3152:Array; private const _lq1218:int = 12; private const _bw1570:int = 15; private const _io541:int = 3; private const _vc2516:int = 1920; private const _cp2540:int = 1; private const _tv1434:int = 7; private const _ma984:int = -2; private const _pc1940:int = 4; private const _nd3022:int = 21; private const _dt1890:int = 0x0200; private const _mu2006:int = 2; private const _ng1773:int = 13; private const _ur2520:int = 20; private const _ra2947:int; private const _tq772:int; private const _lx1371:int = 3; private const _tr1427:int = 2; private const _ei1000:int = 1; private const _qp542:int = 5; private const _vr317:int = 18; private const _be1851:int = 3; private const _sh826:int = 18; private const _qr42:int = 17; private const _ku2801:int = 0; private const RIGHT:int = 2; private const _xy429:Array; private const _tr2628:int = 6; private const _pc1528:int = -3; private const _fc1727:Array; private const _yd110:int = 250; private const _eh1431:int = -1; private const _dq260:int = 23; private const BOTTOM:int = 4; private const _cj841:int = 9; private const _mc3062:Number = 1; private const _bx2494:int = 36; private const _yt740:int = 64; private const _kw2375:int = 11; private const _td267:int = 24; private const _wu2255:int = 134; private const _nw3014:int = 1; private const _ch692:int = 110; private const _ht195:int = -2; private const _qk2412:int = 30; private const _gg495:int = 22; private const _il1958:int = 1; private const _ut2386:int = -666; private const _xy2123:int = 188; private const _ba1128:int = 2; private const _iq376:int = 35; private const _eu3186:int; private const _sf1894:int = 25; private const _ft595:int = 32; private const _ya280:int = 34; private const _uv708:int = 60; private const _nm2862:int; private const _uq3088:int = 2; private const _xq3000:int = 5; private const _uq375:int = 10; private const _tb76:int = 26; private const _tp956:int = 8; private const _do3027:int = 20; private const _pv2539:int = 0; private const _cl597:int = 0; private const _pc214:Array; private const _lf94:int = 23; private const _sb274:int; private const _rs1738:int; private const _fx2701:int = 8; private const _nv992:int = 30000; private const _im3139:int = 32; private const _ry1581:int = 10; private const _ow370:int = 414; private const _vi465:BitmapMaterial; private const _kv2476:int = 4; private const _wr2374:int = 27; private const _wo1837:String = "v0.5.9, 17th January 2011"; private const _is2809:int = 8; private const _id2380:int = 9; private const _rr1115:int = 0; private const _cg785:int = 5; private const _st764:int = 33; private const _gy2860:int = 16; private const _cn1125:int = 640; private var _aw2334:Boolean; private var _gf295:int; private var _qi1160:int; private var _hb144:Boolean;// = false private var _ul1403:int; private var left:int; private var _tp2213:int; private var _fy1859:int; private var _vy3032:int; private var _fl332:int; private var _yo1820:Array; private var _mk2260:Boolean; private var _bs970:int; private var _ib3140:int; private var _qk2034:DisplayObject; private var _br2049:Boolean; private var _rd1583:Number; private var _og1683:Array; private var _md475:int; private var _wp1938:int; private var _xf3150:int; private var _ps3060:int; private var _au294:Array; private var _kd1228:int; private var _cy1461:Array; private var _ex154:Array; private var _rg2823:int; private var _vv1207:Array; private var _go598:Boolean; private var _wm1195:Boolean; private var _lg1675:Boolean;// = false private var _uv690:int; private var _gk36:int; private var _mj651:String; private var _dx3176:int; private var _ms2528:Array; private var _dn3100:int; private var _ci2912:Number; private var _rn2505:Array; private var _mv2513:Number; private var _sv2787:Number; private var _aq1238:int; private var _yy845:int; private var _tp1268:int; private var _rl1132:MochiDigits; private var _lx717:int; private var _iq2946:int; private var _ap40:int;// = -1 private var _kp2677:SharedObject; private var _ix2663:int; private var _in569:Boolean;// = false private var _bk681:int; private var paused:Boolean; private var _cd3054:String; private var _mi1660:Array; private var top:int; private var _tq2458:Number; private var _jy695:int; private var _fh2778:Array; private var _na1271:int; private var _ja2972:int; private var _en681:int; private var _fb111:Array; private var _is2927:Array; private var _mm509:MochiDigits; private var _tu1634:int; private var _mv121:int; private var _be1660:Boolean; private var _mf2985:int;// = 0 private var _gg2726:Boolean; private var _fj1554:int;// = 0 private var _wj3176:int; private var _vw2092:int; private var _mt1708:int; private var _bk2394:Array; private var _lo541:int; private var _dt1923:int; private var _ty2462:Number;// = 0 private var _hk1714:Boolean; private var _ga397:int; private var _cf763:int; private var _fe2352:Number; private var _tm2076:int; private var keys:Array; private var _qf779:Boolean; private var _ln1427:int; private var right:int; private var _ym2351:Array; private var hiscore:MochiDigits; private var _gn1375:int; private var _wt122:Boolean; private var debug:Boolean;// = false private var _qi2365:int; private var _wl2598:Plane; private var _lg2547:Number;// = 0 private var _qt2220:int; private var _tf2707:int; private var _mx716:Array; private var _xe198:int; private var _ft767:int; private var ticks:int;// = 0 private var _gn1090:Boolean; private var _qr767:Array; private var _yg1495:Array; private var seconds:int; private var _ts2659:int; private var _mm1944:Boolean; private var _ai2219:Boolean; private var _oj1237:int; private var _be232:Boolean; private var _px2108:Array; private var _kx1948:Array; private var _rm153:int; private var _ia1320:int; private var _jl2402:int; private var _me422:Array; private var _rn2457:Boolean;// = false private var _bo3091:Array; private var _cx2251:Number; private var _fy1567:int; private var _og200:int; private var _uy2974:Boolean;// = false private var _ao2400:int; private var _sb2711:int; private var _nr2804:int; private var _lu2451:Array; private var _kh971:int; private var _he494:int; private var _gg1875:int; private var _eq2906:int; private var _md1823:int; private var _gu2069:int; private var _gx110:int; private var type:int; private var _pj820:int;// = 0 private var _gd659:int; private var _ao738:int; private var _nt1982:int; private var _se2035:int; private var _ti1984:int; private var _by268:Stats; private var _vq2769:Array; private var _dm716:Array; private var _ct1641:int; private var _un2669:int;// = 0 private var _my2247:Array; private var _dq2621:int; private var _np246:Array; private var _xj739:int; private var _lb2276:int;// = 0 private var best_player_floor:int;// = -1 private var _vx2381:int; private var _gr934:Boolean; private var _dk300:Boolean; private var prev_player_floor:int;// = -1 private var _wy295:MochiDigits; private var _eq1957:Number; private var _gt526:int; private var _nc1233:int; private var _qu2081:Array; private var _gw52:int; private var _aj1508:int; private var _uc3062:int; private var _kc709:Array; private var _mf2064:int; private var _wx2504:int; private var _bu1497:Number; private var _be2036:int; private var _sh488:Boolean; private var _wd373:int; private var _ea1317:int; public static const GROUP_ENEMY_PROJECTILE:int = 6; public static const _um3215:int = 640; public static const ITEM_GOLD:int = 3; public static const KILL_TIME:int = 21; public static const KILL_DRAGON:int = 7; public static const GAME_STATE_TITLE:int = 1; public static const GAME_STATE_CREDITS:int = 4; public static const TEMP_CANVAS:BitmapData = new BitmapData(_um3215, _nv1774, false); public static const KILL_ZOMBIE:int = 13; public static const GAME_STATE_SUMMARY:int = 6; public static const KILL_SPIKES:int = 10; public static const GAME_STATE_INITIALISING:int = -1; public static const FORTY_FIVE_DEGREES:Number = 0.785398163397448; public static const KILL_SPINY:int = 14; public static const KILL_ENEMY_0:int = 1; public static const KILL_ENEMY_2:int = 2; public static const TRANSITION_OUT:int = -1; public static const KILL_BALL:int = 8; public static const KILL_ENEMY_1:int = 0; public static const STATE_THROWING:int = 4; public static const TRANSITION_IN:int = 1; public static const KILL_BAHAMUT:int = 19; public static const KILL_ASSASSIN:int = 3; public static const _hu2021:int = (_nv1774 >> 1); public static const _lk34:BitmapData = new BitmapData(_um3215, _nv1774, false); public static const GAME_STATE_TUTORIAL:int = 5; public static const STATE_SLASHING:int = 5; public static const STATE_SOMERSAULTING:int = 3; public static const STATE_EXITING_DOOR:int = 10; public static const STATE_TURNING:int = 6; public static const ITEM_EXTRA_TIME:int = 6; public static const KILL_SHIELD:int = 17; public static const ONE_THIRTY_FIVE_DEGREES:Number = 2.35619449019234; public static const KILL_WIZARD:int = 16; public static const GAME_STATE_GAME:int = 2; public static const KILL_TENTACLES:int = 11; public static const GROUP_EFFECT:int = 3; public static const STATE_ENTERING_DOOR:int = 8; public static const NINETY_DEGREES:Number = 1.5707963267949; public static const GAME_STATE_MANUAL:int = 8; public static const GAME_STATE_LEADERBOARD:int = 3; public static const GAME_STATE_REDFINE_KEYS:int = 7; public static const ITEM_BOMB:int = 1; public static const KILL_LASER:int = 20; public static const THREE_SIXTY_DEGREES:Number = 6.28318530717959; public static const GROUP_ENEMY:int = 0; public static const STATE_INACTIVE:int = -1; public static const STATE_ACTIVE:int = 0; public static const FUZZY_SPEED:int = 2; public static const GAME_STATE_ACHIEVEMENTS:int = 9; public static const STATE_ATTACKING_DOWNWARDS:int = 7; public static const GAME_STATE_VIEW_STATS:int = 10; public static const _nv1774:int = 480; public static const ITEM_SHURIKEN:int = 0; public static const STATE_DEAD:int = 2; public static const ITEM_LIFE:int = 2; public static const GAME_STATE_DEV_LOGO:int = 0; public static const STATE_IN_DOOR:int = 9; public static const KILL_DEVIL:int = 15; public static const GROUP_PLAYER:int = 1; public static const _pa616:int = (_um3215 >> 1); public static const ONE_EIGHTY_DEGREES:Number = 3.14159265358979; public static const KILL_TOWER:int = 18; public static const GROUP_PROJECTILE:int = 2; public static const GROUP_SPECIAL:int = 5; public static const KILL_BLADE:int = 5; public static const ITEM_TIME:int = 4; public static const KILL_BOMB:int = 9; public static const KILL_FROG:int = 4; public static const TWO_SEVENTY_DEGREES:Number = 4.71238898038469; public static const ITEM_EYE:int = 5; public static const KILL_THWOMP:int = 12; public static const GROUP_ITEM:int = 4; public static const KILL_BIRD:int = 6; public static const STATE_STATIC:int = 1; public static var game_state:int = -1; public static var anim:MovieClip; public static var do_game_intro:Boolean = false; public static var in_bonus_mode:Boolean; public static var music_on:Boolean = true; public static var camera_top:int; public static var music_fade:Number; public static var retry_anim_finished:Boolean = false; public static var prev_game_state:int = game_state; public static var transition_dir:int = 0; public static var display_offset:int; public static var stage_ref:Stage; public static var sfx_on:Boolean = true; public static var camera_left:int; public function Main(){ _kp2677 = SharedObject.getLocal("hodn", "/"); _vi465 = new BitmapMaterial(_lk34); _wy295 = new MochiDigits(); hiscore = new MochiDigits(0); _fh2778 = new Array(_gg495); _np246 = new Array(_gg495); _rn2505 = [true, false, true, true, false, false, true, false, false, false, true, false, true, false, true, false, false, false, false, true, true, false, false, true, false, false, false, false, false, false, true, false]; _pc214 = [_cl597, _cl597, _cl597, _cl597, _cl597, _cl597, _cl597, _cl597, _le1707, _le1707, _eh1431, _uq3088, _le1707]; _sb274 = (_re2127 << 1); _rs1738 = (_cn1125 << 1); _eu3186 = ((_um3215 / _ft595) + 1); _tq772 = ((_nv1774 / _ft595) + 1); _ox1197 = (_im3139 >> 2); _bk2394 = new Array(); _bo3091 = new Array(); _dm716 = new Array(_yt740); _au294 = new Array(_yt740); _vq2769 = new Array(_yt740); _fb111 = new Array(_yt740); _is2927 = new Array(_yt740); _qr767 = new Array(_yt740); _yg1495 = new Array(_yt740); _qu2081 = new Array(_yt740); _kc709 = new Array(_yt740); _me422 = new Array(_yt740); _mi1660 = new Array(_yt740); _my2247 = new Array(_yt740); _vv1207 = new Array(_yt740); _mx716 = new Array(_yt740); _yo1820 = new Array(_yt740); _lu2451 = new Array(_yt740); _ms2528 = new Array(_yt740); _fc1727 = [_cp2540, _cp2540, _pc1940, _tv1434, _ng1773, _cg785, _gy2860, _sc2870, _gw1216, _ss550, _qr42, _pe1380, _nd3022, _bt1320, _vr317, _td267, _tb76, _sf1894, _ex1256, _or1318, _hd932, _wr2374]; _rl1132 = new MochiDigits(); _mm509 = new MochiDigits(); _cy1461 = new Array(_uu1618); _ex154 = new Array(_uu1618); _og1683 = new Array(_be1851); _ra2947 = (_hu2021 - ((_uq375 * _ya280) >> 1)); _xy429 = [38, 40, 37, 39, 32, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90]; _kj3152 = [38, 40, 37, 39, 90, 88, 67, 80]; _nm2862 = _kj3152.length; keys = new Array(_nm2862); _ym2351 = new Array((Res.SPRITES.length << 1)); super(); _ac1382(); _ny2288(); _wj3176 = Res.IMAGE_HEALTH_BAR_BIT.width; _md475 = (Res.IMAGE_WEAPON_ICONS.width / _be1851); Res.generateCharacterWidths(); _yi1675(); Achievements.init(); _pd1667(); init(_um3215, _nv1774); _wl2598.x = 0; _wl2598.y = 0; _wl2598.visible = false; addEventListener(Event.ENTER_FRAME, update); startTransition(GAME_STATE_DEV_LOGO); } final private function _uh46(_arg1:int, _arg2:int):Boolean{ if (!_st1547(_arg1, _arg2)){ return (true); }; return (_bo3091[_arg1][_arg2]); } final private function _lo2659(_arg1:KeyboardEvent):void{ var _local2:Boolean; var _local3:int; var _local4:int; if (Menu.in_menu){ return; }; switch (_arg1.keyCode){ case keys[_vq2821]: if (!_dk300){ _dk300 = true; _jt2948(_ku2801); }; break; case keys[_du232]: if (!_mk2260){ _mk2260 = true; _jt2948(_il1958); }; break; case keys[_lv2265]: if (!_sh488){ _sh488 = true; _fe2352 = 0; }; break; case keys[_rv3164]: if (((!(_be1660)) && ((_qi2365 == 0)))){ _be1660 = true; if (_mt1708 > 0){ _yd1915(10); } else { switch (_me422[_tm2076]){ case STATE_ACTIVE: case STATE_SOMERSAULTING: case STATE_SLASHING: if (_lu2451[_tm2076]){ _local2 = false; _yy845 = 0; _local3 = 0; while (_local3 < _yt740) { switch (_au294[_local3]){ case _ut2386: break; case _ry1581: if (_ur439(_local3, _tm2076)){ Achievements.unlock(Achievements.ACHIEVEMENT_FIRST_WARP); _tb1270((in_bonus_mode) ? -1 : 1); _tk2059(_local3); _local3 = _yt740; }; break; case _kp768: if (((((!(in_bonus_mode)) && (!(_dm716[_local3]._fp2914)))) && (_ur439(_local3, _tm2076)))){ _me422[_tm2076] = STATE_ENTERING_DOOR; _bs970 = _jv234; Audio.playSound(Res.SOUND_DOOR_OPEN); _dq2621 = 0; Achievements.unlock(Achievements.ACHIEVEMENT_FIRE_ESCAPE); }; break; default: if ((((_qi2365 == 0)) && (!(_local2)))){ if ((((_me422[_tm2076] == STATE_ACTIVE)) && ((_dm716[_local3]._ij2888 == GROUP_ENEMY)))){ if (_is2927[_tm2076] == _is2927[_local3]){ _local4 = (_fb111[_local3] - _fb111[_tm2076]); if ((((((_local4 < 0)) && ((_my2247[_tm2076] < 0)))) || ((((_local4 > 0)) && ((_my2247[_tm2076] > 0)))))){ if (Math.abs(_local4) < 150){ _local2 = true; }; }; }; }; }; break; }; _local3++; }; }; if ((((((_qi2365 == 0)) && (((_lu2451[_tm2076]) || (_gn1090))))) && (!((_me422[_tm2076] == STATE_ENTERING_DOOR))))){ _yg1495[_tm2076] = (_br2049) ? -7 : -10; if (((!(_lu2451[_tm2076])) || (_local2))){ _gn1090 = _lu2451[_tm2076]; _me422[_tm2076] = STATE_SOMERSAULTING; _vq2769[_tm2076] = 0; }; Audio.playSound(Res.SOUNDS_JUMP[(_ij2524(3) + (((_local2) || (!(_gn1090)))) ? 3 : 0)], 0.7); }; break; }; }; }; break; case keys[_nw3014]: if (!_wm1195){ _wm1195 = true; if (_mt1708 > 0){ _yd1915(10); }; if (!_lu2451[_tm2076]){ _sl3095(); }; }; break; case keys[_tr1427]: if (!_aw2334){ _aw2334 = true; if (_mt1708 > 0){ _yd1915(10); }; }; break; case keys[_yi1277]: if (!_gg2726){ _gg2726 = true; if (_mt1708 > 0){ _yd1915(10); }; }; break; }; } final private function _ak3114():void{ if (paused){ paused = false; Menu.in_menu = false; } else { pause(true); }; } final private function _wp1063():void{ var _local1:int; var _local2:Number; _local1 = _mm509.value; while (_local1 >= 0) { _local2 = _qm824(_cy1461[_local1], _ex154[_local1], ((_local1 == 0)) ? _fb111[_tm2076] : _cy1461[(_local1 - 1)], ((_local1 == 0)) ? _is2927[_tm2076] : _ex154[(_local1 - 1)]); _cy1461[_local1] = (_cy1461[_local1] - (Math.cos(_local2) * (6 - (_local1 * 0.5)))); _ex154[_local1] = (_ex154[_local1] - (Math.sin(_local2) * (6 - (_local1 * 0.5)))); _local1--; }; if (_vw2092 > 0){ _vw2092--; }; _br2049 = false; _xe198 = (_is2927[_tm2076] / _ft595); if (_xe198 > _ao738){ if ((_xe198 % _xq3000) == 0){ _df629(Math.floor((_he494 / 1000)), _tm2076); Audio.playSound(Res.SOUND_FLOOR_BONUS, 0.7); _ix2663++; _qt2220++; _lx717++; if (_me422[_tm2076] == STATE_IN_DOOR){ if ((_ix2663 % (2 + _ij2524(3))) == 0){ Audio.playSound(Res.SOUNDS_DOOR[_ij2524(Res.SOUNDS_DOOR.length)], 1, ((Math.random() < 0.5)) ? -0.5 : 0.5); }; _oo1728(); }; if (_ix2663 == 500){ Achievements.unlock(Achievements.ACHIEVEMENT_FLOOR_500); } else { if (_ix2663 == 250){ Achievements.unlock(Achievements.ACHIEVEMENT_FLOOR_250); } else { if (_ix2663 == 100){ Achievements.unlock(Achievements.ACHIEVEMENT_FLOOR_100); if (_ul1403 == 0){ Achievements.unlock(Achievements.ACHIEVEMENT_100_FLOORS_AND_NO_KILLS); }; if (_mv2513 < 10000){ Achievements.unlock(Achievements.ACHIEVEMENT_JUMPY_NINJA); }; } else { if (_ix2663 == 50){ Achievements.unlock(Achievements.ACHIEVEMENT_FLOOR_50); }; }; }; }; }; _ao738 = _xe198; if (((((!(in_bonus_mode)) && ((_sv2787 == 0)))) && ((Math.floor(((_ix2663 - ((_nc1233 * _bw1570) * Res.TILES_VFRAMES)) / _bw1570)) > _kh971)))){ _ct1641 = ((((_kh971 + 1) >= Res.TILES_VFRAMES)) ? 0 : (_kh971 + 1) * Res.TILES_HFRAMES); _sv2787 = 0.01; }; _ao2400 = 0; } else { _ft767 = _kl1762(_fb111[_tm2076]); if (_ft767 == _ja2972){ _ao2400++; } else { _ao2400 = 0; _ja2972 = _ft767; }; }; if (_bs970 > 0){ _bs970--; }; if (_yy845 > 0){ _yy845--; }; if (_sh488){ _fe2352 = (_fe2352 + ((_fe2352 < 1)) ? 0.05 : 0); }; if (_mt1708 > 0){ _yd1915(1); }; if (((!((_me422[_tm2076] == STATE_DEAD))) && (((((_aw2334) && (!(_gg2726)))) || (((_gg2726) && (!(_aw2334)))))))){ _my2247[_tm2076] = (_gg2726) ? 1 : -1; _qr767[_tm2076] = (_qr767[_tm2076] + (((_aw2334) && ((_qr767[_tm2076] > -(_fx2701))))) ? -(_iv2269) : (((_gg2726) && ((_qr767[_tm2076] < _fx2701)))) ? _iv2269 : 0); } else { _qr767[_tm2076] = (_qr767[_tm2076] * _mx716[_tm2076]); }; if ((((_sv2787 > 0)) && (((_sv2787 = (_sv2787 + 0.01)) >= 1)))){ if (++_kh971 >= Res.TILES_VFRAMES){ _kh971 = 0; _nc1233++; }; _sv2787 = 0; _gt526 = _ct1641; }; _oo1728(); _fj3113(); if (!_rn2457){ camera_left = (camera_left - ((camera_left - (-(_fb111[_tm2076]) + _pa616)) * 0.3)); camera_top = (camera_top - ((camera_top - (-(_is2927[_tm2076]) + _wu2255)) * 0.1)); if (camera_top <= -(_rs1738)){ _pp273(); }; }; switch (_me422[_tm2076]){ case STATE_ENTERING_DOOR: if (((((ticks % 4) == 0)) && ((++_vq2769[0] >= _ev894(_kp768))))){ _tk2059(0); _me422[_tm2076] = STATE_IN_DOOR; }; break; case STATE_IN_DOOR: _is2927[_tm2076] = (_is2927[_tm2076] + 8); if (--_dq2621 < 0){ _dq2621 = 200; if (sfx_on){ Audio.steps_channel = Res.SOUND_DOOR_STEPS.play(); }; }; break; default: _xr2303(_tm2076); break; }; _fb111[_vx2381] = _fb111[_tm2076]; _is2927[_vx2381] = (_is2927[_tm2076] + _kc709[_vx2381]); } final private function _eh2028(_arg1:int):void{ Audio.playSound(Res.SOUND_DRAGON_ATTACK, _qw1296(_arg1), _pj711(_arg1)); _vq2769[_arg1] = 1; _my2247[_arg1] = ((_fb111[_tm2076] > _fb111[_arg1])) ? 1 : -1; } final private function _mv966():int{ var _local1:int; do { _local1 = (_iq2946 + _ij2524(_aj1508)); } while (((!(_bo3091[_local1][_nt1982])) || (_bo3091[_local1][(_nt1982 - 1)]))); return (_local1); } final private function _yi1675():void{ var _local2:int; var _local1:int = Res.SPRITES.length; _local2 = 0; while (_local2 < _local1) { if (Res.SPRITES[_local2] != null){ _ym2351[(_local2 << 1)] = (Res.SPRITES[_local2].width / _ev894(_local2)); _ym2351[((_local2 << 1) + 1)] = (Res.SPRITES[_local2].height / _mc2559(_local2)); } else { switch (_local2){ case _ex1256: _ym2351[(_local2 << 1)] = (Res.IMAGE_TOWER_BIT.width / _ev894(_local2)); _ym2351[((_local2 << 1) + 1)] = (Res.IMAGE_TOWER_BIT.height * 4); break; }; }; _local2++; }; } final private function _ij2524(_arg1:int):int{ return (((_arg1 == 0)) ? 0 : Math.floor((Math.random() * _arg1))); } final private function _em2947(_arg1:int):int{ if (_arg1 == _tm2076){ return ((_kc709[_arg1] >> (_wm1195) ? 1 : 0)); }; return (_kc709[_arg1]); } final private function _ap1764():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:String; var _local7:int; var _local8:int; var _local9:int; var _local10:String; var _local11:int; var _local12:String; graphics.clear(); switch (game_state){ case GAME_STATE_TITLE: _lk34.fillRect(_lk34.rect, 0); Gfx.drawFrame(_lk34, Res.IMAGE_TITLE, 579, (30 + _rd1583), 0, 1, 1, (TOP | RIGHT)); Gfx.drawFrame(_lk34, Res.IMAGE_MOON, 153, (252 + _rd1583)); Gfx.drawFrame(_lk34, Res.IMAGE_CLOUDS, (44 + _tq2458), (270 + _rd1583)); if (debug){ Gfx.drawString(_lk34, "Debugging on!", (_um3215 - _tp956), _tp956, (TOP | RIGHT), null, "game_font", 16, 0xFFFFFF); }; if (Menu.in_menu){ Menu.draw(); }; if (!do_game_intro){ Gfx.drawString(_lk34, _wo1837, 6, (6 + _rd1583), -1, null, "game_font", 16, 0x333333, false); }; _is2782(); break; case GAME_STATE_GAME: if (_qi2365 == 0){ _tg1819(); _is2782(); } else { _lv1467(0, 1); }; break; case GAME_STATE_SUMMARY: _lk34.fillRect(_lk34.rect, 0); if ((((anim == null)) || (!(retry_anim_finished)))){ Gfx.drawFrame(_lk34, Res.IMAGE_GAME_OVER_BG); Gfx.drawFrame(_lk34, Res.IMAGE_TEXT_GAME_OVER, _pa616, 220, 0, 1, 1, (_rm371 | TOP)); if (_hb144){ Gfx.drawBitmapText(_lk34, Res.text_XML.submitting_0, 488, 330, (_rm371 | TOP)); Gfx.drawBitmapText(_lk34, Res.text_XML.submitting_1, 488, 366, (_rm371 | TOP)); } else { Menu.draw(); }; _px752(); _local1 = 0; while (_local1 < _ga397) { Gfx.drawFrame(_lk34, Res.IMAGE_GRAVE, _px2108[_local1], _kx1948[_local1]); _local1++; }; Gfx.drawString(_lk34, _cd3054, _pa616, (_nv1774 - _tp956), (_rm371 | BOTTOM), new ColorTransform(1, 1, 1, _eq1957), "game_font", 16, 0xFFFFFF); }; _is2782(); break; case GAME_STATE_VIEW_STATS: _lk34.fillRect(_lk34.rect, 0); _local2 = 4; Gfx.drawScaled(_lk34, Res.IMAGE_ENEMY_GRAPH, _pa616, _local2, 0, 1, 1, (_rm371 | TOP), null, 2, 2); _local5 = 0; while (_local5 < 2) { _local1 = 0; while (_local1 < _gg495) { _local6 = ((_local5 == 0)) ? _fh2778[_local1] : _np246[_local1]; switch (_local1){ case KILL_BOMB: case KILL_TIME: _local6 = ((_local5 == 0)) ? "N/A" : _local6; break; case KILL_TENTACLES: _local6 = ((_local5 == 1)) ? "N/A" : _local6; break; }; _local3 = (((_local1 < (_gg495 >> 1))) ? 172 : 454 + ((_local5 == 0)) ? 0 : 94); _local4 = ((_local2 + 35) + ((_local1 % (_gg495 >> 1)) * 38)); Gfx.drawBitmapText(_lk34, _local6, _local3, _local4, (_rm371 | _dt1890)); _local1++; }; _local5++; }; Menu.draw(); _is2782(); break; case GAME_STATE_CREDITS: _lk34.fillRect(_lk34.rect, 0); Menu.draw(); _local7 = 18; _local8 = (Res.credits.length * _local7); _local9 = (_hu2021 - (_local8 >> 1)); _local1 = 0; while (_local1 < Res.credits.length) { Gfx.drawString(_lk34, Res.credits[_local1], _pa616, (_local9 + (_local1 * _local7)), (TOP | _rm371), null, "game_font", 16, 0xFFFFFF, false); _local1++; }; _is2782(); break; case GAME_STATE_ACHIEVEMENTS: _lk34.fillRect(_lk34.rect, 0); _local1 = 0; while (_local1 < _uq375) { _local10 = (" " + getXMLString(("achievement_" + ((_oj1237 * _uq375) + _local1).toString()))); Gfx.stringToImage(_local10, -1, "game_font", 24, 0xFFFFFF); _local11 = ((_ra2947 + (_local1 * _ya280)) + (Menu.MENU_BAR_HEIGHT >> 1)); Gfx.drawFrame(Main._lk34, Gfx.text_field_bd, _pa616, _local11, 0, 1, 1, (TOP | _rm371)); Gfx.drawFrame(Main._lk34, (Achievements.achievement_unlocked[(_local1 + (_oj1237 * _uq375))]) ? Res.IMAGE_ACHIEVEMENT_ICON : Res.IMAGE_LOCKED_ICON, (_pa616 - (Gfx.text_field_bd.width >> 1)), _local11, 0, 1, 1, (TOP | RIGHT)); _local1++; }; Menu.draw(); _is2782(); break; case GAME_STATE_TUTORIAL: _lk34.fillRect(_lk34.rect, 0); Gfx.drawScaled(_lk34, Res.IMAGES_TUTORIAL[_oj1237], _pa616, ((_hu2021 - 18) + _xj739), 0, 1, 1, (_rm371 | _dt1890), null, 2, 2); Menu.draw(); _is2782(); break; case GAME_STATE_MANUAL: Gfx.drawFrame(_lk34, TEMP_CANVAS); Menu.draw(); _is2782(); break; case GAME_STATE_REDFINE_KEYS: _lk34.fillRect(_lk34.rect, 0); Gfx.drawScaled(_lk34, Res.IMAGE_ASSIGN_KEYS, _pa616, ((_hu2021 - 18) + _xj739), 0, 1, 1, (_rm371 | _dt1890), null, 2, 2); _local1 = 0; while (_local1 < _nm2862) { if (((!((_local1 == _gn1375))) || (((ticks % 20) > 5)))){ switch (keys[_local1]){ case 32: _local12 = "SPACE"; break; case 13: _local12 = "ENTER"; break; default: _local12 = String.fromCharCode(keys[_local1]); break; case 37: case 38: case 39: case 40: _local12 = String.fromCharCode((Keyboard.NUMPAD_0 + (keys[_local1] - 37))); break; }; Gfx.drawBitmapText(_lk34, _local12, (_xy2123 + (_ai235 >> 1)), (_xk2529 + (_local1 * (_qt1405 + _sh826))), (_rm371 | TOP)); }; _local1++; }; Menu.draw(); _is2782(); break; }; if (_lg2547 > 0){ _lv1467(0xFFFFFF, _lg2547); _lg2547 = (_lg2547 - 0.05); }; if (transition_dir != 0){ _lv1467(0, _ty2462); }; } final private function _jy2983():int{ var _local1 = 2; while (_local1 < _yt740) { if (_me422[_local1] == STATE_INACTIVE){ return (_local1); }; _local1++; }; return (-1); } final private function _ci1051(_arg1:int):int{ return ((_arg1 / _ft595)); } final private function _gb1720(_arg1:Boolean):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:Boolean; var _local6:int; var _local7:int; var _local8:int; var _local9:Number; var _local10:int; var _local11:ColorTransform; var _local12:Boolean; var _local13:Boolean; var _local14:int; _local2 = (_arg1) ? 0 : 1; while (_local2 < (_arg1) ? 1 : _yt740) { if (((!((_me422[_local2] == STATE_INACTIVE))) && (_uk265(_local2)))){ _local14++; _local4 = _au294[_local2]; _local8 = _vq2769[_local2]; _local10 = _dm716[_local2]._du2681; _local11 = (((in_bonus_mode) && (!((_dm716[_local2]._ij2888 == GROUP_ITEM))))) ? new ColorTransform(0, 0, 0) : null; _local12 = ((_dm716[_local2]._kx2211) && ((_my2247[_local2] > 0))); _local13 = false; _local5 = true; _local6 = (camera_left + _fb111[_local2]); _local7 = (camera_top + _is2927[_local2]); if (_rn2457){ Gfx.fillRect(_lk34, _local6, _local7, _qu2081[_local2], _kc709[_local2], _local10, 0xFF00FF); }; _local6 = (_local6 + (_my2247[_local2] * _dm716[_local2]._mi702)); switch (_local4){ case _ma984: switch (_me422[_tm2076]){ case STATE_IN_DOOR: case STATE_EXITING_DOOR: case STATE_ENTERING_DOOR: break; default: if ((((_bs970 <= 0)) || (((ticks % 2) == 0)))){ _cl2965(_local6, _local7, _local8, _local10); }; break; }; _local5 = false; break; case _ol1741: case _ec1136: _local5 = (((_mi1660[_local2] > 30)) || (((_mi1660[_local2] % 2) == 0))); break; case _gw1216: _local5 = false; _local9 = (_dm716[_local2].angle - NINETY_DEGREES); _local3 = 0; while (_local3 <= _jk2049) { _local6 = (_dm716[_local2]._dc2382 - ((_local3 * _sf1364) * Math.sin(_local9))); _local7 = (_dm716[_local2]._hd839 + ((_local3 * _sf1364) * Math.cos(_local9))); if (_local3 == _jk2049){ Gfx.drawFrame(_lk34, Res.IMAGE_PENDULUM_BALL, (camera_left + _local6), (camera_top + _local7), (_vq2769[_local2] + (_dm716[_local2]._yh1686) ? 7 : 0), 7, 2, (_rm371 | _dt1890), _local11); } else { Gfx.drawFrame(_lk34, Res.IMAGE_PENDULUM_CHAIN, (camera_left + _local6), (camera_top + _local7), 0, 1, 1, (_rm371 | _dt1890), _local11); }; _local3++; }; _fb111[_local2] = _local6; _is2927[_local2] = (_local7 + (_kc709[_local2] >> 1)); break; case _hd932: _local12 = (_dm716[_local2]._he885 == -1); _local13 = (_dm716[_local2]._is2384 == 1); _vq2769[_local2] = (((_dm716[_local2]._he885)!=0) ? 2 : 0 + ((_mi1660[_local2] < 0)) ? 1 : 0); if (_mi1660[_local2] < 0){ _local3 = 1; while (_local3 < _dm716[_local2]._qv1061) { if (_dm716[_local2]._he885 != 0){ Gfx.drawFrame(_lk34, Res.IMAGE_LASER_H, (_local6 + ((_local3 * _dm716[_local2]._he885) * _ft595)), (_local7 - (_ft595 >> 1)), ((ticks % 16) >> 2), 4, 1, (_rm371 | _dt1890), _local11); } else { Gfx.drawFrame(_lk34, Res.IMAGE_LASER_V, _local6, ((_local7 - (_ft595 >> 1)) + ((_local3 * _dm716[_local2]._is2384) * _ft595)), ((ticks % 16) >> 2), 4, 1, (_rm371 | _dt1890), _local11); }; _local14++; _local3++; }; }; break; case _mb1862: _local5 = false; break; case _ex1256: _local5 = false; _local3 = 0; while (_local3 < 4) { Gfx.drawFrame(_lk34, ((_local3 == _dm716[_local2]._dt383)) ? Res.IMAGE_TOWER_EYE_BIT : Res.IMAGE_TOWER_BIT, _local6, (_local7 - (_local3 * (_kc709[_local2] >> 2))), ((_local3 == _dm716[_local2]._dt383)) ? _dm716[_local2]._dj2196 : ((_local8 + _local3) % 8), _ev894(_local4), _mc2559(_local4), _local10, _local11, _local12, _local13); _local3++; }; break; case _ry1581: _local11 = null; break; case _ea1800: if ((((_local8 == ITEM_EXTRA_TIME)) && (((ticks % 8) < 4)))){ _local8++; }; break; case _bx2494: _local5 = !(in_bonus_mode); break; }; if (_local5){ Gfx.drawFrame(_lk34, BitmapData(Res.SPRITES[_local4]), _local6, _local7, _local8, _ev894(_local4), _mc2559(_local4), _local10, _local11, _local12, _local13, _sd2825(_local4), _yd2430(_local4)); if (_rn2457){ Gfx.drawString(_lk34, ((_fb111[_local2].toString() + ", ") + _is2927[_local2].toString()), _local6, _local7, -1, null, "game_font", 16, 0xFFFFFF); }; }; }; _local2++; }; } final private function _sv1493(_arg1:int, _arg2:int):int{ return (_mx3000(_fb111[_arg1], _is2927[_arg1], _fb111[_arg2], _is2927[_arg2])); } final private function _uw2697(_arg1:int):void{ var _local2:int; if (_arg1 != -1){ if (_arg1 != Menu.OPTION_TOGGLE_SFX){ Audio.playSound(Res.SOUND_SELECT); }; switch (_arg1){ case Menu.OPTION_START_GAME: do_game_intro = true; _be1757(Res.CLASS_SWF_NINJA_FLIGHT, true, true, 0, 0); _qk2034 = DisplayObjectContainer(anim).getChildAt(0); _bu1497 = _qk2034.y; Audio.playSound(Res.SOUND_KITE_FLIGHT); break; case Menu.OPTION_HOW_TO_PLAY: startTransition(GAME_STATE_TUTORIAL); break; case Menu.OPTION_LEADERBOARD: startTransition(GAME_STATE_LEADERBOARD); break; case Menu.OPTION_SUBMIT_SCORE: Menu.in_menu = false; _hb144 = true; submitScore(); break; case Menu.OPTION_BACK_TO_MAIN_MENU: if (game_state != GAME_STATE_TITLE){ startTransition(GAME_STATE_TITLE); } else { Menu.setup(Menu.MENU_MAIN); }; break; case Menu.OPTION_EXIT_OPTIONS: if (game_state == GAME_STATE_GAME){ Menu.setup(Menu.MENU_PAUSED); } else { Menu.setup(Menu.MENU_MAIN); }; _wc2952(); break; case Menu.OPTION_EXIT_CREDITS: startTransition(GAME_STATE_TITLE); break; case Menu.OPTION_RETURN_TO_GAME: startTransition(GAME_STATE_GAME); break; case Menu.OPTION_CREDITS: startTransition(GAME_STATE_CREDITS); break; case Menu.OPTION_RESUME_GAME: _ak3114(); break; case Menu.OPTION_QUIT_GAME: if (game_state == GAME_STATE_SUMMARY){ startTransition(GAME_STATE_TITLE); } else { Menu.setup(Menu.MENU_CONFIRM_QUIT); }; break; case Menu.OPTION_QUIT_YES: if (game_state == GAME_STATE_TITLE){ Audio.stopMusic(); fscommand("quit"); } else { _uy2974 = false; startTransition(GAME_STATE_TITLE); }; break; case Menu.OPTION_QUIT_NO: if (game_state == GAME_STATE_TITLE){ Menu.setup(Menu.MENU_MAIN); } else { Menu.setup(Menu.MENU_PAUSED); }; break; case Menu.OPTION_TOGGLE_MUSIC: if (music_on){ music_on = false; Audio.stopMusic(); } else { music_on = true; switch (game_state){ case GAME_STATE_TITLE: Audio.playMusic(Res.CLASS_MUSIC_TITLE, 0); break; default: if (((!((game_state == GAME_STATE_GAME))) || ((_rl1132.value > 1)))){ Audio.playMusic(Res.CLASS_MUSIC_GAME); }; break; }; }; Menu.setup(Menu.current_menu, false); break; case Menu.OPTION_TOGGLE_SFX: sfx_on = !(sfx_on); Menu.setup(Menu.current_menu, false); Audio.playSound(Res.SOUNDS_JUMP[2]); break; case Menu.OPTION_TOGGLE_FULL_SCREEN: stage.fullScreenSourceRect = new Rectangle(0, 0, _um3215, _nv1774); if (stage.displayState == StageDisplayState.FULL_SCREEN){ stage.displayState = StageDisplayState.NORMAL; } else { stage.displayState = StageDisplayState.FULL_SCREEN; }; Menu.setup(Menu.current_menu, false); break; case Menu.OPTION_MEGADEV: navigateToURL(new URLRequest("http://www.megadev.co.uk"), "_blank"); break; case Menu.OPTION_MORE_GAMES: navigateToURL(new URLRequest("http://www.megadev.co.uk/games.html"), "_blank"); break; case Menu.OPTION_OPTIONS: Menu.setup(Menu.MENU_OPTIONS); break; case Menu.OPTION_ACHIEVEMENTS: startTransition(GAME_STATE_ACHIEVEMENTS); break; case Menu.OPTION_VIEW_GAME_STATS: startTransition(GAME_STATE_VIEW_STATS); break; case Menu.OPTION_RETRY: if ((((game_state == GAME_STATE_SUMMARY)) && ((anim == null)))){ Menu.current_menu_item = -1; Menu.mouse_over_menu_item = -1; _be1757(Res.CLASS_SWF_RETRY, false, true); } else { Menu.setup(Menu.MENU_CONFIRM_RETRY); }; break; case Menu.OPTION_RETRY_YES: _uy2974 = false; startTransition(GAME_STATE_GAME); break; case Menu.OPTION_RETRY_NO: Menu.setup(Menu.MENU_PAUSED); break; case Menu.OPTION_NEXT_PAGE: _oj1237++; _qg2955(Menu.OPTION_NEXT_PAGE); break; case Menu.OPTION_PREV_PAGE: _oj1237--; _qg2955(Menu.OPTION_PREV_PAGE); break; case Menu.OPTION_REDEFINE_KEYS: startTransition(GAME_STATE_REDFINE_KEYS); break; case Menu.OPTION_FINISHED_DEFINING_KEYS: _wc2952(); startTransition((_uy2974) ? GAME_STATE_GAME : GAME_STATE_TITLE); break; case Menu.OPTION_DEFAULT_KEYS: _ny2288(); _gn1375 = 0; break; case Menu.OPTION_MANUAL: startTransition(GAME_STATE_MANUAL); break; case Menu.OPTION_RETURN_TO_SUMMARY: startTransition(GAME_STATE_SUMMARY); break; }; }; } final private function _vw59():void{ var _local1:int; _ty2462 = (_ty2462 + (transition_dir * _ee1184)); if ((((_ty2462 <= -1)) || ((_ty2462 >= 2)))){ if (transition_dir == TRANSITION_IN){ Menu.reset(); do_game_intro = false; paused = false; prev_game_state = game_state; game_state = _ap40; switch (_ap40){ case GAME_STATE_DEV_LOGO: stage_ref = stage; stage.addEventListener(KeyboardEvent.KEY_DOWN, _lo2659); stage.addEventListener(KeyboardEvent.KEY_UP, _hi3189); stage.addEventListener(MouseEvent.MOUSE_UP, _pj3206); stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove); stage.addEventListener(Event.DEACTIVATE, _oo1765); stage.quality = StageQuality.HIGH; Res.loadText(); _be1757(Res.CLASS_SWF_DEV_LOGO, true, true, 50, -60); break; case GAME_STATE_TITLE: _rd1583 = 0; _tq2458 = 0; _bm1446(); Menu.setup(Menu.MENU_MAIN); Audio.playMusic(Res.CLASS_MUSIC_TITLE, 0); break; case GAME_STATE_GAME: if (_uy2974){ pause(false); } else { _nx2636(); }; break; case GAME_STATE_SUMMARY: if (prev_game_state == GAME_STATE_GAME){ _uy2974 = false; retry_anim_finished = false; if (_wy295.value >= hiscore.value){ hiscore.setValue(_wy295.value); }; prev_player_floor = _ix2663; if (_ix2663 > best_player_floor){ best_player_floor = _ix2663; }; _wc2952(); _cd3054 = getXMLString(("advice_" + _ij2524(_dm1482))); _eq1957 = 0; _px2108 = new Array(_ga397); _kx1948 = new Array(_ga397); _local1 = 0; while (_local1 < _ga397) { _px2108[_local1] = _ij2524((_um3215 - 40)); _kx1948[_local1] = (95 + _ij2524(70)); _local1++; }; _kx1948.sort(Array.NUMERIC); }; Menu.setup(Menu.MENU_GAME_OVER); break; case GAME_STATE_VIEW_STATS: Menu.addOption("", Menu.OPTION_RETURN_TO_SUMMARY, _pa616, (_nv1774 - 8), (BOTTOM | _rm371)); Menu.findMenuTop(); break; case GAME_STATE_CREDITS: Menu.addOption("", Menu.TITLE_CREDITS, _pa616, 40, (TOP | _rm371)); Menu.addOption("", Menu.OPTION_EXIT_CREDITS, (_um3215 - 28), (_nv1774 - 8), (BOTTOM | RIGHT)); Menu.addOption("", Menu.OPTION_MEGADEV, 9, (_nv1774 + 3), (BOTTOM | LEFT)); Menu.findMenuTop(); break; case GAME_STATE_TUTORIAL: case GAME_STATE_MANUAL: case GAME_STATE_ACHIEVEMENTS: _oj1237 = 0; _qg2955(Menu.OPTION_NEXT_PAGE); break; case GAME_STATE_REDFINE_KEYS: _ac1382(); _ac2307(); break; }; transition_dir = 0; startTransition(game_state, TRANSITION_OUT); } else { transition_dir = 0; }; }; } final private function _am2760():void{ _bs970 = _jv234; _he494 = _nv992; seconds = (_ps3060 = -1); _mm509.setValue(0); _gr934 = false; _og1683[_ku2801] = -1; _og1683[_il1958] = 20; _og1683[_ba1128] = 5; _me422[_tm2076] = STATE_ACTIVE; _vq2769[_tm2076] = 0; _tu1634 = 0; } final private function _gk2194(_arg1:int):void{ _fb111[_arg1] = (_fb111[_arg1] + _qr767[_arg1]); _is2927[_arg1] = (_is2927[_arg1] + _yg1495[_arg1]); var _local2:int = _kl1762(_fb111[_arg1]); var _local3:int = _ci1051(_is2927[_arg1]); var _local4:int = _dm716[_arg1].align; var _local5:int = ((_yg1495[_arg1] == 0)) ? ((_qr767[_arg1] < 0)) ? -1 : 1 : 0; var _local6:int = ((_local5 == 0)) ? ((_yg1495[_arg1] < 0)) ? -1 : 1 : 0; switch (_local4){ case TOP: case BOTTOM: if (!_bo3091[_local2][(_local3 + ((_local4 == BOTTOM)) ? 1 : -1)]){ _yg1495[_arg1] = ((_local4 == BOTTOM)) ? FUZZY_SPEED : -(FUZZY_SPEED); _dm716[_arg1].align = ((_local5 > 0)) ? LEFT : RIGHT; _qr767[_arg1] = 0; } else { if (_bo3091[_local2][_local3]){ _yg1495[_arg1] = ((_local4 == BOTTOM)) ? -(FUZZY_SPEED) : FUZZY_SPEED; _dm716[_arg1].align = ((_local5 > 0)) ? RIGHT : LEFT; _fb111[_arg1] = (_fb111[_arg1] - _qr767[_arg1]); _qr767[_arg1] = 0; }; }; break; case LEFT: case RIGHT: if (!_bo3091[(_local2 + ((_local4 == LEFT)) ? -1 : 1)][_local3]){ _qr767[_arg1] = ((_local4 == LEFT)) ? -(FUZZY_SPEED) : FUZZY_SPEED; _dm716[_arg1].align = ((_local6 > 0)) ? TOP : BOTTOM; _yg1495[_arg1] = 0; } else { if (_bo3091[_local2][_local3]){ _qr767[_arg1] = ((_local4 == RIGHT)) ? -(FUZZY_SPEED) : FUZZY_SPEED; _dm716[_arg1].align = ((_local6 < 0)) ? TOP : BOTTOM; _is2927[_arg1] = (_is2927[_arg1] - _yg1495[_arg1]); _yg1495[_arg1] = 0; }; }; break; }; } final private function _fi169(_arg1:int):void{ switch (_au294[_arg1]){ case _vr317: return; }; _xf3150 = ((_kc709[_arg1] > _ft595)) ? _ft595 : _kc709[_arg1]; while (true) { _fy1567 = (((_fb111[_arg1] + _qr767[_arg1]) - (_qu2081[_arg1] >> 1)) / _ft595); _og200 = (((_fb111[_arg1] + _qr767[_arg1]) + (_qu2081[_arg1] >> 1)) / _ft595); _sb2711 = ((_is2927[_arg1] - _kc709[_arg1]) / _ft595); _nr2804 = ((((_is2927[_arg1] - _kc709[_arg1]) + _xf3150) - 1) / _ft595); if ((((((((_fy1567 >= 0)) && ((_og200 < _im3139)))) && ((_sb2711 >= 0)))) && ((_nr2804 < _uv708)))){ if (_qr767[_arg1] > 0){ if (((_bo3091[_og200][_sb2711]) || (_bo3091[_og200][_nr2804]))){ _fb111[_arg1] = ((_og200 * _ft595) - ((_qu2081[_arg1] >> 1) + 1)); _hr598(_arg1); }; } else { if (_qr767[_arg1] < 0){ if (((_bo3091[_fy1567][_sb2711]) || (_bo3091[_fy1567][_nr2804]))){ _fb111[_arg1] = (((_fy1567 + 1) * _ft595) + (_qu2081[_arg1] >> 1)); _hr598(_arg1); }; }; }; }; if (_xf3150 == _kc709[_arg1]){ break; }; _xf3150 = (_xf3150 + _ft595); if (_xf3150 > _kc709[_arg1]){ _xf3150 = _kc709[_arg1]; }; }; _lu2451[_arg1] = false; _xf3150 = ((_qu2081[_arg1] > _ft595)) ? _ft595 : _qu2081[_arg1]; while (true) { _fy1567 = ((_fb111[_arg1] - (_qu2081[_arg1] >> 1)) / _ft595); _og200 = (((_fb111[_arg1] - (_qu2081[_arg1] >> 1)) + _xf3150) / _ft595); _sb2711 = (((_is2927[_arg1] - _kc709[_arg1]) + _yg1495[_arg1]) / _ft595); _nr2804 = ((_is2927[_arg1] + _yg1495[_arg1]) / _ft595); if ((((((((_fy1567 >= 0)) && ((_og200 < _im3139)))) && ((_sb2711 >= 0)))) && ((_nr2804 < _uv708)))){ if (_yg1495[_arg1] > 0){ if (((_bo3091[_fy1567][_nr2804]) || (_bo3091[_og200][_nr2804]))){ _is2927[_arg1] = (_nr2804 * _ft595); _bd418(_arg1); }; } else { if (_yg1495[_arg1] < 0){ if (((_bo3091[_fy1567][_sb2711]) || (_bo3091[_og200][_sb2711]))){ _kg2461(_arg1); }; }; }; }; if (_xf3150 == _qu2081[_arg1]){ break; }; _xf3150 = (_xf3150 + _ft595); if (_xf3150 > _qu2081[_arg1]){ _xf3150 = _qu2081[_arg1]; }; }; } final private function update(_arg1:Event):void{ if (!_rn2457){ tick(); }; _cx2251 = getTimer(); _ap1764(); } final private function _sd2825(_arg1:int):int{ return (_ym2351[(_arg1 << 1)]); } final private function _df629(_arg1:int, _arg2:int=-1, _arg3:int=-1, _arg4:int=-1):void{ _arg1 = (_arg1 * (_mm509.value + 1)); if (!debug){ _wy295.addValue(_arg1); if (_wy295.value >= 1000000){ Achievements.unlock(Achievements.ACHIEVEMENT_1000000_POINTS); } else { if (_wy295.value >= 500000){ Achievements.unlock(Achievements.ACHIEVEMENT_500000_POINTS); } else { if (_wy295.value >= 250000){ Achievements.unlock(Achievements.ACHIEVEMENT_250000_POINTS); } else { if (_wy295.value >= 100000){ Achievements.unlock(Achievements.ACHIEVEMENT_100000_POINTS); } else { if (_wy295.value >= 50000){ Achievements.unlock(Achievements.ACHIEVEMENT_50000_POINTS); }; }; }; }; }; _tu1634 = (_tu1634 + _arg1); if (_tu1634 >= 50000){ Achievements.unlock(Achievements.ACHIEVEMENT_50000_POINTS_WITH_ONE_LIFE); }; }; if (_arg2 != -1){ Messages.add(_arg1.toString(), _fb111[_arg2], (_is2927[_arg2] - _ft595), (_rm371 | BOTTOM)); } else { if (_arg3 != -1){ Messages.add(_arg1.toString(), _arg3, (_arg4 - _ft595), (_rm371 | BOTTOM)); }; }; } final private function _rh1729(_arg1:int, _arg2:Boolean=false):int{ return (((_arg1 * _ft595) - (_arg2) ? (_ft595 >> 1) : 0)); } final private function _la3094():Boolean{ if ((((_bs970 > 0)) || ((_mt1708 > 0)))){ return (false); }; switch (_me422[_tm2076]){ case STATE_DEAD: case STATE_ENTERING_DOOR: case STATE_IN_DOOR: case STATE_EXITING_DOOR: return (false); }; return (true); } final private function _hg309(_arg1:int):void{ switch (_me422[_arg1]){ case STATE_DEAD: if (("_le3056" in _dm716[_arg1])){ if ((((_vq2769[_arg1] < _dm716[_arg1]._le3056)) && (((ticks % 4) == 0)))){ var _local2 = _vq2769; var _local3 = _arg1; var _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; }; }; break; case STATE_ACTIVE: case STATE_STATIC: switch (_au294[_arg1]){ case _kp768: if (((_dm716[_arg1]._fp2914) && (!((_me422[_tm2076] == STATE_IN_DOOR))))){ if ((ticks % 4) == 0){ _local2 = _vq2769; _local3 = 0; _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; if (_local4 == 5){ _me422[_tm2076] = STATE_ACTIVE; _bs970 = _jv234; }; if (_vq2769[0] >= _ev894(_kp768)){ _tk2059(0); }; }; }; break; case _rr1115: _vq2769[_arg1] = ((((_mi1660[_arg1] > 30)) || (((ticks % 2) == 0)))) ? 0 : 1; break; case _tr2628: case _do3027: case _qk2412: if (_kp2905(_arg1)){ _tk2059(_arg1); }; break; case _ol1741: if (_me422[_arg1] != STATE_STATIC){ _kp2905(_arg1); }; break; case _sc2870: if ((ticks % 3) == 0){ if (_me422[_arg1] == STATE_STATIC){ _local2 = _vq2769; _local3 = _arg1; _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; if (_local4 >= _dm716[_arg1]._ky932){ _vq2769[_arg1] = 0; }; } else { if (_vq2769[_arg1] < _dm716[_arg1]._dx1012){ _local2 = _vq2769; _local3 = _arg1; _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; }; }; }; break; default: if (("_tg1046" in _dm716[_arg1])){ if (((((ticks % 2) == 0)) && ((++_vq2769[_arg1] > _dm716[_arg1]._tg1046)))){ _vq2769[_arg1] = 0; }; }; break; }; break; }; } final private function _nm1381(_arg1:int, _arg2:int):Boolean{ return ((((((((_arg1 > -1)) && ((_arg1 < _im3139)))) && ((_arg2 > -1)))) && ((_arg2 < _uv708)))); } final private function _pg102():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:int; Gfx.drawFrame(_lk34, Res.IMAGE_WEAPON_ICONS, _kv2476, (_ow370 + _ci2912)); _local1 = _il1958; while (_local1 < _be1851) { if (_og1683[_local1] > 0){ _local3 = (_kv2476 + (_local1 * _md475)); _mj651 = _og1683[_local1].toString(); _gx110 = _mj651.length; _local2 = 0; while (_local2 < _gx110) { Gfx.drawFrame(_lk34, Res.IMAGE_FONT_MEDIUM, (((_local3 + _md475) - 2) - (_local2 * 18)), ((_ow370 + 40) + _ci2912), (_mj651.charCodeAt(((_gx110 - 1) - _local2)) - 48), 11, 1, (TOP | RIGHT)); _local2++; }; }; _local1++; }; Gfx.drawFrame(_lk34, Res.IMAGE_HUD_FLOOR, _kv2476, ((_ow370 - 4) + _ci2912), 0, 1, 1, (BOTTOM | LEFT)); _mj651 = _ix2663.toString(); _gx110 = _mj651.length; _local1 = 0; while (_local1 < _gx110) { Gfx.drawFrame(_lk34, Res.IMAGE_FONT_SMALL, ((_kv2476 + Res.IMAGE_HUD_FLOOR.width) + (_local1 * 12)), ((_ow370 - 4) + _ci2912), (_mj651.charCodeAt(_local1) - 48), 10, 1, (BOTTOM | LEFT)); _local1++; }; _local1 = 0; while (_local1 < 2) { _mj651 = ((_local1 == 0)) ? _wy295 : hiscore.toString(); _gx110 = _mj651.length; _local2 = 0; while (_local2 < 10) { Gfx.drawFrame(_lk34, Res.IMAGE_FONT_MEDIUM, (((_local1 == 0)) ? 172 : 636 - (_local2 * 17)), (4 - _ci2912), ((_local2 >= _gx110)) ? 0 : (_mj651.charCodeAt(((_gx110 - 1) - _local2)) - 48), 11, 1, (TOP | RIGHT)); _local2++; }; _local1++; }; Gfx.drawFrame(_lk34, Res.IMAGE_FONT_MEDIUM, 450, (4 - _ci2912), 10, 11); _local1 = 0; while (_local1 < _rl1132.value) { Gfx.drawFrame(_lk34, Res.IMAGE_HEALTH_BAR_BIT, (_cp2807 + (_local1 * _wj3176)), (6 - _ci2912), ((((_local1 >= _rl1132.value)) || ((((((_mt1708 > 0)) && ((_local1 == (_rl1132.value - 1))))) && (((ticks % 2) == 0)))))) ? 1 : 0); _local1++; }; Gfx.drawFrame(_lk34, Res.IMAGE_HEALTH_BAR_LEFT, _cp2807, (2 - _ci2912), 0, 1, 1, (TOP | RIGHT)); Gfx.drawFrame(_lk34, Res.IMAGE_HEALTH_BAR_RIGHT, (_cp2807 + (_rl1132.value * _wj3176)), (4 - _ci2912)); Gfx.drawFrame(_lk34, Res.IMAGE_HUD_TIME, 548, (376 + _ci2912)); if ((((((_mt1708 > 0)) || ((_he494 > 5000)))) || (((ticks % 2) == 0)))){ _mj651 = _hu906(_he494); _gx110 = _mj651.length; _local1 = 0; while (_local1 < 2) { Gfx.drawFrame(_lk34, Res.IMAGE_FONT_LARGE, (636 - (_local1 * 54)), (404 + _ci2912), ((_local1 >= _gx110)) ? 0 : (_mj651.charCodeAt(((_gx110 - 1) - _local1)) - 48), 10, 1, (TOP | RIGHT)); _local1++; }; }; if (((!((_uv690 == -1))) && (((ticks % 10) > 2)))){ _local3 = Math.max(20, (camera_left + _fb111[_uv690])); _local3 = Math.min((_um3215 - 20), _local3); _local4 = Math.min((camera_top + _is2927[_uv690]), (_nv1774 - 20)); Gfx.drawRotatedImage(_lk34, Res.IMAGE_TIMER_INDICATOR_ARROW, _local3, _local4, (_rm371 | _dt1890), null, (_qm824(_fb111[_tm2076], _is2927[_tm2076], _fb111[_uv690], _is2927[_uv690]) + TWO_SEVENTY_DEGREES)); Gfx.drawFrame(_lk34, Res.IMAGE_INDICATORS, _local3, _local4, _vq2769[_uv690], 7, 1, (_dt1890 | _rm371)); }; } final private function _fj3113():void{ var _local1:int; if ((ticks % 2) == 0){ _local1 = 0; switch (_me422[_tm2076]){ case STATE_DEAD: if (_vq2769[_tm2076] < 6){ var _local2 = _vq2769; var _local3 = _tm2076; var _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; }; if ((((_rl1132.value == 1)) && ((_mt1708 > 20)))){ Particles.add(_fb111[_tm2076], (_is2927[_tm2076] - 8), Particles.DEATH_BLOOD, 0x880000, 1, 0); }; break; case STATE_SOMERSAULTING: if (_vq2769[_tm2076] < 8){ _local2 = _vq2769; _local3 = _tm2076; _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; }; break; case STATE_THROWING: switch (_local4){ case 5: case 9: case 13: case 17: _me422[_tm2076] = STATE_ACTIVE; _vq2769[_tm2076] = 0; break; }; break; case STATE_ACTIVE: if (!_lu2451[_tm2076]){ _local1 = ((_og1683[_il1958] == 0)) ? ((_yy845 > 0)) ? 16 : 8 : 0; if (Math.abs(_yg1495[_tm2076]) < 2){ _vq2769[_tm2076] = (53 + _local1); } else { if (_yg1495[_tm2076] > 0){ if ((((_vq2769[_tm2076] < (54 + _local1))) || ((++_vq2769[_tm2076] > (59 + _local1))))){ _vq2769[_tm2076] = (54 + _local1); }; } else { _vq2769[_tm2076] = (52 + _local1); }; }; } else { if (Math.abs(_qr767[_tm2076]) < 0.1){ _local1 = ((_og1683[_il1958] == 0)) ? 20 : 0; if ((((_vq2769[_tm2076] < _local1)) || ((++_vq2769[_tm2076] > (19 + _local1))))){ _vq2769[_tm2076] = _local1; }; } else { _local1 = ((_og1683[_il1958] == 0)) ? 4 : 0; if ((((_vq2769[_tm2076] < (40 + _local1))) || ((++_vq2769[_tm2076] > (43 + _local1))))){ _vq2769[_tm2076] = (40 + _local1); }; }; }; break; case STATE_SLASHING: _local2 = _vq2769; _local3 = _tm2076; _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; if (_local4 > 2){ _me422[_tm2076] = STATE_ACTIVE; _vq2769[_tm2076] = 0; }; break; case STATE_ATTACKING_DOWNWARDS: _local2 = _vq2769; _local3 = _tm2076; _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; if (_local4 > 14){ _vq2769[_tm2076] = 0; }; break; }; }; } final private function _nx306():void{ var _local1:int; var _local2:int; var _local3 = -1; var _local4:int = Math.min((1 + (_ix2663 / 10)), _fc1727.length); var _local5:int = _fc1727[_ij2524(_local4)]; if ((((_local5 == _wr2374)) && ((((_rl1132.value < _cj841)) || ((_lx717 < 50)))))){ _local5 = _cp2540; }; if (_local5 == _wr2374){ _lx717 = 0; }; switch (_local5){ case _hd932: if (Math.random() < 0.5){ _local1 = _ss989(_iq2946, _aj1508, _nt1982); _local2 = _nt1982; _local3 = BOTTOM; } else { _local1 = _uy967(_iq2946, _aj1508, _nt1982); _local2 = (_nt1982 + 2); _local3 = TOP; }; if (_local1 != -1){ _pa1199(_local5, -1, _ww3153(_local1, true), (_rh1729(_local2) + ((_local3 == TOP)) ? 1 : 0), -1, _local3); _jq2473(_local1, (_local2 - 1), _ht195); }; break; default: _local1 = _ss989(_iq2946, _aj1508, _nt1982); if (_local1 != -1){ _pa1199(_local5, -1, _ww3153(_local1, true), _rh1729(_nt1982), -1, _local3); _jq2473(_local1, (_nt1982 - 1), _ht195); }; break; }; } final private function _bm1446():void{ var _local1:SoundTransform; if (anim != null){ _local1 = anim.soundTransform; _local1.volume = 0; anim.soundTransform = _local1; anim.stop(); removeChild(anim); anim = null; }; } final private function _jq3114(_arg1:int, _arg2:int):Boolean{ left = (((_fb111[_arg1] + _qr767[_arg1]) - (_qu2081[_arg1] >> 1)) / _ft595); right = (((_fb111[_arg1] + _qr767[_arg1]) + (_qu2081[_arg1] >> 1)) / _ft595); var _local3:int = ((_is2927[_arg1] + ((_arg2 > 0)) ? 1 : (-(_kc709[_arg1]) - 2)) / _ft595); if (((!(_uh46(left, _local3))) || (!(_uh46(right, _local3))))){ return (true); }; return (false); } final private function _hu906(_arg1:Number):String{ var _local2:int = Math.floor((_arg1 / 1000)); return ((((_local2 < 10)) ? "0" : "" + _local2.toString())); } final private function _uy967(_arg1:int, _arg2:int, _arg3:int):int{ var _local4 = -1; var _local5:int; do { _local4 = (_arg1 + _ij2524(_arg2)); } while (((((!(_bo3091[_local4][_arg3])) || (_bo3091[_local4][(_arg3 + 1)]))) && ((_temp1 < _ur2520)))); return (_local4); } final private function _mx3000(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Number{ return (Math.sqrt((Math.pow((_arg1 - _arg3), 2) + Math.pow((_arg2 - _arg4), 2)))); } final private function _xt1110(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Boolean=false):void{ if (_arg4){ _dm716[_arg1]._gn2728 = (-(Math.cos(_arg2)) * _arg3); _dm716[_arg1]._aw2470 = (-(Math.sin(_arg2)) * _arg3); } else { _qr767[_arg1] = (-(Math.cos(_arg2)) * _arg3); _yg1495[_arg1] = (-(Math.sin(_arg2)) * _arg3); }; } final private function _cl2965(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{ var _local5:int; while (_local5 < _mm509.value) { Gfx.drawFrame(_lk34, Res.IMAGE_FAIRY, (camera_left + _cy1461[_local5]), ((camera_top + _ex154[_local5]) - _ft595), (((_local5 % 3) * 2) + (ticks % 2)), 2, 3); _local5++; }; var _local6 = (_my2247[_tm2076] > 0); switch (_me422[_tm2076]){ case STATE_ACTIVE: if (((_wm1195) && (_lu2451[_tm2076]))){ Gfx.drawFrame(_lk34, Res.IMAGE_PLAYER_CROUCHED, _arg1, _arg2, _arg3, 52, 1, _arg4, null, _local6); } else { Gfx.drawFrame(_lk34, Res.IMAGE_PLAYER, _arg1, _arg2, _arg3, 78, 1, _arg4, null, _local6); }; break; case STATE_SOMERSAULTING: Gfx.drawFrame(_lk34, Res.IMAGE_PLAYER_SOMERSAULT, _arg1, _arg2, _arg3, 9, 1, _arg4, null, _local6); break; case STATE_THROWING: Gfx.drawFrame(_lk34, Res.IMAGE_PLAYER_THROW_ITEM, _arg1, _arg2, _arg3, 17, 1, _arg4, null, _local6); break; case STATE_DEAD: Gfx.drawFrame(_lk34, Res.IMAGE_PLAYER_DIE, _arg1, _arg2, _arg3, 7, 1, _arg4, null, _local6); break; case STATE_SLASHING: Gfx.drawFrame(_lk34, Res.IMAGE_PLAYER_SLASH, _arg1, _arg2, _arg3, 3, 1, _arg4, null, _local6); break; case STATE_ATTACKING_DOWNWARDS: Gfx.drawFrame(_lk34, Res.IMAGE_PLAYER_ATTACK_DOWN, _arg1, _arg2, _arg3, 15, 1, _arg4, null, _local6); break; }; if ((((_yy845 > 0)) && (!(_lu2451[_tm2076])))){ Gfx.drawFrame(_lk34, Res.IMAGE_PLAYER_SWORD, _arg1, (_arg2 - 26), 0, 1, 1, ((_local6) ? LEFT : RIGHT | TOP), null, _local6); }; } final private function _kg2461(_arg1:int):void{ _is2927[_arg1] = (((_sb2711 + 1) * _ft595) + _kc709[_arg1]); switch (_au294[_arg1]){ case _ol1741: _dm716[_arg1]._kj3056 = true; _me422[_arg1] = STATE_STATIC; _qr767[_arg1] = (_yg1495[_arg1] = 0); Audio.playSound(Res.SOUND_SHURIKEN_LAND, _qw1296(_arg1), _pj711(_arg1)); break; case _tb76: _yg1495[_arg1] = -(_yg1495[_arg1]); Audio.playSound(Res.SOUND_BOUNCER_HIT_WALL, _qw1296(_arg1), _pj711(_arg1)); break; default: _yg1495[_arg1] = (-(_yg1495[_arg1]) * _vv1207[_arg1]); break; }; } final private function _bm1478(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Boolean{ var _local9:int; var _local10:int; var _local11:int; var _local12:int; var _local13:int; var _local14:int; var _local15:int; if (_me422[_arg1] == STATE_DEAD){ return (false); }; var _local5:Boolean; var _local6:Boolean; var _local7:int = _au294[_arg1]; var _local8:int = _is2927[_arg3]; switch (_local7){ case _ex1256: if (_arg4 != _ba1128){ _local8 = (_local8 - ((_arg4 == _ku2801)) ? (_kc709[_tm2076] >> 1) : 0); _local11 = ((_is2927[_arg1] - _local8) / (_kc709[_arg1] >> 2)); _local5 = (((_local11 == _dm716[_arg1]._dt383)) || ((((_arg4 == _ku2801)) && ((Math.abs((_local11 - _dm716[_arg1]._dt383)) < 2))))); }; break; case _sf1894: switch (_arg4){ case _il1958: _local5 = (((((_qr767[_arg1] < 0)) && ((_qr767[_arg3] < 0)))) || ((((_qr767[_arg1] > 0)) && ((_qr767[_arg3] > 0))))); break; case _ba1128: _local5 = true; break; case _ku2801: _local5 = (_my2247[_tm2076] == _my2247[_arg1]); break; }; break; case _wr2374: _xt1110(_arg1, _qm824(_fb111[_tm2076], _is2927[_tm2076], _fb111[_arg1], _is2927[_arg1]), 10, true); break; case _cg785: case _gw1216: case _tb76: case _gy2860: case _hd932: case _nd3022: _local5 = (_arg4 == _ba1128); break; }; if (_local5){ Particles.add(_fb111[((_arg4 == _il1958)) ? _arg3 : _arg1], ((_arg4)!=_ba1128) ? _local8 : (_is2927[_arg1] - _ij2524(_kc709[_arg1])), Particles.COLOURED, _dm716[_arg1]._gp1063); if (Res.SOUNDS_DEATH[_local7] != null){ Audio.playSound(Res.SOUNDS_DEATH[_local7][_ij2524(Res.SOUNDS_DEATH[_local7].length)], _qw1296(_arg1), _pj711(_arg1)); }; if ((_ms2528[_arg1] = (_ms2528[_arg1] - _arg2)) <= 0){ _ul1403++; var _local16 = _fh2778; var _local17 = _dm716[_arg1]._up141; var _local18 = (_local16[_local17] + 1); _local16[_local17] = _local18; _df629(_dm716[_arg1]._kx2846, -1); Messages.add((_dm716[_arg1]._kx2846 * (_mm509.value + 1)).toString(), _fb111[_arg1], (_is2927[_arg1] - _ft595), (_rm371 | BOTTOM)); _rn2505[_au294[_arg1]] = true; _local6 = true; if (_rn2505.indexOf(false) == -1){ Achievements.unlock(Achievements.ACHIEVEMENT_KILL_ONE_OF_EACH); }; if (_ul1403 == 1){ Achievements.unlock(Achievements.ACHIEVEMENT_FIRST_KILL); }; if ((((_arg4 == _ba1128)) && ((++_tp1268 == 100)))){ Achievements.unlock(Achievements.ACHIEVEMENT_100_BOMB_KILLS); }; if (_ul1403 == 500){ Achievements.unlock(Achievements.ACHIEVEMENT_500_KILLS); } else { if (_ul1403 == 250){ Achievements.unlock(Achievements.ACHIEVEMENT_250_KILLS); } else { if (_ul1403 == 100){ Achievements.unlock(Achievements.ACHIEVEMENT_100_KILLS); } else { if (_ul1403 == 50){ Achievements.unlock(Achievements.ACHIEVEMENT_50_KILLS); }; }; }; }; if (Math.random() < _dm716[_arg1]._wq2071){ _local12 = _kl1762(_fb111[_arg1]); _local13 = _ci1051(_is2927[_arg1]); _local14 = 0; _local9 = (_local12 - 1); while (_local9 < (_local12 + 2)) { _local10 = (_local13 - 2); while (_local10 < _local13) { if (_uh46(_local9, _local10)){ _local14++; }; _local10++; }; _local9++; }; if (_local14 == 0){ _local15 = _pa1199(_ea1800, -1, _fb111[_arg1], _is2927[_arg1], -1, (_rm371 | BOTTOM), -1); _yg1495[_local15] = (-10 - _ij2524(10)); _qr767[_local15] = (-10 + _ij2524(20)); }; }; if (("_ur743" in _dm716[_arg1])){ _me422[_arg1] = STATE_DEAD; _vq2769[_arg1] = _dm716[_arg1]._ur743; _qr767[_arg1] = 0; } else { switch (_au294[_arg1]){ case _qr42: Particles.add(_fb111[_arg1], _is2927[_arg1], Particles.FEATHER); break; case _sc2870: _pa1199(_do3027, -1, _fb111[_arg1], _is2927[_arg1]); break; }; _tk2059(_arg1); }; } else { switch (_au294[_arg1]){ case _or1318: _local10 = _ci1051(_is2927[_arg1]); do { _local9 = _ij2524(_im3139); } while ((((Math.abs((_local9 - _ft767)) < 2)) || (_bo3091[_local9][(_local10 - 1)]))); _fb111[_arg1] = _ww3153(_local9, true); _vq2769[_arg1] = 1; Audio.playSound(Res.SOUND_WIZARD_TELEPORT, _qw1296(_arg1), _pj711(_arg1)); break; }; }; } else { if (_arg4 == _il1958){ Audio.playSound(Res.SOUND_HIT_SHIELD, _qw1296(_arg1), _pj711(_arg1)); }; }; return (_local6); } final private function _hi3189(_arg1:KeyboardEvent):void{ var _local2:int; var _local3:Boolean; if (transition_dir == 0){ switch (game_state){ case GAME_STATE_DEV_LOGO: _bm1446(); startTransition(GAME_STATE_TITLE); break; case GAME_STATE_REDFINE_KEYS: if (_xy429.indexOf(_arg1.keyCode) != -1){ _local3 = true; _local2 = 0; while (_local2 < _nm2862) { if (((!((_local2 == _gn1375))) && ((keys[_local2] == _arg1.keyCode)))){ _local3 = false; _local2 = _nm2862; }; _local2++; }; if (_local3){ keys[_gn1375] = _arg1.keyCode; if (++_gn1375 >= _nm2862){ _gn1375 = 0; }; Audio.playSound(Res.SOUND_COLLECT_SHURIKENS); } else { Audio.playSound(Res.SOUNDS_SWORD_SWIPE[0]); }; }; break; default: if (Menu.in_menu){ if ((((Menu.menu_transition <= 0)) && (((!((game_state == GAME_STATE_SUMMARY))) || ((anim == null)))))){ switch (_arg1.keyCode){ case Keyboard.F3: if (((!(debug)) && ((Preloader.host.length == 0)))){ debug = true; _by268 = new Stats(); Audio.playSound(Res.SOUNDS_JUMP[2]); }; break; case Keyboard.ESCAPE: case keys[_vv1581]: _ak3114(); break; case keys[_rv3164]: case keys[_tr1427]: if (--Menu.current_menu_item < Menu.menu_top){ Menu.current_menu_item = (Menu.last_option_index - 1); }; Menu.mouse_over_menu_item = -1; Audio.playSound(Res.SOUND_ROLLOVER); break; case keys[_nw3014]: case keys[_yi1277]: if (++Menu.current_menu_item >= Menu.last_option_index){ Menu.current_menu_item = Menu.menu_top; }; Menu.mouse_over_menu_item = -1; Audio.playSound(Res.SOUND_ROLLOVER); break; case 13: case 32: case keys[_vq2821]: case keys[_du232]: case keys[_lv2265]: _oa2660(Menu.current_menu_item); break; }; }; } else { if (game_state == GAME_STATE_GAME){ switch (_arg1.keyCode){ case Keyboard.ESCAPE: case keys[_vv1581]: _ak3114(); break; case keys[_rv3164]: _be1660 = false; break; case keys[_nw3014]: _wm1195 = false; if (((_lu2451[_tm2076]) && ((_mt1708 <= 0)))){ if (_vw2092 > 0){ if (_pw1735(_tm2076, 0, 0)){ _sl3095(); }; } else { _vw2092 = 100; }; }; break; case keys[_tr1427]: _aw2334 = false; break; case keys[_yi1277]: _gg2726 = false; break; case keys[_vq2821]: _dk300 = false; break; case keys[_du232]: _mk2260 = false; break; case keys[_lv2265]: if (_sh488){ _sh488 = false; _jt2948(_ba1128); }; break; case Keyboard.SPACE: if (_rn2457){ tick(); }; break; case Keyboard.NUMPAD_MULTIPLY: if (debug){ _rn2457 = !(_rn2457); }; break; case Keyboard.END: if (debug){ _rl1132.setValue(1); _do502(true, -1, KILL_TIME); }; break; case Keyboard.NUMPAD_SUBTRACT: if (debug){ if (--_mf2985 < 0){ _mf2985 = (_fc1727.length - 1); }; _lb2276 = 100; }; break; case Keyboard.NUMPAD_ADD: if (debug){ if (++_mf2985 >= _fc1727.length){ _mf2985 = 0; }; _lb2276 = 100; }; break; case Keyboard.NUMPAD_ENTER: case Keyboard.ENTER: if (((debug) && ((game_state == GAME_STATE_GAME)))){ _pa1199(_fc1727[_mf2985], -1, (_fb111[_tm2076] + (_ft595 << 1)), _is2927[_tm2076]); }; break; case Keyboard.CONTROL: if (debug){ if (!_lg1675){ addChild(_by268); } else { removeChild(_by268); }; _lg1675 = !(_lg1675); }; break; case Keyboard.F1: if (debug){ Achievements.unlock(0); }; break; }; }; }; break; }; }; } final private function _wv1130(_arg1:int):void{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:int; var _local2:int = _au294[_arg1]; if (_qr767[_arg1] != 0){ _my2247[_arg1] = ((_qr767[_arg1] < 0)) ? -1 : 1; } else { if (((("_nj251" in _dm716[_arg1])) && (_dm716[_arg1]._nj251))){ _my2247[_arg1] = ((_fb111[_tm2076] < _fb111[_arg1])) ? -1 : 1; }; }; switch (_local2){ case _hd932: if ((((_mi1660[_arg1] <= 0)) || (((((camera_top + _is2927[_arg1]) > 0)) && (((camera_top + _is2927[_arg1]) < _nv1774)))))){ var _local12 = _mi1660; var _local13 = _arg1; var _local14 = (_local12[_local13] - 1); _local12[_local13] = _local14; if (_local14 < -30){ _mi1660[_arg1] = _dm716[_arg1]._aa3156; } else { if (_mi1660[_arg1] <= 0){ if (_mi1660[_arg1] == 0){ Audio.playSound(Res.SOUND_LASER_SHOOT); }; _local3 = 1; while (_local3 < _im3139) { if (_uh46((_kl1762(_fb111[_arg1]) + (_local3 * _dm716[_arg1]._he885)), (_ci1051((_is2927[_arg1] - (_ft595 >> 1))) + (_local3 * _dm716[_arg1]._is2384)))){ _dm716[_arg1]._qv1061 = _local3; _local3 = _im3139; }; _local3++; }; _local5 = (_dm716[_arg1]._qv1061 * _ft595); if (_dm716[_arg1]._is2384 != 0){ if (_bc2821(_tm2076, new Rectangle((_fb111[_arg1] - 8), ((_is2927[_arg1] - (_ft595 >> 1)) - ((_dm716[_arg1]._is2384 < 0)) ? _local5 : 0), 16, _local5))){ _do502(true, -1, KILL_LASER); }; } else { if (_bc2821(_tm2076, new Rectangle(((_fb111[_arg1] + (_dm716[_arg1]._he885 * (_ft595 >> 1))) - ((_dm716[_arg1]._he885 < 0)) ? _local5 : 0), ((_is2927[_arg1] - (_ft595 >> 1)) - 8), _local5, 16))){ _do502(true, -1, KILL_LASER); }; }; }; }; }; break; case _ex1256: _local12 = _mi1660; _local13 = _arg1; _local14 = (_local12[_local13] - 1); _local12[_local13] = _local14; if (_local14 < 0){ if (((((ticks % 8) == 0)) && ((++_dm716[_arg1]._dj2196 > 7)))){ _dm716[_arg1]._dj2196 = 0; _mi1660[_arg1] = (60 + _ij2524(100)); }; }; break; case _sf1894: if (_me422[_arg1] == STATE_TURNING){ if (((((ticks % 3) == 0)) && ((++_vq2769[_arg1] >= _dm716[_arg1]._ur743)))){ _qr767[_arg1] = (-(_my2247[_arg1]) * _dm716[_arg1]._cm2639); _vq2769[_arg1] = 0; _me422[_arg1] = STATE_ACTIVE; _my2247[_arg1] = -(_my2247[_arg1]); }; }; break; case _qr42: case _tb76: case _ex1256: case _ry1581: case _na509: _kp2905(_arg1); break; case _cg785: if (_dm716[_arg1]._dq2303){ _local12 = _mi1660; _local13 = _arg1; _local14 = (_local12[_local13] - 1); _local12[_local13] = _local14; if (_local14 < 0){ _vq2769[_arg1] = (_vq2769[_arg1] + _dm716[_arg1]._rg1832); if ((((_vq2769[_arg1] == 0)) || ((_vq2769[_arg1] == 5)))){ _mi1660[_arg1] = 50; _dm716[_arg1]._rg1832 = -(_dm716[_arg1]._rg1832); Audio.cueSound(((_vq2769[_arg1] == 0)) ? Res.SOUND_SPIKES_UP : Res.SOUND_SPIKES_DOWN); }; }; }; break; case _rr1115: _local12 = _mi1660; _local13 = _arg1; _local14 = (_local12[_local13] - 1); _local12[_local13] = _local14; if (_local14 < 0){ _pa1199(_tr2628, -1, _fb111[_arg1], _is2927[_arg1]); _lg2547 = 0.6; Audio.playSound(Res.SOUND_BOMB_EXPLOSION, _qw1296(_arg1), _pj711(_arg1)); _local6 = _kl1762(_fb111[_arg1]); _local7 = _ci1051((_is2927[_arg1] - 1)); _local10 = 0; _local8 = -1; while (_local8 < 2) { _local9 = -1; while (_local9 < 2) { _rq76((_local6 + _local8), (_local7 + _local9)); _local9++; }; _local8++; }; _qu2081[_arg1] = _dm716[_arg1]._xl1111; _kc709[_arg1] = _dm716[_arg1]._xl1111; _is2927[_arg1] = (_is2927[_arg1] + (_dm716[_arg1]._xl1111 >> 1)); _local3 = 0; while (_local3 < _yt740) { if (((_gs2815(_local3, _ba1128)) && (_ur439(_arg1, _local3)))){ if (_local3 == _tm2076){ _do502(true, -1, KILL_BOMB); Achievements.unlock(Achievements.ACHIEVEMENT_SUICIDE); } else { if (_dm716[_local3]._yx2572){ if (_bm1478(_local3, 5, _arg1, _ba1128)){ _local10++; }; }; }; }; _local3++; }; if (_local10 > 2){ Achievements.unlock(Achievements.ACHIEVEMENT_TRIPLE_COMBO); } else { if (_local10 > 0){ Achievements.unlock(Achievements.ACHIEVEMENT_FIRST_BOMB_KILL); }; }; _tk2059(_arg1); }; break; case _ol1741: _local12 = _mi1660; _local13 = _arg1; _local14 = (_local12[_local13] - 1); _local12[_local13] = _local14; if (_local14 < 0){ _tk2059(_arg1); } else { if (!_dm716[_arg1]._kj3056){ _local3 = 0; while (_local3 < _yt740) { if (((((!((_local3 == _tm2076))) && (_gs2815(_local3, _il1958)))) && (_ur439(_arg1, _local3)))){ if (_dm716[_local3]._yx2572){ _bm1478(_local3, 1, _arg1, _il1958); } else { Audio.playSound(Res.SOUND_SHURIKEN_LAND, _qw1296(_arg1), _pj711(_arg1)); }; _qr767[_arg1] = -(_cx899((_qr767[_arg1] * 0.25), (_qr767[_arg1] * 0.5))); _yg1495[_arg1] = _cx899(-15, 5); _yo1820[_arg1] = 1; _dm716[_arg1]._kj3056 = true; _local3 = _yt740; }; _local3++; }; }; }; break; case _sc2870: if (_me422[_arg1] == STATE_STATIC){ _local12 = _mi1660; _local13 = _arg1; _local14 = (_local12[_local13] - 1); _local12[_local13] = _local14; if (_local14 < 0){ if (_sv1493(_arg1, _tm2076) < 200){ _me422[_arg1] = STATE_ACTIVE; _qr767[_arg1] = ((_fb111[_tm2076] < _fb111[_arg1])) ? -8 : 8; _yg1495[_arg1] = -8; _mi1660[_arg1] = _dm716[_arg1]._lk2766; _vq2769[_arg1] = _dm716[_arg1]._ky932; Audio.playSound(Res.SOUND_FROG_JUMP, _qw1296(_arg1), _pj711(_arg1)); }; }; }; break; case _nd3022: if ((((((_me422[_arg1] == STATE_ACTIVE)) && (((camera_top + _is2927[_arg1]) > 0)))) && ((_is2927[_tm2076] > _is2927[_arg1])))){ if (Math.abs((_fb111[_arg1] - _fb111[_tm2076])) < 100){ _yo1820[_arg1] = 2; }; }; _kp2905(_arg1); break; case _ss550: if (((((_la3094()) && ((Math.abs((_is2927[_arg1] - _is2927[_tm2076])) < (_ft595 << 1))))) && ((Math.abs((_fb111[_arg1] - _fb111[_tm2076])) > 10)))){ if (_qr767[_arg1] == 0){ Audio.playSound(Res.SOUND_ZOMBIE_SPOT_PLAYER, _qw1296(_arg1), _pj711(_arg1)); }; _qr767[_arg1] = ((_fb111[_tm2076] < _fb111[_arg1])) ? -5 : 5; } else { _qr767[_arg1] = (_qr767[_arg1] * 0.9); }; break; case _pe1380: if (_vq2769[_arg1] == 0){ if ((((Math.abs((_fb111[_arg1] - _fb111[_tm2076])) < 300)) && ((Math.abs((_is2927[_arg1] - _is2927[_tm2076])) < 4)))){ _eh2028(_arg1); }; } else { _local12 = _mi1660; _local13 = _arg1; _local14 = (_local12[_local13] + 1); _local12[_local13] = _local14; if ((_local14 % 3) == 0){ _local12 = _vq2769; _local13 = _arg1; _local14 = (_local12[_local13] + 1); _local12[_local13] = _local14; if (_vq2769[_arg1] == 10){ _pa1199(_lq1218, -1, _fb111[_arg1], (_is2927[_arg1] - _ft595), _arg1); } else { if (_vq2769[_arg1] >= 22){ _tk2059(_arg1); }; }; }; }; break; case _lq1218: case _lf94: _kp2905(_arg1); break; case _ng1773: if (((((((((camera_top + _is2927[_arg1]) > 0)) && (((camera_top + _is2927[_arg1]) < _nv1774)))) && (((camera_left + _fb111[_arg1]) > 0)))) && (((camera_left + _fb111[_arg1]) < _um3215)))){ _local12 = _mi1660; _local13 = _arg1; _local14 = (_local12[_local13] - 1); _local12[_local13] = _local14; if (_local14 < 0){ _mi1660[_arg1] = _dm716[_arg1]._cl2507; _pa1199(_ec1136, -1, _fb111[_arg1], (_is2927[_arg1] - _ft595), _arg1); Audio.playSound(Res.SOUND_ASSASSIN_KNIFE, _qw1296(_arg1), _pj711(_arg1)); }; }; break; case _ec1136: _local12 = _mi1660; _local13 = _arg1; _local14 = (_local12[_local13] - 1); _local12[_local13] = _local14; if (_local14 < 0){ _tk2059(_arg1); }; break; case _gw1216: _dm716[_arg1].tick(); _local12 = _vq2769; _local13 = _arg1; _local14 = (_local12[_local13] + 1); _local12[_local13] = _local14; if (_local14 > 6){ _vq2769[_arg1] = 0; }; break; case _vr317: _dm716[_arg1].angle = (_dm716[_arg1].angle + 0.1); _is2927[_arg1] = (_dm716[_arg1]._hd839 + (Math.sin(_dm716[_arg1].angle) * _ft595)); if (((((ticks % 3) == 0)) && ((++_vq2769[_arg1] > 10)))){ _vq2769[_arg1] = 0; }; break; case _wr2374: if (((((ticks % 8) == 0)) && ((++_vq2769[_arg1] > 5)))){ _vq2769[_arg1] = 0; }; break; case _bt1320: case _gy2860: _kp2905(_arg1); break; case _or1318: if (_vq2769[_arg1] == 0){ if ((((Math.abs((_is2927[_arg1] - _is2927[_tm2076])) < _ft595)) && ((--_mi1660[_arg1] < 0)))){ _vq2769[_arg1] = 1; }; } else { if ((ticks % 2) == 0){ _local12 = _vq2769; _local13 = _arg1; _local14 = (_local12[_local13] + 1); _local12[_local13] = _local14; if (_local14 == 10){ _pa1199(_lf94, -1, _fb111[_arg1], _is2927[_arg1], _arg1); Audio.playSound(Res.SOUND_WIZARD_SHOOT, _qw1296(_arg1), _pj711(_arg1)); } else { if (_vq2769[_arg1] >= _dm716[_arg1]._ur743){ _vq2769[_arg1] = 0; _mi1660[_arg1] = 100; }; }; }; }; break; case _gm662: _local4 = _sv1493(_arg1, _tm2076); if (_local4 < (_ft595 << 2)){ switch (_ij2524(5)){ case 0: _local11 = _pe1380; break; case 1: _local11 = _cg785; break; case 2: _local11 = _qr42; break; case 3: _local11 = _or1318; break; case 4: _local11 = _ng1773; break; }; _pa1199(_local11, -1, _fb111[_arg1], _is2927[_arg1]); _pa1199(_tr2628, -1, _fb111[_arg1], _is2927[_arg1]); _tk2059(_arg1); }; break; }; } final private function _px752():void{ var _local1:String; var _local2:String; var _local3:String; var _local4:int; var _local5:int; _local5 = 0; while (_local5 < 5) { switch (_local5){ case 0: _local1 = Res.text_XML.text_score; _local2 = _wy295.value.toString(); break; case 1: _local1 = Res.text_XML.text_hiscore; _local2 = hiscore.value.toString(); break; case 2: _local1 = Res.text_XML.text_floors; _local2 = _ix2663.toString(); break; case 3: _local1 = Res.text_XML.text_kills; _local2 = _ul1403.toString(); break; case 4: _local1 = Res.text_XML.summary_time; _local2 = getSummaryTimeString(_kd1228); break; }; Gfx.drawBitmapText(_lk34, (_local1 + ":"), 169, (284 + (_local5 * 32)), (TOP | RIGHT)); Gfx.drawBitmapText(_lk34, _local2, 178, (284 + (_local5 * 32))); _local5++; }; } final private function submitScore():void{ var strURI:String = ExternalInterface.call("getLittleServer"); var local3 = "4132"; var local1:Number = _wy295.value; var var5:Number = ExternalInterface.call("getSrvrTime"); var var1:String = var5.toString(); var strN1:String = var1.substr(-3, 3); var strN2:String = var1.substr(-4, 3); var n1:Number = parseInt(strN1); var n2:Number = parseInt(strN2); var var2:Number = (((n1 * n2) * local1) + local1); var strToPass:String = ((((((local3 + ",") + local1) + ",") + var5) + ",") + var2); var md5:MD5 = new MD5(strToPass); var variables:URLVariables = new URLVariables(); variables.attr1 = ((((((("score=" + local1) + "|gameId=") + local3) + "|timestamp=") + var5) + "|key=") + md5._af2231); trace(((((((("score=" + local1) + "|gameId=") + local3) + "|timestamp=") + var5) + "|key=") + md5._af2231)); var request:URLRequest = new URLRequest(strURI); request.data = variables; try { navigateToURL(request, "_self"); } catch(e:Error) { }; } final private function _yd1915(_arg1:int):void{ if ((((_arg1 == 1)) || ((_rl1132.value > 1)))){ _mt1708 = (_mt1708 - _arg1); }; if (_mt1708 <= 0){ _rl1132.addValue(-1); if (_rl1132.value <= 0){ startTransition(GAME_STATE_SUMMARY); } else { _am2760(); if (_arg1 > 1){ Achievements.unlock(Achievements.ACHIEVEMENT_QUICK_RECOVERY); }; }; }; } final private function _pj711(_arg1:int):Number{ var _local2:Number; if (_fb111[_arg1] > _fb111[_tm2076]){ _local2 = ((_fb111[_arg1] - _fb111[_tm2076]) / _py375); } else { _local2 = (-((_fb111[_tm2076] - _fb111[_arg1])) / _py375); }; return (_local2); } final private function _st1547(_arg1:int, _arg2:int):Boolean{ return ((((((((_arg1 > -1)) && ((_arg1 < _im3139)))) && ((_arg2 > -1)))) && ((_arg2 < _uv708)))); } final private function _pw1735(_arg1:int, _arg2:int, _arg3:int):Boolean{ var _local4:int = (_kl1762(_fb111[_arg1]) + _arg2); var _local5:int = (_ci1051(_is2927[_arg1]) + _arg3); if (_pc214[_bk2394[_local4][_local5]] == _le1707){ _rq76(_local4, _local5); _df629(10, -1, _ww3153(_local4, true), _rh1729(_local5, true)); if (_arg2 == 0){ Achievements.unlock(Achievements.ACHIEVEMENT_BREAK_BLOCK); }; return (true); }; return (false); } final private function _ny2288():void{ var _local1:int; while (_local1 < _nm2862) { keys[_local1] = _kj3152[_local1]; _local1++; }; } final private function _sk605():void{ var _local1:int; var _local2:int; var _local3:int; _lk34.fillRect(_lk34.rect, (in_bonus_mode) ? 0xFFFFFF : 0); _wx2504 = (-(camera_left) / _ft595); _be2036 = (-(camera_top) / _ft595); if (_sv2787 > 0){ TEMP_CANVAS.fillRect(TEMP_CANVAS.rect, 0); }; _local2 = _be2036; while (_local2 < (_be2036 + _tq772)) { _local1 = _wx2504; while (_local1 < (_wx2504 + _eu3186)) { if (_nm1381(_local1, _local2)){ _local3 = _bk2394[_local1][_local2]; if (_local3 != _ke377){ _gg1875 = (camera_left + (_local1 * _ft595)); _na1271 = (_gg1875 + _ft595); _ib3140 = (camera_top + (_local2 * _ft595)); _aq1238 = (_ib3140 + _ft595); if ((((((((_gg1875 >= 0)) && ((_gg1875 < _um3215)))) || ((((_na1271 >= 0)) && ((_na1271 < _um3215)))))) && ((((((_ib3140 >= 0)) && ((_ib3140 < _nv1774)))) || ((((_aq1238 >= 0)) && ((_aq1238 < _nv1774)))))))){ if (in_bonus_mode){ Gfx.fillRect(_lk34, _gg1875, _ib3140, _ft595, _ft595, -1, 0); } else { if (_local3 == _sg3010){ Gfx.drawFrame(_lk34, Res.IMAGE_TREASURE_BLOCK, _gg1875, _ib3140, _fj1554, Res.TREASURE_BLOCK_FRAMES, 1, -1, null, false, false, _ft595, _ft595); } else { Gfx.drawFrame(_lk34, Res.IMAGE_TILES, _gg1875, _ib3140, (_local3 + _gt526), Res.TILES_HFRAMES, Res.TILES_VFRAMES, -1, null, false, false, _ft595, _ft595); }; if (((!(in_bonus_mode)) && ((_sv2787 > 0)))){ if (_local3 == _sg3010){ Gfx.drawFrame(TEMP_CANVAS, Res.IMAGE_TREASURE_BLOCK, _gg1875, _ib3140, _fj1554, Res.TREASURE_BLOCK_FRAMES, 1, -1, null, false, false, _ft595, _ft595); } else { Gfx.drawFrame(TEMP_CANVAS, Res.IMAGE_TILES, _gg1875, _ib3140, (_local3 + _ct1641), Res.TILES_HFRAMES, Res.TILES_VFRAMES, -1, null, false, false, _ft595, _ft595); }; }; }; }; }; }; _local1++; }; _local2++; }; if (_sv2787 > 0){ Gfx.drawFrame(_lk34, TEMP_CANVAS, 0, 0, 0, 1, 1, -1, new ColorTransform(1, 1, 1, _sv2787), false, false, _um3215, _nv1774); }; } final private function _pp273():void{ var _local1:int; var _local2:int; var _local3:int; _local1 = 0; while (_local1 < _im3139) { _local2 = 0; while (_local2 < _sb274) { _bk2394[_local1][_local2] = _bk2394[_local1][(_re2127 + _local2)]; _bo3091[_local1][_local2] = _bo3091[_local1][(_re2127 + _local2)]; if (_local2 == 0){ _jq2473(_local1, 0, 0); }; _local2++; }; _local1++; }; _local3 = 0; while (_local3 < _yt740) { if (_me422[_local3] != STATE_INACTIVE){ _is2927[_local3] = (_is2927[_local3] - _cn1125); switch (_au294[_local3]){ case _gw1216: case _vr317: _dm716[_local3]._hd839 = (_dm716[_local3]._hd839 - _cn1125); break; }; }; _local3++; }; _local3 = 0; while (_local3 < Messages.MAX_MESSAGES) { Messages.message_y[_local3] = (Messages.message_y[_local3] - _cn1125); _local3++; }; _local3 = 0; while (_local3 < Particles.MAX_PARTICLES) { Particles.particle_y[_local3] = (Particles.particle_y[_local3] - _cn1125); _local3++; }; _local3 = 0; while (_local3 < _mm509.value) { _ex154[_local3] = (_ex154[_local3] - _cn1125); _local3++; }; _ew433(false); camera_top = (camera_top + _cn1125); } final private function tick():void{ var _local1:int; ticks++; Audio.tick(); switch (game_state){ case GAME_STATE_DEV_LOGO: if (((!((anim == null))) && ((anim.currentFrame >= anim.totalFrames)))){ _bm1446(); startTransition(GAME_STATE_TITLE); }; break; case GAME_STATE_TITLE: _tq2458 = (_tq2458 + 0.01); if (do_game_intro){ if (((music_on) && ((music_fade > 0)))){ Audio.music_mc.soundTransform = new SoundTransform((Audio.MUSIC_VOLUME * music_fade)); music_fade = (music_fade - 0.015); }; if (Menu.menu_transition < 1){ Menu.menu_transition = (Menu.menu_transition + (0.01 + (Menu.menu_transition * 0.1))); }; _rd1583 = ((_bu1497 - _qk2034.y) * 1.5); if (((!((anim == null))) && ((anim.currentFrame >= anim.totalFrames)))){ _bm1446(); game_state = GAME_STATE_GAME; _nx2636(); }; } else { if (((music_on) && ((music_fade < 1)))){ Audio.music_mc.soundTransform = new SoundTransform((Audio.MUSIC_VOLUME * music_fade)); music_fade = (music_fade + 0.015); }; }; Menu.tick(); break; case GAME_STATE_GAME: if (!paused){ if (_qi2365 != 0){ _wl2598.rotationY = (_wl2598.rotationY - _sa1051); if (!_qf779){ if (_wl2598.rotationY <= -90){ _qf779 = true; in_bonus_mode = (_qi2365 == 1); _wl2598.rotationY = (_wl2598.rotationY + 180); if (!in_bonus_mode){ _local1 = 0; while (_local1 < _yt740) { if (_au294[_local1] == _ry1581){ _tk2059(_local1); }; _local1++; }; }; _tg1819(); }; } else { if (_wl2598.rotationY <= 0){ _qi2365 = 0; _wl2598.visible = false; }; }; } else { if (_ci2912 > 0){ _ci2912 = (_ci2912 - Math.max(2, (_ci2912 * 0.2))); _ci2912 = Math.max(0, _ci2912); }; if (((((!((_me422[_tm2076] == STATE_DEAD))) || ((_rl1132.value > 1)))) || (((ticks % 6) == 0)))){ if (--_un2669 < 0){ if (((((ticks % 2) == 0)) && ((++_fj1554 >= Res.TREASURE_BLOCK_FRAMES)))){ _fj1554 = 0; _un2669 = (50 + _ij2524(50)); }; }; Particles.tick(); _wp1063(); _mo2977(); _up553(); Messages.tick(); }; }; Achievements.tick(); } else { if (Menu.in_menu){ Menu.tick(); }; }; break; case GAME_STATE_CREDITS: case GAME_STATE_REDFINE_KEYS: case GAME_STATE_ACHIEVEMENTS: case GAME_STATE_MANUAL: case GAME_STATE_VIEW_STATS: Menu.tick(); break; case GAME_STATE_SUMMARY: if ((((Menu.menu_transition <= 0)) && ((_eq1957 < 1)))){ _eq1957 = (_eq1957 + 0.01); }; if (anim != null){ anim.nextFrame(); if ((((transition_dir == 0)) && ((anim.currentFrame == 98)))){ retry_anim_finished = true; }; if (anim.currentFrame >= anim.totalFrames){ _bm1446(); game_state = GAME_STATE_GAME; _nx2636(); }; } else { Menu.tick(); }; break; case GAME_STATE_TUTORIAL: if (_xj739 > 0){ _xj739 = (_xj739 - 5); } else { Menu.tick(); }; break; }; if (transition_dir != 0){ _vw59(); }; } final private function _bd418(_arg1:int):void{ _lu2451[_arg1] = true; switch (_au294[_arg1]){ case _ma984: if (_yg1495[_arg1] > _mc3062){ Audio.playSound(Res.SOUND_LAND); }; _yg1495[_arg1] = 0; _gn1090 = true; switch (_me422[_arg1]){ case STATE_SOMERSAULTING: case STATE_ATTACKING_DOWNWARDS: _me422[_arg1] = STATE_ACTIVE; break; }; _en681 = _kl1762(_fb111[_arg1]); _gd659 = _ci1051(_is2927[_arg1]); if ((((_ao2400 > 1)) && ((_pc214[_bk2394[_en681][_gd659]] == _uq3088)))){ _rq76(_en681, _gd659); }; if (!_mm1944){ Audio.playMusic(Res.CLASS_MUSIC_GAME); _mm1944 = true; }; break; case _ol1741: _dm716[_arg1]._kj3056 = true; _me422[_arg1] = STATE_STATIC; _qr767[_arg1] = (_yg1495[_arg1] = 0); Audio.playSound(Res.SOUND_SHURIKEN_LAND, _qw1296(_arg1), _pj711(_arg1)); break; case _sc2870: if (_me422[_arg1] == STATE_ACTIVE){ _qr767[_arg1] = (_yg1495[_arg1] = 0); _me422[_arg1] = STATE_STATIC; _vq2769[_arg1] = 0; }; break; case _qr42: _yg1495[_arg1] = _dm716[_arg1]._nx1446; Audio.playSound(Res.SOUND_BIRD_BOUNCE, _qw1296(_arg1), _pj711(_arg1)); break; case _nd3022: _yg1495[_arg1] = 0; _me422[_arg1] = STATE_STATIC; Audio.playSound(Res.SOUND_THWOMP_LAND, _qw1296(_arg1), _pj711(_arg1)); break; case _tb76: _yg1495[_arg1] = -(_yg1495[_arg1]); Audio.playSound(Res.SOUND_BOUNCER_HIT_WALL, _qw1296(_arg1), _pj711(_arg1)); break; default: _yg1495[_arg1] = (-(_yg1495[_arg1]) * _vv1207[_arg1]); break; }; } final private function _pd1667():void{ var _mg1708:int; trace("loadData()"); try { if (_kp2677.data.exists){ music_on = _kp2677.data.music_on; sfx_on = _kp2677.data.sfx_on; hiscore.setValue(_kp2677.data.hiscore); keys = _kp2677.data.keys; _pj820 = _kp2677.data._pj820; _rn2505 = _kp2677.data._rn2505; Achievements.achievement_unlocked = _kp2677.data.achievement_unlocked; prev_player_floor = _kp2677.data.prev_player_floor; best_player_floor = _kp2677.data.best_player_floor; }; } catch(e:Error) { trace(("error = " + e)); }; } final private function _rq76(_arg1:int, _arg2:int):void{ var _local5:int; var _local6:int; var _local3:Boolean; var _local4:Boolean; switch (_pc214[_bk2394[_arg1][_arg2]]){ case _le1707: _local3 = true; _local4 = true; Audio.cueSound(Res.SOUND_ROCKS_DESTROY); break; case _uq3088: _local3 = true; _pa1199(_qk2412, -1, _ww3153(_arg1), _rh1729(_arg2)); Audio.cueSound(Res.SOUND_CRUMBLE); break; }; if (_local3){ if (_local4){ _local6 = 0; while (_local6 < 16) { _local5 = Res.IMAGE_TILES.getPixel(((8 * _ft595) + _ij2524(_ft595)), ((_kh971 * _ft595) + _ij2524(_ft595))); Particles.add(_ww3153(_arg1, true), _rh1729(_arg2, true), Particles.COLOURED, _local5, 1); _local6++; }; }; _jq2473(_arg1, _arg2, _ke377); }; } final private function _cx899(_arg1:Number, _arg2:Number):Number{ return ((Math.floor((Math.random() * ((1 + _arg2) - _arg1))) + _arg1)); } final private function pause(_arg1:Boolean):void{ if ((((game_state == GAME_STATE_GAME)) && (!(paused)))){ _ac1382(); paused = true; Menu.setup(Menu.MENU_PAUSED); if (_arg1){ Audio.playSound(Res.SOUND_SELECT); }; }; } final private function _xr2303(_arg1:int):void{ var _local2:Boolean; if (_me422[_arg1] == STATE_STATIC){ return; }; type = _au294[_arg1]; switch (type){ case _gy2860: if (_uk265(_arg1)){ _gk2194(_arg1); }; break; case _mb1862: break; case _wr2374: if (_dm716[_arg1]._js2814 > 0){ if (_uk265(_arg1)){ if (--_dm716[_arg1]._js2814 <= 0){ _dm716[_arg1]._js2814 = 200; Audio.playSound(Res.SOUND_BAHAMUT_APPEAR, _qw1296(_arg1), _pj711(_arg1)); }; }; }; _xt1110(_arg1, _qm824(_fb111[_arg1], _is2927[_arg1], _fb111[_tm2076], _is2927[_tm2076]), 1, false); _fb111[_arg1] = (_fb111[_arg1] + (_qr767[_arg1] + _dm716[_arg1]._gn2728)); _is2927[_arg1] = (_is2927[_arg1] + (_yg1495[_arg1] + _dm716[_arg1]._aw2470)); _dm716[_arg1]._gn2728 = (_dm716[_arg1]._gn2728 * 0.9); _dm716[_arg1]._aw2470 = (_dm716[_arg1]._aw2470 * 0.9); break; default: _fi169(_arg1); _local2 = false; _fb111[_arg1] = (_fb111[_arg1] + _qr767[_arg1]); switch (type){ case _hd932: _local2 = _jq3114(_arg1, -(_dm716[_arg1]._is2384)); break; default: if (((((_lu2451[_arg1]) && ((_dm716[_arg1]._ij2888 == GROUP_ENEMY)))) && (!(_dm716[_arg1]._lf3116)))){ _local2 = _jq3114(_arg1, 1); }; break; }; _is2927[_arg1] = (_is2927[_arg1] + _yg1495[_arg1]); if (_yg1495[_arg1] < 20){ _yg1495[_arg1] = (_yg1495[_arg1] + (_mc3062 * _yo1820[_arg1])); }; if ((_fb111[_arg1] - (_qu2081[_arg1] >> 1)) < 0){ _fb111[_arg1] = (_qu2081[_arg1] >> 1); _local2 = true; } else { if ((_fb111[_arg1] + (_qu2081[_arg1] >> 1)) >= _py375){ _fb111[_arg1] = ((_py375 - (_qu2081[_arg1] >> 1)) - 1); _local2 = true; }; }; if (_local2){ _hr598(_arg1); }; if (_arg1 != _tm2076){ _qr767[_arg1] = (_qr767[_arg1] * _mx716[_arg1]); }; break; }; } final private function _pm2855():void{ Gfx.fillRect(TEMP_CANVAS, 0, 0, _um3215, _nv1774, -1, 0); Gfx.drawFrame(TEMP_CANVAS, Res.getManualPage(_oj1237), _pa616, _hu2021, 0, 1, 1, (_rm371 | _dt1890)); } final private function _ww3153(_arg1:int, _arg2:Boolean=false):int{ return (((_arg1 * _ft595) + (_arg2) ? (_ft595 >> 1) : 0)); } final private function _mo2977():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:int = _py375; _uv690 = -1; _local1 = 0; while (_local1 < _yt740) { if (((!((_local1 == _tm2076))) && (!((_me422[_local1] == STATE_INACTIVE))))){ _local2 = (camera_top + _is2927[_local1]); if (_local2 < -200){ _tk2059(_local1); } else { if (_local2 < (_nv1774 + 120)){ if (_au294[_local1] == _ea1800){ if (((_gr934) || ((_vq2769[_local1] == ITEM_TIME)))){ if (!_uk265(_local1)){ _local3 = _sv1493(_tm2076, _local1); if (_local3 < _local4){ _local4 = _local3; _uv690 = _local1; }; }; }; }; if (((((!(in_bonus_mode)) || ((_dm716[_local1]._ij2888 == GROUP_PROJECTILE)))) || ((_au294[_local1] == _ry1581)))){ _xr2303(_local1); if (_me422[_local1] != STATE_DEAD){ _wv1130(_local1); }; _hg309(_local1); }; }; }; }; _local1++; }; } final private function _qw1296(_arg1:int):Number{ var _local2:Number = _sv1493(_tm2076, _arg1); var _local3:Number = (1 - (_local2 / _py375)); return (_local3); } final private function _ev894(_arg1:int):int{ return (Res.SPRITE_FRAMES[_arg1][0]); } final private function _pj3206(_arg1:MouseEvent):void{ var _local2:int; if (transition_dir == 0){ switch (game_state){ case GAME_STATE_DEV_LOGO: _bm1446(); startTransition(GAME_STATE_TITLE); break; case GAME_STATE_TUTORIAL: _xj739 = 0; break; case GAME_STATE_REDFINE_KEYS: _local2 = 0; while (_local2 < _nm2862) { if (_nl1245(_xy2123, (_xk2529 + (_local2 * (_qt1405 + _sh826))), _ai235, _qt1405)){ _gn1375 = _local2; _local2 = _nm2862; Audio.playSound(Res.SOUND_ROLLOVER); }; _local2++; }; break; }; }; _oa2660(Menu.mouse_over_menu_item); } final private function _mc2559(_arg1:int):int{ return (Res.SPRITE_FRAMES[_arg1][1]); } final private function _ew433(_arg1:Boolean):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local9:int; var _local10:int; var _local11:int; var _local12:int; _mv121--; if (_arg1){ _ti1984 = 0; _ai2219 = false; _wt122 = false; _xe198 = 0; _ao738 = 0; _local2 = 0; while (_local2 < _im3139) { _bk2394[_local2] = new Array(_uv708); _bo3091[_local2] = new Array(_uv708); _local2++; }; } else { _xe198 = (_xe198 - (_sb274 >> 1)); _ao738 = (_ao738 - (_sb274 >> 1)); }; _local2 = 0; while (_local2 < _im3139) { _local3 = (_arg1) ? 0 : _sb274; while (_local3 < _uv708) { _jq2473(_local2, _local3, 7); _local3++; }; _local2++; }; var _local8:int = (_arg1) ? 0 : (_va2181 - (_va2181 / 3)); _local7 = _local8; while (_local7 < _va2181) { _nt1982 = (_local7 * _xq3000); do { if (_ai2219){ _wp1938 = Math.max(1, ((_jy695 - 2) - _ij2524(8))); _fy1859 = Math.min((_im3139 - 1), ((_se2035 + 2) + _ij2524(8))); _mf2064 = (_fy1859 - _wp1938); } else { _mf2064 = ((((_local7 == 0)) && (_arg1))) ? _rn211 : _cx899(_ox1197, _rn211); _wp1938 = (1 + _ij2524((_im3139 - _mf2064))); _fy1859 = ((_wp1938 + _mf2064) - 1); }; if (_local7 > 0){ _iq2946 = ((_wp1938 > _ln1427)) ? _wp1938 : _ln1427; _fl332 = ((_fy1859 < _tp2213)) ? _fy1859 : _tp2213; _aj1508 = (_fl332 - _iq2946); }; } while ((((_local7 > 0)) && ((_aj1508 < 4)))); _local2 = _wp1938; while (_local2 < _fy1859) { _local3 = (((_arg1) && ((_local7 == _local8)))) ? 0 : 1; while (_local3 <= _xq3000) { _jq2473(_local2, (_nt1982 + _local3), _ke377); _local3++; }; _local2++; }; _local2 = (_wp1938 - 1); while (_local2 <= _fy1859) { if (!_arg1){ _jq2473(_local2, _nt1982, ((Math.random() < 0.01)) ? ((Math.random() < 0.1)) ? 8 : 9 : ((Math.random() < 0.1)) ? 1 : 0); }; _jq2473(_local2, (_nt1982 + _xq3000), ((Math.random() < 0.01)) ? ((Math.random() < 0.1)) ? 8 : 9 : ((Math.random() < 0.1)) ? 1 : 0); _local2++; }; _local3 = 1; while (_local3 < _xq3000) { _jq2473((_wp1938 - 1), (_nt1982 + _local3), 2); _jq2473(_fy1859, (_nt1982 + _local3), 2); _local3++; }; if (_local7 > 0){ if (_ai2219){ _jq2473(((_iq2946 + 1) + _ij2524(((_jy695 - _iq2946) - 1))), _nt1982, (_in569) ? _ke377 : _kw2375); _jq2473(((_fl332 - 1) - _ij2524(((_fl332 - _se2035) - 1))), _nt1982, (_in569) ? _kw2375 : _ke377); } else { _local4 = 0; while (_local4 < (1 + _ij2524(2))) { _jq2473(_mv966(), _nt1982, _ke377); _local4++; }; }; }; if (_local7 > 0){ _go598 = ((((!(in_bonus_mode)) && ((_mv121 <= 0)))) && ((_local7 == _local8))); if (_me422[_tm2076] == STATE_IN_DOOR){ if ((((((_me422[0] == STATE_INACTIVE)) && (!(_uh46(_ft767, (_nt1982 - 1)))))) && (_uh46(_ft767, _nt1982)))){ _pa1199(_kp768, 0, _ww3153(_ft767, true), _rh1729(_nt1982), -1, -1, 1); _jq2473(_ft767, (_nt1982 - 1), _pc1528); }; } else { if (((((((((((((((!(_ai2219)) && (!(_wt122)))) && ((_local7 < (_va2181 - 2))))) && ((_uc3062 > (_im3139 - 8))))) && ((_mf2064 > (_im3139 >> 1))))) && ((_mv121 > 1)))) && ((_qt2220 > 20)))) && ((Math.random() < 0.5)))){ _qt2220 = 0; _ai2219 = true; _wt122 = false; do { _jy695 = _ij2524(_im3139); _md1823 = (2 + _ij2524((_im3139 >> 2))); _se2035 = (_jy695 + _md1823); } while ((((((((_jy695 <= (_ln1427 + 4))) || ((_se2035 >= (_tp2213 - 4))))) || ((_jy695 < (_wp1938 + 4))))) || ((_se2035 > (_fy1859 - 4))))); _local4 = 0; while (_local4 < _im3139) { if (!_uh46(_local4, _nt1982)){ _jq2473(_local4, _nt1982, 0); }; _local4++; }; _local4 = 0; while (_local4 < _md1823) { _local3 = 1; while (_local3 < _xq3000) { _jq2473((_jy695 + _local4), (_nt1982 + _local3), ((((_local4 == 0)) || ((_local4 == (_md1823 - 1))))) ? 2 : 7); _local3++; }; _local4++; }; _in569 = (Math.random() < 0.5); _jq2473(((_iq2946 + 1) + _ij2524(((_jy695 - _iq2946) - 1))), _nt1982, (_in569) ? _ke377 : _sg3010); _jq2473(((_fl332 - 1) - _ij2524(((_fl332 - _se2035) - 1))), _nt1982, (_in569) ? _sg3010 : _ke377); _local5 = _ea1800; _local6 = -1; switch (_ij2524(7)){ case 0: _local6 = ITEM_EXTRA_TIME; break; case 1: _local6 = (_gr934) ? _ea1800 : ITEM_EYE; break; case 2: _local5 = _iq376; break; case 3: _local5 = _na509; break; case 4: _local5 = ((_ix2663 >= 300)) ? _gm662 : _ea1800; break; case 5: _local5 = _ea1800; break; case 6: _local5 = _kp768; _local6 = -1; break; }; if (((!((_local5 == _kp768))) && ((_me422[0] == STATE_INACTIVE)))){ _local2 = (_in569) ? (_se2035 + _ij2524(((_fl332 - _se2035) - 3))) : (_iq2946 + _ij2524(((_jy695 - _iq2946) - 3))); _pa1199(_bx2494, 0, _ww3153(_local2), _rh1729((_nt1982 + _xq3000)), (BOTTOM | LEFT), -1, _ij2524(4)); }; _local12 = ((((_local5 == _ea1800)) && ((_local6 < 5)))) ? 2 : 1; _local4 = 0; while (_local4 < _local12) { _local2 = _ss989((_in569) ? _se2035 : _wp1938, (_in569) ? (_fl332 - _se2035) : (_jy695 - _iq2946), (_nt1982 + _xq3000)); if (_local2 != -1){ _pa1199(_local5, ((_local5 == _kp768)) ? 0 : -1, _ww3153(_local2, true), _rh1729((_nt1982 + _xq3000)), -1, -1, _local6); _jq2473(_local2, ((_nt1982 + _xq3000) - 1), _pc1528); }; _local4++; }; } else { _wt122 = _ai2219; _ai2219 = false; }; }; if (((((!(_ai2219)) && (!(_wt122)))) && (!(_arg1)))){ _local4 = 0; while (_local4 < _ij2524(4)) { _local2 = _ss989(_iq2946, _aj1508, _nt1982); if (_local2 != -1){ _jq2473(_local2, (_nt1982 - 1), 2); if (Math.random() < 0.2){ _jq2473(_local2, (_nt1982 - 2), 2); }; }; _local4++; }; if ((((_ix2663 > 20)) && ((Math.random() < 0.05)))){ _local2 = _uy967(_iq2946, _aj1508, _nt1982); if (_local2 != -1){ _local3 = 1; while (_local3 < _xq3000) { _jq2473(_local2, (_nt1982 + _local3), ((Math.random() < 0.5)) ? 8 : 9); _local3++; }; }; }; if ((((_ix2663 > 20)) || ((((_ix2663 > 10)) && ((Math.random() < 0.3)))))){ _local4 = 0; while (_local4 < (_ix2663 / 300)) { _nx306(); _local4++; }; }; if (((((_go598) || (in_bonus_mode))) || ((Math.random() < 0.1)))){ _local2 = _ss989(_iq2946, _aj1508, _nt1982, (_go598) ? 100 : -1); if (_local2 != -1){ _local5 = _ea1800; _local6 = -1; if (_go598){ _mv121 = _nk1484; _local6 = ITEM_TIME; } else { if (((((!(_hk1714)) && ((_ix2663 > 100)))) && ((Math.random() < 0.1)))){ _local5 = _ry1581; } else { _local5 = ((Math.random() < 0.2)) ? _na509 : _ea1800; }; }; _pa1199(_local5, -1, _ww3153(_local2, true), _rh1729(_nt1982), -1, -1, _local6); _jq2473(_local2, (_nt1982 - 1), _pc1528); }; }; if (Math.random() < 0.1){ _local2 = _ss989(_iq2946, _aj1508, _nt1982); if (_local2 != -1){ _local4 = 0; while (_local4 < (1 + _ij2524(4))) { if (_nm1381((_local2 + _local4), _nt1982)){ if (((((_bo3091[(_local2 + _local4)][_nt1982]) && (!(_bo3091[(_local2 + _local4)][(_nt1982 + 1)])))) && (!(_bo3091[(_local2 + _local4)][(_nt1982 - 1)])))){ _jq2473((_local2 + _local4), _nt1982, _kw2375); }; }; _local4++; }; }; }; if (((in_bonus_mode) && ((_local7 == _local8)))){ _local2 = _ss989(_iq2946, _aj1508, _nt1982); if (_local2 != -1){ _pa1199(_ry1581, -1, _ww3153(_local2, true), _rh1729(_nt1982)); }; }; }; if ((((best_player_floor == _ti1984)) || ((((prev_player_floor == _ti1984)) && ((prev_player_floor < best_player_floor)))))){ _local2 = _ss989(_iq2946, _aj1508, _nt1982); if (_local2 != -1){ _pa1199(_st764, -1, _ww3153(_local2, true), _rh1729(_nt1982), -1, -1, ((best_player_floor == _ti1984)) ? 1 : 0); }; }; }; _ln1427 = _wp1938; _tp2213 = _fy1859; _uc3062 = _mf2064; _ti1984++; _local7++; }; if (_arg1){ _local2 = 0; while (_local2 < _im3139) { _local3 = 0; while (_local3 < (_xq3000 << 1)) { _jq2473(_local2, _local3, ((((_local2 == 0)) || ((_local2 == (_im3139 - 1))))) ? 2 : _ke377); _local3++; }; _local2++; }; _jq2473(1, 0, 0); _jq2473((_im3139 - 2), 0, 0); }; _local2 = 1; while (_local2 < _im3139) { _local3 = (_arg1) ? 1 : 0; while (_local3 < _uv708) { switch (_bk2394[_local2][_local3]){ case 7: if (!_bo3091[_local2][(_local3 - 1)]){ _jq2473(_local2, _local3, 0); } else { _local9 = _bk2394[(_local2 - 1)][_local3]; _local10 = _bk2394[(_local2 - 1)][(_local3 - 1)]; _local11 = _bk2394[_local2][(_local3 - 1)]; if ((((((_local9 < 3)) && ((_local11 < 3)))) && ((_local10 < 3)))){ _jq2473(_local2, _local3, 4); } else { if ((((_local10 < 3)) && ((((_local9 > 2)) && ((_local11 > 2)))))){ _jq2473(_local2, _local3, 6); } else { if (_local9 < 3){ _jq2473(_local2, _local3, 3); } else { if (_local11 < 3){ _jq2473(_local2, _local3, 5); }; }; }; }; }; break; case _ht195: case _pc1528: _jq2473(_local2, _local3, _ke377); break; }; _local3++; }; _local2++; }; } final private function _jq2473(_arg1:int, _arg2:int, _arg3:int):void{ _bk2394[_arg1][_arg2] = _arg3; switch (_arg3){ case _ke377: case 10: _bo3091[_arg1][_arg2] = false; break; default: _bo3091[_arg1][_arg2] = true; break; }; } final private function _ps1227(_arg1:int):int{ var _local2:int; do { _local2 = _ij2524(_im3139); } while (((!(_bo3091[_local2][_arg1])) || (_bo3091[_local2][(_arg1 - 1)]))); return (_local2); } final private function _kl1762(_arg1:int):int{ return ((_arg1 / _ft595)); } final private function _qm824(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (Math.atan2((_arg2 - _arg4), (_arg1 - _arg3))); } final private function _gs2815(_arg1:int, _arg2:int):Boolean{ switch (_me422[_arg1]){ case STATE_INACTIVE: case STATE_DEAD: return (false); }; switch (_dm716[_arg1]._ij2888){ case GROUP_PROJECTILE: case GROUP_EFFECT: case GROUP_ITEM: case GROUP_SPECIAL: case GROUP_ENEMY_PROJECTILE: return (false); }; return (_dm716[_arg1]._tf894); } final private function _ac2307():void{ _gn1375 = 0; Menu.addOption(Res.text_XML.revert_to_default, Menu.OPTION_DEFAULT_KEYS, (_um3215 * 0.75), _hu2021, (_dt1890 | _rm371)); Menu.addOption(Res.text_XML.done, Menu.OPTION_FINISHED_DEFINING_KEYS, _pa616, (_nv1774 - _tp956), (BOTTOM | _rm371)); } final private function _na1454(_arg1:int):int{ var _local2:int; do { _local2 = _ij2524(_arg1); } while (((in_bonus_mode) && ((_local2 == ITEM_LIFE)))); return (_local2); } final private function _up553():void{ if (_mt1708 <= 0){ _eq2906 = (getTimer() - _cx2251); _kd1228 = (_kd1228 + _eq2906); if (_me422[_tm2076] != STATE_IN_DOOR){ _he494 = (_he494 - _eq2906); }; seconds = _nq1471(_he494); if (!_lu2451[_tm2076]){ _mv2513 = (_mv2513 + _eq2906); }; if (seconds != _ps3060){ if (seconds <= 10){ Audio.playSound(Res.SOUND_TICK); }; if (_kd1228 >= 1200000){ Achievements.unlock(Achievements.ACHIEVEMENT_20_MINUTES); } else { if (_kd1228 >= 600000){ Achievements.unlock(Achievements.ACHIEVEMENT_10_MINUTES); } else { if (_kd1228 >= 300000){ Achievements.unlock(Achievements.ACHIEVEMENT_5_MINUTES); } else { if (_kd1228 >= 120000){ Achievements.unlock(Achievements.ACHIEVEMENT_2_MINUTES); }; }; }; }; _ps3060 = seconds; if (_he494 <= 0){ if (in_bonus_mode){ _tb1270(-1); }; _do502(false, -1, KILL_TIME); _he494 = 0; }; }; }; } final private function _jt2948(_arg1:int):void{ var _local2:int; switch (_me422[_tm2076]){ case STATE_INACTIVE: case STATE_DEAD: case STATE_ATTACKING_DOWNWARDS: break; default: if (((!((_arg1 == _ku2801))) && ((_og1683[_arg1] <= 0)))){ _arg1 = _ku2801; }; if ((((_arg1 == _ku2801)) || ((_og1683[_arg1] > 0)))){ if (_arg1 != _ku2801){ var _local3 = _og1683; var _local4 = _arg1; var _local5 = (_local3[_local4] - 1); _local3[_local4] = _local5; _me422[_tm2076] = STATE_THROWING; _vq2769[_tm2076] = (((_wm1195) && (_lu2451[_tm2076]))) ? 13 : ((_yg1495[_tm2076])!=0) ? 9 : ((Math.abs(_qr767[_tm2076]) > 2)) ? 5 : 0; }; switch (_arg1){ case _ku2801: _yy845 = 30; if (_lu2451[_tm2076]){ _me422[_tm2076] = STATE_SLASHING; _vq2769[_tm2076] = 0; }; _local2 = 0; while (_local2 < _yt740) { if (((!((_local2 == _tm2076))) && (_gs2815(_local2, _ku2801)))){ if (Math.abs(((_is2927[_local2] - (_kc709[_local2] >> 1)) - (_is2927[_tm2076] - (_kc709[_tm2076] >> 1)))) < Math.max(_kc709[_local2], _ft595)){ if ((((Math.abs((_fb111[_local2] - _fb111[_tm2076])) < 20)) || ((((_sv1493(_tm2076, _local2) < _xn336)) && ((((((_my2247[_tm2076] > 0)) && ((_fb111[_local2] > _fb111[_tm2076])))) || ((((_my2247[_tm2076] < 0)) && ((_fb111[_local2] < _fb111[_tm2076])))))))))){ if (_dm716[_local2]._yx2572){ _bm1478(_local2, 1, _tm2076, _ku2801); }; }; }; }; _local2++; }; _pw1735(_tm2076, _my2247[_tm2076], -1); _pw1735(_tm2076, _my2247[_tm2076], -2); Audio.playSound(Res.SOUNDS_SWORD_SWIPE[_ij2524(2)]); break; case _il1958: _pa1199(_ol1741, -1, _fb111[_tm2076], (_is2927[_tm2076] - (((_wm1195) && (_lu2451[_tm2076]))) ? (_ft595 >> 1) : _ft595), _tm2076); Audio.playSound(Res.SOUNDS_THROW_SHURIKEN[_ij2524(2)]); break; case _ba1128: _pa1199(_rr1115, -1, _fb111[_tm2076], (_is2927[_tm2076] - (_yd2430(_tm2076) * 0.8)), _tm2076); Audio.playSound(Res.SOUND_THROW_BOMB); break; }; }; break; }; } final private function _br2557(_arg1:int):int{ var _local2:int; do { _local2 = _ij2524(_im3139); } while (((((!(_bo3091[_local2][_arg1])) || (_bo3091[_local2][(_arg1 - 1)]))) || (_bo3091[_local2][(_arg1 + 1)]))); return (_local2); } final private function _ac1382():void{ _be1660 = (_wm1195 = (_aw2334 = (_gg2726 = false))); _dk300 = (_mk2260 = (_sh488 = false)); _vw2092 = 0; } final private function _is2782():void{ graphics.beginBitmapFill(_lk34, null, false, false); graphics.drawRect(0, 0, _um3215, _nv1774); graphics.endFill(); } final private function _tg1819():void{ var _local1:String; var _local2:String; var _local3:String; var _local4:int; var _local5:int; _sk605(); if (_me422[0] != STATE_INACTIVE){ _gb1720(true); }; Particles.draw(); _gb1720(false); Messages.draw(); _pg102(); Achievements.draw(); if (_rn2457){ Gfx.drawString(_lk34, ("player state = " + _me422[_tm2076]), 100, 100, -1, null, "game_font", 16, 0xFF00); Gfx.drawString(_lk34, ("player frame = " + _vq2769[_tm2076]), 100, 150, -1, null, "game_font", 16, 0xFF00); Gfx.drawString(_lk34, ((camera_left.toString() + ", ") + camera_top.toString()), 100, 200, -1, null, "game_font", 16, 0xFF00); }; if (_lb2276 > 0){ _lb2276--; Gfx.drawString(_lk34, _mf2985.toString(), _pa616, _hu2021, (TOP | LEFT), null, "game_font", 16, 0xFFFFFF); }; if (Menu.in_menu){ Gfx.darken(_lk34, 0.7); Menu.draw(); Gfx.drawFrame(_lk34, Res.IMAGE_STATS_BOX, 14, 186); _local5 = 0; while (_local5 < 3) { switch (_local5){ case 0: _local1 = Res.text_XML.text_floors; _local2 = _ix2663.toString(); break; case 1: _local1 = Res.text_XML.text_kills; _local2 = _ul1403.toString(); break; case 2: _local1 = Res.text_XML.summary_time; _local2 = getSummaryTimeString(_kd1228); break; }; Gfx.drawBitmapText(_lk34, (_local1 + ":"), 156, (196 + (_local5 * 32)), (TOP | RIGHT)); Gfx.drawBitmapText(_lk34, _local2, 165, (196 + (_local5 * 32))); _local5++; }; }; } final private function _qg2955(_arg1:int):void{ var _local3:String; Menu.reset(); Menu.menu_transition = 1; var _local2:int = Menu.OPTION_BACK_TO_MAIN_MENU; switch (game_state){ case GAME_STATE_TUTORIAL: _dt1923 = _io541; _xj739 = _nv1774; break; case GAME_STATE_MANUAL: _dt1923 = _dq260; Menu.addOption(Res.text_XML.title_manual, Menu.OPTION_NULL, _pa616, 4, (TOP | _rm371)); _pm2855(); break; case GAME_STATE_ACHIEVEMENTS: _dt1923 = _qp542; switch (_oj1237){ case 0: _local3 = Res.text_XML.title_achievements_casual; break; case 1: _local3 = Res.text_XML.title_achievements_easy; break; case 2: _local3 = Res.text_XML.title_achievements_tough; break; case 3: _local3 = Res.text_XML.title_achievements_insane; break; case 4: _local3 = Res.text_XML.title_achievements_hardcore; break; }; Menu.addOption(_local3, Menu.TITLE_ACHIEVEMENTS, _pa616, 20, (TOP | _rm371)); if (_uy2974){ _local2 = Menu.OPTION_RETURN_TO_GAME; }; break; }; if (_oj1237 > 0){ Menu.addOption(Res.text_XML.back, Menu.OPTION_PREV_PAGE, (_um3215 * 0.25), 446, (TOP | _rm371)); }; Menu.addOption(Res.text_XML.exit, _local2, _pa616, 446, (TOP | _rm371)); if (_oj1237 < (_dt1923 - 1)){ Menu.addOption(Res.text_XML.next, Menu.OPTION_NEXT_PAGE, (_um3215 * 0.75), 446, (TOP | _rm371)); }; Menu.findMenuTop(); if (_arg1 == Menu.OPTION_PREV_PAGE){ Menu.current_menu_item = 1; } else { Menu.current_menu_item = (Menu.num_menu_items - 1); }; } final private function _fl590(_arg1:int, _arg2:int):void{ _og1683[_arg1] = (_og1683[_arg1] + _arg2); _og1683[_arg1] = Math.min(99, _og1683[_arg1]); if ((((_arg1 == _il1958)) && ((_og1683[_arg1] >= 99)))){ Achievements.unlock(Achievements.ACHIEVEMENT_99_SHURIKENS); }; } final private function _pa1199(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int=-1, _arg6:int=-1, _arg7:int=-1):int{ if (_arg2 == -1){ _arg2 = _jy2983(); }; if (_arg2 == -1){ return (_arg2); }; _rm153++; _lu2451[_arg2] = false; _vq2769[_arg2] = 0; _mi1660[_arg2] = 0; switch (_arg1){ case _ma984: _tm2076 = _arg2; _dm716[_arg2] = new Player(); _am2760(); break; case _mb1862: _dm716[_arg2] = new PlayerJumpBox(); _vx2381 = _arg2; break; case _rr1115: _dm716[_arg2] = new Bomb(); break; case _tr2628: _dm716[_arg2] = new BombExplosion(); break; case _do3027: _dm716[_arg2] = new FrogSplat(); break; case _ol1741: _dm716[_arg2] = new Shuriken(); break; case _qk2412: _dm716[_arg2] = new Crumble(); break; case _hd932: _dm716[_arg2] = new Laser(); _dm716[_arg2]._is2384 = (((_arg6 & TOP))!=0) ? 1 : -1; _dm716[_arg2]._cm2639 = ((Math.random() < 0.5)) ? -2 : 2; break; case _ry1581: _dm716[_arg2] = new Warp(); _hk1714 = true; break; case _ea1800: _dm716[_arg2] = new Item(); _vq2769[_arg2] = ((_arg7 == -1)) ? _na1454(4) : _arg7; break; case _iq376: _dm716[_arg2] = new Treasure(); _vq2769[_arg2] = _ij2524(_ev894(_arg1)); break; case _bx2494: _dm716[_arg2] = new BackgroundItem(); _vq2769[_arg2] = _ij2524(_ev894(_arg1)); break; case _cg785: _dm716[_arg2] = new SpikesFloor(); _dm716[_arg2]._dq2303 = (((_nc1233 > 0)) && ((Math.random() < 0.5))); _vq2769[_arg2] = 5; _dm716[_arg2]._rg1832 = (_dm716[_arg2]._dq2303) ? -1 : 0; break; case _lq1218: _dm716[_arg2] = new Fireball(); break; case _ec1136: _dm716[_arg2] = new Knife(); _dm716[_arg2].origin = _arg5; break; case _lf94: _dm716[_arg2] = new Magic(); break; case _cp2540: _dm716[_arg2] = new Enemy_0(); break; case _pc1940: _dm716[_arg2] = new Enemy_1(); break; case _tv1434: _dm716[_arg2] = new Enemy_2(); break; case _sc2870: _dm716[_arg2] = new Frog(); break; case _ss550: _dm716[_arg2] = new Zombie(); break; case _pe1380: _dm716[_arg2] = new Dragon(); break; case _ng1773: _dm716[_arg2] = new Assassin(); break; case _qr42: _dm716[_arg2] = new Bird(); break; case _or1318: _dm716[_arg2] = new Wizard(); _mi1660[_arg2] = 100; break; case _td267: _dm716[_arg2] = new Spiny(); break; case _sf1894: _dm716[_arg2] = new Shield(); break; case _tb76: _dm716[_arg2] = new Bouncer(); break; case _wr2374: _dm716[_arg2] = new Bahamut(); break; case _bt1320: _dm716[_arg2] = new Tentacles(); break; case _ex1256: _dm716[_arg2] = new Tower(); break; case _na509: _dm716[_arg2] = new Bottle(); break; case _gm662: _dm716[_arg2] = new Item(); break; case _st764: _dm716[_arg2] = new Grave(); _vq2769[_arg2] = _arg7; break; case _gy2860: _dm716[_arg2] = new Blade(); _arg4--; break; case _vr317: _dm716[_arg2] = new Devil(); _dm716[_arg2]._hd839 = (_arg4 - _ft595); break; case _gw1216: _dm716[_arg2] = new Pendulum(); _dm716[_arg2]._dc2382 = _arg3; _dm716[_arg2]._hd839 = (_arg4 + (_ft595 >> 1)); break; case _nd3022: _dm716[_arg2] = new Thwomp(); _arg4 = (_arg4 + (2 * _ft595)); break; case _kp768: _dm716[_arg2] = new Door(); _dm716[_arg2]._fp2914 = !((_arg7 == -1)); break; }; _au294[_arg2] = _arg1; var _local8:int; var _local9:int; switch (_dm716[_arg2]._ij2888){ case GROUP_ENEMY: case GROUP_PROJECTILE: case GROUP_ENEMY_PROJECTILE: if (_arg5 != -1){ _local8 = _my2247[_arg5]; } else { _local8 = ((Math.random() < 0.5)) ? -1 : 1; }; break; }; _qu2081[_arg2] = (("WIDTH" in _dm716[_arg2])) ? _dm716[_arg2].WIDTH : _sd2825(_arg1); _kc709[_arg2] = (("_pg2828" in _dm716[_arg2])) ? _dm716[_arg2]._pg2828 : _yd2430(_arg1); if (_arg6 != -1){ _arg3 = (_arg3 + (((_arg6 & RIGHT))!=0) ? (-(_qu2081[_arg2]) >> 1) : (((_arg6 & LEFT))!=0) ? (_qu2081[_arg2] >> 1) : 0); }; _fb111[_arg2] = _arg3; _is2927[_arg2] = _arg4; _qr767[_arg2] = (_dm716[_arg2]._cm2639 * _local8); _yg1495[_arg2] = _dm716[_arg2]._nx1446; _my2247[_arg2] = ((_local8 < 0)) ? -1 : 1; if (("_aa3156" in _dm716[_arg2])){ _mi1660[_arg2] = _dm716[_arg2]._aa3156; }; _mx716[_arg2] = _dm716[_arg2]._kd542; _vv1207[_arg2] = _dm716[_arg2]._mu2489; _yo1820[_arg2] = _dm716[_arg2]._np1949; _ms2528[_arg2] = (("_vc283" in _dm716[_arg2])) ? _dm716[_arg2]._vc283 : 0; _me422[_arg2] = (("STATE" in _dm716[_arg2])) ? _dm716[_arg2].STATE : STATE_ACTIVE; switch (_arg1){ case _rr1115: _qr767[_arg2] = (_qr767[_arg2] * _fe2352); _yg1495[_arg2] = (_yg1495[_arg2] * _fe2352); break; }; return (_arg2); } final private function _wc2952():void{ trace("saveData()"); try { _kp2677.data.exists = true; _kp2677.data.music_on = music_on; _kp2677.data.sfx_on = sfx_on; _kp2677.data.hiscore = hiscore.value; _kp2677.data.keys = keys; _kp2677.data._pj820 = _pj820; _kp2677.data._rn2505 = _rn2505; _kp2677.data.achievement_unlocked = Achievements.achievement_unlocked; _kp2677.data.prev_player_floor = prev_player_floor; _kp2677.data.best_player_floor = best_player_floor; _kp2677.flush(); } catch(e:Error) { Security.showSettings(SecurityPanel.LOCAL_STORAGE); }; } final private function _yd2430(_arg1:int):int{ return (_ym2351[((_arg1 << 1) + 1)]); } final private function _kp2905(_arg1:int):Boolean{ if ((ticks % _dm716[_arg1]._id486) == 0){ var _local2 = _vq2769; var _local3 = _arg1; var _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; if (_local4 >= (_ev894(_au294[_arg1]) * _mc2559(_au294[_arg1]))){ _vq2769[_arg1] = 0; return (true); }; }; return (false); } final private function _tb1270(_arg1:int):void{ _qi2365 = _arg1; _wl2598.rotationY = 0; _qf779 = false; _wl2598.visible = true; Audio.playSound(Res.SOUND_WARP); _bs970 = ((((_arg1 == -1)) && ((_he494 > 0)))) ? _jv234 : _bs970; } final private function _ur439(_arg1:int, _arg2:int):Boolean{ if (_arg1 == _arg2){ return (false); }; _bk681 = (_fb111[_arg1] - (_qu2081[_arg1] >> 1)); _dx3176 = (_bk681 + _qu2081[_arg1]); _gf295 = (_is2927[_arg1] + (((_dm716[_arg1]._du2681 & _dt1890))!=0) ? (_kc709[_arg1] >> 1) : 0); _rg2823 = (_gf295 - _em2947(_arg1)); _lo541 = (_fb111[_arg2] - (_qu2081[_arg2] >> 1)); _ea1317 = (_lo541 + _qu2081[_arg2]); _gk36 = (_is2927[_arg2] + (((_dm716[_arg2]._du2681 & _dt1890))!=0) ? (_kc709[_arg2] >> 1) : 0); _qi1160 = (_gk36 - _em2947(_arg2)); if ((((((((_dx3176 > _lo541)) && ((_bk681 < _ea1317)))) && ((_gf295 > _qi1160)))) && ((_rg2823 < _gk36)))){ return (true); }; return (false); } final private function _nl1245(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Boolean{ if ((((((((mouseX > _arg1)) && ((mouseX < (_arg1 + _arg3))))) && ((mouseY > _arg2)))) && ((mouseY < (_arg2 + _arg4))))){ return (true); }; return (false); } final private function _cr2805():void{ if (_rl1132.value < _cj841){ _rl1132.addValue(1); Messages.add(Res.text_XML.life_get, _fb111[_tm2076], (_is2927[_tm2076] - _ft595), (_rm371 | BOTTOM)); }; } final private function _sl3095():void{ if (((!((_me422[_tm2076] == STATE_DEAD))) && (!((_me422[_tm2076] == STATE_ATTACKING_DOWNWARDS))))){ _me422[_tm2076] = STATE_ATTACKING_DOWNWARDS; _vq2769[_tm2076] = 0; Audio.playSound(Res.SOUND_PILEDRIVER); }; } final private function _ss989(_arg1:int, _arg2:int, _arg3:int, _arg4:int=-1):int{ var _local5:int; var _local7:Boolean; var _local6:int; do { _local5 = (_arg1 + _ij2524(_arg2)); _local7 = (_bk2394[_local5][(_arg3 - 1)] == _ke377); if (_local7){ switch (_bk2394[_local5][_arg3]){ case _is2809: case _id2380: case _kw2375: case _ke377: case _sg3010: _local7 = false; break; }; }; } while (((!(_local7)) && ((_temp1 < ((_arg4 == -1)) ? _ur2520 : _arg4)))); return ((_local7) ? _local5 : -1); } final private function _uk265(_arg1:int):Boolean{ switch (_au294[_arg1]){ case _ma984: case _hd932: case _gw1216: case _wr2374: case _bx2494: return (true); }; _ts2659 = ((camera_left + _fb111[_arg1]) - (_sd2825(_au294[_arg1]) >> 1)); _tf2707 = (_ts2659 + _sd2825(_au294[_arg1])); _jl2402 = (camera_top + _is2927[_arg1]); _ia1320 = (_jl2402 - _yd2430(_au294[_arg1])); if ((((((((_ts2659 >= 0)) && ((_ts2659 < _um3215)))) || ((((_tf2707 >= 0)) && ((_tf2707 < _um3215)))))) && ((((((_ia1320 >= 0)) && ((_ia1320 < _nv1774)))) || ((((_jl2402 >= 0)) && ((_jl2402 < _nv1774)))))))){ return (true); }; return (false); } final private function _yl1559():void{ _rm153 = 0; var _local1:int; while (_local1 < _yt740) { _tk2059(_local1); _local1++; }; } final private function _gf2276(_arg1:int, _arg2:int):int{ var _local3:int; var _local4:int; _local4 = 0; while (_local4 < _im3139) { _local3 = (((_arg2 == -1)) ? (_im3139 - 1) : 0 + (_local4 * _arg2)); if (!_bo3091[_local3][_arg1]){ return (_local3); }; _local4++; }; return (0); } final private function startTransition(_arg1:int, _arg2:int=1):void{ if (transition_dir == 0){ transition_dir = _arg2; _ap40 = _arg1; _ty2462 = ((_arg2 == TRANSITION_IN)) ? 0 : 1; }; } final private function _bc2821(_arg1:int, _arg2:Rectangle):Boolean{ _bk681 = (_fb111[_arg1] - (_qu2081[_arg1] >> 1)); _dx3176 = (_bk681 + _qu2081[_arg1]); _gf295 = (_is2927[_arg1] + (((_dm716[_arg1]._du2681 & _dt1890))!=0) ? (_kc709[_arg1] >> 1) : 0); _rg2823 = (_gf295 - _em2947(_arg1)); _lo541 = _arg2.left; _ea1317 = _arg2.right; _gk36 = _arg2.bottom; _qi1160 = _arg2.top; if ((((((((_dx3176 > _lo541)) && ((_bk681 < _ea1317)))) && ((_gf295 > _qi1160)))) && ((_rg2823 < _gk36)))){ return (true); }; return (false); } final private function _oo1765(_arg1:Event):void{ if (!_rn2457){ _ac1382(); pause(true); }; } final private function _tk2059(_arg1:int):void{ switch (_au294[_arg1]){ case _lq1218: Particles.add(_fb111[_arg1], _is2927[_arg1], Particles.COLOURED, 0xFFFF00); break; case _lf94: Particles.add(_fb111[_arg1], _is2927[_arg1], Particles.COLOURED, 0xFFFFFF); break; }; _me422[_arg1] = STATE_INACTIVE; _au294[_arg1] = _ut2386; _is2927[_arg1] = -1000; _dm716[_arg1] = null; if (_arg1 == _uv690){ _uv690 = -1; }; } final private function _oa2660(_arg1:int):void{ if (transition_dir == 0){ if (((((((Menu.in_menu) && ((_arg1 > -1)))) && ((Menu.menu_transition <= 0)))) && (!(do_game_intro)))){ _uw2697(Menu.menu_option[_arg1]); }; }; } final private function _oo1728():void{ var _local1:int; var _local2:int; var _local3:Boolean; var _local4:String; switch (_me422[_tm2076]){ case STATE_ENTERING_DOOR: case STATE_DEAD: break; default: _local1 = 0; while (_local1 < _yt740) { if (((!((_me422[_local1] == STATE_INACTIVE))) && (((!((_me422[_local1] == STATE_DEAD))) || ((((_au294[_local1] == _td267)) && (_lu2451[_tm2076]))))))){ _local2 = _au294[_local1]; if ((((_local2 == _kp768)) && ((_me422[_tm2076] == STATE_IN_DOOR)))){ if (((_dm716[_local1]._fp2914) && (_ur439(_tm2076, _local1)))){ _me422[_tm2076] = STATE_EXITING_DOOR; Audio.steps_channel.stop(); Audio.playSound(Res.SOUND_DOOR_OPEN); }; }; if (((((!(in_bonus_mode)) && (_la3094()))) && ((_yg1495[_tm2076] < 4)))){ switch (_dm716[_local1]._ij2888){ case GROUP_ENEMY: if (_dm716[_local1]._fq406 > 0){ _dm716[_local1]._fq406--; } else { if (((!(_lu2451[_tm2076])) && (_ur439(_vx2381, _local1)))){ _dm716[_local1]._fq406 = 100; Messages.add(Res.text_XML.nice, _fb111[_local1], (_is2927[_local1] - _ft595), (_rm371 | BOTTOM)); if (_au294[_local1] == _vr317){ Achievements.unlock(Achievements.ACHIEVEMENT_JUMP_OVER_DEVIL); }; Achievements.unlock(Achievements.ACHIEVEMENT_FIRST_JUMP); }; }; break; }; }; switch (_dm716[_local1]._ij2888){ case GROUP_PROJECTILE: if (_dm716[_local1]._kj3056){ if (_ur439(_tm2076, _local1)){ Audio.playSound(Res.SOUND_COLLECT_SHURIKENS); _fl590(_il1958, 1); _tk2059(_local1); if (++_dn3100 >= 50){ Achievements.unlock(Achievements.ACHIEVEMENT_THRIFTY_NINJA); }; }; }; break; case GROUP_ENEMY: case GROUP_ENEMY_PROJECTILE: case GROUP_ITEM: if (((_ur439(_tm2076, _local1)) || ((((((_me422[_tm2076] == STATE_ATTACKING_DOWNWARDS)) && ((_dm716[_local1]._ij2888 == GROUP_ENEMY)))) && (_bc2821(_local1, new Rectangle((_fb111[_tm2076] - 30), (_is2927[_tm2076] - _kc709[_tm2076]), 60, (_kc709[_tm2076] + 8)))))))){ switch (_dm716[_local1]._ij2888){ case GROUP_ENEMY: if (_local2 == _bt1320){ if (!in_bonus_mode){ _qr767[_tm2076] = (_qr767[_tm2076] * 0.5); _br2049 = true; var _local5 = _mi1660; var _local6 = _local1; var _local7 = (_local5[_local6] - 1); _local5[_local6] = _local7; if (_local7 <= 0){ _mi1660[_local1] = 90; Audio.playSound(Res.SOUND_TENTACLES); }; }; } else { if (((!((_local2 == _cg785))) || ((_vq2769[_local1] == 5)))){ if (_me422[_tm2076] == STATE_ATTACKING_DOWNWARDS){ _bm1478(_local1, 2, _tm2076, _ku2801); }; if (((((!((_me422[_local1] == STATE_INACTIVE))) && (!((_me422[_local1] == STATE_DEAD))))) || ((_local2 == _td267)))){ _local3 = true; if (!in_bonus_mode){ switch (_local2){ case _td267: case _cg785: _local3 = _lu2451[_tm2076]; break; case _nd3022: case _hd932: _local3 = !((_me422[_tm2076] == STATE_ATTACKING_DOWNWARDS)); break; }; if (_local3){ _do502(("_ky1648" in _dm716[_local1]), _local1, _dm716[_local1]._up141); }; }; } else { if (_me422[_local1] == STATE_DEAD){ Achievements.unlock(Achievements.ACHIEVEMENT_DEATH_FROM_ABOVE); if (++_gw52 == 50){ Achievements.unlock(Achievements.ACHIEVEMENT_50_PILEDRIVERS); }; }; }; }; }; break; case GROUP_ENEMY_PROJECTILE: if ((((_me422[_local1] == STATE_ACTIVE)) && (!(in_bonus_mode)))){ switch (_local2){ case _ec1136: if (_me422[_dm716[_local1].origin] == STATE_STATIC){ Audio.playSound(Res.SOUND_ASSASSIN_KILL, _qw1296(_dm716[_local1].origin), _pj711(_dm716[_local1].origin)); }; break; }; _do502(true, -1, _dm716[_local1]._up141); _tk2059(_local1); }; break; case GROUP_ITEM: _local4 = ""; switch (_local2){ case _na509: _local4 = Res.text_XML.thank_you; Audio.playSound(Res.SOUND_FAIRY_COLLECT); if (_mm509.value < (_uu1618 - 1)){ _cy1461[_mm509.value] = _fb111[_tm2076]; _ex154[_mm509.value] = _is2927[_tm2076]; _mm509.addValue(1); if (_mm509.value == 15){ Achievements.unlock(Achievements.ACHIEVEMENT_15_FAIRIES); } else { if (_mm509.value == 10){ Achievements.unlock(Achievements.ACHIEVEMENT_10_FAIRIES); } else { if (_mm509.value == 5){ Achievements.unlock(Achievements.ACHIEVEMENT_5_FAIRIES); } else { if (_mm509.value == 3){ Achievements.unlock(Achievements.ACHIEVEMENT_3_FAIRIES); } else { if (_mm509.value == 1){ Achievements.unlock(Achievements.ACHIEVEMENT_FIRST_FAIRY); }; }; }; }; }; }; break; case _iq376: _df629(10000, _local1); Audio.playSound(Res.SOUND_TREASURE); break; case _ea1800: if (((in_bonus_mode) && ((++_gu2069 >= 20)))){ Achievements.unlock(Achievements.ACHIEVEMENT_20_ITEMS_IN_BONUS_MODE); }; switch (_vq2769[_local1]){ case ITEM_SHURIKEN: _fl590(_il1958, 10); _local4 = Res.text_XML.shurikens_collected; Audio.playSound(Res.SOUND_COLLECT_SHURIKENS); break; case ITEM_BOMB: _fl590(_ba1128, 3); _local4 = Res.text_XML.bombs_collected; Audio.playSound(Res.SOUND_COLLECT_BOMBS); break; case ITEM_LIFE: _cr2805(); Audio.playSound(Res.SOUND_EXTRA_LIFE); break; case ITEM_TIME: _df629((Math.floor((_he494 / 1000)) * 100), _local1); if (_he494 < _nv992){ if (_he494 < 1000){ Achievements.unlock(Achievements.ACHIEVEMENT_LAST_SECOND); }; _local4 = Res.text_XML.timer_reset; _he494 = _nv992; }; Audio.playSound(Res.SOUND_TIME_RESET); break; case ITEM_EXTRA_TIME: _df629((Math.floor((_he494 / 1000)) * 100), _local1); _he494 = (_he494 + _nv992); _local4 = Res.text_XML.timer_increase; Audio.playSound(Res.SOUND_TIME_RESET); break; case ITEM_GOLD: _df629(_cf763, _local1); _cf763 = (_cf763 + 100); Audio.playSound(Res.SOUND_TREASURE); break; case ITEM_EYE: _gr934 = true; _local4 = Res.text_XML.i_see_everything; Audio.playSound(Res.SOUND_SEE_EVERYTHING); break; }; break; }; if (_local4.length > 0){ Messages.add(_local4, _fb111[_tm2076], (_is2927[_tm2076] - _ft595), (_rm371 | BOTTOM)); }; _tk2059(_local1); break; }; }; break; default: break; }; }; _local1++; }; break; }; } final private function _be1757(_arg1:Class, _arg2:Boolean=true, _arg3:Boolean=true, _arg4:int=0, _arg5:int=0):void{ _bm1446(); anim = new (_arg1); anim.tabEnabled = false; anim.x = (_pa616 + _arg4); anim.y = (_hu2021 + _arg5); if (_arg2){ anim.play(); } else { anim.stop(); }; if (!sfx_on){ anim.soundTransform = new SoundTransform(0); }; if (_arg3){ addChild(anim); }; } final private function _vn1484(_arg1:int):void{ var _local2 = ""; _wd373 = (_arg1 * _xq3000); while (_wd373 < ((_arg1 + 1) * _xq3000)) { _local2 = ((((_wd373 < 10)) ? "0" : "" + _wd373.toString()) + " "); _vy3032 = 0; while (_vy3032 < _im3139) { switch (_bk2394[_vy3032][_wd373]){ case _pc1528: _local2 = (_local2 + "$"); break; case _ht195: _local2 = (_local2 + "@"); break; case _ke377: _local2 = (_local2 + "."); break; case 10: _local2 = (_local2 + "X"); break; default: _local2 = (_local2 + "#"); break; }; _vy3032++; }; trace(_local2); _local2 = ""; _wd373++; }; } override protected function init3d():void{ _oc121.z = -2165; _wl2598 = new Plane(_vi465, _um3215, _nv1774, 8, 8); _vi465.interactive = false; _vi465._dn1817 = true; _vi465._vk1963 = false; _vi465.smooth = false; _sl1268.addChild(_wl2598); _oc121.zoom = _yd110; _wl2598.visible = false; } final private function _hr598(_arg1:int):void{ switch (_dm716[_arg1]._ij2888){ case GROUP_ENEMY: switch (_au294[_arg1]){ case _sf1894: if (((!((_me422[_arg1] == STATE_TURNING))) && (!((_me422[_arg1] == STATE_DEAD))))){ _qr767[_arg1] = 0; _vq2769[_arg1] = 10; _me422[_arg1] = STATE_TURNING; }; break; case _ss550: break; case _tb76: Audio.playSound(Res.SOUND_BOUNCER_HIT_WALL, _qw1296(_arg1), _pj711(_arg1)); _qr767[_arg1] = -(_qr767[_arg1]); break; default: _qr767[_arg1] = -(_qr767[_arg1]); break; }; break; default: switch (_au294[_arg1]){ case _ol1741: case _ec1136: _qr767[_arg1] = (_yg1495[_arg1] = 0); _dm716[_arg1]._kj3056 = true; _me422[_arg1] = STATE_STATIC; Audio.playSound(Res.SOUND_SHURIKEN_LAND, _qw1296(_arg1), _pj711(_arg1)); break; case _lq1218: case _lf94: _tk2059(_arg1); break; case _rr1115: _qr767[_arg1] = (-(_qr767[_arg1]) * _vv1207[_arg1]); break; case _ma984: _qr767[_arg1] = 0; if (((((((((!((_me422[_arg1] == STATE_DEAD))) && (!((_me422[_arg1] == STATE_ATTACKING_DOWNWARDS))))) && (((_aw2334) || (_gg2726))))) && (!(_lu2451[_arg1])))) && ((_yg1495[_arg1] > 0)))){ _vq2769[_arg1] = ((((_og1683[_il1958] == 0)) && ((_yy845 <= 0)))) ? 77 : 76; _me422[_arg1] = STATE_ACTIVE; if (_be1660){ _yg1495[_arg1] = 0; } else { _gn1090 = true; _yg1495[_arg1] = (_yg1495[_arg1] * 0.8); Particles.add(_fb111[_arg1], _is2927[_arg1], Particles.WALL_DUST, Res.IMAGE_TILES.getPixel(((_bk2394[(_ft767 + (_aw2334) ? -1 : 1)][_ci1051(_is2927[_arg1])] * _ft595) + _ij2524(_ft595)), ((_kh971 * _ft595) + _ij2524(_ft595))), 1, (ONE_EIGHTY_DEGREES + (_aw2334) ? -1 : 0.5), 2); if ((ticks % 5) == 0){ Audio.playSound(Res.SOUND_WALL_SLIDE); }; }; }; break; }; break; }; } final private function _nx2636():void{ var _local1:int; Menu.reset(); _ac1382(); Achievements.clear(); Messages.init(); if (++_pj820 >= 100){ Achievements.unlock(Achievements.ACHIEVEMENT_100_GAMES); }; _local1 = 0; while (_local1 < _gg495) { _fh2778[_local1] = 0; _np246[_local1] = 0; _local1++; }; _mm1944 = false; _uy2974 = true; _ci2912 = _um3215; do_game_intro = false; display_offset = 0; in_bonus_mode = false; _qi2365 = 0; _uv690 = -1; _qt2220 = 0; _mv121 = 0; _ft767 = (_ja2972 = -1); _ix2663 = 0; _ao2400 = 0; _rl1132.setValue(5); _ul1403 = 0; _ga397 = 0; _kd1228 = 0; _cf763 = 100; _wy295.setValue(0); _mt1708 = 0; _sh488 = false; _fe2352 = 0; _gn1090 = true; _br2049 = false; _gu2069 = 0; _dn3100 = 0; _gw52 = 0; _tp1268 = 0; _mv2513 = 0; _dq2621 = 0; _lx717 = 0; _kh971 = 0; _sv2787 = 0; _gt526 = 0; _nc1233 = 0; paused = false; _be232 = false; Particles.init(); _yl1559(); _ew433(true); _pa1199(_ma984, -1, (_py375 >> 1), -(_nv1774)); _pa1199(_mb1862, -1, -1, -1); camera_left = (-(_fb111[_tm2076]) + _pa616); camera_top = (-(_is2927[_tm2076]) + _wu2255); } final private function _lv1467(_arg1:int, _arg2:Number):void{ graphics.beginFill(_arg1, _arg2); graphics.drawRect(0, 0, _um3215, _nv1774); graphics.endFill(); } final private function _nq1471(_arg1:int):int{ return (Math.floor((_arg1 / 1000))); } final private function _do502(_arg1:Boolean, _arg2:int, _arg3:int):void{ if (((_la3094()) || ((_arg3 == KILL_TIME)))){ if (_rl1132.value <= 1){ Audio.stopMusic(); }; _me422[_tm2076] = STATE_DEAD; _vq2769[_tm2076] = 0; _mt1708 = ((_rl1132.value > 1)) ? 100 : 50; _mm509.setValue(0); _gr934 = false; _ga397++; var _local4 = _np246; var _local5 = _arg3; var _local6 = (_local4[_local5] + 1); _local4[_local5] = _local6; if (_ga397 >= 20){ Achievements.unlock(Achievements.ACHIEVEMENT_DIE_20_TIMES); }; if (_arg1){ Particles.add(_fb111[_tm2076], _is2927[_tm2076], Particles.COLOURED, 0x880000); }; Audio.playSound(Res.SOUNDS_PLAYER_DEATH[((_rl1132.value <= 1)) ? 3 : _ij2524(3)], 0.7); switch (_au294[_arg2]){ case _gy2860: Audio.playSound(Res.SOUND_FUZZY_ATTACK); break; case _vr317: Audio.playSound(Res.SOUND_DEVIL_ATTACK); break; case _pe1380: _eh2028(_arg2); break; }; }; } public static function mouseMove(_arg1:MouseEvent):void{ Menu.mouseMove(); } public static function getXMLString(_arg1:String):String{ return (String(Res.text_XML[_arg1])); } public static function getSummaryTimeString(_arg1:Number):String{ var _local3:Number; var _local2:int = Math.floor((_arg1 / 3600000)); _local3 = (_arg1 - (_local2 * 3600000)); var _local4:int = Math.floor((_local3 / 60000)); _local3 = (_local3 - (_local4 * 60000)); var _local5:int = Math.floor((_local3 / 1000)); _local3 = (_local3 - (_local5 * 1000)); return (((((((_local2.toString() + ":") + ((_local4 < 10)) ? "0" : "") + _local4.toString()) + ":") + ((_local5 < 10)) ? "0" : "") + _local5.toString())); } } }//package
Section 166
//MD5 (MD5) package { import com.adobe.utils.*; public class MD5 { public var _af2231:String; public function MD5(_arg1:String){ var _local6:int; var _local7:int; var _local8:int; var _local9:int; super(); var _local2 = 1732584193; var _local3 = -271733879; var _local4 = -1732584194; var _local5 = 271733878; var _local10:Array = createBlocks(_arg1); var _local11:int = _local10.length; var _local12:int; while (_local12 < _local11) { _local6 = _local2; _local7 = _local3; _local8 = _local4; _local9 = _local5; _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551); _local2 = (_local2 + _local6); _local3 = (_local3 + _local7); _local4 = (_local4 + _local8); _local5 = (_local5 + _local9); _local12 = (_local12 + 16); }; _af2231 = (((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)); trace(("_hash: " + _af2231)); } public function init():String{ return (_af2231); } private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } private static function createBlocks(_arg1:String):Array{ var _local2:Array = new Array(); var _local3:int = (_arg1.length * 8); var _local4 = 0xFF; var _local5:int; while (_local5 < _local3) { _local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32))); _local5 = (_local5 + 8); }; _local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32))); _local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3; return (_local2); } private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(_mg1708, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } private static function f(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 & _arg2) | (~(_arg1) & _arg3))); } private static function g(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 & _arg3) | (_arg2 & ~(_arg3)))); } private static function h(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 ^ _arg2) ^ _arg3)); } private static function _mg1708(_arg1:int, _arg2:int, _arg3:int):int{ return ((_arg2 ^ (_arg1 | ~(_arg3)))); } private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{ var _local9:int = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8); return ((IntUtil.rol(_local9, _arg7) + _arg3)); } private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } } }//package
Section 167
//Menu (Menu) package { import flash.display.*; public class Menu { public static const OPTION_VIEW_GAME_STATS:int = 37; public static const OPTION_TOGGLE_SFX:int = 17; public static const OPTION_QUIT_NO:int = 35; public static const MENU_PAUSED:Array = [TITLE_PAUSED, MENU_GAP, OPTION_RESUME_GAME, OPTION_RETRY, OPTION_OPTIONS, OPTION_ACHIEVEMENTS, OPTION_QUIT_GAME]; public static const OPTION_NULL:int = -100; public static const TITLE_PAUSED:int = -6; public static const OPTION_FINISHED_DEFINING_KEYS:int = 20; public static const OPTION_SUBMIT_SCORE:int = 9; public static const OPTION_NEXT_PAGE:int = 39; public static const MENU_GAME_OVER:Array = [OPTION_SUBMIT_SCORE, OPTION_RETRY, OPTION_VIEW_GAME_STATS, OPTION_QUIT_GAME]; public static const TITLE_CONFIRM_QUIT:int = -3; public static const OPTION_RETURN_TO_GAME:int = 41; public static const OPTION_MORE_GAMES:int = 5; public static const MENU_SPACING:int = 8; public static const OPTION_RETRY_YES:int = 12; public static const OPTION_RETRY:int = 11; public static const MENU_CONFIRM_RETRY:Array = [TITLE_CONFIRM_RETRY, MENU_GAP, OPTION_RETRY_YES, OPTION_RETRY_NO]; public static const OPTION_QUIT_YES:int = 34; public static const TITLE_CONFIRM_RETRY:int = -4; public static const OPTION_RETRY_NO:int = 13; public static const OPTION_BACK_TO_MAIN_MENU:int = 6; public static const TITLE_CREDITS:int = -5; public static const TITLE_OPTIONS:int = -1; public static const OPTION_MEGADEV:int = 4; public static const MENU_CONFIRM_QUIT:Array = [TITLE_CONFIRM_QUIT, MENU_GAP, OPTION_QUIT_YES, OPTION_QUIT_NO]; public static const TITLE_GAME_MODE:int = -2; public static const OPTION_LEADERBOARD:int = 2; public static const OPTION_QUIT_GAME:int = 8; public static const MENU_MAIN:Array = [TITLE_MAIN_MENU, MENU_GAP, OPTION_START_GAME, OPTION_HOW_TO_PLAY, OPTION_MANUAL, OPTION_ACHIEVEMENTS, OPTION_OPTIONS, OPTION_CREDITS]; public static const MAX_MENU_ITEMS:int = 10; public static const MENU_OPTIONS:Array = [TITLE_OPTIONS, MENU_GAP, OPTION_TOGGLE_MUSIC, OPTION_TOGGLE_SFX, OPTION_TOGGLE_FULL_SCREEN, OPTION_REDEFINE_KEYS, OPTION_EXIT_OPTIONS]; public static const OPTION_REDEFINE_KEYS:int = 19; public static const OPTION_HOW_TO_PLAY:int = 1; public static const OPTION_CREDITS:int = 3; public static const OPTION_OPTIONS:int = 10; public static const OPTION_ACHIEVEMENTS:int = 15; public static const OPTION_TOGGLE_FULL_SCREEN:int = 18; public static const OPTION_CANCEL_DEFINE_KEYS:int = 21; public static const TITLE_ACHIEVEMENTS:int = -8; public static const OPTION_MANUAL:int = 40; public static const OPTION_PREV_PAGE:int = 38; public static const MENU_BAR_HEIGHT:int = 26; public static const MENU_GAP:int = -99; public static const OPTION_START_GAME:int = 0; public static const TITLE_MAIN_MENU:int = -7; public static const OPTION_DEFAULT_KEYS:int = 22; public static const OPTION_TOGGLE_MUSIC:int = 16; public static const OPTION_EXIT_OPTIONS:int = 14; public static const OPTION_RESUME_GAME:int = 7; public static const OPTION_EXIT_CREDITS:int = 36; public static const OPTION_RETURN_TO_SUMMARY:int = 33; public static var mouse_over_menu_item:int; public static var menu_bar_hcentre:Array = new Array(MAX_MENU_ITEMS); public static var in_menu:Boolean = false; public static var menu_transition:Number; public static var num_menu_items:int; public static var menu_bar_top:Array = new Array(MAX_MENU_ITEMS); public static var menu_option:Array = new Array(MAX_MENU_ITEMS); public static var current_menu:Array; public static var menu_top:int; public static var menu_image:Array = new Array(MAX_MENU_ITEMS); public static var last_option_index:int; public static var mouse_hold_timer:int = 0; public static var current_menu_item:int; public static var menu_bar_width:Array = new Array(MAX_MENU_ITEMS); public static function getString(_arg1:int):String{ switch (_arg1){ case TITLE_ACHIEVEMENTS: return (Res.text_XML.title_achievements); case TITLE_MAIN_MENU: return (Res.text_XML.title_main_menu); case TITLE_PAUSED: return (Res.text_XML.title_paused); case TITLE_CREDITS: return (Res.text_XML.title_credits); case TITLE_OPTIONS: return (Res.text_XML.title_options); case TITLE_CONFIRM_QUIT: case TITLE_CONFIRM_RETRY: return (Res.text_XML.confirm_quit); case OPTION_OPTIONS: return (Res.text_XML.options); case OPTION_ACHIEVEMENTS: return (Res.text_XML.achievements); case OPTION_CREDITS: return (Res.text_XML.credits); case OPTION_HOW_TO_PLAY: return (Res.text_XML.how_to_play); case OPTION_LEADERBOARD: return (Res.text_XML.leaderboard); case OPTION_BACK_TO_MAIN_MENU: case OPTION_EXIT_OPTIONS: case OPTION_EXIT_CREDITS: case OPTION_RETURN_TO_GAME: return (Res.text_XML.back); case OPTION_RETURN_TO_SUMMARY: return (Res.text_XML.exit); case OPTION_MEGADEV: return (Res.text_XML.visit_megadev); case OPTION_MORE_GAMES: return (Res.text_XML.more_games); case OPTION_QUIT_GAME: return (Res.text_XML.quit); case OPTION_RESUME_GAME: return (Res.text_XML.resume); case OPTION_START_GAME: return (Res.text_XML.start_game); case OPTION_SUBMIT_SCORE: return (Res.text_XML.submit_score); case OPTION_RETRY: return (Res.text_XML.retry); case OPTION_VIEW_GAME_STATS: return (Res.text_XML.view_stats); case OPTION_QUIT_YES: case OPTION_RETRY_YES: return (Res.text_XML.yes); case OPTION_QUIT_NO: case OPTION_RETRY_NO: return (Res.text_XML.no); case OPTION_TOGGLE_MUSIC: return ((Main.music_on) ? Res.text_XML.music_on : Res.text_XML.music_off); case OPTION_TOGGLE_SFX: return ((Main.sfx_on) ? Res.text_XML.sound_on : Res.text_XML.sound_off); case OPTION_TOGGLE_FULL_SCREEN: return (((Main.stage_ref.displayState == StageDisplayState.FULL_SCREEN)) ? Res.text_XML.full_screen_on : Res.text_XML.full_screen_off); case OPTION_REDEFINE_KEYS: return (Res.text_XML.redefine_keys); case OPTION_MANUAL: return (Res.text_XML.read_the_manual); case OPTION_PREV_PAGE: return (Res.text_XML.previous); case OPTION_NEXT_PAGE: return (Res.text_XML.next); }; return (""); } public static function mouseMove():void{ var _local1:int; if (Main.transition_dir == 0){ if (((((in_menu) && ((menu_transition <= 0)))) && (((!((Main.game_state == Main.GAME_STATE_SUMMARY))) || ((Main.anim == null)))))){ _local1 = mouseIsOverMenuItem(); if (_local1 != mouse_over_menu_item){ if (menu_option[_local1] > -1){ mouse_over_menu_item = _local1; current_menu_item = _local1; Audio.playSound(Res.SOUND_ROLLOVER); } else { mouse_over_menu_item = -1; }; }; }; }; } public static function draw(_arg1:Number=0):void{ var _local2:int; var _local3:Boolean; var _local4:int; var _local5:int; _local2 = 0; while (_local2 < num_menu_items) { _local4 = menu_bar_hcentre[_local2]; _local5 = ((menu_bar_top[_local2] + (MENU_BAR_HEIGHT >> 1)) + _arg1); if (mouse_over_menu_item != -1){ if (menu_option[mouse_over_menu_item] != -1){ _local3 = (mouse_over_menu_item == _local2); }; } else { _local3 = (current_menu_item == _local2); }; Gfx.drawRegion(Main._lk34, menu_image[_local2], (1 - menu_transition), 1, _local4, _local5, (Gfx._dt1890 | Gfx._rm371)); if (((_local3) && ((menu_transition <= 0)))){ Gfx.drawFrame(Main._lk34, Res.IMAGE_MENU_SELECTION, ((_local4 + (menu_bar_width[_local2] >> 1)) + 4), _local5, 0, 1, 1, (Gfx._dt1890 | Gfx.LEFT)); }; _local2++; }; } public static function reset():void{ in_menu = false; num_menu_items = 0; mouse_over_menu_item = -1; } public static function mouseIsOverMenuItem():int{ var _local1:int; while (_local1 < num_menu_items) { if (menu_option[_local1] != OPTION_MEGADEV){ if ((((((((Main.stage_ref.mouseX > (menu_bar_hcentre[_local1] - (menu_bar_width[_local1] >> 1)))) && ((Main.stage_ref.mouseX < (menu_bar_hcentre[_local1] + (menu_bar_width[_local1] >> 1)))))) && ((Main.stage_ref.mouseY > menu_bar_top[_local1])))) && ((Main.stage_ref.mouseY < (menu_bar_top[_local1] + MENU_BAR_HEIGHT))))){ return (_local1); }; }; _local1++; }; return (-1); } public static function addOption(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{ var _local6:int; var _local7:int; trace((((((((((("addOption(" + _arg1) + ", ") + _arg2) + ", ") + _arg3) + ", ") + _arg4) + ", ") + _arg5) + ")")); if (_arg2 == MENU_GAP){ return; }; in_menu = true; menu_transition = 1; menu_option[num_menu_items] = _arg2; if (_arg1.length == 0){ _arg1 = getString(_arg2); }; switch (_arg2){ case OPTION_MEGADEV: menu_image[num_menu_items] = Res.IMAGE_MEGADEV_LOGO; break; default: _local6 = Gfx.getBitmapTextWidth(_arg1); menu_image[num_menu_items] = new BitmapData(_local6, Res.BITMAP_FONT_HEIGHT, true, 0); Gfx.drawBitmapText(menu_image[num_menu_items], _arg1); break; }; _local7 = menu_image[num_menu_items].height; menu_bar_width[num_menu_items] = menu_image[num_menu_items].width; _arg3 = (_arg3 + (Gfx.alignX(_arg5, menu_bar_width[num_menu_items]) + (menu_bar_width[num_menu_items] >> 1))); _arg4 = (_arg4 + Gfx.alignY(_arg5, _local7)); menu_bar_hcentre[num_menu_items] = _arg3; menu_bar_top[num_menu_items] = _arg4; num_menu_items++; } public static function setup(_arg1:Array, _arg2:Boolean=true):void{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local9:String; var _local10:int; var _local11:Boolean; var _local12:Boolean; _local3 = 581; _local4 = 120; _local5 = Gfx.RIGHT; switch (_arg1){ case MENU_GAME_OVER: _local3 = 488; _local4 = 300; _local5 = Gfx._rm371; break; default: if (Main.game_state == Main.GAME_STATE_TITLE){ _local4 = 324; _local5 = (Gfx.RIGHT | Gfx._dt1890); }; break; }; in_menu = true; num_menu_items = 0; current_menu = _arg1; if (_arg2){ mouse_over_menu_item = -1; }; var _local8:int; _local6 = 0; while (_local6 < 2) { _local7 = 0; while (_local7 < _arg1.length) { _local10 = _arg1[_local7]; _local11 = true; _local12 = true; if (_local6 == 1){ _local9 = getString(_local10); }; switch (_local10){ case OPTION_TOGGLE_FULL_SCREEN: _local12 = Preloader.allow_fullscreen; break; }; if (_local12){ if (_arg1[_local7] != MENU_GAP){ if (_local6 == 0){ _local8 = (_local8 + (MENU_BAR_HEIGHT + MENU_SPACING)); } else { addOption(_local9, _local10, _local3, _local4, (Gfx.TOP | _local5)); _local4 = (_local4 + (MENU_BAR_HEIGHT + MENU_SPACING)); }; } else { if (_local6 == 0){ _local8 = (_local8 + (MENU_BAR_HEIGHT >> 1)); } else { _local4 = (_local4 + (MENU_BAR_HEIGHT >> 1)); }; }; }; _local7++; }; if (_local6 == 0){ _local4 = (_local4 + Gfx.alignY(_local5, _local8)); }; _local6++; }; menu_transition = (_arg2) ? 1 : 0; if (_arg2){ findMenuTop(); }; switch (_arg1){ case MENU_MAIN: case MENU_OPTIONS: addOption("", OPTION_MEGADEV, 9, (Main._nv1774 + 3), (Gfx.BOTTOM | Gfx.LEFT)); break; }; } public static function tick():void{ if (((in_menu) && ((Main.transition_dir == 0)))){ if (menu_transition > 0){ if (!Main.do_game_intro){ menu_transition = Math.max(0, (menu_transition = (menu_transition - (0.01 + (menu_transition * 0.2))))); if (menu_transition == 0){ mouseMove(); }; }; }; }; } public static function findMenuTop():void{ menu_top = 0; while (menu_option[menu_top] < 0) { menu_top++; }; current_menu_item = menu_top; last_option_index = num_menu_items; } } }//package
Section 168
//Messages (Messages) package { import flash.geom.*; import flash.media.*; public class Messages { public static const MAX_MESSAGES:int = 4; public static var message_x:Array = new Array(MAX_MESSAGES); public static var message_y:Array = new Array(MAX_MESSAGES); public static var message_image:Array = new Array(MAX_MESSAGES); public static var _mg1708:int; public static var message_opacity:Array = new Array(MAX_MESSAGES); public static var message_hold:Array = new Array(MAX_MESSAGES); public static function draw():void{ _mg1708 = 0; while (_mg1708 < MAX_MESSAGES) { if (message_opacity[_mg1708] > 0){ Gfx.drawFrame(Main._lk34, message_image[_mg1708], (Main.camera_left + message_x[_mg1708]), ((Main.camera_top + message_y[_mg1708]) + Main.display_offset), 0, 1, 1, -1, new ColorTransform(1, 1, 1, message_opacity[_mg1708])); }; _mg1708++; }; } public static function add(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:Sound=null):void{ if (_arg5 != null){ Audio.playSound(_arg5); }; _mg1708 = 0; while (_mg1708 < MAX_MESSAGES) { if (message_opacity[_mg1708] <= 0){ message_image[_mg1708] = Gfx.stringToImage(_arg1, -1, "game_font", 16, (Main.in_bonus_mode) ? 0 : 0xFFFFFF, false); _arg2 = (_arg2 + Gfx.alignX(_arg4, message_image[_mg1708].width)); _arg3 = (_arg3 + Gfx.alignY(_arg4, message_image[_mg1708].height)); message_x[_mg1708] = _arg2; message_y[_mg1708] = (_arg3 + (_mg1708 * 16)); message_opacity[_mg1708] = 1; message_hold[_mg1708] = 30; _mg1708 = MAX_MESSAGES; }; _mg1708++; }; } public static function tick():void{ _mg1708 = 0; while (_mg1708 < MAX_MESSAGES) { if (message_opacity[_mg1708] > 0){ var _local1 = message_hold; var _local2 = _mg1708; var _local3 = (_local1[_local2] - 1); _local1[_local2] = _local3; if (_local3 < 0){ message_opacity[_mg1708] = (message_opacity[_mg1708] - 0.05); }; _local1 = message_y; _local2 = _mg1708; _local3 = (_local1[_local2] - 1); _local1[_local2] = _local3; }; _mg1708++; }; } public static function init():void{ _mg1708 = 0; while (_mg1708 < MAX_MESSAGES) { message_opacity[_mg1708] = 0; _mg1708++; }; } } }//package
Section 169
//PaperBase (PaperBase) package { import flash.events.*; import flash.display.*; import org.papervision3d.view.*; import org.papervision3d.render.*; import org.papervision3d.cameras.*; import org.papervision3d.scenes.*; public class PaperBase extends Sprite { public var renderer:BasicRenderEngine; public var _oc121:Camera3D; public var _sl1268:Scene3D; public var _dx2443:Viewport3D; protected function init3d():void{ } protected function _ti947():void{ } protected function _xa2939(_arg1:Number, _arg2:Number):void{ _dx2443 = new Viewport3D(_arg1, _arg2, false, true, true, true); addChild(_dx2443); renderer = new BasicRenderEngine(); _sl1268 = new Scene3D(); _oc121 = new Camera3D(); } protected function _lc974():void{ addEventListener(Event.ENTER_FRAME, onEnterFrame); } public function init(_arg1:Number=800, _arg2:Number=600):void{ _xa2939(_arg1, _arg2); init3d(); _ti947(); _lc974(); } protected function onEnterFrame(_arg1:Event):void{ _dn2176(); renderer._kp610(_sl1268, _oc121, _dx2443); } protected function _dn2176():void{ } } }//package
Section 170
//Particles (Particles) package { public class Particles { public static const PARTICLES_PER_EXPLOSION:int = 32; public static const WALL_DUST:int = -2; public static const MAX_PARTICLES:int = 128; public static const COLOURED:int = -1; public static const PARTICLE_SPEED:int = 8; public static const DEATH_BLOOD:int = 1; public static const FEATHER:int = 0; public static const PARTICLE_ANGLE:Number = 0.196349540849362; public static var particle_y:Array = new Array(MAX_PARTICLES); public static var particle_frame:Array = new Array(MAX_PARTICLES); public static var _speed:int; public static var _y:int; public static var particle_type:Array = new Array(MAX_PARTICLES); public static var particle_index:int = 0; public static var particle_size:Array = new Array(MAX_PARTICLES); public static var particle_vx:Array = new Array(MAX_PARTICLES); public static var _explosion_rotation:Number; public static var particle_vy:Array = new Array(MAX_PARTICLES); public static var particle_colour:Array = new Array(MAX_PARTICLES); public static var _mg1708:int; public static var _x:int; public static var particle_x:Array = new Array(MAX_PARTICLES); public static function draw():void{ _mg1708 = 0; while (_mg1708 < MAX_PARTICLES) { if (particle_size[_mg1708] > 0){ _x = (Main.camera_left + particle_x[_mg1708]); _y = (Main.camera_top + particle_y[_mg1708]); switch (particle_type[_mg1708]){ case FEATHER: if (Math.random() < 0.5){ Gfx.drawFrame(Main._lk34, Res.IMAGE_FEATHER, _x, _y, particle_frame[_mg1708], 4, 1, (Gfx._rm371 | Gfx._dt1890)); }; break; case COLOURED: case WALL_DUST: Gfx.fillRect(Main._lk34, _x, _y, particle_size[_mg1708], particle_size[_mg1708], (Gfx._rm371 | Gfx._dt1890), particle_colour[_mg1708]); break; }; }; _mg1708++; }; } public static function init():void{ particle_index = 0; _mg1708 = 0; while (_mg1708 < MAX_PARTICLES) { particle_size[_mg1708] = 0; _mg1708++; }; } public static function add(_arg1:int, _arg2:int, _arg3:int, _arg4:int=0xFFFFFF, _arg5:int=32, _arg6:Number=0, _arg7:Number=8):void{ _mg1708 = 0; while (_mg1708 < _arg5) { _explosion_rotation = (Math.random() * Main.THREE_SIXTY_DEGREES); particle_type[particle_index] = _arg3; particle_frame[particle_index] = 0; _speed = ((_arg7 / 2) + (Math.random() * _arg7)); switch (_arg3){ case FEATHER: particle_frame[particle_index] = _ij2524(4); break; case WALL_DUST: _explosion_rotation = (_arg6 + (0.5 + Math.random())); break; case DEATH_BLOOD: _explosion_rotation = ((Main.ONE_EIGHTY_DEGREES - 0.5) + Math.random()); particle_type[particle_index] = COLOURED; break; }; particle_vx[particle_index] = (Math.sin(((PARTICLE_ANGLE * _mg1708) + _explosion_rotation)) * _speed); particle_vy[particle_index] = (-2 + (Math.cos(((PARTICLE_ANGLE * _mg1708) + _explosion_rotation)) * _speed)); particle_colour[particle_index] = (Main.in_bonus_mode) ? 0 : _arg4; particle_x[particle_index] = _arg1; particle_y[particle_index] = _arg2; particle_size[particle_index] = 11; if (++particle_index >= MAX_PARTICLES){ particle_index = 0; }; _mg1708++; }; } public static function tick():void{ _mg1708 = 0; while (_mg1708 < MAX_PARTICLES) { if (particle_size[_mg1708] > 0){ particle_size[_mg1708] = (particle_size[_mg1708] - 0.1); particle_x[_mg1708] = (particle_x[_mg1708] + particle_vx[_mg1708]); particle_y[_mg1708] = (particle_y[_mg1708] + particle_vy[_mg1708]); switch (particle_type[_mg1708]){ case FEATHER: particle_vx[_mg1708] = (particle_vx[_mg1708] * 0.9); particle_vy[_mg1708] = (particle_vy[_mg1708] + 0.1); break; default: particle_vx[_mg1708] = (particle_vx[_mg1708] * 0.99); particle_vy[_mg1708] = (particle_vy[_mg1708] + 0.2); break; }; }; _mg1708++; }; } public static function _ij2524(_arg1:int):int{ return (((_arg1 == 0)) ? 0 : Math.floor((Math.random() * _arg1))); } } }//package
Section 171
//Pendulum (Pendulum) package { public class Pendulum { public const _vc283:int = 1; public const _eo2101:Boolean = false; public const _lf3116:Boolean = false; public const _gp1063:int = 0xFFFFFF; public const WIDTH:Number = 22; public const _pg2828:Number = 22; public const _yx2572:Boolean = true; public const _ky1648:Boolean = true; public const _kd542:Number = 1; public const _cm2639:Number = 0; public const _nx1446:Number = 0; public const _wq2071:Number = 0; public const _du2681:int; public const _mu928:uint = 4294901760; public const _yh1686:Boolean; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = true; public const STATE:int; public const _np1949:Number = 1; public const _up141:int; public const _kx2846:int = 100; public var _rg1832:int; public var _dc2382:int; public var _ao2766:Number; public var _hd839:int; public var _fq406:int;// = 0 public var angle:Number; public var _kj3056:Boolean;// = false public function Pendulum(){ _ij2888 = Main.GROUP_ENEMY; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx._dt1890); _up141 = Main.KILL_BALL; _yh1686 = (Math.random() < 0.5); angle = Main.ONE_EIGHTY_DEGREES; _rg1832 = (_yh1686) ? ((Math.random() < 0.5)) ? -1 : 1 : -1; _ao2766 = (_yh1686) ? 0.05 : 0.01; super(); } public function tick():void{ angle = (angle + (_ao2766 * _rg1832)); if (!_yh1686){ if (angle > Main.NINETY_DEGREES){ _ao2766 = (_ao2766 + 0.001); } else { _ao2766 = (_ao2766 - 0.001); }; }; } } }//package
Section 172
//Player (Player) package { public class Player { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = -1; public const _du2681:int; public const _mu928:uint = 4278255360; public const _mi702:int = -5; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const WIDTH:int = 16; public const _pg2828:int = 40; public const _tf894:Boolean = true; public const _kd542:Number = 0.8; public const _np1949:Number = 1; public function Player(){ _ij2888 = Main.GROUP_PLAYER; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); super(); } } }//package
Section 173
//PlayerJumpBox (PlayerJumpBox) package { public class PlayerJumpBox { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = -1; public const _du2681:int; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const WIDTH:int = 12; public const _pg2828:int = 20; public const _tf894:Boolean = false; public const _kd542:Number = 1; public const _np1949:Number = 1; public function PlayerJumpBox(){ _ij2888 = Main.GROUP_SPECIAL; _du2681 = (Gfx._rm371 | Gfx.TOP); super(); } } }//package
Section 174
//Preloader (Preloader) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.net.*; import flash.text.*; public dynamic class Preloader extends MovieClip { private const _um3215:int = 640; private const _pa616:int; private const _hu2021:int; private const _nv1774:int = 480; private const _yc1385:String = "This game is site-locked. To obtain a license please e-mail info@megadev.co.uk"; private var _hj1096:Number;// = 0 private var _xt3024:Boolean;// = false private var _ti1900:int;// = 0 private var _lk34:BitmapData; private var _wm1920:Number;// = 0 private var _dd722:Boolean;// = false public static const VERSION_ADULT_SWIM:int = 0; public static const VERSION_TEST:int = 1; public static var site_lock_url:Array = new Array(5); public static var version:int = 1; public static var IMAGE_LOADING_BAR:BitmapData = Bitmap(new CLASS_IMAGE_LOADING_BAR()).bitmapData; public static var achievements_on:Boolean = true; public static var CLASS_IMAGE_LOADING_BAR:Class = Preloader_CLASS_IMAGE_LOADING_BAR; public static var host:String; public static var CLASS_IMAGE_LOADING_BAR_FULL:Class = Preloader_CLASS_IMAGE_LOADING_BAR_FULL; public static var CLASS_IMAGE_BG_LOADING:Class = Preloader_CLASS_IMAGE_BG_LOADING; public static var allow_fullscreen:Boolean = false; public static var IMAGE_BG_LOADING:BitmapData = Bitmap(new CLASS_IMAGE_BG_LOADING()).bitmapData; public static var IMAGE_LOADING_BAR_FULL:BitmapData = Bitmap(new CLASS_IMAGE_LOADING_BAR_FULL()).bitmapData; public function Preloader(){ var _local2:int; var _local3:TextFormat; var _local4:TextField; _pa616 = (_um3215 >> 1); _hu2021 = (_nv1774 >> 1); _lk34 = new BitmapData(_um3215, _nv1774, false); super(); host = this.root.loaderInfo.url.split("/")[2]; _dd722 = (host.length == 0); var _local1:Boolean; switch (version){ case VERSION_ADULT_SWIM: break; case VERSION_TEST: break; }; if (_local1){ _local1 = (site_lock_url[0] == undefined); _local2 = 0; while (_local2 < site_lock_url.length) { trace(((("site_lock_url[" + _local2) + "] = ") + site_lock_url[_local2])); if (((!((site_lock_url[_local2] == undefined))) && ((host.indexOf(site_lock_url[_local2]) == (host.length - site_lock_url[_local2].length))))){ trace("site is ok!"); _local1 = true; _local2 = site_lock_url.length; }; _local2++; }; }; if (_local1){ stop(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; stage.focus = this; addEventListener(Event.ENTER_FRAME, tick); } else { _local3 = new TextFormat(); _local3.font = "Arial"; _local3.size = 16; _local3.color = 0xFFFFFF; _local4 = new TextField(); _local4.defaultTextFormat = _local3; _local4.text = _yc1385; _local4.width = _um3215; _local4.wordWrap = true; addChild(_local4); _local4.x = 40; _local4.y = 220; }; } public function tick(_arg1:Event):void{ if (_dd722){ if (_hj1096 < root.loaderInfo.bytesTotal){ _hj1096 = (_hj1096 + 50000); }; _ti1900 = Math.min(root.loaderInfo.bytesTotal, _hj1096); } else { _ti1900 = root.loaderInfo.bytesLoaded; }; graphics.clear(); Gfx.drawFrame(_lk34, IMAGE_BG_LOADING); Gfx.drawFrame(_lk34, IMAGE_LOADING_BAR, _pa616, (_nv1774 - 24), 0, 1, 1, (Gfx.BOTTOM | Gfx._rm371)); Gfx.drawRegion(_lk34, IMAGE_LOADING_BAR_FULL, _ti1900, root.loaderInfo.bytesTotal, _pa616, (_nv1774 - 24), (Gfx.BOTTOM | Gfx._rm371)); Gfx.drawString(_lk34, (((Gfx.addCommas(_ti1900) + " of ") + Gfx.addCommas(root.loaderInfo.bytesTotal)) + " bytes loaded. Patience, grasshopper..."), (_um3215 - 8), _nv1774, (Gfx.BOTTOM | Gfx.RIGHT), null, "game_font", 16, 0xFFFFFF, false, false); graphics.beginBitmapFill(_lk34, null, false, false); graphics.drawRect(0, 0, _um3215, _nv1774); graphics.endFill(); if (_wm1920 > 0){ graphics.beginFill(0xFFFFFF, Math.min(1, _wm1920)); graphics.drawRect(0, 0, _um3215, _nv1774); graphics.endFill(); }; if (!_xt3024){ if (_es2068()){ _xt3024 = true; }; } else { if ((_wm1920 = (_wm1920 + 0.05)) > 2){ init(); }; }; } final private function _es2068():Boolean{ if (_ti1900 >= root.loaderInfo.bytesTotal){ return (true); }; return (false); } final private function init():void{ var _local2:Object; trace("init()"); removeEventListener(Event.ENTER_FRAME, tick); _lk34 = null; CLASS_IMAGE_BG_LOADING = null; IMAGE_BG_LOADING = null; nextFrame(); var _local1:Class = Class(getDefinitionByName("Main")); if (_local1){ _local2 = new (_local1); addChild((_local2 as DisplayObject)); }; } } }//package
Section 175
//Preloader_CLASS_IMAGE_BG_LOADING (Preloader_CLASS_IMAGE_BG_LOADING) package { import mx.core.*; public class Preloader_CLASS_IMAGE_BG_LOADING extends BitmapAsset { } }//package
Section 176
//Preloader_CLASS_IMAGE_LOADING_BAR (Preloader_CLASS_IMAGE_LOADING_BAR) package { import mx.core.*; public class Preloader_CLASS_IMAGE_LOADING_BAR extends BitmapAsset { } }//package
Section 177
//Preloader_CLASS_IMAGE_LOADING_BAR_FULL (Preloader_CLASS_IMAGE_LOADING_BAR_FULL) package { import mx.core.*; public class Preloader_CLASS_IMAGE_LOADING_BAR_FULL extends BitmapAsset { } }//package
Section 178
//Res (Res) package { import flash.display.*; import flash.utils.*; import flash.media.*; import flash.xml.*; public class Res { public static const CLASS_SOUND_DOOR_OPEN:Class = Res_CLASS_SOUND_DOOR_OPEN; public static const CLASS_SOUND_DOUBLE_JUMP_2:Class = Res_CLASS_SOUND_DOUBLE_JUMP_2; public static const BITMAP_FONT_HEIGHT:int = IMAGE_FONT_TEXT.height; public static const SOUND_WARP:Sound = new CLASS_SOUND_WARP(); public static const TILES_HFRAMES:int = 12; public static const CLASS_SOUND_SEE_EVERYTHING:Class = Res_CLASS_SOUND_SEE_EVERYTHING; public static const CLASS_IMAGE_ACHIEVEMENT_BAR:Class = Res_CLASS_IMAGE_ACHIEVEMENT_BAR; public static const SOUND_ROLLOVER:Sound = new CLASS_SOUND_ROLLOVER(); public static const CLASS_SOUND_GOOMBA_DEATH_0:Class = Res_CLASS_SOUND_GOOMBA_DEATH_0; public static const CLASS_SOUND_GOOMBA_DEATH_1:Class = Res_CLASS_SOUND_GOOMBA_DEATH_1; public static const CLASS_SOUND_DEVIL_ATTACK:Class = Res_CLASS_SOUND_DEVIL_ATTACK; public static const CLASS_IMAGE_FONT_TEXT:Class = Res_CLASS_IMAGE_FONT_TEXT; public static const CLASS_SOUND_WALL_SLIDE:Class = Res_CLASS_SOUND_WALL_SLIDE; public static const SOUND_WALL_SLIDE:Sound = new CLASS_SOUND_WALL_SLIDE(); public static const CLASS_SOUND_SHURIKEN_LAND:Class = Res_CLASS_SOUND_SHURIKEN_LAND; public static const SOUND_WIZARD_TELEPORT:Sound = new CLASS_SOUND_WIZARD_TELEPORT(); public static const CLASS_SOUND_TICK:Class = Res_CLASS_SOUND_TICK; public static const CLASS_SWF_RETRY:Class = Res_CLASS_SWF_RETRY; public static const TREASURE_BLOCK_FRAMES:int = 9; public static const CLASS_XML_TEXT_EN:Class = Res_CLASS_XML_TEXT_EN; public static const CLASS_IMAGE_SHURIKEN:Class = Res_CLASS_IMAGE_SHURIKEN; public static const IMAGE_HEALTH_BAR_LEFT:BitmapData = Bitmap(new CLASS_IMAGE_HEALTH_BAR_LEFT()).bitmapData; public static const CLASS_IMAGE_WARP:Class = Res_CLASS_IMAGE_WARP; public static const CLASS_SOUND_STEP_0:Class = Res_CLASS_SOUND_STEP_0; public static const CLASS_SOUND_STEP_1:Class = Res_CLASS_SOUND_STEP_1; public static const IMAGE_FONT_MEDIUM:BitmapData = Bitmap(new CLASS_IMAGE_FONT_MEDIUM()).bitmapData; public static const IMAGE_CLOUDS:BitmapData = Bitmap(new CLASS_IMAGE_CLOUDS()).bitmapData; public static const CLASS_IMAGE_LOCKED_ICON:Class = Res_CLASS_IMAGE_LOCKED_ICON; public static const CLASS_IMAGE_BOMB:Class = Res_CLASS_IMAGE_BOMB; public static const IMAGE_PLAYER_CROUCHED:BitmapData = Bitmap(new CLASS_IMAGE_PLAYER_CROUCHED()).bitmapData; public static const CLASS_IMAGE_WIZARD:Class = Res_CLASS_IMAGE_WIZARD; public static const CLASS_SWF_DEV_LOGO:Class = Res_CLASS_SWF_DEV_LOGO; public static const CLASS_IMAGE_TEXT_GAME_OVER:Class = Res_CLASS_IMAGE_TEXT_GAME_OVER; public static const IMAGE_TIMER_INDICATOR_ARROW:BitmapData = Bitmap(new CLASS_IMAGE_TIMER_INDICATOR_ARROW()).bitmapData; public static const IMAGE_HUD_FLOOR:BitmapData = Bitmap(new CLASS_IMAGE_HUD_FLOOR()).bitmapData; public static const CLASS_SOUND_LAND:Class = Res_CLASS_SOUND_LAND; public static const CLASS_SOUND_DOOR_STEPS:Class = Res_CLASS_SOUND_DOOR_STEPS; public static const IMAGE_TOWER_BIT:BitmapData = Bitmap(new CLASS_IMAGE_TOWER_BIT()).bitmapData; public static const SOUND_DOOR_STEPS:Sound = new CLASS_SOUND_DOOR_STEPS(); public static const SOUND_ASSASSIN_KNIFE:Sound = new CLASS_SOUND_ASSASSIN_KNIFE(); public static const IMAGE_ENEMY_GRAPH:BitmapData = Bitmap(new CLASS_IMAGE_ENEMY_GRAPH()).bitmapData; public static const CLASS_IMAGE_HEALTH_BAR_LEFT:Class = Res_CLASS_IMAGE_HEALTH_BAR_LEFT; public static const IMAGE_FONT_LARGE:BitmapData = Bitmap(new CLASS_IMAGE_FONT_LARGE()).bitmapData; public static const IMAGE_LASER_H:BitmapData = Bitmap(new CLASS_IMAGE_LASER_H()).bitmapData; public static const CLASS_SOUND_WIZARD_TELEPORT:Class = Res_CLASS_SOUND_WIZARD_TELEPORT; public static const CLASS_IMAGE_FONT_LARGE:Class = Res_CLASS_IMAGE_FONT_LARGE; public static const CLASS_IMAGE_PARATROOPA:Class = Res_CLASS_IMAGE_PARATROOPA; public static const SOUND_FROG_JUMP:Sound = new CLASS_SOUND_FROG_JUMP(); public static const CLASS_IMAGE_PLAYER_SOMERSAULT:Class = Res_CLASS_IMAGE_PLAYER_SOMERSAULT; public static const CLASS_SOUND_DEVIL_DEATH:Class = Res_CLASS_SOUND_DEVIL_DEATH; public static const IMAGE_LASER_V:BitmapData = Bitmap(new CLASS_IMAGE_LASER_V()).bitmapData; public static const CLASS_SOUND_DRAGON_DEATH:Class = Res_CLASS_SOUND_DRAGON_DEATH; public static const CLASS_SOUND_ACHIEVEMENT:Class = Res_CLASS_SOUND_ACHIEVEMENT; public static const IMAGE_GAME_OVER_BG:BitmapData = Bitmap(new CLASS_IMAGE_GAME_OVER_BG()).bitmapData; public static const CLASS_SOUND_THWOMP_DEATH:Class = Res_CLASS_SOUND_THWOMP_DEATH; public static const CLASS_SOUND_MAGIKOOPA_DEATH:Class = Res_CLASS_SOUND_MAGIKOOPA_DEATH; public static const CLASS_IMAGE_MOON:Class = Res_CLASS_IMAGE_MOON; public static const CLASS_SOUND_BAHAMUT_DEATH:Class = Res_CLASS_SOUND_BAHAMUT_DEATH; public static const CLASS_IMAGE_PLAYER_CROUCHED:Class = Res_CLASS_IMAGE_PLAYER_CROUCHED; public static const CLASS_SOUND_TENTACLES:Class = Res_CLASS_SOUND_TENTACLES; public static const CLASS_IMAGE_BOTTLE:Class = Res_CLASS_IMAGE_BOTTLE; public static const CLASS_SOUND_DOOR_GLASS:Class = Res_CLASS_SOUND_DOOR_GLASS; public static const SOUNDS_STEP:Array = [new CLASS_SOUND_STEP_0(), new CLASS_SOUND_STEP_1()]; public static const SOUND_DOOR_OPEN:Sound = new CLASS_SOUND_DOOR_OPEN(); public static const CLASS_IMAGE_MEGADEV_LOGO:Class = Res_CLASS_IMAGE_MEGADEV_LOGO; public static const CLASS_IMAGE_ACHIEVEMENT_ICON:Class = Res_CLASS_IMAGE_ACHIEVEMENT_ICON; public static const CLASS_IMAGE_TOWER_EYE_BIT:Class = Res_CLASS_IMAGE_TOWER_EYE_BIT; public static const CLASS_SOUND_BOUNCER_HIT_WALL:Class = Res_CLASS_SOUND_BOUNCER_HIT_WALL; public static const IMAGE_FONT_TEXT:BitmapData = Bitmap(new CLASS_IMAGE_FONT_TEXT()).bitmapData; public static const CLASS_IMAGE_TUTORIAL_0:Class = Res_CLASS_IMAGE_TUTORIAL_0; public static const CLASS_IMAGE_TUTORIAL_1:Class = Res_CLASS_IMAGE_TUTORIAL_1; public static const CLASS_IMAGE_TUTORIAL_2:Class = Res_CLASS_IMAGE_TUTORIAL_2; public static const CLASS_IMAGE_DRAGON:Class = Res_CLASS_IMAGE_DRAGON; public static const CLASS_IMAGE_PLAYER_THROW_ITEM:Class = Res_CLASS_IMAGE_PLAYER_THROW_ITEM; public static const SOUND_SPIKES_DOWN:Sound = new CLASS_SOUND_SPIKES_DOWN(); public static const CLASS_IMAGE_SPIKES_FLOOR:Class = Res_CLASS_IMAGE_SPIKES_FLOOR; public static const CLASS_IMAGE_MAGIC:Class = Res_CLASS_IMAGE_MAGIC; public static const SOUND_PILEDRIVER:Sound = new CLASS_SOUND_PILEDRIVER(); public static const SOUND_FAIRY_COLLECT:Sound = new CLASS_SOUND_FAIRY_COLLECT(); public static const CLASS_IMAGE_ZOMBIE:Class = Res_CLASS_IMAGE_ZOMBIE; public static const CLASS_SOUND_JUMP_0:Class = Res_CLASS_SOUND_JUMP_0; public static const CLASS_IMAGE_BOUNCER:Class = Res_CLASS_IMAGE_BOUNCER; public static const CLASS_SOUND_ASSASSIN_KILL:Class = Res_CLASS_SOUND_ASSASSIN_KILL; public static const CLASS_IMAGE_FONT_MEDIUM:Class = Res_CLASS_IMAGE_FONT_MEDIUM; public static const CLASS_SOUND_DRAGON_ATTACK:Class = Res_CLASS_SOUND_DRAGON_ATTACK; public static const CLASS_SOUND_JUMP_1:Class = Res_CLASS_SOUND_JUMP_1; public static const CLASS_SOUND_PILEDRIVER:Class = Res_CLASS_SOUND_PILEDRIVER; public static const IMAGES_TUTORIAL:Array = [Bitmap(new CLASS_IMAGE_TUTORIAL_0()).bitmapData, Bitmap(new CLASS_IMAGE_TUTORIAL_1()).bitmapData, Bitmap(new CLASS_IMAGE_TUTORIAL_2()).bitmapData]; public static const CLASS_SOUND_JUMP_2:Class = Res_CLASS_SOUND_JUMP_2; public static const CLASS_SOUND_LASER_DEATH:Class = Res_CLASS_SOUND_LASER_DEATH; public static const BITMAP_FONT_CHARACTERS:int = 68; public static const SOUND_CRUMBLE:Sound = new CLASS_SOUND_CRUMBLE(); public static const CLASS_SOUND_WARP:Class = Res_CLASS_SOUND_WARP; public static const CLASS_IMAGE_FAIRY:Class = Res_CLASS_IMAGE_FAIRY; public static const CLASS_IMAGE_PENDULUM_BALL:Class = Res_CLASS_IMAGE_PENDULUM_BALL; public static const CLASS_SOUND_ASSASSIN_KNIFE:Class = Res_CLASS_SOUND_ASSASSIN_KNIFE; public static const IMAGE_PLAYER_ATTACK_DOWN:BitmapData = Bitmap(new CLASS_IMAGE_PLAYER_ATTACK_DOWN()).bitmapData; public static const CLASS_IMAGE_PLAYER_SLASH:Class = Res_CLASS_IMAGE_PLAYER_SLASH; public static const BITMAP_FONT_CHARACTER_OFFSET:int = -32; public static const CLASS_SOUND_FUZZY_DEATH:Class = Res_CLASS_SOUND_FUZZY_DEATH; public static const CLASS_IMAGE_FROG:Class = Res_CLASS_IMAGE_FROG; public static const CLASS_SOUND_ROCKS_DESTROY:Class = Res_CLASS_SOUND_ROCKS_DESTROY; public static const CLASS_IMAGE_ENEMY_GRAPH:Class = Res_CLASS_IMAGE_ENEMY_GRAPH; public static const SOUND_ZOMBIE_SPOT_PLAYER:Sound = new CLASS_SOUND_ZOMBIE_SPOT_PLAYER(); public static const CLASS_IMAGE_DOOR:Class = Res_CLASS_IMAGE_DOOR; public static const CLASS_IMAGE_GRAVE:Class = Res_CLASS_IMAGE_GRAVE; public static const CLASS_SOUND_PARATROOPA_DEATH:Class = Res_CLASS_SOUND_PARATROOPA_DEATH; public static const SOUND_BIRD_BOUNCE:Sound = new CLASS_SOUND_BIRD_BOUNCE(); public static const IMAGE_FEATHER:BitmapData = Bitmap(new CLASS_IMAGE_FEATHER()).bitmapData; public static const SOUND_WIZARD_SHOOT:Sound = new CLASS_SOUND_WIZARD_SHOOT(); public static const CLASS_IMAGE_HUD_TIME:Class = Res_CLASS_IMAGE_HUD_TIME; public static const CLASS_IMAGE_BAHAMUT:Class = Res_CLASS_IMAGE_BAHAMUT; public static const CLASS_IMAGE_FIREBALL:Class = Res_CLASS_IMAGE_FIREBALL; public static const CLASS_SOUND_SHIELD_DEATH:Class = Res_CLASS_SOUND_SHIELD_DEATH; public static const SOUND_SHURIKEN_LAND:Sound = new CLASS_SOUND_SHURIKEN_LAND(); public static const TILES_VFRAMES:int = 34; public static const CLASS_IMAGE_BOMB_EXPLOSION:Class = Res_CLASS_IMAGE_BOMB_EXPLOSION; public static const IMAGE_FAIRY:BitmapData = Bitmap(new CLASS_IMAGE_FAIRY()).bitmapData; public static const SOUND_TENTACLES:Sound = new CLASS_SOUND_TENTACLES(); public static const SOUNDS_THROW_SHURIKEN:Array = [new CLASS_SOUND_THROW_SHURIKEN_0(), new CLASS_SOUND_THROW_SHURIKEN_1()]; public static const CLASS_IMAGE_BKG_ELEMENTS:Class = Res_CLASS_IMAGE_BKG_ELEMENTS; public static const CLASS_SOUND_COLLECT_BOMBS:Class = Res_CLASS_SOUND_COLLECT_BOMBS; public static const CLASS_SOUND_TREASURE:Class = Res_CLASS_SOUND_TREASURE; public static const IMAGE_INDICATORS:BitmapData = Bitmap(new CLASS_IMAGE_INDICATORS()).bitmapData; public static const SOUNDS_DOOR:Array = [new CLASS_SOUND_DOOR_CLANG(), new CLASS_SOUND_DOOR_CHICKEN_0(), new CLASS_SOUND_DOOR_CHICKEN_1(), new CLASS_SOUND_DOOR_GLASS(), new CLASS_SOUND_DOOR_CAR_0(), new CLASS_SOUND_DOOR_CAR_1(), new CLASS_SOUND_DOOR_CAT_0(), new CLASS_SOUND_DOOR_CAT_1()]; public static const CLASS_SOUND_COLLECT_SHURIKENS:Class = Res_CLASS_SOUND_COLLECT_SHURIKENS; public static const SOUND_THROW_BOMB:Sound = new CLASS_SOUND_THROW_BOMB(); public static const CLASS_IMAGE_TITLE:Class = Res_CLASS_IMAGE_TITLE; public static const CLASS_IMAGE_INDICATORS:Class = Res_CLASS_IMAGE_INDICATORS; public static const CLASS_IMAGE_PLAYER_SWORD:Class = Res_CLASS_IMAGE_PLAYER_SWORD; public static const CLASS_SOUND_SELECT:Class = Res_CLASS_SOUND_SELECT; public static const CLASS_SOUND_FUZZY_ATTACK:Class = Res_CLASS_SOUND_FUZZY_ATTACK; public static const CLASS_IMAGE_ASSASSIN:Class = Res_CLASS_IMAGE_ASSASSIN; public static const CLASS_IMAGE_HEALTH_BAR_RIGHT:Class = Res_CLASS_IMAGE_HEALTH_BAR_RIGHT; public static const CLASS_SOUND_THROW_BOMB:Class = Res_CLASS_SOUND_THROW_BOMB; public static const CLASS_SOUND_ACHIEVEMENT_LONG:Class = Res_CLASS_SOUND_ACHIEVEMENT_LONG; public static const CLASS_SOUND_RED_KOOPA_DEATH_0:Class = Res_CLASS_SOUND_RED_KOOPA_DEATH_0; public static const CLASS_SOUND_RED_KOOPA_DEATH_1:Class = Res_CLASS_SOUND_RED_KOOPA_DEATH_1; public static const IMAGE_GRAVE:BitmapData = Bitmap(new CLASS_IMAGE_GRAVE()).bitmapData; public static const CLASS_IMAGE_WEAPON_ICONS:Class = Res_CLASS_IMAGE_WEAPON_ICONS; public static const SOUND_DEVIL_ATTACK:Sound = new CLASS_SOUND_DEVIL_ATTACK(); public static const SOUND_THWOMP_LAND:Sound = new CLASS_SOUND_THWOMP_LAND(); public static const CLASS_IMAGE_PLAYER:Class = Res_CLASS_IMAGE_PLAYER; public static const CLASS_SOUND_ROLLOVER:Class = Res_CLASS_SOUND_ROLLOVER; public static const CLASS_SOUND_SPINY_DEATH:Class = Res_CLASS_SOUND_SPINY_DEATH; public static const CLASS_IMAGE_THWOMP:Class = Res_CLASS_IMAGE_THWOMP; public static const CLASS_SOUND_SPIKES_DOWN:Class = Res_CLASS_SOUND_SPIKES_DOWN; public static const IMAGE_PENDULUM_CHAIN:BitmapData = Bitmap(new CLASS_IMAGE_PENDULUM_CHAIN()).bitmapData; public static const CLASS_IMAGE_LASER_H:Class = Res_CLASS_IMAGE_LASER_H; public static const IMAGE_MENU_SELECTION:BitmapData = Bitmap(new CLASS_IMAGE_MENU_SELECTION()).bitmapData; public static const CLASS_IMAGE_TIMER_INDICATOR_ARROW:Class = Res_CLASS_IMAGE_TIMER_INDICATOR_ARROW; public static const CLASS_IMAGE_TENTACLES:Class = Res_CLASS_IMAGE_TENTACLES; public static const CLASS_IMAGE_LASER_V:Class = Res_CLASS_IMAGE_LASER_V; public static const CLASS_IMAGE_KNIFE:Class = Res_CLASS_IMAGE_KNIFE; public static const SOUND_LASER_SHOOT:Sound = new CLASS_SOUND_LASER_SHOOT(); public static const CLASS_SOUND_FINAL_PLAYER_DEATH:Class = Res_CLASS_SOUND_FINAL_PLAYER_DEATH; public static const IMAGE_ACHIEVEMENT_ICON:BitmapData = Bitmap(new CLASS_IMAGE_ACHIEVEMENT_ICON()).bitmapData; public static const SPRITES:Array = [Bitmap(new CLASS_IMAGE_BOMB()).bitmapData, Bitmap(new CLASS_IMAGE_ENEMY_0()).bitmapData, Bitmap(new CLASS_IMAGE_SHURIKEN()).bitmapData, Bitmap(new CLASS_IMAGE_ITEMS()).bitmapData, Bitmap(new CLASS_IMAGE_ENEMY_1()).bitmapData, Bitmap(new CLASS_IMAGE_SPIKES_FLOOR()).bitmapData, Bitmap(new CLASS_IMAGE_BOMB_EXPLOSION()).bitmapData, Bitmap(new CLASS_IMAGE_ENEMY_2()).bitmapData, Bitmap(new CLASS_IMAGE_FROG()).bitmapData, Bitmap(new CLASS_IMAGE_ZOMBIE()).bitmapData, Bitmap(new CLASS_IMAGE_WARP()).bitmapData, Bitmap(new CLASS_IMAGE_DRAGON()).bitmapData, Bitmap(new CLASS_IMAGE_FIREBALL()).bitmapData, Bitmap(new CLASS_IMAGE_ASSASSIN()).bitmapData, Bitmap(new CLASS_IMAGE_KNIFE()).bitmapData, IMAGE_PENDULUM_BALL, Bitmap(new CLASS_IMAGE_BLADE()).bitmapData, Bitmap(new CLASS_IMAGE_PARATROOPA()).bitmapData, Bitmap(new CLASS_IMAGE_DEVIL()).bitmapData, null, Bitmap(new CLASS_IMAGE_FROG_SPLAT()).bitmapData, Bitmap(new CLASS_IMAGE_THWOMP()).bitmapData, Bitmap(new CLASS_IMAGE_WIZARD()).bitmapData, Bitmap(new CLASS_IMAGE_MAGIC()).bitmapData, Bitmap(new CLASS_IMAGE_SPINY()).bitmapData, Bitmap(new CLASS_IMAGE_SHIELDED_ENEMY()).bitmapData, Bitmap(new CLASS_IMAGE_BOUNCER()).bitmapData, Bitmap(new CLASS_IMAGE_BAHAMUT()).bitmapData, Bitmap(new CLASS_IMAGE_TENTACLES()).bitmapData, null, Bitmap(new CLASS_IMAGE_CRUMBLE()).bitmapData, Bitmap(new CLASS_IMAGE_LASER()).bitmapData, Bitmap(new CLASS_IMAGE_BOTTLE()).bitmapData, Bitmap(new CLASS_IMAGE_PROGRESS_MARKER()).bitmapData, Bitmap(new CLASS_IMAGE_ITEMS()).bitmapData, Bitmap(new CLASS_IMAGE_TREASURE()).bitmapData, Bitmap(new CLASS_IMAGE_BKG_ELEMENTS()).bitmapData, Bitmap(new CLASS_IMAGE_DOOR()).bitmapData]; public static const IMAGE_TITLE:BitmapData = Bitmap(new CLASS_IMAGE_TITLE()).bitmapData; public static const CLASS_SOUND_DOOR_CLANG:Class = Res_CLASS_SOUND_DOOR_CLANG; public static const IMAGE_ASSIGN_KEYS:BitmapData = Bitmap(new CLASS_IMAGE_ASSIGN_KEYS()).bitmapData; public static const CLASS_IMAGE_MANUAL_0:Class = Res_CLASS_IMAGE_MANUAL_0; public static const CLASS_IMAGE_MANUAL_1:Class = Res_CLASS_IMAGE_MANUAL_1; public static const CLASS_IMAGE_MANUAL_2:Class = Res_CLASS_IMAGE_MANUAL_2; public static const CLASS_IMAGE_MANUAL_3:Class = Res_CLASS_IMAGE_MANUAL_3; public static const CLASS_IMAGE_MANUAL_4:Class = Res_CLASS_IMAGE_MANUAL_4; public static const CLASS_IMAGE_MANUAL_5:Class = Res_CLASS_IMAGE_MANUAL_5; public static const CLASS_IMAGE_MANUAL_6:Class = Res_CLASS_IMAGE_MANUAL_6; public static const CLASS_IMAGE_MANUAL_7:Class = Res_CLASS_IMAGE_MANUAL_7; public static const CLASS_IMAGE_MANUAL_8:Class = Res_CLASS_IMAGE_MANUAL_8; public static const SOUND_SELECT:Sound = new CLASS_SOUND_SELECT(); public static const CLASS_IMAGE_MANUAL_10:Class = Res_CLASS_IMAGE_MANUAL_10; public static const CLASS_IMAGE_MANUAL_11:Class = Res_CLASS_IMAGE_MANUAL_11; public static const CLASS_IMAGE_MANUAL_12:Class = Res_CLASS_IMAGE_MANUAL_12; public static const CLASS_IMAGE_MANUAL_13:Class = Res_CLASS_IMAGE_MANUAL_13; public static const CLASS_IMAGE_MANUAL_14:Class = Res_CLASS_IMAGE_MANUAL_14; public static const CLASS_IMAGE_MANUAL_15:Class = Res_CLASS_IMAGE_MANUAL_15; public static const CLASS_IMAGE_MANUAL_16:Class = Res_CLASS_IMAGE_MANUAL_16; public static const CLASS_IMAGE_MANUAL_17:Class = Res_CLASS_IMAGE_MANUAL_17; public static const CLASS_IMAGE_MANUAL_18:Class = Res_CLASS_IMAGE_MANUAL_18; public static const CLASS_IMAGE_MANUAL_19:Class = Res_CLASS_IMAGE_MANUAL_19; public static const CLASS_SOUND_BIRD_BOUNCE:Class = Res_CLASS_SOUND_BIRD_BOUNCE; public static const CLASS_IMAGE_LASER:Class = Res_CLASS_IMAGE_LASER; public static const CLASS_IMAGE_MANUAL_9:Class = Res_CLASS_IMAGE_MANUAL_9; public static const SOUND_BOUNCER_HIT_WALL:Sound = new CLASS_SOUND_BOUNCER_HIT_WALL(); public static const CLASS_IMAGE_SHIELDED_ENEMY:Class = Res_CLASS_IMAGE_SHIELDED_ENEMY; public static const IMAGE_TREASURE_BLOCK:BitmapData = Bitmap(new CLASS_IMAGE_TREASURE_BLOCK()).bitmapData; public static const IMAGE_TOWER_EYE_BIT:BitmapData = Bitmap(new CLASS_IMAGE_TOWER_EYE_BIT()).bitmapData; public static const CLASS_IMAGE_PLAYER_ATTACK_DOWN:Class = Res_CLASS_IMAGE_PLAYER_ATTACK_DOWN; public static const SOUND_BAHAMUT_APPEAR:Sound = new CLASS_SOUND_BAHAMUT_APPEAR(); public static const CLASS_IMAGE_MANUAL_20:Class = Res_CLASS_IMAGE_MANUAL_20; public static const CLASS_IMAGE_MANUAL_21:Class = Res_CLASS_IMAGE_MANUAL_21; public static const CLASS_IMAGE_MANUAL_22:Class = Res_CLASS_IMAGE_MANUAL_22; public static const IMAGE_FONT_SMALL:BitmapData = Bitmap(new CLASS_IMAGE_FONT_SMALL()).bitmapData; public static const CLASS_SOUND_ZOMBIE_SPOT_PLAYER:Class = Res_CLASS_SOUND_ZOMBIE_SPOT_PLAYER; public static const IMAGE_PLAYER:BitmapData = Bitmap(new CLASS_IMAGE_PLAYER()).bitmapData; public static const CLASS_IMAGE_FONT_SMALL:Class = Res_CLASS_IMAGE_FONT_SMALL; public static const CLASS_IMAGE_PENDULUM_CHAIN:Class = Res_CLASS_IMAGE_PENDULUM_CHAIN; public static const IMAGE_PLAYER_SOMERSAULT:BitmapData = Bitmap(new CLASS_IMAGE_PLAYER_SOMERSAULT()).bitmapData; public static const CLASS_SOUND_DOOR_CHICKEN_0:Class = Res_CLASS_SOUND_DOOR_CHICKEN_0; public static const SOUND_TIME_RESET:Sound = new CLASS_SOUND_TIME_RESET(); public static const SOUNDS_JUMP:Array = [new CLASS_SOUND_JUMP_0(), new CLASS_SOUND_JUMP_1(), new CLASS_SOUND_JUMP_2(), new CLASS_SOUND_DOUBLE_JUMP_0(), new CLASS_SOUND_DOUBLE_JUMP_1(), new CLASS_SOUND_DOUBLE_JUMP_2()]; public static const SOUNDS_PLAYER_DEATH:Array = [new CLASS_SOUND_PLAYER_DEATH_0(), new CLASS_SOUND_PLAYER_DEATH_1(), new CLASS_SOUND_PLAYER_DEATH_2(), new CLASS_SOUND_FINAL_PLAYER_DEATH()]; public static const CLASS_SOUND_ZOMBIE_DEATH:Class = Res_CLASS_SOUND_ZOMBIE_DEATH; public static const CLASS_SOUND_SNIFIT_DEATH:Class = Res_CLASS_SOUND_SNIFIT_DEATH; public static const CLASS_IMAGE_MENU_SELECTION:Class = Res_CLASS_IMAGE_MENU_SELECTION; public static const SOUND_FLOOR_BONUS:Sound = new CLASS_SOUND_FLOOR_BONUS(); public static const CLASS_SOUND_CRUMBLE:Class = Res_CLASS_SOUND_CRUMBLE; public static const SOUND_DRAGON_ATTACK:Sound = new CLASS_SOUND_DRAGON_ATTACK(); public static const CLASS_SOUND_DOOR_CHICKEN_1:Class = Res_CLASS_SOUND_DOOR_CHICKEN_1; public static const CLASS_SWF_NINJA_FLIGHT:Class = Res_CLASS_SWF_NINJA_FLIGHT; public static const SOUND_ASSASSIN_KILL:Sound = new CLASS_SOUND_ASSASSIN_KILL(); public static const IMAGE_MEGADEV_LOGO:BitmapData = Bitmap(new CLASS_IMAGE_MEGADEV_LOGO()).bitmapData; public static const CLASS_SOUND_TIME_RESET:Class = Res_CLASS_SOUND_TIME_RESET; public static const CLASS_SOUND_SPIKES_UP:Class = Res_CLASS_SOUND_SPIKES_UP; public static const IMAGE_PENDULUM_BALL:BitmapData = Bitmap(new CLASS_IMAGE_PENDULUM_BALL()).bitmapData; public static const CLASS_SOUND_THWOMP_LAND:Class = Res_CLASS_SOUND_THWOMP_LAND; public static const CLASS_SOUND_BAHAMUT_APPEAR:Class = Res_CLASS_SOUND_BAHAMUT_APPEAR; public static const CLASS_IMAGE_FEATHER:Class = Res_CLASS_IMAGE_FEATHER; public static const CLASS_IMAGE_TREASURE_BLOCK:Class = Res_CLASS_IMAGE_TREASURE_BLOCK; public static const CLASS_IMAGE_CRUMBLE:Class = Res_CLASS_IMAGE_CRUMBLE; public static const SOUND_TICK:Sound = new CLASS_SOUND_TICK(); public static const SOUND_BOMB_EXPLOSION:Sound = new CLASS_SOUND_BOMB_EXPLOSION(); public static const SOUND_ROCKS_DESTROY:Sound = new CLASS_SOUND_ROCKS_DESTROY(); public static const CLASS_IMAGE_TILES:Class = Res_CLASS_IMAGE_TILES; public static const CLASS_SOUND_LASER_SHOOT:Class = Res_CLASS_SOUND_LASER_SHOOT; public static const CLASS_IMAGE_TREASURE:Class = Res_CLASS_IMAGE_TREASURE; public static const IMAGE_PLAYER_SLASH:BitmapData = Bitmap(new CLASS_IMAGE_PLAYER_SLASH()).bitmapData; public static const IMAGE_PLAYER_THROW_ITEM:BitmapData = Bitmap(new CLASS_IMAGE_PLAYER_THROW_ITEM()).bitmapData; public static const CLASS_IMAGE_STATS_BOX:Class = Res_CLASS_IMAGE_STATS_BOX; public static const SOUND_ACHIEVEMENT_LONG:Sound = new CLASS_SOUND_ACHIEVEMENT_LONG(); public static const CLASS_IMAGE_GAME_OVER_BG:Class = Res_CLASS_IMAGE_GAME_OVER_BG; public static const SOUND_KITE_FLIGHT:Sound = new CLASS_SOUND_KITE_FLIGHT(); public static const IMAGE_HEALTH_BAR_RIGHT:BitmapData = Bitmap(new CLASS_IMAGE_HEALTH_BAR_RIGHT()).bitmapData; public static const CLASS_SWF_KITE:Class = Res_CLASS_SWF_KITE; public static const CLASS_SOUND_TOWER_DEATH:Class = Res_CLASS_SOUND_TOWER_DEATH; public static const CLASS_MUSIC_TITLE:Class = Res_CLASS_MUSIC_TITLE; public static const CLASS_IMAGE_ASSIGN_KEYS:Class = Res_CLASS_IMAGE_ASSIGN_KEYS; public static const CLASS_SOUND_HIT_SHIELD:Class = Res_CLASS_SOUND_HIT_SHIELD; public static const SOUND_HIT_SHIELD:Sound = new CLASS_SOUND_HIT_SHIELD(); public static const SOUND_COLLECT_BOMBS:Sound = new CLASS_SOUND_COLLECT_BOMBS(); public static const CLASS_MUSIC_GAME:Class = Res_CLASS_MUSIC_GAME; public static const CLASS_IMAGE_ITEMS:Class = Res_CLASS_IMAGE_ITEMS; public static const CLASS_IMAGE_FROG_SPLAT:Class = Res_CLASS_IMAGE_FROG_SPLAT; public static const SOUND_EXTRA_LIFE:Sound = new CLASS_SOUND_EXTRA_LIFE(); public static const CLASS_SOUND_SWORD_SWIPE_0:Class = Res_CLASS_SOUND_SWORD_SWIPE_0; public static const IMAGE_HEALTH_BAR_BIT:BitmapData = Bitmap(new CLASS_IMAGE_HEALTH_BAR_BIT()).bitmapData; public static const CLASS_SOUND_EXTRA_LIFE:Class = Res_CLASS_SOUND_EXTRA_LIFE; public static const SOUND_LAND:Sound = new CLASS_SOUND_LAND(); public static const CLASS_SOUND_SWORD_SWIPE_1:Class = Res_CLASS_SOUND_SWORD_SWIPE_1; public static const CLASS_SOUND_BOOM_BOOM_DEATH_0:Class = Res_CLASS_SOUND_BOOM_BOOM_DEATH_0; public static const CLASS_SOUND_BOOM_BOOM_DEATH_1:Class = Res_CLASS_SOUND_BOOM_BOOM_DEATH_1; public static const CLASS_SOUND_FROG_DEATH:Class = Res_CLASS_SOUND_FROG_DEATH; public static const SPRITE_FRAMES:Array = [[2, 1], [14, 1], [6, 1], [8, 1], [14, 1], [6, 1], [17, 1], [17, 1], [16, 1], [14, 1], [10, 1], [33, 1], [2, 1], [16, 1], [1, 1], [7, 2], [3, 1], [6, 1], [30, 1], [0, 0], [7, 1], [12, 1], [28, 1], [6, 1], [16, 1], [27, 1], [7, 1], [6, 1], [6, 1], [8, 1], [10, 1], [4, 1], [4, 1], [2, 1], [8, 1], [10, 1], [4, 1], [18, 1]]; public static const IMAGE_TILES:BitmapData = Bitmap(new CLASS_IMAGE_TILES()).bitmapData; public static const BITMAP_FONT_CELL_WIDTH:int = (IMAGE_FONT_TEXT.width / BITMAP_FONT_CHARACTERS); public static const CLASS_IMAGE_DEVIL:Class = Res_CLASS_IMAGE_DEVIL; public static const CLASS_IMAGE_ENEMY_0:Class = Res_CLASS_IMAGE_ENEMY_0; public static const CLASS_IMAGE_ENEMY_1:Class = Res_CLASS_IMAGE_ENEMY_1; public static const CLASS_IMAGE_ENEMY_2:Class = Res_CLASS_IMAGE_ENEMY_2; public static const CLASS_SOUND_DOOR_CAT_0:Class = Res_CLASS_SOUND_DOOR_CAT_0; public static const CLASS_SOUND_FLOOR_BONUS:Class = Res_CLASS_SOUND_FLOOR_BONUS; public static const CLASS_SOUND_BOMB_EXPLOSION:Class = Res_CLASS_SOUND_BOMB_EXPLOSION; public static const CLASS_SOUND_DOOR_CAT_1:Class = Res_CLASS_SOUND_DOOR_CAT_1; public static const CLASS_SOUND_PLAYER_DEATH_1:Class = Res_CLASS_SOUND_PLAYER_DEATH_1; public static const CLASS_SOUND_PLAYER_DEATH_2:Class = Res_CLASS_SOUND_PLAYER_DEATH_2; public static const IMAGE_PLAYER_SWORD:BitmapData = Bitmap(new CLASS_IMAGE_PLAYER_SWORD()).bitmapData; public static const IMAGE_MOON:BitmapData = Bitmap(new CLASS_IMAGE_MOON()).bitmapData; public static const IMAGE_PLAYER_DIE:BitmapData = Bitmap(new CLASS_IMAGE_PLAYER_DIE()).bitmapData; public static const IMAGE_LOCKED_ICON:BitmapData = Bitmap(new CLASS_IMAGE_LOCKED_ICON()).bitmapData; public static const CLASS_IMAGE_PLAYER_DIE:Class = Res_CLASS_IMAGE_PLAYER_DIE; public static const CLASS_IMAGE_HUD_FLOOR:Class = Res_CLASS_IMAGE_HUD_FLOOR; public static const IMAGE_WEAPON_ICONS:BitmapData = Bitmap(new CLASS_IMAGE_WEAPON_ICONS()).bitmapData; public static const CLASS_IMAGE_BLADE:Class = Res_CLASS_IMAGE_BLADE; public static const SOUND_SPIKES_UP:Sound = new CLASS_SOUND_SPIKES_UP(); public static const CLASS_SOUND_THROW_SHURIKEN_1:Class = Res_CLASS_SOUND_THROW_SHURIKEN_1; public static const SOUND_SEE_EVERYTHING:Sound = new CLASS_SOUND_SEE_EVERYTHING(); public static const CLASS_SOUND_PLAYER_DEATH_0:Class = Res_CLASS_SOUND_PLAYER_DEATH_0; public static const CLASS_IMAGE_TOWER_BIT:Class = Res_CLASS_IMAGE_TOWER_BIT; public static const CLASS_SOUND_THROW_SHURIKEN_0:Class = Res_CLASS_SOUND_THROW_SHURIKEN_0; public static const SOUND_COLLECT_SHURIKENS:Sound = new CLASS_SOUND_COLLECT_SHURIKENS(); public static const CLASS_SOUND_FROG_JUMP:Class = Res_CLASS_SOUND_FROG_JUMP; public static const IMAGE_HUD_TIME:BitmapData = Bitmap(new CLASS_IMAGE_HUD_TIME()).bitmapData; public static const SOUND_FUZZY_ATTACK:Sound = new CLASS_SOUND_FUZZY_ATTACK(); public static const SOUNDS_DEATH:Array = [null, [new CLASS_SOUND_GOOMBA_DEATH_0(), new CLASS_SOUND_GOOMBA_DEATH_1()], null, null, [new CLASS_SOUND_RED_KOOPA_DEATH_0(), new CLASS_SOUND_RED_KOOPA_DEATH_1()], null, null, [new CLASS_SOUND_BOOM_BOOM_DEATH_0(), new CLASS_SOUND_BOOM_BOOM_DEATH_1()], [new CLASS_SOUND_FROG_DEATH()], [new CLASS_SOUND_ZOMBIE_DEATH()], null, [new CLASS_SOUND_DRAGON_DEATH()], null, [new CLASS_SOUND_SNIFIT_DEATH()], null, null, [new CLASS_SOUND_FUZZY_DEATH()], [new CLASS_SOUND_PARATROOPA_DEATH()], [new CLASS_SOUND_DEVIL_DEATH()], null, null, [new CLASS_SOUND_THWOMP_DEATH()], [new CLASS_SOUND_MAGIKOOPA_DEATH()], null, [new CLASS_SOUND_SPINY_DEATH()], [new CLASS_SOUND_SHIELD_DEATH()], null, [new CLASS_SOUND_BAHAMUT_DEATH()], null, [new CLASS_SOUND_TOWER_DEATH()], null, [new CLASS_SOUND_LASER_DEATH()], null]; public static const SOUNDS_SWORD_SWIPE:Array = [new CLASS_SOUND_SWORD_SWIPE_0(), new CLASS_SOUND_SWORD_SWIPE_1()]; public static const IMAGE_ACHIEVEMENT_BAR:BitmapData = Bitmap(new CLASS_IMAGE_ACHIEVEMENT_BAR()).bitmapData; public static const SOUND_ACHIEVEMENT:Sound = new CLASS_SOUND_ACHIEVEMENT(); public static const CLASS_IMAGE_HEALTH_BAR_BIT:Class = Res_CLASS_IMAGE_HEALTH_BAR_BIT; public static const CLASS_SOUND_FAIRY_COLLECT:Class = Res_CLASS_SOUND_FAIRY_COLLECT; public static const CLASS_SOUND_DOUBLE_JUMP_0:Class = Res_CLASS_SOUND_DOUBLE_JUMP_0; public static const CLASS_SOUND_WIZARD_SHOOT:Class = Res_CLASS_SOUND_WIZARD_SHOOT; public static const CLASS_SOUND_DOUBLE_JUMP_1:Class = Res_CLASS_SOUND_DOUBLE_JUMP_1; public static const CLASS_IMAGE_PROGRESS_MARKER:Class = Res_CLASS_IMAGE_PROGRESS_MARKER; public static const IMAGE_STATS_BOX:BitmapData = Bitmap(new CLASS_IMAGE_STATS_BOX()).bitmapData; public static const CLASS_IMAGE_CLOUDS:Class = Res_CLASS_IMAGE_CLOUDS; public static const CLASS_SOUND_DOOR_CAR_0:Class = Res_CLASS_SOUND_DOOR_CAR_0; public static const CLASS_IMAGE_SPINY:Class = Res_CLASS_IMAGE_SPINY; public static const CLASS_SOUND_KITE_FLIGHT:Class = Res_CLASS_SOUND_KITE_FLIGHT; public static const IMAGE_TEXT_GAME_OVER:BitmapData = Bitmap(new CLASS_IMAGE_TEXT_GAME_OVER()).bitmapData; public static const CLASS_SOUND_DOOR_CAR_1:Class = Res_CLASS_SOUND_DOOR_CAR_1; public static const SOUND_TREASURE:Sound = new CLASS_SOUND_TREASURE(); public static var credits:Array; public static var bitmap_char_widths:Array = new Array(BITMAP_FONT_CHARACTERS); public static var text_XML:XML; public static function generateCharacterWidths():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:int; var _local5:int; _local1 = 0; while (_local1 < BITMAP_FONT_CHARACTERS) { _local4 = (_local1 * BITMAP_FONT_CELL_WIDTH); _local5 = 0; _local2 = (BITMAP_FONT_CELL_WIDTH - 1); while (_local2 >= 0) { _local3 = 0; while (_local3 < BITMAP_FONT_HEIGHT) { if (IMAGE_FONT_TEXT.getPixel((_local4 + _local2), _local3) != 0){ _local5 = (_local2 + 1); _local2 = -1; _local3 = BITMAP_FONT_HEIGHT; }; _local3++; }; _local2--; }; bitmap_char_widths[_local1] = _local5; _local1++; }; } public static function loadText():void{ var _local1:ByteArray = new CLASS_XML_TEXT_EN(); var _local2:String = _local1.readUTFBytes(_local1.length); text_XML = new XML(_local2); credits = [Res.text_XML.developed_by_megadev, "", Res.text_XML.credits_code, Res.text_XML.credits_mike, "", Res.text_XML.credits_art, Res.text_XML.credits_jon, "", Res.text_XML.credits_audio, Res.text_XML.credits_nick, "", Res.text_XML.credits_qa, Res.text_XML.credits_dan, "", Res.text_XML.credits_thanks, Res.text_XML.credits_kyle, Res.text_XML.credits_linzi, Res.text_XML.credits_mark]; } public static function getManualPage(_arg1:int):BitmapData{ switch (_arg1){ case 0: return (Bitmap(new CLASS_IMAGE_MANUAL_0()).bitmapData); case 1: return (Bitmap(new CLASS_IMAGE_MANUAL_1()).bitmapData); case 2: return (Bitmap(new CLASS_IMAGE_MANUAL_2()).bitmapData); case 3: return (Bitmap(new CLASS_IMAGE_MANUAL_3()).bitmapData); case 4: return (Bitmap(new CLASS_IMAGE_MANUAL_4()).bitmapData); case 5: return (Bitmap(new CLASS_IMAGE_MANUAL_5()).bitmapData); case 6: return (Bitmap(new CLASS_IMAGE_MANUAL_6()).bitmapData); case 7: return (Bitmap(new CLASS_IMAGE_MANUAL_7()).bitmapData); case 8: return (Bitmap(new CLASS_IMAGE_MANUAL_8()).bitmapData); case 9: return (Bitmap(new CLASS_IMAGE_MANUAL_9()).bitmapData); case 10: return (Bitmap(new CLASS_IMAGE_MANUAL_10()).bitmapData); case 11: return (Bitmap(new CLASS_IMAGE_MANUAL_11()).bitmapData); case 12: return (Bitmap(new CLASS_IMAGE_MANUAL_12()).bitmapData); case 13: return (Bitmap(new CLASS_IMAGE_MANUAL_13()).bitmapData); case 14: return (Bitmap(new CLASS_IMAGE_MANUAL_14()).bitmapData); case 15: return (Bitmap(new CLASS_IMAGE_MANUAL_15()).bitmapData); case 16: return (Bitmap(new CLASS_IMAGE_MANUAL_16()).bitmapData); case 17: return (Bitmap(new CLASS_IMAGE_MANUAL_17()).bitmapData); case 18: return (Bitmap(new CLASS_IMAGE_MANUAL_18()).bitmapData); case 19: return (Bitmap(new CLASS_IMAGE_MANUAL_19()).bitmapData); case 20: return (Bitmap(new CLASS_IMAGE_MANUAL_20()).bitmapData); case 21: return (Bitmap(new CLASS_IMAGE_MANUAL_21()).bitmapData); case 22: return (Bitmap(new CLASS_IMAGE_MANUAL_22()).bitmapData); }; return (null); } } }//package
Section 179
//Res_CLASS_IMAGE_ACHIEVEMENT_BAR (Res_CLASS_IMAGE_ACHIEVEMENT_BAR) package { import mx.core.*; public class Res_CLASS_IMAGE_ACHIEVEMENT_BAR extends BitmapAsset { } }//package
Section 180
//Res_CLASS_IMAGE_ACHIEVEMENT_ICON (Res_CLASS_IMAGE_ACHIEVEMENT_ICON) package { import mx.core.*; public class Res_CLASS_IMAGE_ACHIEVEMENT_ICON extends BitmapAsset { } }//package
Section 181
//Res_CLASS_IMAGE_ASSASSIN (Res_CLASS_IMAGE_ASSASSIN) package { import mx.core.*; public class Res_CLASS_IMAGE_ASSASSIN extends BitmapAsset { } }//package
Section 182
//Res_CLASS_IMAGE_ASSIGN_KEYS (Res_CLASS_IMAGE_ASSIGN_KEYS) package { import mx.core.*; public class Res_CLASS_IMAGE_ASSIGN_KEYS extends BitmapAsset { } }//package
Section 183
//Res_CLASS_IMAGE_BAHAMUT (Res_CLASS_IMAGE_BAHAMUT) package { import mx.core.*; public class Res_CLASS_IMAGE_BAHAMUT extends BitmapAsset { } }//package
Section 184
//Res_CLASS_IMAGE_BKG_ELEMENTS (Res_CLASS_IMAGE_BKG_ELEMENTS) package { import mx.core.*; public class Res_CLASS_IMAGE_BKG_ELEMENTS extends BitmapAsset { } }//package
Section 185
//Res_CLASS_IMAGE_BLADE (Res_CLASS_IMAGE_BLADE) package { import mx.core.*; public class Res_CLASS_IMAGE_BLADE extends BitmapAsset { } }//package
Section 186
//Res_CLASS_IMAGE_BOMB (Res_CLASS_IMAGE_BOMB) package { import mx.core.*; public class Res_CLASS_IMAGE_BOMB extends BitmapAsset { } }//package
Section 187
//Res_CLASS_IMAGE_BOMB_EXPLOSION (Res_CLASS_IMAGE_BOMB_EXPLOSION) package { import mx.core.*; public class Res_CLASS_IMAGE_BOMB_EXPLOSION extends BitmapAsset { } }//package
Section 188
//Res_CLASS_IMAGE_BOTTLE (Res_CLASS_IMAGE_BOTTLE) package { import mx.core.*; public class Res_CLASS_IMAGE_BOTTLE extends BitmapAsset { } }//package
Section 189
//Res_CLASS_IMAGE_BOUNCER (Res_CLASS_IMAGE_BOUNCER) package { import mx.core.*; public class Res_CLASS_IMAGE_BOUNCER extends BitmapAsset { } }//package
Section 190
//Res_CLASS_IMAGE_CLOUDS (Res_CLASS_IMAGE_CLOUDS) package { import mx.core.*; public class Res_CLASS_IMAGE_CLOUDS extends BitmapAsset { } }//package
Section 191
//Res_CLASS_IMAGE_CRUMBLE (Res_CLASS_IMAGE_CRUMBLE) package { import mx.core.*; public class Res_CLASS_IMAGE_CRUMBLE extends BitmapAsset { } }//package
Section 192
//Res_CLASS_IMAGE_DEVIL (Res_CLASS_IMAGE_DEVIL) package { import mx.core.*; public class Res_CLASS_IMAGE_DEVIL extends BitmapAsset { } }//package
Section 193
//Res_CLASS_IMAGE_DOOR (Res_CLASS_IMAGE_DOOR) package { import mx.core.*; public class Res_CLASS_IMAGE_DOOR extends BitmapAsset { } }//package
Section 194
//Res_CLASS_IMAGE_DRAGON (Res_CLASS_IMAGE_DRAGON) package { import mx.core.*; public class Res_CLASS_IMAGE_DRAGON extends BitmapAsset { } }//package
Section 195
//Res_CLASS_IMAGE_ENEMY_0 (Res_CLASS_IMAGE_ENEMY_0) package { import mx.core.*; public class Res_CLASS_IMAGE_ENEMY_0 extends BitmapAsset { } }//package
Section 196
//Res_CLASS_IMAGE_ENEMY_1 (Res_CLASS_IMAGE_ENEMY_1) package { import mx.core.*; public class Res_CLASS_IMAGE_ENEMY_1 extends BitmapAsset { } }//package
Section 197
//Res_CLASS_IMAGE_ENEMY_2 (Res_CLASS_IMAGE_ENEMY_2) package { import mx.core.*; public class Res_CLASS_IMAGE_ENEMY_2 extends BitmapAsset { } }//package
Section 198
//Res_CLASS_IMAGE_ENEMY_GRAPH (Res_CLASS_IMAGE_ENEMY_GRAPH) package { import mx.core.*; public class Res_CLASS_IMAGE_ENEMY_GRAPH extends BitmapAsset { } }//package
Section 199
//Res_CLASS_IMAGE_FAIRY (Res_CLASS_IMAGE_FAIRY) package { import mx.core.*; public class Res_CLASS_IMAGE_FAIRY extends BitmapAsset { } }//package
Section 200
//Res_CLASS_IMAGE_FEATHER (Res_CLASS_IMAGE_FEATHER) package { import mx.core.*; public class Res_CLASS_IMAGE_FEATHER extends BitmapAsset { } }//package
Section 201
//Res_CLASS_IMAGE_FIREBALL (Res_CLASS_IMAGE_FIREBALL) package { import mx.core.*; public class Res_CLASS_IMAGE_FIREBALL extends BitmapAsset { } }//package
Section 202
//Res_CLASS_IMAGE_FONT_LARGE (Res_CLASS_IMAGE_FONT_LARGE) package { import mx.core.*; public class Res_CLASS_IMAGE_FONT_LARGE extends BitmapAsset { } }//package
Section 203
//Res_CLASS_IMAGE_FONT_MEDIUM (Res_CLASS_IMAGE_FONT_MEDIUM) package { import mx.core.*; public class Res_CLASS_IMAGE_FONT_MEDIUM extends BitmapAsset { } }//package
Section 204
//Res_CLASS_IMAGE_FONT_SMALL (Res_CLASS_IMAGE_FONT_SMALL) package { import mx.core.*; public class Res_CLASS_IMAGE_FONT_SMALL extends BitmapAsset { } }//package
Section 205
//Res_CLASS_IMAGE_FONT_TEXT (Res_CLASS_IMAGE_FONT_TEXT) package { import mx.core.*; public class Res_CLASS_IMAGE_FONT_TEXT extends BitmapAsset { } }//package
Section 206
//Res_CLASS_IMAGE_FROG (Res_CLASS_IMAGE_FROG) package { import mx.core.*; public class Res_CLASS_IMAGE_FROG extends BitmapAsset { } }//package
Section 207
//Res_CLASS_IMAGE_FROG_SPLAT (Res_CLASS_IMAGE_FROG_SPLAT) package { import mx.core.*; public class Res_CLASS_IMAGE_FROG_SPLAT extends BitmapAsset { } }//package
Section 208
//Res_CLASS_IMAGE_GAME_OVER_BG (Res_CLASS_IMAGE_GAME_OVER_BG) package { import mx.core.*; public class Res_CLASS_IMAGE_GAME_OVER_BG extends BitmapAsset { } }//package
Section 209
//Res_CLASS_IMAGE_GRAVE (Res_CLASS_IMAGE_GRAVE) package { import mx.core.*; public class Res_CLASS_IMAGE_GRAVE extends BitmapAsset { } }//package
Section 210
//Res_CLASS_IMAGE_HEALTH_BAR_BIT (Res_CLASS_IMAGE_HEALTH_BAR_BIT) package { import mx.core.*; public class Res_CLASS_IMAGE_HEALTH_BAR_BIT extends BitmapAsset { } }//package
Section 211
//Res_CLASS_IMAGE_HEALTH_BAR_LEFT (Res_CLASS_IMAGE_HEALTH_BAR_LEFT) package { import mx.core.*; public class Res_CLASS_IMAGE_HEALTH_BAR_LEFT extends BitmapAsset { } }//package
Section 212
//Res_CLASS_IMAGE_HEALTH_BAR_RIGHT (Res_CLASS_IMAGE_HEALTH_BAR_RIGHT) package { import mx.core.*; public class Res_CLASS_IMAGE_HEALTH_BAR_RIGHT extends BitmapAsset { } }//package
Section 213
//Res_CLASS_IMAGE_HUD_FLOOR (Res_CLASS_IMAGE_HUD_FLOOR) package { import mx.core.*; public class Res_CLASS_IMAGE_HUD_FLOOR extends BitmapAsset { } }//package
Section 214
//Res_CLASS_IMAGE_HUD_TIME (Res_CLASS_IMAGE_HUD_TIME) package { import mx.core.*; public class Res_CLASS_IMAGE_HUD_TIME extends BitmapAsset { } }//package
Section 215
//Res_CLASS_IMAGE_INDICATORS (Res_CLASS_IMAGE_INDICATORS) package { import mx.core.*; public class Res_CLASS_IMAGE_INDICATORS extends BitmapAsset { } }//package
Section 216
//Res_CLASS_IMAGE_ITEMS (Res_CLASS_IMAGE_ITEMS) package { import mx.core.*; public class Res_CLASS_IMAGE_ITEMS extends BitmapAsset { } }//package
Section 217
//Res_CLASS_IMAGE_KNIFE (Res_CLASS_IMAGE_KNIFE) package { import mx.core.*; public class Res_CLASS_IMAGE_KNIFE extends BitmapAsset { } }//package
Section 218
//Res_CLASS_IMAGE_LASER (Res_CLASS_IMAGE_LASER) package { import mx.core.*; public class Res_CLASS_IMAGE_LASER extends BitmapAsset { } }//package
Section 219
//Res_CLASS_IMAGE_LASER_H (Res_CLASS_IMAGE_LASER_H) package { import mx.core.*; public class Res_CLASS_IMAGE_LASER_H extends BitmapAsset { } }//package
Section 220
//Res_CLASS_IMAGE_LASER_V (Res_CLASS_IMAGE_LASER_V) package { import mx.core.*; public class Res_CLASS_IMAGE_LASER_V extends BitmapAsset { } }//package
Section 221
//Res_CLASS_IMAGE_LOCKED_ICON (Res_CLASS_IMAGE_LOCKED_ICON) package { import mx.core.*; public class Res_CLASS_IMAGE_LOCKED_ICON extends BitmapAsset { } }//package
Section 222
//Res_CLASS_IMAGE_MAGIC (Res_CLASS_IMAGE_MAGIC) package { import mx.core.*; public class Res_CLASS_IMAGE_MAGIC extends BitmapAsset { } }//package
Section 223
//Res_CLASS_IMAGE_MANUAL_0 (Res_CLASS_IMAGE_MANUAL_0) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_0 extends BitmapAsset { } }//package
Section 224
//Res_CLASS_IMAGE_MANUAL_1 (Res_CLASS_IMAGE_MANUAL_1) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_1 extends BitmapAsset { } }//package
Section 225
//Res_CLASS_IMAGE_MANUAL_10 (Res_CLASS_IMAGE_MANUAL_10) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_10 extends BitmapAsset { } }//package
Section 226
//Res_CLASS_IMAGE_MANUAL_11 (Res_CLASS_IMAGE_MANUAL_11) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_11 extends BitmapAsset { } }//package
Section 227
//Res_CLASS_IMAGE_MANUAL_12 (Res_CLASS_IMAGE_MANUAL_12) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_12 extends BitmapAsset { } }//package
Section 228
//Res_CLASS_IMAGE_MANUAL_13 (Res_CLASS_IMAGE_MANUAL_13) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_13 extends BitmapAsset { } }//package
Section 229
//Res_CLASS_IMAGE_MANUAL_14 (Res_CLASS_IMAGE_MANUAL_14) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_14 extends BitmapAsset { } }//package
Section 230
//Res_CLASS_IMAGE_MANUAL_15 (Res_CLASS_IMAGE_MANUAL_15) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_15 extends BitmapAsset { } }//package
Section 231
//Res_CLASS_IMAGE_MANUAL_16 (Res_CLASS_IMAGE_MANUAL_16) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_16 extends BitmapAsset { } }//package
Section 232
//Res_CLASS_IMAGE_MANUAL_17 (Res_CLASS_IMAGE_MANUAL_17) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_17 extends BitmapAsset { } }//package
Section 233
//Res_CLASS_IMAGE_MANUAL_18 (Res_CLASS_IMAGE_MANUAL_18) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_18 extends BitmapAsset { } }//package
Section 234
//Res_CLASS_IMAGE_MANUAL_19 (Res_CLASS_IMAGE_MANUAL_19) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_19 extends BitmapAsset { } }//package
Section 235
//Res_CLASS_IMAGE_MANUAL_2 (Res_CLASS_IMAGE_MANUAL_2) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_2 extends BitmapAsset { } }//package
Section 236
//Res_CLASS_IMAGE_MANUAL_20 (Res_CLASS_IMAGE_MANUAL_20) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_20 extends BitmapAsset { } }//package
Section 237
//Res_CLASS_IMAGE_MANUAL_21 (Res_CLASS_IMAGE_MANUAL_21) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_21 extends BitmapAsset { } }//package
Section 238
//Res_CLASS_IMAGE_MANUAL_22 (Res_CLASS_IMAGE_MANUAL_22) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_22 extends BitmapAsset { } }//package
Section 239
//Res_CLASS_IMAGE_MANUAL_3 (Res_CLASS_IMAGE_MANUAL_3) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_3 extends BitmapAsset { } }//package
Section 240
//Res_CLASS_IMAGE_MANUAL_4 (Res_CLASS_IMAGE_MANUAL_4) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_4 extends BitmapAsset { } }//package
Section 241
//Res_CLASS_IMAGE_MANUAL_5 (Res_CLASS_IMAGE_MANUAL_5) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_5 extends BitmapAsset { } }//package
Section 242
//Res_CLASS_IMAGE_MANUAL_6 (Res_CLASS_IMAGE_MANUAL_6) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_6 extends BitmapAsset { } }//package
Section 243
//Res_CLASS_IMAGE_MANUAL_7 (Res_CLASS_IMAGE_MANUAL_7) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_7 extends BitmapAsset { } }//package
Section 244
//Res_CLASS_IMAGE_MANUAL_8 (Res_CLASS_IMAGE_MANUAL_8) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_8 extends BitmapAsset { } }//package
Section 245
//Res_CLASS_IMAGE_MANUAL_9 (Res_CLASS_IMAGE_MANUAL_9) package { import mx.core.*; public class Res_CLASS_IMAGE_MANUAL_9 extends BitmapAsset { } }//package
Section 246
//Res_CLASS_IMAGE_MEGADEV_LOGO (Res_CLASS_IMAGE_MEGADEV_LOGO) package { import mx.core.*; public class Res_CLASS_IMAGE_MEGADEV_LOGO extends BitmapAsset { } }//package
Section 247
//Res_CLASS_IMAGE_MENU_SELECTION (Res_CLASS_IMAGE_MENU_SELECTION) package { import mx.core.*; public class Res_CLASS_IMAGE_MENU_SELECTION extends BitmapAsset { } }//package
Section 248
//Res_CLASS_IMAGE_MOON (Res_CLASS_IMAGE_MOON) package { import mx.core.*; public class Res_CLASS_IMAGE_MOON extends BitmapAsset { } }//package
Section 249
//Res_CLASS_IMAGE_PARATROOPA (Res_CLASS_IMAGE_PARATROOPA) package { import mx.core.*; public class Res_CLASS_IMAGE_PARATROOPA extends BitmapAsset { } }//package
Section 250
//Res_CLASS_IMAGE_PENDULUM_BALL (Res_CLASS_IMAGE_PENDULUM_BALL) package { import mx.core.*; public class Res_CLASS_IMAGE_PENDULUM_BALL extends BitmapAsset { } }//package
Section 251
//Res_CLASS_IMAGE_PENDULUM_CHAIN (Res_CLASS_IMAGE_PENDULUM_CHAIN) package { import mx.core.*; public class Res_CLASS_IMAGE_PENDULUM_CHAIN extends BitmapAsset { } }//package
Section 252
//Res_CLASS_IMAGE_PLAYER (Res_CLASS_IMAGE_PLAYER) package { import mx.core.*; public class Res_CLASS_IMAGE_PLAYER extends BitmapAsset { } }//package
Section 253
//Res_CLASS_IMAGE_PLAYER_ATTACK_DOWN (Res_CLASS_IMAGE_PLAYER_ATTACK_DOWN) package { import mx.core.*; public class Res_CLASS_IMAGE_PLAYER_ATTACK_DOWN extends BitmapAsset { } }//package
Section 254
//Res_CLASS_IMAGE_PLAYER_CROUCHED (Res_CLASS_IMAGE_PLAYER_CROUCHED) package { import mx.core.*; public class Res_CLASS_IMAGE_PLAYER_CROUCHED extends BitmapAsset { } }//package
Section 255
//Res_CLASS_IMAGE_PLAYER_DIE (Res_CLASS_IMAGE_PLAYER_DIE) package { import mx.core.*; public class Res_CLASS_IMAGE_PLAYER_DIE extends BitmapAsset { } }//package
Section 256
//Res_CLASS_IMAGE_PLAYER_SLASH (Res_CLASS_IMAGE_PLAYER_SLASH) package { import mx.core.*; public class Res_CLASS_IMAGE_PLAYER_SLASH extends BitmapAsset { } }//package
Section 257
//Res_CLASS_IMAGE_PLAYER_SOMERSAULT (Res_CLASS_IMAGE_PLAYER_SOMERSAULT) package { import mx.core.*; public class Res_CLASS_IMAGE_PLAYER_SOMERSAULT extends BitmapAsset { } }//package
Section 258
//Res_CLASS_IMAGE_PLAYER_SWORD (Res_CLASS_IMAGE_PLAYER_SWORD) package { import mx.core.*; public class Res_CLASS_IMAGE_PLAYER_SWORD extends BitmapAsset { } }//package
Section 259
//Res_CLASS_IMAGE_PLAYER_THROW_ITEM (Res_CLASS_IMAGE_PLAYER_THROW_ITEM) package { import mx.core.*; public class Res_CLASS_IMAGE_PLAYER_THROW_ITEM extends BitmapAsset { } }//package
Section 260
//Res_CLASS_IMAGE_PROGRESS_MARKER (Res_CLASS_IMAGE_PROGRESS_MARKER) package { import mx.core.*; public class Res_CLASS_IMAGE_PROGRESS_MARKER extends BitmapAsset { } }//package
Section 261
//Res_CLASS_IMAGE_SHIELDED_ENEMY (Res_CLASS_IMAGE_SHIELDED_ENEMY) package { import mx.core.*; public class Res_CLASS_IMAGE_SHIELDED_ENEMY extends BitmapAsset { } }//package
Section 262
//Res_CLASS_IMAGE_SHURIKEN (Res_CLASS_IMAGE_SHURIKEN) package { import mx.core.*; public class Res_CLASS_IMAGE_SHURIKEN extends BitmapAsset { } }//package
Section 263
//Res_CLASS_IMAGE_SPIKES_FLOOR (Res_CLASS_IMAGE_SPIKES_FLOOR) package { import mx.core.*; public class Res_CLASS_IMAGE_SPIKES_FLOOR extends BitmapAsset { } }//package
Section 264
//Res_CLASS_IMAGE_SPINY (Res_CLASS_IMAGE_SPINY) package { import mx.core.*; public class Res_CLASS_IMAGE_SPINY extends BitmapAsset { } }//package
Section 265
//Res_CLASS_IMAGE_STATS_BOX (Res_CLASS_IMAGE_STATS_BOX) package { import mx.core.*; public class Res_CLASS_IMAGE_STATS_BOX extends BitmapAsset { } }//package
Section 266
//Res_CLASS_IMAGE_TENTACLES (Res_CLASS_IMAGE_TENTACLES) package { import mx.core.*; public class Res_CLASS_IMAGE_TENTACLES extends BitmapAsset { } }//package
Section 267
//Res_CLASS_IMAGE_TEXT_GAME_OVER (Res_CLASS_IMAGE_TEXT_GAME_OVER) package { import mx.core.*; public class Res_CLASS_IMAGE_TEXT_GAME_OVER extends BitmapAsset { } }//package
Section 268
//Res_CLASS_IMAGE_THWOMP (Res_CLASS_IMAGE_THWOMP) package { import mx.core.*; public class Res_CLASS_IMAGE_THWOMP extends BitmapAsset { } }//package
Section 269
//Res_CLASS_IMAGE_TILES (Res_CLASS_IMAGE_TILES) package { import mx.core.*; public class Res_CLASS_IMAGE_TILES extends BitmapAsset { } }//package
Section 270
//Res_CLASS_IMAGE_TIMER_INDICATOR_ARROW (Res_CLASS_IMAGE_TIMER_INDICATOR_ARROW) package { import mx.core.*; public class Res_CLASS_IMAGE_TIMER_INDICATOR_ARROW extends BitmapAsset { } }//package
Section 271
//Res_CLASS_IMAGE_TITLE (Res_CLASS_IMAGE_TITLE) package { import mx.core.*; public class Res_CLASS_IMAGE_TITLE extends BitmapAsset { } }//package
Section 272
//Res_CLASS_IMAGE_TOWER_BIT (Res_CLASS_IMAGE_TOWER_BIT) package { import mx.core.*; public class Res_CLASS_IMAGE_TOWER_BIT extends BitmapAsset { } }//package
Section 273
//Res_CLASS_IMAGE_TOWER_EYE_BIT (Res_CLASS_IMAGE_TOWER_EYE_BIT) package { import mx.core.*; public class Res_CLASS_IMAGE_TOWER_EYE_BIT extends BitmapAsset { } }//package
Section 274
//Res_CLASS_IMAGE_TREASURE (Res_CLASS_IMAGE_TREASURE) package { import mx.core.*; public class Res_CLASS_IMAGE_TREASURE extends BitmapAsset { } }//package
Section 275
//Res_CLASS_IMAGE_TREASURE_BLOCK (Res_CLASS_IMAGE_TREASURE_BLOCK) package { import mx.core.*; public class Res_CLASS_IMAGE_TREASURE_BLOCK extends BitmapAsset { } }//package
Section 276
//Res_CLASS_IMAGE_TUTORIAL_0 (Res_CLASS_IMAGE_TUTORIAL_0) package { import mx.core.*; public class Res_CLASS_IMAGE_TUTORIAL_0 extends BitmapAsset { } }//package
Section 277
//Res_CLASS_IMAGE_TUTORIAL_1 (Res_CLASS_IMAGE_TUTORIAL_1) package { import mx.core.*; public class Res_CLASS_IMAGE_TUTORIAL_1 extends BitmapAsset { } }//package
Section 278
//Res_CLASS_IMAGE_TUTORIAL_2 (Res_CLASS_IMAGE_TUTORIAL_2) package { import mx.core.*; public class Res_CLASS_IMAGE_TUTORIAL_2 extends BitmapAsset { } }//package
Section 279
//Res_CLASS_IMAGE_WARP (Res_CLASS_IMAGE_WARP) package { import mx.core.*; public class Res_CLASS_IMAGE_WARP extends BitmapAsset { } }//package
Section 280
//Res_CLASS_IMAGE_WEAPON_ICONS (Res_CLASS_IMAGE_WEAPON_ICONS) package { import mx.core.*; public class Res_CLASS_IMAGE_WEAPON_ICONS extends BitmapAsset { } }//package
Section 281
//Res_CLASS_IMAGE_WIZARD (Res_CLASS_IMAGE_WIZARD) package { import mx.core.*; public class Res_CLASS_IMAGE_WIZARD extends BitmapAsset { } }//package
Section 282
//Res_CLASS_IMAGE_ZOMBIE (Res_CLASS_IMAGE_ZOMBIE) package { import mx.core.*; public class Res_CLASS_IMAGE_ZOMBIE extends BitmapAsset { } }//package
Section 283
//Res_CLASS_MUSIC_GAME (Res_CLASS_MUSIC_GAME) package { import mx.core.*; import flash.utils.*; public class Res_CLASS_MUSIC_GAME extends MovieClipLoaderAsset { public var _jy1476:Class; private static var bytes:ByteArray = null; public function Res_CLASS_MUSIC_GAME(){ _jy1476 = Res_CLASS_MUSIC_GAME_dataClass; super(); initialWidth = (11000 / 20); initialHeight = (8000 / 20); } override public function get movieClipData():ByteArray{ if (bytes == null){ bytes = ByteArray(new _jy1476()); }; return (bytes); } } }//package
Section 284
//Res_CLASS_MUSIC_GAME_dataClass (Res_CLASS_MUSIC_GAME_dataClass) package { import mx.core.*; public class Res_CLASS_MUSIC_GAME_dataClass extends ByteArrayAsset { } }//package
Section 285
//Res_CLASS_MUSIC_TITLE (Res_CLASS_MUSIC_TITLE) package { import mx.core.*; import flash.utils.*; public class Res_CLASS_MUSIC_TITLE extends MovieClipLoaderAsset { public var _jy1476:Class; private static var bytes:ByteArray = null; public function Res_CLASS_MUSIC_TITLE(){ _jy1476 = Res_CLASS_MUSIC_TITLE_dataClass; super(); initialWidth = (11000 / 20); initialHeight = (8000 / 20); } override public function get movieClipData():ByteArray{ if (bytes == null){ bytes = ByteArray(new _jy1476()); }; return (bytes); } } }//package
Section 286
//Res_CLASS_MUSIC_TITLE_dataClass (Res_CLASS_MUSIC_TITLE_dataClass) package { import mx.core.*; public class Res_CLASS_MUSIC_TITLE_dataClass extends ByteArrayAsset { } }//package
Section 287
//Res_CLASS_SOUND_ACHIEVEMENT (Res_CLASS_SOUND_ACHIEVEMENT) package { import mx.core.*; public class Res_CLASS_SOUND_ACHIEVEMENT extends SoundAsset { } }//package
Section 288
//Res_CLASS_SOUND_ACHIEVEMENT_LONG (Res_CLASS_SOUND_ACHIEVEMENT_LONG) package { import mx.core.*; public class Res_CLASS_SOUND_ACHIEVEMENT_LONG extends SoundAsset { } }//package
Section 289
//Res_CLASS_SOUND_ASSASSIN_KILL (Res_CLASS_SOUND_ASSASSIN_KILL) package { import mx.core.*; public class Res_CLASS_SOUND_ASSASSIN_KILL extends SoundAsset { } }//package
Section 290
//Res_CLASS_SOUND_ASSASSIN_KNIFE (Res_CLASS_SOUND_ASSASSIN_KNIFE) package { import mx.core.*; public class Res_CLASS_SOUND_ASSASSIN_KNIFE extends SoundAsset { } }//package
Section 291
//Res_CLASS_SOUND_BAHAMUT_APPEAR (Res_CLASS_SOUND_BAHAMUT_APPEAR) package { import mx.core.*; public class Res_CLASS_SOUND_BAHAMUT_APPEAR extends SoundAsset { } }//package
Section 292
//Res_CLASS_SOUND_BAHAMUT_DEATH (Res_CLASS_SOUND_BAHAMUT_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_BAHAMUT_DEATH extends SoundAsset { } }//package
Section 293
//Res_CLASS_SOUND_BIRD_BOUNCE (Res_CLASS_SOUND_BIRD_BOUNCE) package { import mx.core.*; public class Res_CLASS_SOUND_BIRD_BOUNCE extends SoundAsset { } }//package
Section 294
//Res_CLASS_SOUND_BOMB_EXPLOSION (Res_CLASS_SOUND_BOMB_EXPLOSION) package { import mx.core.*; public class Res_CLASS_SOUND_BOMB_EXPLOSION extends SoundAsset { } }//package
Section 295
//Res_CLASS_SOUND_BOOM_BOOM_DEATH_0 (Res_CLASS_SOUND_BOOM_BOOM_DEATH_0) package { import mx.core.*; public class Res_CLASS_SOUND_BOOM_BOOM_DEATH_0 extends SoundAsset { } }//package
Section 296
//Res_CLASS_SOUND_BOOM_BOOM_DEATH_1 (Res_CLASS_SOUND_BOOM_BOOM_DEATH_1) package { import mx.core.*; public class Res_CLASS_SOUND_BOOM_BOOM_DEATH_1 extends SoundAsset { } }//package
Section 297
//Res_CLASS_SOUND_BOUNCER_HIT_WALL (Res_CLASS_SOUND_BOUNCER_HIT_WALL) package { import mx.core.*; public class Res_CLASS_SOUND_BOUNCER_HIT_WALL extends SoundAsset { } }//package
Section 298
//Res_CLASS_SOUND_COLLECT_BOMBS (Res_CLASS_SOUND_COLLECT_BOMBS) package { import mx.core.*; public class Res_CLASS_SOUND_COLLECT_BOMBS extends SoundAsset { } }//package
Section 299
//Res_CLASS_SOUND_COLLECT_SHURIKENS (Res_CLASS_SOUND_COLLECT_SHURIKENS) package { import mx.core.*; public class Res_CLASS_SOUND_COLLECT_SHURIKENS extends SoundAsset { } }//package
Section 300
//Res_CLASS_SOUND_CRUMBLE (Res_CLASS_SOUND_CRUMBLE) package { import mx.core.*; public class Res_CLASS_SOUND_CRUMBLE extends SoundAsset { } }//package
Section 301
//Res_CLASS_SOUND_DEVIL_ATTACK (Res_CLASS_SOUND_DEVIL_ATTACK) package { import mx.core.*; public class Res_CLASS_SOUND_DEVIL_ATTACK extends SoundAsset { } }//package
Section 302
//Res_CLASS_SOUND_DEVIL_DEATH (Res_CLASS_SOUND_DEVIL_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_DEVIL_DEATH extends SoundAsset { } }//package
Section 303
//Res_CLASS_SOUND_DOOR_CAR_0 (Res_CLASS_SOUND_DOOR_CAR_0) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_CAR_0 extends SoundAsset { } }//package
Section 304
//Res_CLASS_SOUND_DOOR_CAR_1 (Res_CLASS_SOUND_DOOR_CAR_1) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_CAR_1 extends SoundAsset { } }//package
Section 305
//Res_CLASS_SOUND_DOOR_CAT_0 (Res_CLASS_SOUND_DOOR_CAT_0) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_CAT_0 extends SoundAsset { } }//package
Section 306
//Res_CLASS_SOUND_DOOR_CAT_1 (Res_CLASS_SOUND_DOOR_CAT_1) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_CAT_1 extends SoundAsset { } }//package
Section 307
//Res_CLASS_SOUND_DOOR_CHICKEN_0 (Res_CLASS_SOUND_DOOR_CHICKEN_0) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_CHICKEN_0 extends SoundAsset { } }//package
Section 308
//Res_CLASS_SOUND_DOOR_CHICKEN_1 (Res_CLASS_SOUND_DOOR_CHICKEN_1) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_CHICKEN_1 extends SoundAsset { } }//package
Section 309
//Res_CLASS_SOUND_DOOR_CLANG (Res_CLASS_SOUND_DOOR_CLANG) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_CLANG extends SoundAsset { } }//package
Section 310
//Res_CLASS_SOUND_DOOR_GLASS (Res_CLASS_SOUND_DOOR_GLASS) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_GLASS extends SoundAsset { } }//package
Section 311
//Res_CLASS_SOUND_DOOR_OPEN (Res_CLASS_SOUND_DOOR_OPEN) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_OPEN extends SoundAsset { } }//package
Section 312
//Res_CLASS_SOUND_DOOR_STEPS (Res_CLASS_SOUND_DOOR_STEPS) package { import mx.core.*; public class Res_CLASS_SOUND_DOOR_STEPS extends SoundAsset { } }//package
Section 313
//Res_CLASS_SOUND_DOUBLE_JUMP_0 (Res_CLASS_SOUND_DOUBLE_JUMP_0) package { import mx.core.*; public class Res_CLASS_SOUND_DOUBLE_JUMP_0 extends SoundAsset { } }//package
Section 314
//Res_CLASS_SOUND_DOUBLE_JUMP_1 (Res_CLASS_SOUND_DOUBLE_JUMP_1) package { import mx.core.*; public class Res_CLASS_SOUND_DOUBLE_JUMP_1 extends SoundAsset { } }//package
Section 315
//Res_CLASS_SOUND_DOUBLE_JUMP_2 (Res_CLASS_SOUND_DOUBLE_JUMP_2) package { import mx.core.*; public class Res_CLASS_SOUND_DOUBLE_JUMP_2 extends SoundAsset { } }//package
Section 316
//Res_CLASS_SOUND_DRAGON_ATTACK (Res_CLASS_SOUND_DRAGON_ATTACK) package { import mx.core.*; public class Res_CLASS_SOUND_DRAGON_ATTACK extends SoundAsset { } }//package
Section 317
//Res_CLASS_SOUND_DRAGON_DEATH (Res_CLASS_SOUND_DRAGON_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_DRAGON_DEATH extends SoundAsset { } }//package
Section 318
//Res_CLASS_SOUND_EXTRA_LIFE (Res_CLASS_SOUND_EXTRA_LIFE) package { import mx.core.*; public class Res_CLASS_SOUND_EXTRA_LIFE extends SoundAsset { } }//package
Section 319
//Res_CLASS_SOUND_FAIRY_COLLECT (Res_CLASS_SOUND_FAIRY_COLLECT) package { import mx.core.*; public class Res_CLASS_SOUND_FAIRY_COLLECT extends SoundAsset { } }//package
Section 320
//Res_CLASS_SOUND_FINAL_PLAYER_DEATH (Res_CLASS_SOUND_FINAL_PLAYER_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_FINAL_PLAYER_DEATH extends SoundAsset { } }//package
Section 321
//Res_CLASS_SOUND_FLOOR_BONUS (Res_CLASS_SOUND_FLOOR_BONUS) package { import mx.core.*; public class Res_CLASS_SOUND_FLOOR_BONUS extends SoundAsset { } }//package
Section 322
//Res_CLASS_SOUND_FROG_DEATH (Res_CLASS_SOUND_FROG_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_FROG_DEATH extends SoundAsset { } }//package
Section 323
//Res_CLASS_SOUND_FROG_JUMP (Res_CLASS_SOUND_FROG_JUMP) package { import mx.core.*; public class Res_CLASS_SOUND_FROG_JUMP extends SoundAsset { } }//package
Section 324
//Res_CLASS_SOUND_FUZZY_ATTACK (Res_CLASS_SOUND_FUZZY_ATTACK) package { import mx.core.*; public class Res_CLASS_SOUND_FUZZY_ATTACK extends SoundAsset { } }//package
Section 325
//Res_CLASS_SOUND_FUZZY_DEATH (Res_CLASS_SOUND_FUZZY_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_FUZZY_DEATH extends SoundAsset { } }//package
Section 326
//Res_CLASS_SOUND_GOOMBA_DEATH_0 (Res_CLASS_SOUND_GOOMBA_DEATH_0) package { import mx.core.*; public class Res_CLASS_SOUND_GOOMBA_DEATH_0 extends SoundAsset { } }//package
Section 327
//Res_CLASS_SOUND_GOOMBA_DEATH_1 (Res_CLASS_SOUND_GOOMBA_DEATH_1) package { import mx.core.*; public class Res_CLASS_SOUND_GOOMBA_DEATH_1 extends SoundAsset { } }//package
Section 328
//Res_CLASS_SOUND_HIT_SHIELD (Res_CLASS_SOUND_HIT_SHIELD) package { import mx.core.*; public class Res_CLASS_SOUND_HIT_SHIELD extends SoundAsset { } }//package
Section 329
//Res_CLASS_SOUND_JUMP_0 (Res_CLASS_SOUND_JUMP_0) package { import mx.core.*; public class Res_CLASS_SOUND_JUMP_0 extends SoundAsset { } }//package
Section 330
//Res_CLASS_SOUND_JUMP_1 (Res_CLASS_SOUND_JUMP_1) package { import mx.core.*; public class Res_CLASS_SOUND_JUMP_1 extends SoundAsset { } }//package
Section 331
//Res_CLASS_SOUND_JUMP_2 (Res_CLASS_SOUND_JUMP_2) package { import mx.core.*; public class Res_CLASS_SOUND_JUMP_2 extends SoundAsset { } }//package
Section 332
//Res_CLASS_SOUND_KITE_FLIGHT (Res_CLASS_SOUND_KITE_FLIGHT) package { import mx.core.*; public class Res_CLASS_SOUND_KITE_FLIGHT extends SoundAsset { } }//package
Section 333
//Res_CLASS_SOUND_LAND (Res_CLASS_SOUND_LAND) package { import mx.core.*; public class Res_CLASS_SOUND_LAND extends SoundAsset { } }//package
Section 334
//Res_CLASS_SOUND_LASER_DEATH (Res_CLASS_SOUND_LASER_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_LASER_DEATH extends SoundAsset { } }//package
Section 335
//Res_CLASS_SOUND_LASER_SHOOT (Res_CLASS_SOUND_LASER_SHOOT) package { import mx.core.*; public class Res_CLASS_SOUND_LASER_SHOOT extends SoundAsset { } }//package
Section 336
//Res_CLASS_SOUND_MAGIKOOPA_DEATH (Res_CLASS_SOUND_MAGIKOOPA_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_MAGIKOOPA_DEATH extends SoundAsset { } }//package
Section 337
//Res_CLASS_SOUND_PARATROOPA_DEATH (Res_CLASS_SOUND_PARATROOPA_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_PARATROOPA_DEATH extends SoundAsset { } }//package
Section 338
//Res_CLASS_SOUND_PILEDRIVER (Res_CLASS_SOUND_PILEDRIVER) package { import mx.core.*; public class Res_CLASS_SOUND_PILEDRIVER extends SoundAsset { } }//package
Section 339
//Res_CLASS_SOUND_PLAYER_DEATH_0 (Res_CLASS_SOUND_PLAYER_DEATH_0) package { import mx.core.*; public class Res_CLASS_SOUND_PLAYER_DEATH_0 extends SoundAsset { } }//package
Section 340
//Res_CLASS_SOUND_PLAYER_DEATH_1 (Res_CLASS_SOUND_PLAYER_DEATH_1) package { import mx.core.*; public class Res_CLASS_SOUND_PLAYER_DEATH_1 extends SoundAsset { } }//package
Section 341
//Res_CLASS_SOUND_PLAYER_DEATH_2 (Res_CLASS_SOUND_PLAYER_DEATH_2) package { import mx.core.*; public class Res_CLASS_SOUND_PLAYER_DEATH_2 extends SoundAsset { } }//package
Section 342
//Res_CLASS_SOUND_RED_KOOPA_DEATH_0 (Res_CLASS_SOUND_RED_KOOPA_DEATH_0) package { import mx.core.*; public class Res_CLASS_SOUND_RED_KOOPA_DEATH_0 extends SoundAsset { } }//package
Section 343
//Res_CLASS_SOUND_RED_KOOPA_DEATH_1 (Res_CLASS_SOUND_RED_KOOPA_DEATH_1) package { import mx.core.*; public class Res_CLASS_SOUND_RED_KOOPA_DEATH_1 extends SoundAsset { } }//package
Section 344
//Res_CLASS_SOUND_ROCKS_DESTROY (Res_CLASS_SOUND_ROCKS_DESTROY) package { import mx.core.*; public class Res_CLASS_SOUND_ROCKS_DESTROY extends SoundAsset { } }//package
Section 345
//Res_CLASS_SOUND_ROLLOVER (Res_CLASS_SOUND_ROLLOVER) package { import mx.core.*; public class Res_CLASS_SOUND_ROLLOVER extends SoundAsset { } }//package
Section 346
//Res_CLASS_SOUND_SEE_EVERYTHING (Res_CLASS_SOUND_SEE_EVERYTHING) package { import mx.core.*; public class Res_CLASS_SOUND_SEE_EVERYTHING extends SoundAsset { } }//package
Section 347
//Res_CLASS_SOUND_SELECT (Res_CLASS_SOUND_SELECT) package { import mx.core.*; public class Res_CLASS_SOUND_SELECT extends SoundAsset { } }//package
Section 348
//Res_CLASS_SOUND_SHIELD_DEATH (Res_CLASS_SOUND_SHIELD_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_SHIELD_DEATH extends SoundAsset { } }//package
Section 349
//Res_CLASS_SOUND_SHURIKEN_LAND (Res_CLASS_SOUND_SHURIKEN_LAND) package { import mx.core.*; public class Res_CLASS_SOUND_SHURIKEN_LAND extends SoundAsset { } }//package
Section 350
//Res_CLASS_SOUND_SNIFIT_DEATH (Res_CLASS_SOUND_SNIFIT_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_SNIFIT_DEATH extends SoundAsset { } }//package
Section 351
//Res_CLASS_SOUND_SPIKES_DOWN (Res_CLASS_SOUND_SPIKES_DOWN) package { import mx.core.*; public class Res_CLASS_SOUND_SPIKES_DOWN extends SoundAsset { } }//package
Section 352
//Res_CLASS_SOUND_SPIKES_UP (Res_CLASS_SOUND_SPIKES_UP) package { import mx.core.*; public class Res_CLASS_SOUND_SPIKES_UP extends SoundAsset { } }//package
Section 353
//Res_CLASS_SOUND_SPINY_DEATH (Res_CLASS_SOUND_SPINY_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_SPINY_DEATH extends SoundAsset { } }//package
Section 354
//Res_CLASS_SOUND_STEP_0 (Res_CLASS_SOUND_STEP_0) package { import mx.core.*; public class Res_CLASS_SOUND_STEP_0 extends SoundAsset { } }//package
Section 355
//Res_CLASS_SOUND_STEP_1 (Res_CLASS_SOUND_STEP_1) package { import mx.core.*; public class Res_CLASS_SOUND_STEP_1 extends SoundAsset { } }//package
Section 356
//Res_CLASS_SOUND_SWORD_SWIPE_0 (Res_CLASS_SOUND_SWORD_SWIPE_0) package { import mx.core.*; public class Res_CLASS_SOUND_SWORD_SWIPE_0 extends SoundAsset { } }//package
Section 357
//Res_CLASS_SOUND_SWORD_SWIPE_1 (Res_CLASS_SOUND_SWORD_SWIPE_1) package { import mx.core.*; public class Res_CLASS_SOUND_SWORD_SWIPE_1 extends SoundAsset { } }//package
Section 358
//Res_CLASS_SOUND_TENTACLES (Res_CLASS_SOUND_TENTACLES) package { import mx.core.*; public class Res_CLASS_SOUND_TENTACLES extends SoundAsset { } }//package
Section 359
//Res_CLASS_SOUND_THROW_BOMB (Res_CLASS_SOUND_THROW_BOMB) package { import mx.core.*; public class Res_CLASS_SOUND_THROW_BOMB extends SoundAsset { } }//package
Section 360
//Res_CLASS_SOUND_THROW_SHURIKEN_0 (Res_CLASS_SOUND_THROW_SHURIKEN_0) package { import mx.core.*; public class Res_CLASS_SOUND_THROW_SHURIKEN_0 extends SoundAsset { } }//package
Section 361
//Res_CLASS_SOUND_THROW_SHURIKEN_1 (Res_CLASS_SOUND_THROW_SHURIKEN_1) package { import mx.core.*; public class Res_CLASS_SOUND_THROW_SHURIKEN_1 extends SoundAsset { } }//package
Section 362
//Res_CLASS_SOUND_THWOMP_DEATH (Res_CLASS_SOUND_THWOMP_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_THWOMP_DEATH extends SoundAsset { } }//package
Section 363
//Res_CLASS_SOUND_THWOMP_LAND (Res_CLASS_SOUND_THWOMP_LAND) package { import mx.core.*; public class Res_CLASS_SOUND_THWOMP_LAND extends SoundAsset { } }//package
Section 364
//Res_CLASS_SOUND_TICK (Res_CLASS_SOUND_TICK) package { import mx.core.*; public class Res_CLASS_SOUND_TICK extends SoundAsset { } }//package
Section 365
//Res_CLASS_SOUND_TIME_RESET (Res_CLASS_SOUND_TIME_RESET) package { import mx.core.*; public class Res_CLASS_SOUND_TIME_RESET extends SoundAsset { } }//package
Section 366
//Res_CLASS_SOUND_TOWER_DEATH (Res_CLASS_SOUND_TOWER_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_TOWER_DEATH extends SoundAsset { } }//package
Section 367
//Res_CLASS_SOUND_TREASURE (Res_CLASS_SOUND_TREASURE) package { import mx.core.*; public class Res_CLASS_SOUND_TREASURE extends SoundAsset { } }//package
Section 368
//Res_CLASS_SOUND_WALL_SLIDE (Res_CLASS_SOUND_WALL_SLIDE) package { import mx.core.*; public class Res_CLASS_SOUND_WALL_SLIDE extends SoundAsset { } }//package
Section 369
//Res_CLASS_SOUND_WARP (Res_CLASS_SOUND_WARP) package { import mx.core.*; public class Res_CLASS_SOUND_WARP extends SoundAsset { } }//package
Section 370
//Res_CLASS_SOUND_WIZARD_SHOOT (Res_CLASS_SOUND_WIZARD_SHOOT) package { import mx.core.*; public class Res_CLASS_SOUND_WIZARD_SHOOT extends SoundAsset { } }//package
Section 371
//Res_CLASS_SOUND_WIZARD_TELEPORT (Res_CLASS_SOUND_WIZARD_TELEPORT) package { import mx.core.*; public class Res_CLASS_SOUND_WIZARD_TELEPORT extends SoundAsset { } }//package
Section 372
//Res_CLASS_SOUND_ZOMBIE_DEATH (Res_CLASS_SOUND_ZOMBIE_DEATH) package { import mx.core.*; public class Res_CLASS_SOUND_ZOMBIE_DEATH extends SoundAsset { } }//package
Section 373
//Res_CLASS_SOUND_ZOMBIE_SPOT_PLAYER (Res_CLASS_SOUND_ZOMBIE_SPOT_PLAYER) package { import mx.core.*; public class Res_CLASS_SOUND_ZOMBIE_SPOT_PLAYER extends SoundAsset { } }//package
Section 374
//Res_CLASS_SWF_DEV_LOGO (Res_CLASS_SWF_DEV_LOGO) package { import mx.core.*; public class Res_CLASS_SWF_DEV_LOGO extends MovieClipAsset { } }//package
Section 375
//Res_CLASS_SWF_KITE (Res_CLASS_SWF_KITE) package { import mx.core.*; public class Res_CLASS_SWF_KITE extends MovieClipAsset { } }//package
Section 376
//Res_CLASS_SWF_NINJA_FLIGHT (Res_CLASS_SWF_NINJA_FLIGHT) package { import mx.core.*; public class Res_CLASS_SWF_NINJA_FLIGHT extends MovieClipAsset { } }//package
Section 377
//Res_CLASS_SWF_RETRY (Res_CLASS_SWF_RETRY) package { import mx.core.*; public class Res_CLASS_SWF_RETRY extends MovieClipAsset { } }//package
Section 378
//Res_CLASS_XML_TEXT_EN (Res_CLASS_XML_TEXT_EN) package { import mx.core.*; public class Res_CLASS_XML_TEXT_EN extends ByteArrayAsset { } }//package
Section 379
//Shield (Shield) package { public class Shield { public const _up141:int; public const _cm2639:Number = 4; public const _nx1446:Number = 0; public const _vc283:int = 1; public const _du2681:int; public const _wq2071:Number = 0.05; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _lf3116:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _gp1063:uint = 0x880000; public const WIDTH:int = 24; public const _pg2828:int = 40; public const _tg1046:int = 9; public const _tf894:Boolean = true; public const _ur743:int = 15; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _le3056:int = 26; public const _np1949:Number = 1; public const _kx2846:int = 500; public var _fq406:int;// = 0 public function Shield(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_SHIELD; super(); } } }//package
Section 380
//Shuriken (Shuriken) package { public class Shuriken { public const _cm2639:int = 20; public const _nx1446:int = 0; public const _du2681:int; public const _id486:int = 1; public const _aa3156:int = 100; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0.2; public const WIDTH:int = 20; public const _pg2828:int = 16; public const _kd542:Number = 1; public const _np1949:Number = 0; public var _kj3056:Boolean;// = false public function Shuriken(){ _ij2888 = Main.GROUP_PROJECTILE; _du2681 = (Gfx._rm371 | Gfx._dt1890); super(); } } }//package
Section 381
//SpikesFloor (SpikesFloor) package { public class SpikesFloor { public const _vc283:int = 1; public const _gp1063:int = 0xFFFFFF; public const WIDTH:int = 24; public const _pg2828:int = 20; public const _yx2572:Boolean = true; public const _nj251:Boolean = false; public const _ky1648:Boolean = true; public const _kd542:Number = 0; public const _cm2639:int = 0; public const _nx1446:int = 0; public const _wq2071:Number = 0; public const _aa3156:int = 50; public const _du2681:int; public const _mu928:uint = 4294901760; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = true; public const STATE:int; public const _mi702:int = 0; public const _np1949:Number = 1; public const _up141:int; public const _kx2846:int = 100; public var _rg1832:int;// = 0 public var _fq406:int;// = 0 public var _dq2303:Boolean; public function SpikesFloor(){ _ij2888 = Main.GROUP_ENEMY; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_SPIKES; super(); } } }//package
Section 382
//Spiny (Spiny) package { public class Spiny { public const _vc283:int = 1; public const _lf3116:Boolean = false; public const _gp1063:int = 0x880000; public const WIDTH:int = 24; public const _pg2828:int = 40; public const _yx2572:Boolean = true; public const _ky1648:Boolean = true; public const _kd542:Number = 1; public const _cm2639:Number = 4; public const _nx1446:Number = 0; public const _wq2071:Number = 0; public const _du2681:int; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _tg1046:int = 9; public const _tf894:Boolean = true; public const _ur743:int = 10; public const _np1949:Number = 1; public const _le3056:int = 15; public const _up141:int; public const _kx2846:int = 400; public var _fq406:int;// = 0 public function Spiny(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_SPINY; super(); } } }//package
Section 383
//Stats (Stats) package { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import flash.text.*; import flash.system.*; public class Stats extends Sprite { protected const WIDTH:uint = 70; protected const _pg2828:uint = 100; protected var timer:uint; protected var _bu1788:uint; protected var _jx1782:Object; protected var _bk2792:Number; protected var xml:XML; protected var _dr526:Bitmap; protected var _vt2390:uint; protected var fps:uint; protected var _te2853:uint; protected var text:TextField; protected var _uo622:Rectangle; protected var style:StyleSheet; protected var _kg707:uint; protected var _jh734:uint; protected var _qq2952:Number; public function Stats(_arg1:Object=null):void{ _jx1782 = {bg:51, fps:0xFFFF00, _kg707:0xFF00, _bk2792:0xFFFF, memmax:0xFF0070}; super(); if (_arg1){ if (_arg1.bg != null){ _jx1782.bg = _arg1.bg; }; if (_arg1.fps != null){ _jx1782.fps = _arg1.fps; }; if (_arg1._kg707 != null){ _jx1782._kg707 = _arg1._kg707; }; if (_arg1._bk2792 != null){ _jx1782._bk2792 = _arg1._bk2792; }; if (_arg1.memmax != null){ _jx1782.memmax = _arg1.memmax; }; }; _qq2952 = 0; xml = <xml><fps>FPS:</fps><ms>MS:</ms><mem>MEM:</mem><memMax>MAX:</memMax></xml> ; style = new StyleSheet(); style.setStyle("xml", {fontSize:"9px", fontFamily:"_sans", leading:"-2px"}); style.setStyle("fps", {color:_xr2390(_jx1782.fps)}); style.setStyle("_kg707", {color:_xr2390(_jx1782._kg707)}); style.setStyle("_bk2792", {color:_xr2390(_jx1782._bk2792)}); style.setStyle("memMax", {color:_xr2390(_jx1782.memmax)}); text = new TextField(); text.width = WIDTH; text.height = 50; text.styleSheet = style; text.condenseWhite = true; text.selectable = false; text.mouseEnabled = false; _dr526 = new Bitmap(); _dr526.y = 50; _uo622 = new Rectangle((WIDTH - 1), 0, 1, (_pg2828 - 50)); addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); addEventListener(Event.REMOVED_FROM_STAGE, _sf1512, false, 0, true); } private function _sf1512(_arg1:Event):void{ graphics.clear(); while (numChildren > 0) { removeChildAt(0); }; _dr526.bitmapData.dispose(); removeEventListener(MouseEvent.CLICK, _xc947); removeEventListener(Event.ENTER_FRAME, update); } private function _xc947(_arg1:MouseEvent):void{ if (((mouseY / height) > 0.5)){ stage.frameRate--; } else { stage.frameRate++; }; xml.fps = ((("FPS: " + fps) + " / ") + stage.frameRate); text.htmlText = xml; } private function init(_arg1:Event):void{ graphics.beginFill(_jx1782.bg); graphics.drawRect(0, 0, WIDTH, _pg2828); graphics.endFill(); addChild(text); _dr526.bitmapData = new BitmapData(WIDTH, (_pg2828 - 50), false, _jx1782.bg); addChild(_dr526); addEventListener(MouseEvent.CLICK, _xc947); addEventListener(Event.ENTER_FRAME, update); } private function update(_arg1:Event):void{ timer = getTimer(); if ((timer - 1000) > _te2853){ _te2853 = timer; _bk2792 = Number((System.totalMemory * 9.54E-7).toFixed(3)); _qq2952 = ((_qq2952 > _bk2792)) ? _qq2952 : _bk2792; _jh734 = Math.min(_dr526.height, ((fps / stage.frameRate) * _dr526.height)); _vt2390 = (Math.min(_dr526.height, Math.sqrt(Math.sqrt((_bk2792 * 5000)))) - 2); _bu1788 = (Math.min(_dr526.height, Math.sqrt(Math.sqrt((_qq2952 * 5000)))) - 2); _dr526.bitmapData.scroll(-1, 0); _dr526.bitmapData.fillRect(_uo622, _jx1782.bg); _dr526.bitmapData.setPixel((_dr526.width - 1), (_dr526.height - _jh734), _jx1782.fps); _dr526.bitmapData.setPixel((_dr526.width - 1), (_dr526.height - ((timer - _kg707) >> 1)), _jx1782._kg707); _dr526.bitmapData.setPixel((_dr526.width - 1), (_dr526.height - _vt2390), _jx1782._bk2792); _dr526.bitmapData.setPixel((_dr526.width - 1), (_dr526.height - _bu1788), _jx1782.memmax); xml.fps = ((("FPS: " + fps) + " / ") + stage.frameRate); xml._bk2792 = ("MEM: " + _bk2792); xml.memMax = ("MAX: " + _qq2952); fps = 0; }; fps++; xml._kg707 = ("MS: " + (timer - _kg707)); _kg707 = timer; text.htmlText = xml; } private function _xr2390(_arg1:int):String{ return (("#" + _arg1.toString(16))); } } }//package
Section 384
//Tentacles (Tentacles) package { public class Tentacles { public const _up141:int; public const _cm2639:int = 0; public const _nx1446:int = 0; public const _du2681:int; public const _id486:int = 7; public const _aa3156:int = -1; public const _mi702:int = 0; public const _wq2071:Number = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _gp1063:int = 0x8000FF; public const _tf894:Boolean = true; public const _yx2572:Boolean = true; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public const _kx2846:int = 100; public var _fq406:int;// = 0 public function Tentacles(){ _ij2888 = Main.GROUP_ENEMY; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_TENTACLES; super(); } } }//package
Section 385
//Thwomp (Thwomp) package { public class Thwomp { public const _up141:int; public const _cm2639:Number = 0; public const _nx1446:Number = 0; public const _du2681:int; public const _id486:int = 3; public const _mu928:uint = 4294901760; public const _kx2211:Boolean = true; public const _lf3116:Boolean = false; public const _ij2888:int; public const _mi702:int = 0; public const _mu2489:Number = 0; public const _gp1063:int = 0xFFFFFF; public const WIDTH:int = 28; public const _nj251:Boolean = true; public const _tf894:Boolean = true; public const _wq2071:Number = 0; public const _ky1648:Boolean = true; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _np1949:Number = 0; public const _kx2846:int = 100; public var _fq406:int;// = 0 public function Thwomp(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_THWOMP; super(); } } }//package
Section 386
//Tower (Tower) package { public class Tower { public const _vc283:int = 1; public const _id486:int = 9; public const _dt383:int; public const _lf3116:Boolean = false; public const _gp1063:int = 0xFFFFFF; public const WIDTH:int = 28; public const _pg2828:int = 96; public const _yx2572:Boolean = true; public const _kd542:Number = 1; public const _cm2639:Number = 1; public const _nx1446:Number = 0; public const _wq2071:Number = 0.05; public const _du2681:int; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _mu2489:Number = 0; public const _ij2888:int; public const _tg1046:int = 7; public const _tf894:Boolean = true; public const _np1949:Number = 1; public const _up141:int; public const _kx2846:int = 400; public var _fq406:int;// = 0 public var _dj2196:int;// = 0 public function Tower(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _dt383 = Math.floor((Math.random() * 4)); _up141 = Main.KILL_TOWER; super(); } } }//package
Section 387
//Treasure (Treasure) package { public class Treasure { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = -1; public const _du2681:int; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = false; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public function Treasure(){ _ij2888 = Main.GROUP_ITEM; STATE = Main.STATE_STATIC; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); super(); } } }//package
Section 388
//Warp (Warp) package { public class Warp { public const _cm2639:int = 0; public const _nx1446:int = 0; public const _aa3156:int = 0; public const _du2681:int; public const _id486:int = 3; public const _mi702:int = 0; public const _kx2211:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const STATE:int; public const _kd542:Number = 0; public const _np1949:Number = 1; public function Warp(){ _ij2888 = Main.GROUP_SPECIAL; STATE = Main.STATE_STATIC; _du2681 = (Gfx.BOTTOM | Gfx._rm371); super(); } } }//package
Section 389
//Wizard (Wizard) package { public class Wizard { public const _up141:int; public const _cm2639:Number = 0; public const _nx1446:Number = 0; public const _vc283:int = 2; public const _du2681:int; public const _wq2071:Number = 0.1; public const _mi702:int = 0; public const _mu928:uint = 4294901760; public const _kx2211:Boolean = true; public const _lf3116:Boolean = false; public const _ij2888:int; public const _mu2489:Number = 0; public const _gp1063:int = 0x880000; public const WIDTH:int = 16; public const _pg2828:int = 40; public const _nj251:Boolean = true; public const _tf894:Boolean = true; public const _ur743:int = 17; public const _kd542:Number = 1; public const _yx2572:Boolean = true; public const _le3056:int = 27; public const _np1949:Number = 1; public const _kx2846:int = 2000; public var _fq406:int;// = 0 public function Wizard(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_WIZARD; super(); } } }//package
Section 390
//Zombie (Zombie) package { public class Zombie { public const _vc283:int = 1; public const _lf3116:Boolean = true; public const _gp1063:int = 0x880000; public const WIDTH:int = 16; public const _pg2828:int = 40; public const _yx2572:Boolean = true; public const _nj251:Boolean = true; public const _kd542:Number = 1; public const _cm2639:Number = 0; public const _nx1446:Number = 0; public const _wq2071:Number = 0.05; public const _du2681:int; public const _mu928:uint = 4294901760; public const _mi702:int = 0; public const _kx2211:Boolean = true; public const _ij2888:int; public const _mu2489:Number = 0; public const _tf894:Boolean = true; public const _tg1046:int = 9; public const _ur743:int = 10; public const _np1949:Number = 1; public const _le3056:int = 13; public const _up141:int; public const _kx2846:int = 500; public var _fq406:int;// = 0 public function Zombie(){ _ij2888 = Main.GROUP_ENEMY; _du2681 = (Gfx._rm371 | Gfx.BOTTOM); _up141 = Main.KILL_ZOMBIE; super(); } } }//package

Library Items

Symbol 1 Sound {Res_CLASS_SOUND_WIZARD_TELEPORT} [Res_CLASS_SOUND_WIZARD_TELEPORT]
Symbol 2 Sound {Res_CLASS_SOUND_THWOMP_DEATH} [Res_CLASS_SOUND_THWOMP_DEATH]
Symbol 3 Sound {Res_CLASS_SOUND_PLAYER_DEATH_1} [Res_CLASS_SOUND_PLAYER_DEATH_1]
Symbol 4 Sound {Res_CLASS_SOUND_GOOMBA_DEATH_1} [Res_CLASS_SOUND_GOOMBA_DEATH_1]
Symbol 5 Sound {Res_CLASS_SOUND_DOOR_OPEN} [Res_CLASS_SOUND_DOOR_OPEN]
Symbol 6 Sound {Res_CLASS_SOUND_DOUBLE_JUMP_1} [Res_CLASS_SOUND_DOUBLE_JUMP_1]
Symbol 7 Sound {Res_CLASS_SOUND_FINAL_PLAYER_DEATH} [Res_CLASS_SOUND_FINAL_PLAYER_DEATH]
Symbol 8 Sound {Res_CLASS_SOUND_DOUBLE_JUMP_0} [Res_CLASS_SOUND_DOUBLE_JUMP_0]
Symbol 9 Sound {Res_CLASS_SOUND_WALL_SLIDE} [Res_CLASS_SOUND_WALL_SLIDE]
Symbol 10 Sound {Res_CLASS_SOUND_TREASURE} [Res_CLASS_SOUND_TREASURE]
Symbol 11 Sound {Res_CLASS_SOUND_PLAYER_DEATH_2} [Res_CLASS_SOUND_PLAYER_DEATH_2]
Symbol 12 Sound {Res_CLASS_SOUND_SHIELD_DEATH} [Res_CLASS_SOUND_SHIELD_DEATH]
Symbol 13 Sound {Res_CLASS_SOUND_THROW_BOMB} [Res_CLASS_SOUND_THROW_BOMB]
Symbol 14 Sound {Res_CLASS_SOUND_PARATROOPA_DEATH} [Res_CLASS_SOUND_PARATROOPA_DEATH]
Symbol 15 Sound {Res_CLASS_SOUND_BIRD_BOUNCE} [Res_CLASS_SOUND_BIRD_BOUNCE]
Symbol 16 Sound {Res_CLASS_SOUND_BOOM_BOOM_DEATH_1} [Res_CLASS_SOUND_BOOM_BOOM_DEATH_1]
Symbol 17 Sound {Res_CLASS_SOUND_DOUBLE_JUMP_2} [Res_CLASS_SOUND_DOUBLE_JUMP_2]
Symbol 18 Sound {Res_CLASS_SOUND_BOOM_BOOM_DEATH_0} [Res_CLASS_SOUND_BOOM_BOOM_DEATH_0]
Symbol 19 Sound {Res_CLASS_SOUND_DEVIL_DEATH} [Res_CLASS_SOUND_DEVIL_DEATH]
Symbol 20 Sound {Res_CLASS_SOUND_TENTACLES} [Res_CLASS_SOUND_TENTACLES]
Symbol 21 Sound {Res_CLASS_SOUND_TICK} [Res_CLASS_SOUND_TICK]
Symbol 22 Sound {Res_CLASS_SOUND_MAGIKOOPA_DEATH} [Res_CLASS_SOUND_MAGIKOOPA_DEATH]
Symbol 23 Sound {Res_CLASS_SOUND_BOUNCER_HIT_WALL} [Res_CLASS_SOUND_BOUNCER_HIT_WALL]
Symbol 24 Sound {Res_CLASS_SOUND_THROW_SHURIKEN_1} [Res_CLASS_SOUND_THROW_SHURIKEN_1]
Symbol 25 Sound {Res_CLASS_SOUND_FUZZY_ATTACK} [Res_CLASS_SOUND_FUZZY_ATTACK]
Symbol 26 Sound {Res_CLASS_SOUND_THROW_SHURIKEN_0} [Res_CLASS_SOUND_THROW_SHURIKEN_0]
Symbol 27 Sound {Res_CLASS_SOUND_ROCKS_DESTROY} [Res_CLASS_SOUND_ROCKS_DESTROY]
Symbol 28 Sound {Res_CLASS_SOUND_SELECT} [Res_CLASS_SOUND_SELECT]
Symbol 29 Sound {Res_CLASS_SOUND_HIT_SHIELD} [Res_CLASS_SOUND_HIT_SHIELD]
Symbol 30 Sound {Res_CLASS_SOUND_FUZZY_DEATH} [Res_CLASS_SOUND_FUZZY_DEATH]
Symbol 31 Sound {Res_CLASS_SOUND_DOOR_GLASS} [Res_CLASS_SOUND_DOOR_GLASS]
Symbol 32 Sound {Res_CLASS_SOUND_THWOMP_LAND} [Res_CLASS_SOUND_THWOMP_LAND]
Symbol 33 Sound {Res_CLASS_SOUND_LASER_DEATH} [Res_CLASS_SOUND_LASER_DEATH]
Symbol 34 Sound {Res_CLASS_SOUND_PILEDRIVER} [Res_CLASS_SOUND_PILEDRIVER]
Symbol 35 Sound {Res_CLASS_SOUND_BAHAMUT_DEATH} [Res_CLASS_SOUND_BAHAMUT_DEATH]
Symbol 36 Sound {Res_CLASS_SOUND_BOMB_EXPLOSION} [Res_CLASS_SOUND_BOMB_EXPLOSION]
Symbol 37 Sound {Res_CLASS_SOUND_TIME_RESET} [Res_CLASS_SOUND_TIME_RESET]
Symbol 38 Sound {Res_CLASS_SOUND_FAIRY_COLLECT} [Res_CLASS_SOUND_FAIRY_COLLECT]
Symbol 39 Sound {Res_CLASS_SOUND_DOOR_CAT_0} [Res_CLASS_SOUND_DOOR_CAT_0]
Symbol 40 Sound {Res_CLASS_SOUND_ASSASSIN_KILL} [Res_CLASS_SOUND_ASSASSIN_KILL]
Symbol 41 Sound {Res_CLASS_SOUND_DOOR_CAR_1} [Res_CLASS_SOUND_DOOR_CAR_1]
Symbol 42 Sound {Res_CLASS_SOUND_SHURIKEN_LAND} [Res_CLASS_SOUND_SHURIKEN_LAND]
Symbol 43 Sound {Res_CLASS_SOUND_SEE_EVERYTHING} [Res_CLASS_SOUND_SEE_EVERYTHING]
Symbol 44 Sound {Res_CLASS_SOUND_ASSASSIN_KNIFE} [Res_CLASS_SOUND_ASSASSIN_KNIFE]
Symbol 45 Sound {Res_CLASS_SOUND_ACHIEVEMENT_LONG} [Res_CLASS_SOUND_ACHIEVEMENT_LONG]
Symbol 46 Sound {Res_CLASS_SOUND_DOOR_CAT_1} [Res_CLASS_SOUND_DOOR_CAT_1]
Symbol 47 Sound {Res_CLASS_SOUND_WIZARD_SHOOT} [Res_CLASS_SOUND_WIZARD_SHOOT]
Symbol 48 BitmapUsed by:49
Symbol 49 GraphicUses:48Used by:60
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:60
Symbol 52 BitmapUsed by:53
Symbol 53 GraphicUses:52Used by:60
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:60
Symbol 56 BitmapUsed by:57
Symbol 57 GraphicUses:56Used by:60
Symbol 58 BitmapUsed by:59
Symbol 59 GraphicUses:58Used by:60
Symbol 60 MovieClipUses:49 51 53 55 57 59Used by:128
Symbol 61 SoundUsed by:128
Symbol 62 BitmapUsed by:63
Symbol 63 GraphicUses:62Used by:70
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:70
Symbol 66 BitmapUsed by:67
Symbol 67 GraphicUses:66Used by:70
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:68Used by:70
Symbol 70 MovieClipUses:63 65 67 69Used by:128
Symbol 71 BitmapUsed by:72
Symbol 72 GraphicUses:71Used by:89
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:89
Symbol 75 BitmapUsed by:76
Symbol 76 GraphicUses:75Used by:89
Symbol 77 BitmapUsed by:78
Symbol 78 GraphicUses:77Used by:89
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:89
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:89
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:83Used by:89
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:89
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:89
Symbol 89 MovieClipUses:72 74 76 78 80 82 84 86 88Used by:128
Symbol 90 SoundUsed by:128
Symbol 91 SoundUsed by:128
Symbol 92 SoundUsed by:128
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:123
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:123
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:123
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:123
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:123
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:123
Symbol 105 BitmapUsed by:106
Symbol 106 GraphicUses:105Used by:123
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:123
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:123
Symbol 111 BitmapUsed by:112
Symbol 112 GraphicUses:111Used by:123
Symbol 113 BitmapUsed by:114
Symbol 114 GraphicUses:113Used by:123
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:123
Symbol 117 BitmapUsed by:118
Symbol 118 GraphicUses:117Used by:123
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:123
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:123
Symbol 123 MovieClipUses:94 96 98 100 102 104 106 108 110 112 114 116 118 120 122Used by:128
Symbol 124 SoundUsed by:128
Symbol 125 SoundUsed by:128
Symbol 126 SoundUsed by:128
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClip {Res_CLASS_SWF_RETRY} [retry_symbol]Uses:60 61 70 89 90 91 92 123 124 125 126 127
Symbol 129 Sound {Res_CLASS_SOUND_SPIKES_DOWN} [Res_CLASS_SOUND_SPIKES_DOWN]
Symbol 130 Sound {Res_CLASS_SOUND_COLLECT_SHURIKENS} [Res_CLASS_SOUND_COLLECT_SHURIKENS]
Symbol 131 Sound {Res_CLASS_SOUND_LASER_SHOOT} [Res_CLASS_SOUND_LASER_SHOOT]
Symbol 132 Sound {Res_CLASS_SOUND_BAHAMUT_APPEAR} [Res_CLASS_SOUND_BAHAMUT_APPEAR]
Symbol 133 BitmapUsed by:134
Symbol 134 GraphicUses:133Used by:141 147
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:141 147
Symbol 137 BitmapUsed by:138
Symbol 138 GraphicUses:137Used by:141 147
Symbol 139 BitmapUsed by:140
Symbol 140 GraphicUses:139Used by:141 147
Symbol 141 MovieClip {Res_CLASS_SWF_KITE} [KITE_symbol]Uses:134 136 138 140
Symbol 142 Sound {Res_CLASS_SOUND_RED_KOOPA_DEATH_1} [Res_CLASS_SOUND_RED_KOOPA_DEATH_1]
Symbol 143 Sound {Res_CLASS_SOUND_DOOR_CHICKEN_0} [Res_CLASS_SOUND_DOOR_CHICKEN_0]
Symbol 144 Sound {Res_CLASS_SOUND_SWORD_SWIPE_0} [Res_CLASS_SOUND_SWORD_SWIPE_0]
Symbol 145 Sound {Res_CLASS_SOUND_STEP_0} [Res_CLASS_SOUND_STEP_0]
Symbol 146 Sound {Res_CLASS_SOUND_FLOOR_BONUS} [Res_CLASS_SOUND_FLOOR_BONUS]
Symbol 147 MovieClip {Res_CLASS_SWF_NINJA_FLIGHT} [KITEFULL_symbol]Uses:134 136 138 140
Symbol 148 Sound {Res_CLASS_SOUND_JUMP_0} [Res_CLASS_SOUND_JUMP_0]
Symbol 149 Sound {Res_CLASS_SOUND_DOOR_CAR_0} [Res_CLASS_SOUND_DOOR_CAR_0]
Symbol 150 Sound {Res_CLASS_SOUND_COLLECT_BOMBS} [Res_CLASS_SOUND_COLLECT_BOMBS]
Symbol 151 Sound {Res_CLASS_SOUND_DOOR_CHICKEN_1} [Res_CLASS_SOUND_DOOR_CHICKEN_1]
Symbol 152 Sound {Res_CLASS_SOUND_RED_KOOPA_DEATH_0} [Res_CLASS_SOUND_RED_KOOPA_DEATH_0]
Symbol 153 Sound {Res_CLASS_SOUND_SPIKES_UP} [Res_CLASS_SOUND_SPIKES_UP]
Symbol 154 Sound {Res_CLASS_SOUND_LAND} [Res_CLASS_SOUND_LAND]
Symbol 155 Sound {Res_CLASS_SOUND_STEP_1} [Res_CLASS_SOUND_STEP_1]
Symbol 156 Sound {Res_CLASS_SOUND_TOWER_DEATH} [Res_CLASS_SOUND_TOWER_DEATH]
Symbol 157 Sound {Res_CLASS_SOUND_ROLLOVER} [Res_CLASS_SOUND_ROLLOVER]
Symbol 158 Sound {Res_CLASS_SOUND_KITE_FLIGHT} [Res_CLASS_SOUND_KITE_FLIGHT]
Symbol 159 Sound {Res_CLASS_SOUND_DOOR_STEPS} [Res_CLASS_SOUND_DOOR_STEPS]
Symbol 160 Sound {Res_CLASS_SOUND_CRUMBLE} [Res_CLASS_SOUND_CRUMBLE]
Symbol 161 Sound {Res_CLASS_SOUND_DRAGON_ATTACK} [Res_CLASS_SOUND_DRAGON_ATTACK]
Symbol 162 GraphicUsed by:178
Symbol 163 SoundUsed by:178
Symbol 164 SoundUsed by:178
Symbol 165 BitmapUsed by:166 174
Symbol 166 GraphicUses:165Used by:178
Symbol 167 BitmapUsed by:168
Symbol 168 GraphicUses:167Used by:178
Symbol 169 BitmapUsed by:170
Symbol 170 GraphicUses:169Used by:178
Symbol 171 SoundUsed by:178
Symbol 172 BitmapUsed by:173 174
Symbol 173 GraphicUses:172Used by:178
Symbol 174 GraphicUses:165 172Used by:178
Symbol 175 BitmapUsed by:176
Symbol 176 GraphicUses:175Used by:178
Symbol 177 SoundUsed by:178
Symbol 178 MovieClip {Res_CLASS_SWF_DEV_LOGO} [logo_symbol]Uses:162 163 164 166 168 170 171 173 174 176 177
Symbol 179 Sound {Res_CLASS_SOUND_SWORD_SWIPE_1} [Res_CLASS_SOUND_SWORD_SWIPE_1]
Symbol 180 Sound {Res_CLASS_SOUND_JUMP_2} [Res_CLASS_SOUND_JUMP_2]
Symbol 181 Sound {Res_CLASS_SOUND_FROG_DEATH} [Res_CLASS_SOUND_FROG_DEATH]
Symbol 182 Sound {Res_CLASS_SOUND_ZOMBIE_DEATH} [Res_CLASS_SOUND_ZOMBIE_DEATH]
Symbol 183 Sound {Res_CLASS_SOUND_SNIFIT_DEATH} [Res_CLASS_SOUND_SNIFIT_DEATH]
Symbol 184 Sound {Res_CLASS_SOUND_FROG_JUMP} [Res_CLASS_SOUND_FROG_JUMP]
Symbol 185 Sound {Res_CLASS_SOUND_ZOMBIE_SPOT_PLAYER} [Res_CLASS_SOUND_ZOMBIE_SPOT_PLAYER]
Symbol 186 Sound {Res_CLASS_SOUND_DOOR_CLANG} [Res_CLASS_SOUND_DOOR_CLANG]
Symbol 187 Sound {Res_CLASS_SOUND_JUMP_1} [Res_CLASS_SOUND_JUMP_1]
Symbol 188 Sound {Res_CLASS_SOUND_DRAGON_DEATH} [Res_CLASS_SOUND_DRAGON_DEATH]
Symbol 189 Sound {Res_CLASS_SOUND_SPINY_DEATH} [Res_CLASS_SOUND_SPINY_DEATH]
Symbol 190 Sound {Res_CLASS_SOUND_GOOMBA_DEATH_0} [Res_CLASS_SOUND_GOOMBA_DEATH_0]
Symbol 191 Sound {Res_CLASS_SOUND_EXTRA_LIFE} [Res_CLASS_SOUND_EXTRA_LIFE]
Symbol 192 Sound {Res_CLASS_SOUND_DEVIL_ATTACK} [Res_CLASS_SOUND_DEVIL_ATTACK]
Symbol 193 Sound {Res_CLASS_SOUND_ACHIEVEMENT} [Res_CLASS_SOUND_ACHIEVEMENT]
Symbol 194 Sound {Res_CLASS_SOUND_WARP} [Res_CLASS_SOUND_WARP]
Symbol 195 Sound {Res_CLASS_SOUND_PLAYER_DEATH_0} [Res_CLASS_SOUND_PLAYER_DEATH_0]
Symbol 196 Bitmap {Res_CLASS_IMAGE_ITEMS}
Symbol 197 Bitmap {Res_CLASS_IMAGE_HUD_FLOOR}
Symbol 198 Bitmap {Res_CLASS_IMAGE_MANUAL_3}
Symbol 199 Bitmap {Res_CLASS_IMAGE_PENDULUM_CHAIN}
Symbol 200 Bitmap {Res_CLASS_IMAGE_DEVIL}
Symbol 201 Bitmap {Res_CLASS_IMAGE_PLAYER_DIE}
Symbol 202 Bitmap {Res_CLASS_IMAGE_SPIKES_FLOOR}
Symbol 203 Bitmap {Res_CLASS_IMAGE_PLAYER_THROW_ITEM}
Symbol 204 Bitmap {Res_CLASS_IMAGE_PARATROOPA}
Symbol 205 Bitmap {Res_CLASS_IMAGE_THWOMP}
Symbol 206 Bitmap {Res_CLASS_IMAGE_MANUAL_2}
Symbol 207 Bitmap {Res_CLASS_IMAGE_TOWER_BIT}
Symbol 208 Bitmap {Res_CLASS_IMAGE_MANUAL_9}
Symbol 209 Bitmap {Res_CLASS_IMAGE_MAGIC}
Symbol 210 Bitmap {Res_CLASS_IMAGE_FONT_SMALL}
Symbol 211 Bitmap {Res_CLASS_IMAGE_MENU_SELECTION}
Symbol 212 Bitmap {Res_CLASS_IMAGE_MANUAL_8}
Symbol 213 Bitmap {Res_CLASS_IMAGE_PROGRESS_MARKER}
Symbol 214 Bitmap {Res_CLASS_IMAGE_MANUAL_0}
Symbol 215 Bitmap {Res_CLASS_IMAGE_ENEMY_0}
Symbol 216 Bitmap {Res_CLASS_IMAGE_TREASURE}
Symbol 217 Bitmap {Res_CLASS_IMAGE_LOCKED_ICON}
Symbol 218 Bitmap {Res_CLASS_IMAGE_BKG_ELEMENTS}
Symbol 219 Bitmap {Res_CLASS_IMAGE_DRAGON}
Symbol 220 Bitmap {Res_CLASS_IMAGE_MOON}
Symbol 221 Bitmap {Res_CLASS_IMAGE_SHIELDED_ENEMY}
Symbol 222 Bitmap {Res_CLASS_IMAGE_PENDULUM_BALL}
Symbol 223 Bitmap {Res_CLASS_IMAGE_MANUAL_10}
Symbol 224 Bitmap {Res_CLASS_IMAGE_MANUAL_1}
Symbol 225 Bitmap {Res_CLASS_IMAGE_LASER}
Symbol 226 Bitmap {Res_CLASS_IMAGE_MANUAL_4}
Symbol 227 Bitmap {Res_CLASS_IMAGE_ENEMY_1}
Symbol 228 Bitmap {Res_CLASS_IMAGE_MANUAL_11}
Symbol 229 Font {Gfx_game_font}
Symbol 230 Bitmap {Res_CLASS_IMAGE_MANUAL_5}
Symbol 231 Bitmap {Res_CLASS_IMAGE_FROG}
Symbol 232 Bitmap {Res_CLASS_IMAGE_BOUNCER}
Symbol 233 Bitmap {Res_CLASS_IMAGE_ENEMY_2}
Symbol 234 Bitmap {Res_CLASS_IMAGE_MANUAL_17}
Symbol 235 Bitmap {Res_CLASS_IMAGE_CRUMBLE}
Symbol 236 Bitmap {Res_CLASS_IMAGE_ZOMBIE}
Symbol 237 Bitmap {Res_CLASS_IMAGE_PLAYER_SWORD}
Symbol 238 Bitmap {Res_CLASS_IMAGE_FIREBALL}
Symbol 239 Bitmap {Res_CLASS_IMAGE_WARP}
Symbol 240 Bitmap {Res_CLASS_IMAGE_LASER_H}
Symbol 241 Bitmap {Res_CLASS_IMAGE_BAHAMUT}
Symbol 242 Bitmap {Preloader_CLASS_IMAGE_BG_LOADING}
Symbol 243 Bitmap {Res_CLASS_IMAGE_PLAYER_SLASH}
Symbol 244 Bitmap {Res_CLASS_IMAGE_CLOUDS}
Symbol 245 Bitmap {Res_CLASS_IMAGE_FAIRY}
Symbol 246 Bitmap {Res_CLASS_IMAGE_WIZARD}
Symbol 247 Bitmap {Res_CLASS_IMAGE_BOMB}
Symbol 248 Bitmap {Res_CLASS_IMAGE_HEALTH_BAR_BIT}
Symbol 249 Bitmap {Res_CLASS_IMAGE_PLAYER_SOMERSAULT}
Symbol 250 Bitmap {Res_CLASS_IMAGE_MANUAL_19}
Symbol 251 Bitmap {Res_CLASS_IMAGE_ACHIEVEMENT_ICON}
Symbol 252 Bitmap {Res_CLASS_IMAGE_TUTORIAL_2}
Symbol 253 Bitmap {Res_CLASS_IMAGE_MANUAL_18}
Symbol 254 Bitmap {Res_CLASS_IMAGE_WEAPON_ICONS}
Symbol 255 Bitmap {Res_CLASS_IMAGE_TUTORIAL_1}
Symbol 256 Bitmap {Res_CLASS_IMAGE_BLADE}
Symbol 257 BinaryData {Res_CLASS_XML_TEXT_EN}
Symbol 258 Bitmap {Res_CLASS_IMAGE_GRAVE}
Symbol 259 Bitmap {Res_CLASS_IMAGE_ASSIGN_KEYS}
Symbol 260 Bitmap {Res_CLASS_IMAGE_TREASURE_BLOCK}
Symbol 261 Bitmap {Preloader_CLASS_IMAGE_LOADING_BAR}
Symbol 262 Bitmap {Res_CLASS_IMAGE_TUTORIAL_0}
Symbol 263 Bitmap {Res_CLASS_IMAGE_DOOR}
Symbol 264 Bitmap {Res_CLASS_IMAGE_HUD_TIME}
Symbol 265 BinaryData {Res_CLASS_MUSIC_TITLE_dataClass}
Symbol 266 Bitmap {Res_CLASS_IMAGE_TILES}
Symbol 267 Bitmap {Res_CLASS_IMAGE_TENTACLES}
Symbol 268 Bitmap {Res_CLASS_IMAGE_MANUAL_6}
Symbol 269 Bitmap {Res_CLASS_IMAGE_ACHIEVEMENT_BAR}
Symbol 270 Bitmap {Res_CLASS_IMAGE_TITLE}
Symbol 271 Bitmap {Res_CLASS_IMAGE_BOTTLE}
Symbol 272 Bitmap {Res_CLASS_IMAGE_MEGADEV_LOGO}
Symbol 273 Bitmap {Res_CLASS_IMAGE_ENEMY_GRAPH}
Symbol 274 Bitmap {Res_CLASS_IMAGE_FONT_TEXT}
Symbol 275 Bitmap {Res_CLASS_IMAGE_PLAYER_CROUCHED}
Symbol 276 Bitmap {Res_CLASS_IMAGE_KNIFE}
Symbol 277 Bitmap {Res_CLASS_IMAGE_MANUAL_16}
Symbol 278 MovieClip {Res_CLASS_MUSIC_GAME}
Symbol 279 BinaryData {Res_CLASS_MUSIC_GAME_dataClass}
Symbol 280 Bitmap {Res_CLASS_IMAGE_HEALTH_BAR_LEFT}
Symbol 281 Bitmap {Res_CLASS_IMAGE_BOMB_EXPLOSION}
Symbol 282 Bitmap {Res_CLASS_IMAGE_MANUAL_12}
Symbol 283 Bitmap {Res_CLASS_IMAGE_LASER_V}
Symbol 284 Bitmap {Res_CLASS_IMAGE_GAME_OVER_BG}
Symbol 285 Bitmap {Res_CLASS_IMAGE_PLAYER}
Symbol 286 Bitmap {Res_CLASS_IMAGE_MANUAL_20}
Symbol 287 Bitmap {Res_CLASS_IMAGE_FEATHER}
Symbol 288 Bitmap {Res_CLASS_IMAGE_MANUAL_21}
Symbol 289 Bitmap {Res_CLASS_IMAGE_FROG_SPLAT}
Symbol 290 Bitmap {Res_CLASS_IMAGE_MANUAL_22}
Symbol 291 Bitmap {Res_CLASS_IMAGE_FONT_LARGE}
Symbol 292 Bitmap {Res_CLASS_IMAGE_ASSASSIN}
Symbol 293 Bitmap {Res_CLASS_IMAGE_PLAYER_ATTACK_DOWN}
Symbol 294 Bitmap {Res_CLASS_IMAGE_TEXT_GAME_OVER}
Symbol 295 Bitmap {Res_CLASS_IMAGE_INDICATORS}
Symbol 296 Bitmap {Res_CLASS_IMAGE_HEALTH_BAR_RIGHT}
Symbol 297 Bitmap {Res_CLASS_IMAGE_TIMER_INDICATOR_ARROW}
Symbol 298 Bitmap {Res_CLASS_IMAGE_MANUAL_7}
Symbol 299 Bitmap {Res_CLASS_IMAGE_TOWER_EYE_BIT}
Symbol 300 Bitmap {Preloader_CLASS_IMAGE_LOADING_BAR_FULL}
Symbol 301 Bitmap {Res_CLASS_IMAGE_STATS_BOX}
Symbol 302 Bitmap {Res_CLASS_IMAGE_MANUAL_13}
Symbol 303 Bitmap {Res_CLASS_IMAGE_SPINY}
Symbol 304 Bitmap {Res_CLASS_IMAGE_SHURIKEN}
Symbol 305 Bitmap {Res_CLASS_IMAGE_MANUAL_15}
Symbol 306 Bitmap {Res_CLASS_IMAGE_FONT_MEDIUM}
Symbol 307 Bitmap {Res_CLASS_IMAGE_MANUAL_14}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1458 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 1 as "Res_CLASS_SOUND_WIZARD_TELEPORT"
ExportAssets (56)Timeline Frame 1Symbol 2 as "Res_CLASS_SOUND_THWOMP_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 3 as "Res_CLASS_SOUND_PLAYER_DEATH_1"
ExportAssets (56)Timeline Frame 1Symbol 4 as "Res_CLASS_SOUND_GOOMBA_DEATH_1"
ExportAssets (56)Timeline Frame 1Symbol 5 as "Res_CLASS_SOUND_DOOR_OPEN"
ExportAssets (56)Timeline Frame 1Symbol 6 as "Res_CLASS_SOUND_DOUBLE_JUMP_1"
ExportAssets (56)Timeline Frame 1Symbol 7 as "Res_CLASS_SOUND_FINAL_PLAYER_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 8 as "Res_CLASS_SOUND_DOUBLE_JUMP_0"
ExportAssets (56)Timeline Frame 1Symbol 9 as "Res_CLASS_SOUND_WALL_SLIDE"
ExportAssets (56)Timeline Frame 1Symbol 10 as "Res_CLASS_SOUND_TREASURE"
ExportAssets (56)Timeline Frame 1Symbol 11 as "Res_CLASS_SOUND_PLAYER_DEATH_2"
ExportAssets (56)Timeline Frame 1Symbol 12 as "Res_CLASS_SOUND_SHIELD_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 13 as "Res_CLASS_SOUND_THROW_BOMB"
ExportAssets (56)Timeline Frame 1Symbol 14 as "Res_CLASS_SOUND_PARATROOPA_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 15 as "Res_CLASS_SOUND_BIRD_BOUNCE"
ExportAssets (56)Timeline Frame 1Symbol 16 as "Res_CLASS_SOUND_BOOM_BOOM_DEATH_1"
ExportAssets (56)Timeline Frame 1Symbol 17 as "Res_CLASS_SOUND_DOUBLE_JUMP_2"
ExportAssets (56)Timeline Frame 1Symbol 18 as "Res_CLASS_SOUND_BOOM_BOOM_DEATH_0"
ExportAssets (56)Timeline Frame 1Symbol 19 as "Res_CLASS_SOUND_DEVIL_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 20 as "Res_CLASS_SOUND_TENTACLES"
ExportAssets (56)Timeline Frame 1Symbol 21 as "Res_CLASS_SOUND_TICK"
ExportAssets (56)Timeline Frame 1Symbol 22 as "Res_CLASS_SOUND_MAGIKOOPA_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 23 as "Res_CLASS_SOUND_BOUNCER_HIT_WALL"
ExportAssets (56)Timeline Frame 1Symbol 24 as "Res_CLASS_SOUND_THROW_SHURIKEN_1"
ExportAssets (56)Timeline Frame 1Symbol 25 as "Res_CLASS_SOUND_FUZZY_ATTACK"
ExportAssets (56)Timeline Frame 1Symbol 26 as "Res_CLASS_SOUND_THROW_SHURIKEN_0"
ExportAssets (56)Timeline Frame 1Symbol 27 as "Res_CLASS_SOUND_ROCKS_DESTROY"
ExportAssets (56)Timeline Frame 1Symbol 28 as "Res_CLASS_SOUND_SELECT"
ExportAssets (56)Timeline Frame 1Symbol 29 as "Res_CLASS_SOUND_HIT_SHIELD"
ExportAssets (56)Timeline Frame 1Symbol 30 as "Res_CLASS_SOUND_FUZZY_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 31 as "Res_CLASS_SOUND_DOOR_GLASS"
ExportAssets (56)Timeline Frame 1Symbol 32 as "Res_CLASS_SOUND_THWOMP_LAND"
ExportAssets (56)Timeline Frame 1Symbol 33 as "Res_CLASS_SOUND_LASER_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 34 as "Res_CLASS_SOUND_PILEDRIVER"
ExportAssets (56)Timeline Frame 1Symbol 35 as "Res_CLASS_SOUND_BAHAMUT_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 36 as "Res_CLASS_SOUND_BOMB_EXPLOSION"
ExportAssets (56)Timeline Frame 1Symbol 37 as "Res_CLASS_SOUND_TIME_RESET"
ExportAssets (56)Timeline Frame 1Symbol 38 as "Res_CLASS_SOUND_FAIRY_COLLECT"
ExportAssets (56)Timeline Frame 1Symbol 39 as "Res_CLASS_SOUND_DOOR_CAT_0"
ExportAssets (56)Timeline Frame 1Symbol 40 as "Res_CLASS_SOUND_ASSASSIN_KILL"
ExportAssets (56)Timeline Frame 1Symbol 41 as "Res_CLASS_SOUND_DOOR_CAR_1"
ExportAssets (56)Timeline Frame 1Symbol 42 as "Res_CLASS_SOUND_SHURIKEN_LAND"
ExportAssets (56)Timeline Frame 1Symbol 43 as "Res_CLASS_SOUND_SEE_EVERYTHING"
ExportAssets (56)Timeline Frame 1Symbol 44 as "Res_CLASS_SOUND_ASSASSIN_KNIFE"
ExportAssets (56)Timeline Frame 1Symbol 45 as "Res_CLASS_SOUND_ACHIEVEMENT_LONG"
ExportAssets (56)Timeline Frame 1Symbol 46 as "Res_CLASS_SOUND_DOOR_CAT_1"
ExportAssets (56)Timeline Frame 1Symbol 47 as "Res_CLASS_SOUND_WIZARD_SHOOT"
ExportAssets (56)Timeline Frame 1Symbol 128 as "retry_symbol"
ExportAssets (56)Timeline Frame 1Symbol 129 as "Res_CLASS_SOUND_SPIKES_DOWN"
ExportAssets (56)Timeline Frame 1Symbol 130 as "Res_CLASS_SOUND_COLLECT_SHURIKENS"
ExportAssets (56)Timeline Frame 1Symbol 131 as "Res_CLASS_SOUND_LASER_SHOOT"
ExportAssets (56)Timeline Frame 1Symbol 132 as "Res_CLASS_SOUND_BAHAMUT_APPEAR"
ExportAssets (56)Timeline Frame 1Symbol 141 as "KITE_symbol"
ExportAssets (56)Timeline Frame 1Symbol 142 as "Res_CLASS_SOUND_RED_KOOPA_DEATH_1"
ExportAssets (56)Timeline Frame 1Symbol 143 as "Res_CLASS_SOUND_DOOR_CHICKEN_0"
ExportAssets (56)Timeline Frame 1Symbol 144 as "Res_CLASS_SOUND_SWORD_SWIPE_0"
ExportAssets (56)Timeline Frame 1Symbol 145 as "Res_CLASS_SOUND_STEP_0"
ExportAssets (56)Timeline Frame 1Symbol 146 as "Res_CLASS_SOUND_FLOOR_BONUS"
ExportAssets (56)Timeline Frame 1Symbol 147 as "KITEFULL_symbol"
ExportAssets (56)Timeline Frame 1Symbol 148 as "Res_CLASS_SOUND_JUMP_0"
ExportAssets (56)Timeline Frame 1Symbol 149 as "Res_CLASS_SOUND_DOOR_CAR_0"
ExportAssets (56)Timeline Frame 1Symbol 150 as "Res_CLASS_SOUND_COLLECT_BOMBS"
ExportAssets (56)Timeline Frame 1Symbol 151 as "Res_CLASS_SOUND_DOOR_CHICKEN_1"
ExportAssets (56)Timeline Frame 1Symbol 152 as "Res_CLASS_SOUND_RED_KOOPA_DEATH_0"
ExportAssets (56)Timeline Frame 1Symbol 153 as "Res_CLASS_SOUND_SPIKES_UP"
ExportAssets (56)Timeline Frame 1Symbol 154 as "Res_CLASS_SOUND_LAND"
ExportAssets (56)Timeline Frame 1Symbol 155 as "Res_CLASS_SOUND_STEP_1"
ExportAssets (56)Timeline Frame 1Symbol 156 as "Res_CLASS_SOUND_TOWER_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 157 as "Res_CLASS_SOUND_ROLLOVER"
ExportAssets (56)Timeline Frame 1Symbol 158 as "Res_CLASS_SOUND_KITE_FLIGHT"
ExportAssets (56)Timeline Frame 1Symbol 159 as "Res_CLASS_SOUND_DOOR_STEPS"
ExportAssets (56)Timeline Frame 1Symbol 160 as "Res_CLASS_SOUND_CRUMBLE"
ExportAssets (56)Timeline Frame 1Symbol 161 as "Res_CLASS_SOUND_DRAGON_ATTACK"
ExportAssets (56)Timeline Frame 1Symbol 178 as "logo_symbol"
ExportAssets (56)Timeline Frame 1Symbol 179 as "Res_CLASS_SOUND_SWORD_SWIPE_1"
ExportAssets (56)Timeline Frame 1Symbol 180 as "Res_CLASS_SOUND_JUMP_2"
ExportAssets (56)Timeline Frame 1Symbol 181 as "Res_CLASS_SOUND_FROG_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 182 as "Res_CLASS_SOUND_ZOMBIE_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 183 as "Res_CLASS_SOUND_SNIFIT_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 184 as "Res_CLASS_SOUND_FROG_JUMP"
ExportAssets (56)Timeline Frame 1Symbol 185 as "Res_CLASS_SOUND_ZOMBIE_SPOT_PLAYER"
ExportAssets (56)Timeline Frame 1Symbol 186 as "Res_CLASS_SOUND_DOOR_CLANG"
ExportAssets (56)Timeline Frame 1Symbol 187 as "Res_CLASS_SOUND_JUMP_1"
ExportAssets (56)Timeline Frame 1Symbol 188 as "Res_CLASS_SOUND_DRAGON_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 189 as "Res_CLASS_SOUND_SPINY_DEATH"
ExportAssets (56)Timeline Frame 1Symbol 190 as "Res_CLASS_SOUND_GOOMBA_DEATH_0"
ExportAssets (56)Timeline Frame 1Symbol 191 as "Res_CLASS_SOUND_EXTRA_LIFE"
ExportAssets (56)Timeline Frame 1Symbol 192 as "Res_CLASS_SOUND_DEVIL_ATTACK"
ExportAssets (56)Timeline Frame 1Symbol 193 as "Res_CLASS_SOUND_ACHIEVEMENT"
ExportAssets (56)Timeline Frame 1Symbol 194 as "Res_CLASS_SOUND_WARP"
ExportAssets (56)Timeline Frame 1Symbol 195 as "Res_CLASS_SOUND_PLAYER_DEATH_0"
SerialNumber (41)Timeline Frame 1

Labels

"Preloader"Frame 1
"Main"Frame 2




http://swfchan.com/25/120470/info.shtml
Created: 5/3 -2019 08:00:40 Last modified: 5/3 -2019 08:00:40 Server time: 22/12 -2024 09:34:55