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

swfchan turned sixteen years old the day before yesterday! (5may2024)

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

colliderix-2.swf

This is the info page for
Flash #122182

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


Text
completed

not complete

select a level:

back

back

ActionScript [AS3]

Section 1
//_-0C (_-4g._-0C) package _-4g { import _-BU.*; import _-80.*; public class _-0C extends _-Gz { public var _-FN:Number; public var _-HX:_-7Q; public var _-F6:Number; public var _-Gl:Number; public var _-IW:_-7Q; public var _-B5:_-7Q; public var _-6Y:Boolean; public var class:Boolean; public var _-85:Number; public var _-3X:Number; public function _-0C(){ this._-IW = new _-7Q(); this._-B5 = new _-7Q(); this._-HX = new _-7Q(); super(); type = _-8p.continue; this._-HX.Set(1, 0); this._-F6 = 0; this._-6Y = false; this._-3X = 0; this._-Gl = 0; this.class = false; this._-85 = 0; this._-FN = 0; } public function _-Ku(_arg1:_-2b, _arg2:_-2b, _arg3:_-7Q, _arg4:_-7Q):void{ _-LL = _arg1; _-6h = _arg2; this._-IW = _-LL.GetLocalPoint(_arg3); this._-B5 = _-6h.GetLocalPoint(_arg3); this._-HX = _-LL.GetLocalVector(_arg4); this._-F6 = (_-6h.GetAngle() - _-LL.GetAngle()); } } }//package _-4g
Section 2
//_-5z (_-4g._-5z) package _-4g { import _-BU.*; public class _-5z extends _-Gz { public var _-1m:Number; public var target:_-7Q; public var _-Hp:Number; public var _-Dk:Number; public var _-Ky:Number; public function _-5z(){ this.target = new _-7Q(); super(); type = _-8p._-Ka; this._-Hp = 0; this._-Ky = 5; this._-Dk = 0.7; this._-1m = (1 / 60); } } }//package _-4g
Section 3
//_-6q (_-4g._-6q) package _-4g { import _-BU.*; import _-80.*; public class _-6q extends _-Gz { public var _-IW:_-7Q; public var length:Number; public var _-Dk:Number; public var _-B5:_-7Q; public var _-Ky:Number; public function _-6q(){ this._-IW = new _-7Q(); this._-B5 = new _-7Q(); super(); type = _-8p._-64; this.length = 1; this._-Ky = 0; this._-Dk = 0; } public function _-Ku(_arg1:_-2b, _arg2:_-2b, _arg3:_-7Q, _arg4:_-7Q):void{ _-LL = _arg1; _-6h = _arg2; this._-IW._-3g(_-LL.GetLocalPoint(_arg3)); this._-B5._-3g(_-6h.GetLocalPoint(_arg4)); var _local5:Number = (_arg4.x - _arg3.x); var _local6:Number = (_arg4.y - _arg3.y); this.length = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); this._-Ky = 0; this._-Dk = 0; } } }//package _-4g
Section 4
//_-8p (_-4g._-8p) package _-4g { import _-BU.*; import _-80.*; public class _-8p { public var _-93:Boolean; public var _-m:_-2b; public var _-6I:_-8p; public var _-CE:_-8p; public var m_type:int; public var _-Kx:Boolean; public var _-EF:_-Kn; public var _-Fs:_-Kn; public var _-5a:Number; public var m_userData; public var _-9s:_-2b; public static const _-IP:int = 0; public static const _-2A:int = 0; public static const _-D-:int = 2; public static const _-3n:int = 1; public static const _-GR:int = 6; public static const e_revoluteJoint:int = 1; public static const _-J4:int = 3; public static const _-64:int = 3; public static const _-8i:int = 4; public static const continue:int = 2; public static const _-Ka:int = 5; public function _-8p(_arg1:_-Gz){ this._-EF = new _-Kn(); this._-Fs = new _-Kn(); super(); this.m_type = _arg1.type; this._-6I = null; this._-CE = null; this._-m = _arg1._-LL; this._-9s = _arg1._-6h; this._-Kx = _arg1._-49; this._-93 = false; this.m_userData = _arg1.userData; } public function _-Ki():_-2b{ return (this._-9s); } public function GetAnchor1():_-7Q{ return (null); } public function GetAnchor2():_-7Q{ return (null); } public function _-53():_-8p{ return (this._-CE); } public function GetType():int{ return (this.m_type); } public function InitVelocityConstraints(_arg1:_-2D):void{ } public function GetReactionTorque():Number{ return (0); } public function _-07(){ return (this.m_userData); } public function GetReactionForce():_-7Q{ return (null); } public function SolvePositionConstraints():Boolean{ return (false); } public function _-A8(_arg1):void{ this.m_userData = _arg1; } public function _-q():_-2b{ return (this._-m); } public function SolveVelocityConstraints(_arg1:_-2D):void{ } public function _-Lq():void{ } public static function _-2T(_arg1:_-8p, _arg2):void{ } public static function _-1o(_arg1:_-Gz, _arg2):_-8p{ var _local3:_-8p; switch (_arg1.type){ case _-64: _local3 = new _-9d((_arg1 as _-6q)); break; case _-Ka: _local3 = new _-9J((_arg1 as _-5z)); break; case continue: _local3 = new _-Bm((_arg1 as _-0C)); break; case e_revoluteJoint: _local3 = new _-DD((_arg1 as _-I1)); break; case _-8i: _local3 = new _-F5((_arg1 as _-FY)); break; case _-GR: _local3 = new _-IA((_arg1 as _-Ke)); break; default: break; }; return (_local3); } } }//package _-4g
Section 5
//_-9d (_-4g._-9d) package _-4g { import _-BU.*; import _-L9.*; import _-80.*; public class _-9d extends _-8p { public var _-4x:_-7Q; public var _-JM:_-7Q; public var _-Fa:Number; public var _-BW:Number; public var _-8m:_-7Q; public var m_mass:Number; public var false:Number; public var _-IE:Number; public var _-7B:Number; public var _-GN:Number; public function _-9d(_arg1:_-6q){ var _local2:_-HS; var _local3:Number; var _local4:Number; this._-4x = new _-7Q(); this._-JM = new _-7Q(); this._-8m = new _-7Q(); super(_arg1); this._-4x._-3g(_arg1._-IW); this._-JM._-3g(_arg1._-B5); this._-GN = _arg1.length; this._-7B = _arg1._-Ky; this._-IE = _arg1._-Dk; this.false = 0; this._-BW = 0; this._-Fa = 0; _-5a = 0; } override public function GetAnchor1():_-7Q{ return (_-m.GetWorldPoint(this._-4x)); } override public function GetAnchor2():_-7Q{ return (_-9s.GetWorldPoint(this._-JM)); } override public function InitVelocityConstraints(_arg1:_-2D):void{ var _local2:_-HS; var _local3:Number; var _local4:_-2b; var _local5:_-2b; var _local6:Number; var _local8:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; _-5a = _arg1._-Hk; _local4 = _-m; _local5 = _-9s; _local2 = _local4.m_xf.R; _local6 = (this._-4x.x - _local4.m_sweep.localCenter.x); var _local7:Number = (this._-4x.y - _local4.m_sweep.localCenter.y); _local3 = ((_local2._-7f.x * _local6) + (_local2._-IO.x * _local7)); _local7 = ((_local2._-7f.y * _local6) + (_local2._-IO.y * _local7)); _local6 = _local3; _local2 = _local5.m_xf.R; _local8 = (this._-JM.x - _local5.m_sweep.localCenter.x); var _local9:Number = (this._-JM.y - _local5.m_sweep.localCenter.y); _local3 = ((_local2._-7f.x * _local8) + (_local2._-IO.x * _local9)); _local9 = ((_local2._-7f.y * _local8) + (_local2._-IO.y * _local9)); _local8 = _local3; this._-8m.x = (((_local5.m_sweep.c.x + _local8) - _local4.m_sweep.c.x) - _local6); this._-8m.y = (((_local5.m_sweep.c.y + _local9) - _local4.m_sweep.c.y) - _local7); var _local10:Number = Math.sqrt(((this._-8m.x * this._-8m.x) + (this._-8m.y * this._-8m.y))); if (_local10 > _-Cj._-EK){ this._-8m.Multiply((1 / _local10)); } else { this._-8m._-Cv(); }; var _local11:Number = ((_local6 * this._-8m.y) - (_local7 * this._-8m.x)); var _local12:Number = ((_local8 * this._-8m.y) - (_local9 * this._-8m.x)); var _local13:Number = (((_local4._-3R + ((_local4._-FP * _local11) * _local11)) + _local5._-3R) + ((_local5._-FP * _local12) * _local12)); this.m_mass = (1 / _local13); if (this._-7B > 0){ _local14 = (_local10 - this._-GN); _local15 = ((2 * Math.PI) * this._-7B); _local16 = (((2 * this.m_mass) * this._-IE) * _local15); _local17 = ((this.m_mass * _local15) * _local15); this._-BW = (1 / (_arg1._-CC * (_local16 + (_arg1._-CC * _local17)))); this._-Fa = (((_local14 * _arg1._-CC) * _local17) * this._-BW); this.m_mass = (1 / (_local13 + this._-BW)); }; if (_arg1._-29){ this.false = (this.false * _arg1._-2U); _local18 = (this.false * this._-8m.x); _local19 = (this.false * this._-8m.y); _local4._-I0.x = (_local4._-I0.x - (_local4._-3R * _local18)); _local4._-I0.y = (_local4._-I0.y - (_local4._-3R * _local19)); _local4.m_angularVelocity = (_local4.m_angularVelocity - (_local4._-FP * ((_local6 * _local19) - (_local7 * _local18)))); _local5._-I0.x = (_local5._-I0.x + (_local5._-3R * _local18)); _local5._-I0.y = (_local5._-I0.y + (_local5._-3R * _local19)); _local5.m_angularVelocity = (_local5.m_angularVelocity + (_local5._-FP * ((_local8 * _local19) - (_local9 * _local18)))); } else { this.false = 0; }; } override public function GetReactionTorque():Number{ return (0); } override public function GetReactionForce():_-7Q{ var _local1:_-7Q = new _-7Q(); _local1._-3g(this._-8m); _local1.Multiply((_-5a * this.false)); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local1:_-HS; if (this._-7B > 0){ return (true); }; var _local2:_-2b = _-m; var _local3:_-2b = _-9s; _local1 = _local2.m_xf.R; var _local4:Number = (this._-4x.x - _local2.m_sweep.localCenter.x); var _local5:Number = (this._-4x.y - _local2.m_sweep.localCenter.y); var _local6:Number = ((_local1._-7f.x * _local4) + (_local1._-IO.x * _local5)); _local5 = ((_local1._-7f.y * _local4) + (_local1._-IO.y * _local5)); _local4 = _local6; _local1 = _local3.m_xf.R; var _local7:Number = (this._-JM.x - _local3.m_sweep.localCenter.x); var _local8:Number = (this._-JM.y - _local3.m_sweep.localCenter.y); _local6 = ((_local1._-7f.x * _local7) + (_local1._-IO.x * _local8)); _local8 = ((_local1._-7f.y * _local7) + (_local1._-IO.y * _local8)); _local7 = _local6; var _local9:Number = (((_local3.m_sweep.c.x + _local7) - _local2.m_sweep.c.x) - _local4); var _local10:Number = (((_local3.m_sweep.c.y + _local8) - _local2.m_sweep.c.y) - _local5); var _local11:Number = Math.sqrt(((_local9 * _local9) + (_local10 * _local10))); _local9 = (_local9 / _local11); _local10 = (_local10 / _local11); var _local12:Number = (_local11 - this._-GN); _local12 = _-8Q._-B2(_local12, -(_-Cj._-FA), _-Cj._-FA); var _local13:Number = (-(this.m_mass) * _local12); this._-8m.Set(_local9, _local10); var _local14:Number = (_local13 * this._-8m.x); var _local15:Number = (_local13 * this._-8m.y); _local2.m_sweep.c.x = (_local2.m_sweep.c.x - (_local2._-3R * _local14)); _local2.m_sweep.c.y = (_local2.m_sweep.c.y - (_local2._-3R * _local15)); _local2.m_sweep.a = (_local2.m_sweep.a - (_local2._-FP * ((_local4 * _local15) - (_local5 * _local14)))); _local3.m_sweep.c.x = (_local3.m_sweep.c.x + (_local3._-3R * _local14)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y + (_local3._-3R * _local15)); _local3.m_sweep.a = (_local3.m_sweep.a + (_local3._-FP * ((_local7 * _local15) - (_local8 * _local14)))); _local2._-Jp(); _local3._-Jp(); return ((_-8Q._-Ce(_local12) < _-Cj._-EK)); } override public function SolveVelocityConstraints(_arg1:_-2D):void{ var _local2:_-HS; var _local3:_-2b = _-m; var _local4:_-2b = _-9s; _local2 = _local3.m_xf.R; var _local5:Number = (this._-4x.x - _local3.m_sweep.localCenter.x); var _local6:Number = (this._-4x.y - _local3.m_sweep.localCenter.y); var _local7:Number = ((_local2._-7f.x * _local5) + (_local2._-IO.x * _local6)); _local6 = ((_local2._-7f.y * _local5) + (_local2._-IO.y * _local6)); _local5 = _local7; _local2 = _local4.m_xf.R; var _local8:Number = (this._-JM.x - _local4.m_sweep.localCenter.x); var _local9:Number = (this._-JM.y - _local4.m_sweep.localCenter.y); _local7 = ((_local2._-7f.x * _local8) + (_local2._-IO.x * _local9)); _local9 = ((_local2._-7f.y * _local8) + (_local2._-IO.y * _local9)); _local8 = _local7; var _local10:Number = (_local3._-I0.x + (-(_local3.m_angularVelocity) * _local6)); var _local11:Number = (_local3._-I0.y + (_local3.m_angularVelocity * _local5)); var _local12:Number = (_local4._-I0.x + (-(_local4.m_angularVelocity) * _local9)); var _local13:Number = (_local4._-I0.y + (_local4.m_angularVelocity * _local8)); var _local14:Number = ((this._-8m.x * (_local12 - _local10)) + (this._-8m.y * (_local13 - _local11))); var _local15:Number = (-(this.m_mass) * ((_local14 + this._-Fa) + (this._-BW * this.false))); this.false = (this.false + _local15); var _local16:Number = (_local15 * this._-8m.x); var _local17:Number = (_local15 * this._-8m.y); _local3._-I0.x = (_local3._-I0.x - (_local3._-3R * _local16)); _local3._-I0.y = (_local3._-I0.y - (_local3._-3R * _local17)); _local3.m_angularVelocity = (_local3.m_angularVelocity - (_local3._-FP * ((_local5 * _local17) - (_local6 * _local16)))); _local4._-I0.x = (_local4._-I0.x + (_local4._-3R * _local16)); _local4._-I0.y = (_local4._-I0.y + (_local4._-3R * _local17)); _local4.m_angularVelocity = (_local4.m_angularVelocity + (_local4._-FP * ((_local8 * _local17) - (_local9 * _local16)))); } } }//package _-4g
Section 6
//_-9J (_-4g._-9J) package _-4g { import _-BU.*; import _-L9.*; import _-80.*; public class _-9J extends _-8p { private var _-1v:_-HS; private var use:_-HS; public var _-C1:Number; public var m_mass:_-HS; private var _-Bf:_-HS; public var _-Cp:_-7Q; public var _-BW:Number; public var false:_-7Q; public var _-3V:_-7Q; public var _-Ja:_-7Q; public var _-Kk:Number; public function _-9J(_arg1:_-5z){ var _local3:Number; this. use = new _-HS(); this._-1v = new _-HS(); this._-Bf = new _-HS(); this._-Ja = new _-7Q(); this._-Cp = new _-7Q(); this.false = new _-7Q(); this.m_mass = new _-HS(); this._-3V = new _-7Q(); super(_arg1); this._-Cp._-3g(_arg1.target); var _local2:Number = (this._-Cp.x - _-9s.m_xf.position.x); _local3 = (this._-Cp.y - _-9s.m_xf.position.y); var _local4:_-HS = _-9s.m_xf.R; this._-Ja.x = ((_local2 * _local4._-7f.x) + (_local3 * _local4._-7f.y)); this._-Ja.y = ((_local2 * _local4._-IO.x) + (_local3 * _local4._-IO.y)); this._-Kk = _arg1._-Hp; this.false._-Cv(); var _local5:Number = _-9s.m_mass; var _local6:Number = ((2 * _-Cj. set) * _arg1._-Ky); var _local7:Number = (((2 * _local5) * _arg1._-Dk) * _local6); var _local8:Number = ((_arg1._-1m * _local5) * (_local6 * _local6)); this._-BW = (1 / (_local7 + _local8)); this._-C1 = (_local8 / (_local7 + _local8)); } public function _-Jg(_arg1:_-7Q):void{ if (_-9s.IsSleeping()){ _-9s.WakeUp(); }; this._-Cp = _arg1; } override public function GetAnchor2():_-7Q{ return (_-9s.GetWorldPoint(this._-Ja)); } override public function InitVelocityConstraints(_arg1:_-2D):void{ var _local2:_-2b; var _local3:_-HS; var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; _local2 = _-9s; _local3 = _local2.m_xf.R; _local4 = (this._-Ja.x - _local2.m_sweep.localCenter.x); _local5 = (this._-Ja.y - _local2.m_sweep.localCenter.y); var _local6:Number = ((_local3._-7f.x * _local4) + (_local3._-IO.x * _local5)); _local5 = ((_local3._-7f.y * _local4) + (_local3._-IO.y * _local5)); _local4 = _local6; _local7 = _local2._-3R; _local8 = _local2._-FP; this._-1v._-7f.x = _local7; this._-1v._-IO.x = 0; this._-1v._-7f.y = 0; this._-1v._-IO.y = _local7; this._-Bf._-7f.x = ((_local8 * _local5) * _local5); this._-Bf._-IO.x = ((-(_local8) * _local4) * _local5); this._-Bf._-7f.y = ((-(_local8) * _local4) * _local5); this._-Bf._-IO.y = ((_local8 * _local4) * _local4); this. use._-Fj(this._-1v); this. use._-1j(this._-Bf); this. use._-7f.x = (this. use._-7f.x + this._-BW); this. use._-IO.y = (this. use._-IO.y + this._-BW); this. use._-1r(this.m_mass); this._-3V.x = ((_local2.m_sweep.c.x + _local4) - this._-Cp.x); this._-3V.y = ((_local2.m_sweep.c.y + _local5) - this._-Cp.y); _local2.m_angularVelocity = (_local2.m_angularVelocity * 0.98); var _local9:Number = (_arg1._-CC * this.false.x); var _local10:Number = (_arg1._-CC * this.false.y); _local2._-I0.x = (_local2._-I0.x + (_local7 * _local9)); _local2._-I0.y = (_local2._-I0.y + (_local7 * _local10)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local8 * ((_local4 * _local10) - (_local5 * _local9)))); } override public function GetAnchor1():_-7Q{ return (this._-Cp); } override public function GetReactionTorque():Number{ return (0); } override public function GetReactionForce():_-7Q{ return (this.false); } override public function SolvePositionConstraints():Boolean{ return (true); } override public function SolveVelocityConstraints(_arg1:_-2D):void{ var _local3:_-HS; var _local4:Number; var _local5:Number; var _local2:_-2b = _-9s; _local3 = _local2.m_xf.R; var _local6:Number = (this._-Ja.x - _local2.m_sweep.localCenter.x); var _local7:Number = (this._-Ja.y - _local2.m_sweep.localCenter.y); _local4 = ((_local3._-7f.x * _local6) + (_local3._-IO.x * _local7)); _local7 = ((_local3._-7f.y * _local6) + (_local3._-IO.y * _local7)); _local6 = _local4; var _local8:Number = (_local2._-I0.x + (-(_local2.m_angularVelocity) * _local7)); var _local9:Number = (_local2._-I0.y + (_local2.m_angularVelocity * _local6)); _local3 = this.m_mass; _local4 = ((_local8 + ((this._-C1 * _arg1._-Hk) * this._-3V.x)) + ((this._-BW * _arg1._-CC) * this.false.x)); _local5 = ((_local9 + ((this._-C1 * _arg1._-Hk) * this._-3V.y)) + ((this._-BW * _arg1._-CC) * this.false.y)); var _local10:Number = (-(_arg1._-Hk) * ((_local3._-7f.x * _local4) + (_local3._-IO.x * _local5))); var _local11:Number = (-(_arg1._-Hk) * ((_local3._-7f.y * _local4) + (_local3._-IO.y * _local5))); var _local12:Number = this.false.x; var _local13:Number = this.false.y; this.false.x = (this.false.x + _local10); this.false.y = (this.false.y + _local11); var _local14:Number = this.false._-8u(); if (_local14 > this._-Kk){ this.false.Multiply((this._-Kk / _local14)); }; _local10 = (this.false.x - _local12); _local11 = (this.false.y - _local13); var _local15:Number = (_arg1._-CC * _local10); var _local16:Number = (_arg1._-CC * _local11); _local2._-I0.x = (_local2._-I0.x + (_local2._-3R * _local15)); _local2._-I0.y = (_local2._-I0.y + (_local2._-3R * _local16)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2._-FP * ((_local6 * _local16) - (_local7 * _local15)))); } } }//package _-4g
Section 7
//_-BJ (_-4g._-BJ) package _-4g { import _-BU.*; public class _-BJ { public var _-Cm:_-7Q; public var default:_-7Q; public var _-LC:Number; public var _-2c:Number; public function _-BJ(){ this._-Cm = new _-7Q(); this.default = new _-7Q(); super(); } public function Set(_arg1:_-7Q, _arg2:Number, _arg3:_-7Q, _arg4:Number):void{ this._-Cm._-3g(_arg1); this._-LC = _arg2; this.default._-3g(_arg3); this._-2c = _arg4; } public function _-Cv():void{ this._-Cm._-Cv(); this._-LC = 0; this.default._-Cv(); this._-2c = 0; } public function _-H8(_arg1:_-7Q, _arg2:Number, _arg3:_-7Q, _arg4:Number):Number{ return ((((((this._-Cm.x * _arg1.x) + (this._-Cm.y * _arg1.y)) + (this._-LC * _arg2)) + ((this.default.x * _arg3.x) + (this.default.y * _arg3.y))) + (this._-2c * _arg4))); } } }//package _-4g
Section 8
//_-Bm (_-4g._-Bm) package _-4g { import _-BU.*; import _-L9.*; import _-80.*; public class _-Bm extends _-8p { public var _-Hc:Number; public var _-Cs:Number; public var _-54:_-7Q; public var _-Di:Number; public var _-Cr:Number; public var _-H6:Number; public var _-B1:Boolean; public var final:Number; public var _-6X:Number; public var _-9M:_-7Q; public var _-6D:Number; public var _-5j:Number; public var _-7X:Number; public var _-4x:_-7Q; public var _-JM:_-7Q; public var _-IH:int; public var _-O:Number; public var _-CW:_-BJ; public var _-3q:Number; public var _-IJ:Number; public var _-67:Boolean; public var _-9t:_-BJ; public function _-Bm(_arg1:_-0C){ var _local2:_-HS; var _local3:Number; var _local4:Number; this._-4x = new _-7Q(); this._-JM = new _-7Q(); this._-54 = new _-7Q(); this._-9M = new _-7Q(); this._-9t = new _-BJ(); this._-CW = new _-BJ(); super(_arg1); this._-4x._-3g(_arg1._-IW); this._-JM._-3g(_arg1._-B5); this._-54._-3g(_arg1._-HX); this._-9M.x = -(this._-54.y); this._-9M.y = this._-54.x; this._-Di = _arg1._-F6; this._-9t._-Cv(); this._-O = 0; this._-6D = 0; this.final = 0; this._-Cr = 0; this._-CW._-Cv(); this._-5j = 0; this._-H6 = 0; this._-Hc = 0; this._-3q = 0; this._-Cs = _arg1._-3X; this._-7X = _arg1._-Gl; this._-6X = _arg1._-85; this._-IJ = _arg1._-FN; this._-B1 = _arg1._-6Y; this._-67 = _arg1.class; } override public function SolveVelocityConstraints(_arg1:_-2D):void{ var _local6:Number; var _local8:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local2:_-2b = _-m; var _local3:_-2b = _-9s; var _local4:Number = _local2._-3R; var _local5:Number = _local3._-3R; _local6 = _local2._-FP; var _local7:Number = _local3._-FP; var _local9:Number = this._-9t._-H8(_local2._-I0, _local2.m_angularVelocity, _local3._-I0, _local3.m_angularVelocity); var _local10:Number = ((-(_arg1._-Hk) * this._-O) * _local9); this._-6D = (this._-6D + _local10); var _local11:Number = (_arg1._-CC * _local10); _local2._-I0.x = (_local2._-I0.x + ((_local4 * _local11) * this._-9t._-Cm.x)); _local2._-I0.y = (_local2._-I0.y + ((_local4 * _local11) * this._-9t._-Cm.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * this._-9t._-LC)); _local3._-I0.x = (_local3._-I0.x + ((_local5 * _local11) * this._-9t.default.x)); _local3._-I0.y = (_local3._-I0.y + ((_local5 * _local11) * this._-9t.default.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * this._-9t._-2c)); var _local12:Number = (_local3.m_angularVelocity - _local2.m_angularVelocity); var _local13:Number = ((-(_arg1._-Hk) * this.final) * _local12); this._-Cr = (this._-Cr + _local13); var _local14:Number = (_arg1._-CC * _local13); _local2.m_angularVelocity = (_local2.m_angularVelocity - (_local6 * _local14)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local7 * _local14)); if (((this._-67) && (!((this._-IH == _-J4))))){ _local15 = (this._-CW._-H8(_local2._-I0, _local2.m_angularVelocity, _local3._-I0, _local3.m_angularVelocity) - this._-IJ); _local16 = ((-(_arg1._-Hk) * this._-5j) * _local15); _local17 = this._-H6; this._-H6 = _-8Q._-B2((this._-H6 + _local16), -(this._-6X), this._-6X); _local16 = (this._-H6 - _local17); _local11 = (_arg1._-CC * _local16); _local2._-I0.x = (_local2._-I0.x + ((_local4 * _local11) * this._-CW._-Cm.x)); _local2._-I0.y = (_local2._-I0.y + ((_local4 * _local11) * this._-CW._-Cm.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * this._-CW._-LC)); _local3._-I0.x = (_local3._-I0.x + ((_local5 * _local11) * this._-CW.default.x)); _local3._-I0.y = (_local3._-I0.y + ((_local5 * _local11) * this._-CW.default.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * this._-CW._-2c)); }; if (((this._-B1) && (!((this._-IH == _-2A))))){ _local18 = this._-CW._-H8(_local2._-I0, _local2.m_angularVelocity, _local3._-I0, _local3.m_angularVelocity); _local19 = ((-(_arg1._-Hk) * this._-5j) * _local18); if (this._-IH == _-J4){ this._-Hc = (this._-Hc + _local19); } else { if (this._-IH == _-3n){ _local8 = this._-Hc; this._-Hc = _-8Q._-Hi((this._-Hc + _local19), 0); _local19 = (this._-Hc - _local8); } else { if (this._-IH == _-D-){ _local8 = this._-Hc; this._-Hc = _-8Q._-46((this._-Hc + _local19), 0); _local19 = (this._-Hc - _local8); }; }; }; _local11 = (_arg1._-CC * _local19); _local2._-I0.x = (_local2._-I0.x + ((_local4 * _local11) * this._-CW._-Cm.x)); _local2._-I0.y = (_local2._-I0.y + ((_local4 * _local11) * this._-CW._-Cm.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * this._-CW._-LC)); _local3._-I0.x = (_local3._-I0.x + ((_local5 * _local11) * this._-CW.default.x)); _local3._-I0.y = (_local3._-I0.y + ((_local5 * _local11) * this._-CW.default.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * this._-CW._-2c)); }; } override public function GetAnchor1():_-7Q{ return (_-m.GetWorldPoint(this._-4x)); } override public function GetAnchor2():_-7Q{ return (_-9s.GetWorldPoint(this._-JM)); } public function _-If():Number{ return (this._-7X); } public function _-EX():Number{ return (this._-Cs); } public function _-31(_arg1:Boolean):void{ this._-67 = _arg1; } public function _-Jj():Number{ var _local3:_-HS; var _local1:_-2b = _-m; var _local2:_-2b = _-9s; var _local4:_-7Q = _local1.GetWorldPoint(this._-4x); var _local5:_-7Q = _local2.GetWorldPoint(this._-JM); var _local6:Number = (_local5.x - _local4.x); var _local7:Number = (_local5.y - _local4.y); var _local8:_-7Q = _local1._-5G(this._-54); var _local9:Number = ((_local8.x * _local6) + (_local8.y * _local7)); return (_local9); } public function _-Dg():Number{ return (this._-IJ); } override public function GetReactionForce():_-7Q{ var _local1:_-HS = _-m.m_xf.R; var _local2:Number = (this._-Hc * ((_local1._-7f.x * this._-54.x) + (_local1._-IO.x * this._-54.y))); var _local3:Number = (this._-Hc * ((_local1._-7f.y * this._-54.x) + (_local1._-IO.y * this._-54.y))); var _local4:Number = (this._-6D * ((_local1._-7f.x * this._-9M.x) + (_local1._-IO.x * this._-9M.y))); var _local5:Number = (this._-6D * ((_local1._-7f.y * this._-9M.x) + (_local1._-IO.y * this._-9M.y))); return (new _-7Q(((this._-Hc * _local2) + (this._-6D * _local4)), ((this._-Hc * _local3) + (this._-6D * _local5)))); } override public function SolvePositionConstraints():Boolean{ var _local1:Number; var _local2:Number; var _local9:_-HS; var _local10:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local3:_-2b = _-m; var _local4:_-2b = _-9s; var _local5:Number = _local3._-3R; var _local6:Number = _local4._-3R; var _local7:Number = _local3._-FP; var _local8:Number = _local4._-FP; _local9 = _local3.m_xf.R; var _local11:Number = (this._-4x.x - _local3.m_sweep.localCenter.x); var _local12:Number = (this._-4x.y - _local3.m_sweep.localCenter.y); _local10 = ((_local9._-7f.x * _local11) + (_local9._-IO.x * _local12)); _local12 = ((_local9._-7f.y * _local11) + (_local9._-IO.y * _local12)); _local11 = _local10; _local9 = _local4.m_xf.R; var _local13:Number = (this._-JM.x - _local4.m_sweep.localCenter.x); var _local14:Number = (this._-JM.y - _local4.m_sweep.localCenter.y); _local10 = ((_local9._-7f.x * _local13) + (_local9._-IO.x * _local14)); _local14 = ((_local9._-7f.y * _local13) + (_local9._-IO.y * _local14)); _local13 = _local10; var _local15:Number = (_local3.m_sweep.c.x + _local11); var _local16:Number = (_local3.m_sweep.c.y + _local12); var _local17:Number = (_local4.m_sweep.c.x + _local13); var _local18:Number = (_local4.m_sweep.c.y + _local14); var _local19:Number = (_local17 - _local15); var _local20:Number = (_local18 - _local16); _local9 = _local3.m_xf.R; var _local21:Number = ((_local9._-7f.x * this._-9M.x) + (_local9._-IO.x * this._-9M.y)); var _local22:Number = ((_local9._-7f.y * this._-9M.x) + (_local9._-IO.y * this._-9M.y)); var _local23:Number = ((_local21 * _local19) + (_local22 * _local20)); _local23 = _-8Q._-B2(_local23, -(_-Cj._-FA), _-Cj._-FA); var _local24:Number = (-(this._-O) * _local23); _local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local5 * _local24) * this._-9t._-Cm.x)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local5 * _local24) * this._-9t._-Cm.y)); _local3.m_sweep.a = (_local3.m_sweep.a + ((_local7 * _local24) * this._-9t._-LC)); _local4.m_sweep.c.x = (_local4.m_sweep.c.x + ((_local6 * _local24) * this._-9t.default.x)); _local4.m_sweep.c.y = (_local4.m_sweep.c.y + ((_local6 * _local24) * this._-9t.default.y)); _local4.m_sweep.a = (_local4.m_sweep.a + ((_local8 * _local24) * this._-9t._-2c)); var _local25:Number = _-8Q._-Ce(_local23); var _local26:Number = ((_local4.m_sweep.a - _local3.m_sweep.a) - this._-Di); _local26 = _-8Q._-B2(_local26, -(_-Cj._-B9), _-Cj._-B9); var _local27:Number = (-(this.final) * _local26); _local3.m_sweep.a = (_local3.m_sweep.a - (_local3._-FP * _local27)); _local4.m_sweep.a = (_local4.m_sweep.a + (_local4._-FP * _local27)); _local3._-Jp(); _local4._-Jp(); var _local28:Number = _-8Q._-Ce(_local26); if (((this._-B1) && (!((this._-IH == _-2A))))){ _local9 = _local3.m_xf.R; _local11 = (this._-4x.x - _local3.m_sweep.localCenter.x); _local12 = (this._-4x.y - _local3.m_sweep.localCenter.y); _local10 = ((_local9._-7f.x * _local11) + (_local9._-IO.x * _local12)); _local12 = ((_local9._-7f.y * _local11) + (_local9._-IO.y * _local12)); _local11 = _local10; _local9 = _local4.m_xf.R; _local13 = (this._-JM.x - _local4.m_sweep.localCenter.x); _local14 = (this._-JM.y - _local4.m_sweep.localCenter.y); _local10 = ((_local9._-7f.x * _local13) + (_local9._-IO.x * _local14)); _local14 = ((_local9._-7f.y * _local13) + (_local9._-IO.y * _local14)); _local13 = _local10; _local15 = (_local3.m_sweep.c.x + _local11); _local16 = (_local3.m_sweep.c.y + _local12); _local17 = (_local4.m_sweep.c.x + _local13); _local18 = (_local4.m_sweep.c.y + _local14); _local19 = (_local17 - _local15); _local20 = (_local18 - _local16); _local9 = _local3.m_xf.R; _local29 = ((_local9._-7f.x * this._-54.x) + (_local9._-IO.x * this._-54.y)); _local30 = ((_local9._-7f.y * this._-54.x) + (_local9._-IO.y * this._-54.y)); _local31 = ((_local29 * _local19) + (_local30 * _local20)); _local32 = 0; if (this._-IH == _-J4){ _local1 = _-8Q._-B2(_local31, -(_-Cj._-FA), _-Cj._-FA); _local32 = (-(this._-5j) * _local1); _local25 = _-8Q._-Hi(_local25, _-8Q._-Ce(_local26)); } else { if (this._-IH == _-3n){ _local1 = (_local31 - this._-Cs); _local25 = _-8Q._-Hi(_local25, -(_local1)); _local1 = _-8Q._-B2((_local1 + _-Cj._-EK), -(_-Cj._-FA), 0); _local32 = (-(this._-5j) * _local1); _local2 = this._-3q; this._-3q = _-8Q._-Hi((this._-3q + _local32), 0); _local32 = (this._-3q - _local2); } else { if (this._-IH == _-D-){ _local1 = (_local31 - this._-7X); _local25 = _-8Q._-Hi(_local25, _local1); _local1 = _-8Q._-B2((_local1 - _-Cj._-EK), 0, _-Cj._-FA); _local32 = (-(this._-5j) * _local1); _local2 = this._-3q; this._-3q = _-8Q._-46((this._-3q + _local32), 0); _local32 = (this._-3q - _local2); }; }; }; _local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local5 * _local32) * this._-CW._-Cm.x)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local5 * _local32) * this._-CW._-Cm.y)); _local3.m_sweep.a = (_local3.m_sweep.a + ((_local7 * _local32) * this._-CW._-LC)); _local4.m_sweep.c.x = (_local4.m_sweep.c.x + ((_local6 * _local32) * this._-CW.default.x)); _local4.m_sweep.c.y = (_local4.m_sweep.c.y + ((_local6 * _local32) * this._-CW.default.y)); _local4.m_sweep.a = (_local4.m_sweep.a + ((_local8 * _local32) * this._-CW._-2c)); _local3._-Jp(); _local4._-Jp(); }; return ((((_local25 <= _-Cj._-EK)) && ((_local28 <= _-Cj._-6G)))); } public function _-8e(_arg1:Number):void{ this._-IJ = _arg1; } public function _-CP():Number{ var _local3:_-HS; var _local1:_-2b = _-m; var _local2:_-2b = _-9s; _local3 = _local1.m_xf.R; var _local4:Number = (this._-4x.x - _local1.m_sweep.localCenter.x); var _local5:Number = (this._-4x.y - _local1.m_sweep.localCenter.y); var _local6:Number = ((_local3._-7f.x * _local4) + (_local3._-IO.x * _local5)); _local5 = ((_local3._-7f.y * _local4) + (_local3._-IO.y * _local5)); _local4 = _local6; _local3 = _local2.m_xf.R; var _local7:Number = (this._-JM.x - _local2.m_sweep.localCenter.x); var _local8:Number = (this._-JM.y - _local2.m_sweep.localCenter.y); _local6 = ((_local3._-7f.x * _local7) + (_local3._-IO.x * _local8)); _local8 = ((_local3._-7f.y * _local7) + (_local3._-IO.y * _local8)); _local7 = _local6; var _local9:Number = (_local1.m_sweep.c.x + _local4); var _local10:Number = (_local1.m_sweep.c.y + _local5); var _local11:Number = (_local2.m_sweep.c.x + _local7); var _local12:Number = (_local2.m_sweep.c.y + _local8); var _local13:Number = (_local11 - _local9); var _local14:Number = (_local12 - _local10); var _local15:_-7Q = _local1._-5G(this._-54); var _local16:_-7Q = _local1._-I0; var _local17:_-7Q = _local2._-I0; var _local18:Number = _local1.m_angularVelocity; var _local19:Number = _local2.m_angularVelocity; var _local20:Number = (((_local13 * (-(_local18) * _local15.y)) + (_local14 * (_local18 * _local15.x))) + ((_local15.x * (((_local17.x + (-(_local19) * _local8)) - _local16.x) - (-(_local18) * _local5))) + (_local15.y * (((_local17.y + (_local19 * _local7)) - _local16.y) - (_local18 * _local4))))); return (_local20); } override public function InitVelocityConstraints(_arg1:_-2D):void{ var _local4:_-HS; var _local5:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local2:_-2b = _-m; var _local3:_-2b = _-9s; _local4 = _local2.m_xf.R; var _local6:Number = (this._-4x.x - _local2.m_sweep.localCenter.x); var _local7:Number = (this._-4x.y - _local2.m_sweep.localCenter.y); _local5 = ((_local4._-7f.x * _local6) + (_local4._-IO.x * _local7)); _local7 = ((_local4._-7f.y * _local6) + (_local4._-IO.y * _local7)); _local6 = _local5; _local4 = _local3.m_xf.R; var _local8:Number = (this._-JM.x - _local3.m_sweep.localCenter.x); var _local9:Number = (this._-JM.y - _local3.m_sweep.localCenter.y); _local5 = ((_local4._-7f.x * _local8) + (_local4._-IO.x * _local9)); _local9 = ((_local4._-7f.y * _local8) + (_local4._-IO.y * _local9)); _local8 = _local5; var _local10:Number = _local2._-3R; var _local11:Number = _local3._-3R; var _local12:Number = _local2._-FP; var _local13:Number = _local3._-FP; _local4 = _local2.m_xf.R; var _local14:Number = ((_local4._-7f.x * this._-9M.x) + (_local4._-IO.x * this._-9M.y)); var _local15:Number = ((_local4._-7f.y * this._-9M.x) + (_local4._-IO.y * this._-9M.y)); var _local16:Number = ((_local3.m_sweep.c.x + _local8) - _local2.m_sweep.c.x); var _local17:Number = ((_local3.m_sweep.c.y + _local9) - _local2.m_sweep.c.y); this._-9t._-Cm.x = -(_local14); this._-9t._-Cm.y = -(_local15); this._-9t.default.x = _local14; this._-9t.default.y = _local15; this._-9t._-LC = -(((_local16 * _local15) - (_local17 * _local14))); this._-9t._-2c = ((_local8 * _local15) - (_local9 * _local14)); this._-O = (((_local10 + ((_local12 * this._-9t._-LC) * this._-9t._-LC)) + _local11) + ((_local13 * this._-9t._-2c) * this._-9t._-2c)); this._-O = (1 / this._-O); this.final = (_local12 + _local13); if (this.final > Number.MIN_VALUE){ this.final = (1 / this.final); }; if (((this._-B1) || (this._-67))){ _local4 = _local2.m_xf.R; _local18 = ((_local4._-7f.x * this._-54.x) + (_local4._-IO.x * this._-54.y)); _local19 = ((_local4._-7f.y * this._-54.x) + (_local4._-IO.y * this._-54.y)); this._-CW._-Cm.x = -(_local18); this._-CW._-Cm.y = -(_local19); this._-CW.default.x = _local18; this._-CW.default.y = _local19; this._-CW._-LC = -(((_local16 * _local19) - (_local17 * _local18))); this._-CW._-2c = ((_local8 * _local19) - (_local9 * _local18)); this._-5j = (((_local10 + ((_local12 * this._-CW._-LC) * this._-CW._-LC)) + _local11) + ((_local13 * this._-CW._-2c) * this._-CW._-2c)); this._-5j = (1 / this._-5j); if (this._-B1){ _local20 = (_local16 - _local6); _local21 = (_local17 - _local7); _local22 = ((_local18 * _local20) + (_local19 * _local21)); if (_-8Q._-Ce((this._-7X - this._-Cs)) < (2 * _-Cj._-EK)){ this._-IH = _-J4; } else { if (_local22 <= this._-Cs){ if (this._-IH != _-3n){ this._-Hc = 0; }; this._-IH = _-3n; } else { if (_local22 >= this._-7X){ if (this._-IH != _-D-){ this._-Hc = 0; }; this._-IH = _-D-; } else { this._-IH = _-2A; this._-Hc = 0; }; }; }; }; }; if (this._-67 == false){ this._-H6 = 0; }; if (this._-B1 == false){ this._-Hc = 0; }; if (_arg1._-29){ _local23 = (_arg1._-CC * ((this._-6D * this._-9t._-Cm.x) + ((this._-H6 + this._-Hc) * this._-CW._-Cm.x))); _local24 = (_arg1._-CC * ((this._-6D * this._-9t._-Cm.y) + ((this._-H6 + this._-Hc) * this._-CW._-Cm.y))); _local25 = (_arg1._-CC * ((this._-6D * this._-9t.default.x) + ((this._-H6 + this._-Hc) * this._-CW.default.x))); _local26 = (_arg1._-CC * ((this._-6D * this._-9t.default.y) + ((this._-H6 + this._-Hc) * this._-CW.default.y))); _local27 = (_arg1._-CC * (((this._-6D * this._-9t._-LC) - this._-Cr) + ((this._-H6 + this._-Hc) * this._-CW._-LC))); _local28 = (_arg1._-CC * (((this._-6D * this._-9t._-2c) + this._-Cr) + ((this._-H6 + this._-Hc) * this._-CW._-2c))); _local2._-I0.x = (_local2._-I0.x + (_local10 * _local23)); _local2._-I0.y = (_local2._-I0.y + (_local10 * _local24)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local12 * _local27)); _local3._-I0.x = (_local3._-I0.x + (_local11 * _local25)); _local3._-I0.y = (_local3._-I0.y + (_local11 * _local26)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local13 * _local28)); } else { this._-6D = 0; this._-Cr = 0; this._-Hc = 0; this._-H6 = 0; }; this._-3q = 0; } public function _-K9():Number{ return (this._-H6); } public function _-3l(_arg1:Boolean):void{ this._-B1 = _arg1; } public function _-3K(_arg1:Number):void{ this._-6X = _arg1; } override public function GetReactionTorque():Number{ return (this._-Cr); } public function _-6p():Boolean{ return (this._-B1); } public function _-1Z():Boolean{ return (this._-67); } public function _-KJ(_arg1:Number, _arg2:Number):void{ this._-Cs = _arg1; this._-7X = _arg2; } } }//package _-4g
Section 9
//_-DD (_-4g._-DD) package _-4g { import _-BU.*; import _-L9.*; import _-80.*; public class _-DD extends _-8p { public var _-Hc:Number; public var _-Bg:_-HS; public var _-H6:Number; public var _-B1:Boolean; public var _-IH:int; public var _-5j:Number; public var _-4x:_-7Q; public var _-JM:_-7Q; private var _-1v:_-HS; private var _-Bf:_-HS; private var _-w:_-HS; private var use:_-HS; public var _-JN:_-7Q; public var _-67:Boolean; public var _-0E:Number; public var _-3q:Number; public var _-IJ:Number; public var _-0J:Number; public var _-IX:Number; public var _-T:Number; public static var _-3w:_-7Q = new _-7Q(); public function _-DD(_arg1:_-I1){ this. use = new _-HS(); this._-1v = new _-HS(); this._-Bf = new _-HS(); this._-w = new _-HS(); this._-4x = new _-7Q(); this._-JM = new _-7Q(); this._-JN = new _-7Q(); this._-Bg = new _-HS(); super(_arg1); this._-4x._-3g(_arg1._-IW); this._-JM._-3g(_arg1._-B5); this._-0E = _arg1._-F6; this._-JN.Set(0, 0); this._-H6 = 0; this._-Hc = 0; this._-3q = 0; this._-IX = _arg1._-EG; this._-0J = _arg1._-3s; this._-T = _arg1._-0G; this._-IJ = _arg1._-FN; this._-B1 = _arg1._-6Y; this._-67 = _arg1.class; } override public function SolveVelocityConstraints(_arg1:_-2D):void{ var _local4:_-HS; var _local5:Number; var _local10:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local2:_-2b = _-m; var _local3:_-2b = _-9s; _local4 = _local2.m_xf.R; var _local6:Number = (this._-4x.x - _local2.m_sweep.localCenter.x); var _local7:Number = (this._-4x.y - _local2.m_sweep.localCenter.y); _local5 = ((_local4._-7f.x * _local6) + (_local4._-IO.x * _local7)); _local7 = ((_local4._-7f.y * _local6) + (_local4._-IO.y * _local7)); _local6 = _local5; _local4 = _local3.m_xf.R; var _local8:Number = (this._-JM.x - _local3.m_sweep.localCenter.x); var _local9:Number = (this._-JM.y - _local3.m_sweep.localCenter.y); _local5 = ((_local4._-7f.x * _local8) + (_local4._-IO.x * _local9)); _local9 = ((_local4._-7f.y * _local8) + (_local4._-IO.y * _local9)); _local8 = _local5; var _local11:Number = (((_local3._-I0.x + (-(_local3.m_angularVelocity) * _local9)) - _local2._-I0.x) - (-(_local2.m_angularVelocity) * _local7)); var _local12:Number = (((_local3._-I0.y + (_local3.m_angularVelocity * _local8)) - _local2._-I0.y) - (_local2.m_angularVelocity * _local6)); var _local13:Number = (-(_arg1._-Hk) * ((this._-Bg._-7f.x * _local11) + (this._-Bg._-IO.x * _local12))); var _local14:Number = (-(_arg1._-Hk) * ((this._-Bg._-7f.y * _local11) + (this._-Bg._-IO.y * _local12))); this._-JN.x = (this._-JN.x + _local13); this._-JN.y = (this._-JN.y + _local14); var _local15:Number = (_arg1._-CC * _local13); _local16 = (_arg1._-CC * _local14); _local2._-I0.x = (_local2._-I0.x - (_local2._-3R * _local15)); _local2._-I0.y = (_local2._-I0.y - (_local2._-3R * _local16)); _local2.m_angularVelocity = (_local2.m_angularVelocity - (_local2._-FP * ((_local6 * _local16) - (_local7 * _local15)))); _local3._-I0.x = (_local3._-I0.x + (_local3._-3R * _local15)); _local3._-I0.y = (_local3._-I0.y + (_local3._-3R * _local16)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3._-FP * ((_local8 * _local16) - (_local9 * _local15)))); if (((this._-67) && (!((this._-IH == _-J4))))){ _local17 = ((_local3.m_angularVelocity - _local2.m_angularVelocity) - this._-IJ); _local18 = ((-(_arg1._-Hk) * this._-5j) * _local17); _local19 = this._-H6; this._-H6 = _-8Q._-B2((this._-H6 + _local18), -(this._-T), this._-T); _local18 = (this._-H6 - _local19); _local2.m_angularVelocity = (_local2.m_angularVelocity - ((_local2._-FP * _arg1._-CC) * _local18)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3._-FP * _arg1._-CC) * _local18)); }; if (((this._-B1) && (!((this._-IH == _-2A))))){ _local20 = (_local3.m_angularVelocity - _local2.m_angularVelocity); _local21 = ((-(_arg1._-Hk) * this._-5j) * _local20); if (this._-IH == _-J4){ this._-Hc = (this._-Hc + _local21); } else { if (this._-IH == _-3n){ _local10 = this._-Hc; this._-Hc = _-8Q._-Hi((this._-Hc + _local21), 0); _local21 = (this._-Hc - _local10); } else { if (this._-IH == _-D-){ _local10 = this._-Hc; this._-Hc = _-8Q._-46((this._-Hc + _local21), 0); _local21 = (this._-Hc - _local10); }; }; }; _local2.m_angularVelocity = (_local2.m_angularVelocity - ((_local2._-FP * _arg1._-CC) * _local21)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3._-FP * _arg1._-CC) * _local21)); }; } override public function GetAnchor1():_-7Q{ return (_-m.GetWorldPoint(this._-4x)); } override public function GetAnchor2():_-7Q{ return (_-9s.GetWorldPoint(this._-JM)); } public function _-If():Number{ return (this._-0J); } public function _-EX():Number{ return (this._-IX); } public function _-31(_arg1:Boolean):void{ this._-67 = _arg1; } public function _-Dg():Number{ return (this._-IJ); } override public function GetReactionForce():_-7Q{ return (this._-JN); } override public function SolvePositionConstraints():Boolean{ var _local1:Number; var _local2:Number; var _local6:_-HS; var _local25:Number; var _local26:Number; var _local3:_-2b = _-m; var _local4:_-2b = _-9s; var _local5:Number = 0; _local6 = _local3.m_xf.R; var _local7:Number = (this._-4x.x - _local3.m_sweep.localCenter.x); var _local8:Number = (this._-4x.y - _local3.m_sweep.localCenter.y); var _local9:Number = ((_local6._-7f.x * _local7) + (_local6._-IO.x * _local8)); _local8 = ((_local6._-7f.y * _local7) + (_local6._-IO.y * _local8)); _local7 = _local9; _local6 = _local4.m_xf.R; var _local10:Number = (this._-JM.x - _local4.m_sweep.localCenter.x); var _local11:Number = (this._-JM.y - _local4.m_sweep.localCenter.y); _local9 = ((_local6._-7f.x * _local10) + (_local6._-IO.x * _local11)); _local11 = ((_local6._-7f.y * _local10) + (_local6._-IO.y * _local11)); _local10 = _local9; var _local12:Number = (_local3.m_sweep.c.x + _local7); var _local13:Number = (_local3.m_sweep.c.y + _local8); var _local14:Number = (_local4.m_sweep.c.x + _local10); var _local15:Number = (_local4.m_sweep.c.y + _local11); var _local16:Number = (_local14 - _local12); var _local17:Number = (_local15 - _local13); _local5 = Math.sqrt(((_local16 * _local16) + (_local17 * _local17))); var _local18:Number = _local3._-3R; var _local19:Number = _local4._-3R; var _local20:Number = _local3._-FP; var _local21:Number = _local4._-FP; this._-1v._-7f.x = (_local18 + _local19); this._-1v._-IO.x = 0; this._-1v._-7f.y = 0; this._-1v._-IO.y = (_local18 + _local19); this._-Bf._-7f.x = ((_local20 * _local8) * _local8); this._-Bf._-IO.x = ((-(_local20) * _local7) * _local8); this._-Bf._-7f.y = ((-(_local20) * _local7) * _local8); this._-Bf._-IO.y = ((_local20 * _local7) * _local7); this._-w._-7f.x = ((_local21 * _local11) * _local11); this._-w._-IO.x = ((-(_local21) * _local10) * _local11); this._-w._-7f.y = ((-(_local21) * _local10) * _local11); this._-w._-IO.y = ((_local21 * _local10) * _local10); this. use._-Fj(this._-1v); this. use._-1j(this._-Bf); this. use._-1j(this._-w); this. use._-FM(_-3w, -(_local16), -(_local17)); var _local22:Number = _-3w.x; var _local23:Number = _-3w.y; _local3.m_sweep.c.x = (_local3.m_sweep.c.x - (_local3._-3R * _local22)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y - (_local3._-3R * _local23)); _local3.m_sweep.a = (_local3.m_sweep.a - (_local3._-FP * ((_local7 * _local23) - (_local8 * _local22)))); _local4.m_sweep.c.x = (_local4.m_sweep.c.x + (_local4._-3R * _local22)); _local4.m_sweep.c.y = (_local4.m_sweep.c.y + (_local4._-3R * _local23)); _local4.m_sweep.a = (_local4.m_sweep.a + (_local4._-FP * ((_local10 * _local23) - (_local11 * _local22)))); _local3._-Jp(); _local4._-Jp(); var _local24:Number = 0; if (((this._-B1) && (!((this._-IH == _-2A))))){ _local25 = ((_local4.m_sweep.a - _local3.m_sweep.a) - this._-0E); _local26 = 0; if (this._-IH == _-J4){ _local2 = _-8Q._-B2(_local25, -(_-Cj._-B9), _-Cj._-B9); _local26 = (-(this._-5j) * _local2); _local24 = _-8Q._-Ce(_local2); } else { if (this._-IH == _-3n){ _local2 = (_local25 - this._-IX); _local24 = _-8Q._-Hi(0, -(_local2)); _local2 = _-8Q._-B2((_local2 + _-Cj._-6G), -(_-Cj._-B9), 0); _local26 = (-(this._-5j) * _local2); _local1 = this._-3q; this._-3q = _-8Q._-Hi((this._-3q + _local26), 0); _local26 = (this._-3q - _local1); } else { if (this._-IH == _-D-){ _local2 = (_local25 - this._-0J); _local24 = _-8Q._-Hi(0, _local2); _local2 = _-8Q._-B2((_local2 - _-Cj._-6G), 0, _-Cj._-B9); _local26 = (-(this._-5j) * _local2); _local1 = this._-3q; this._-3q = _-8Q._-46((this._-3q + _local26), 0); _local26 = (this._-3q - _local1); }; }; }; _local3.m_sweep.a = (_local3.m_sweep.a - (_local3._-FP * _local26)); _local4.m_sweep.a = (_local4.m_sweep.a + (_local4._-FP * _local26)); _local3._-Jp(); _local4._-Jp(); }; return ((((_local5 <= _-Cj._-EK)) && ((_local24 <= _-Cj._-6G)))); } public function _-8e(_arg1:Number):void{ this._-IJ = _arg1; } public function _-CP():Number{ return ((_-9s.m_angularVelocity - _-m.m_angularVelocity)); } public function _-8o(_arg1:Number):void{ this._-T = _arg1; } public function _-0g():Number{ return (((_-9s.m_sweep.a - _-m.m_sweep.a) - this._-0E)); } public function _-H9():Number{ return (this._-H6); } override public function InitVelocityConstraints(_arg1:_-2D):void{ var _local2:_-2b; var _local3:_-2b; var _local4:_-HS; var _local5:Number; var _local7:Number; var _local14:Number; _local2 = _-m; _local3 = _-9s; _local4 = _local2.m_xf.R; var _local6:Number = (this._-4x.x - _local2.m_sweep.localCenter.x); _local7 = (this._-4x.y - _local2.m_sweep.localCenter.y); _local5 = ((_local4._-7f.x * _local6) + (_local4._-IO.x * _local7)); _local7 = ((_local4._-7f.y * _local6) + (_local4._-IO.y * _local7)); _local6 = _local5; _local4 = _local3.m_xf.R; var _local8:Number = (this._-JM.x - _local3.m_sweep.localCenter.x); var _local9:Number = (this._-JM.y - _local3.m_sweep.localCenter.y); _local5 = ((_local4._-7f.x * _local8) + (_local4._-IO.x * _local9)); _local9 = ((_local4._-7f.y * _local8) + (_local4._-IO.y * _local9)); _local8 = _local5; var _local10:Number = _local2._-3R; var _local11:Number = _local3._-3R; var _local12:Number = _local2._-FP; var _local13:Number = _local3._-FP; this._-1v._-7f.x = (_local10 + _local11); this._-1v._-IO.x = 0; this._-1v._-7f.y = 0; this._-1v._-IO.y = (_local10 + _local11); this._-Bf._-7f.x = ((_local12 * _local7) * _local7); this._-Bf._-IO.x = ((-(_local12) * _local6) * _local7); this._-Bf._-7f.y = ((-(_local12) * _local6) * _local7); this._-Bf._-IO.y = ((_local12 * _local6) * _local6); this._-w._-7f.x = ((_local13 * _local9) * _local9); this._-w._-IO.x = ((-(_local13) * _local8) * _local9); this._-w._-7f.y = ((-(_local13) * _local8) * _local9); this._-w._-IO.y = ((_local13 * _local8) * _local8); this. use._-Fj(this._-1v); this. use._-1j(this._-Bf); this. use._-1j(this._-w); this. use._-1r(this._-Bg); this._-5j = (1 / (_local12 + _local13)); if (this._-67 == false){ this._-H6 = 0; }; if (this._-B1){ _local14 = ((_local3.m_sweep.a - _local2.m_sweep.a) - this._-0E); if (_-8Q._-Ce((this._-0J - this._-IX)) < (2 * _-Cj._-6G)){ this._-IH = _-J4; } else { if (_local14 <= this._-IX){ if (this._-IH != _-3n){ this._-Hc = 0; }; this._-IH = _-3n; } else { if (_local14 >= this._-0J){ if (this._-IH != _-D-){ this._-Hc = 0; }; this._-IH = _-D-; } else { this._-IH = _-2A; this._-Hc = 0; }; }; }; } else { this._-Hc = 0; }; if (_arg1._-29){ _local2._-I0.x = (_local2._-I0.x - ((_arg1._-CC * _local10) * this._-JN.x)); _local2._-I0.y = (_local2._-I0.y - ((_arg1._-CC * _local10) * this._-JN.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity - ((_arg1._-CC * _local12) * ((((_local6 * this._-JN.y) - (_local7 * this._-JN.x)) + this._-H6) + this._-Hc))); _local3._-I0.x = (_local3._-I0.x + ((_arg1._-CC * _local11) * this._-JN.x)); _local3._-I0.y = (_local3._-I0.y + ((_arg1._-CC * _local11) * this._-JN.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_arg1._-CC * _local13) * ((((_local8 * this._-JN.y) - (_local9 * this._-JN.x)) + this._-H6) + this._-Hc))); } else { this._-JN._-Cv(); this._-H6 = 0; this._-Hc = 0; }; this._-3q = 0; } public function _-3l(_arg1:Boolean):void{ this._-B1 = _arg1; } override public function GetReactionTorque():Number{ return (this._-Hc); } public function _-6p():Boolean{ return (this._-B1); } public function _-1Z():Boolean{ return (this._-67); } public function _-KJ(_arg1:Number, _arg2:Number):void{ this._-IX = _arg1; this._-0J = _arg2; } } }//package _-4g
Section 10
//_-F5 (_-4g._-F5) package _-4g { import _-BU.*; import _-L9.*; import _-80.*; public class _-F5 extends _-8p { public var _-7o:int; public var _-GY:int; public var _-Gi:_-2b; public var _-1k:Number; public var _-3W:Number; public var _-L0:Number; public var _-8H:Number; public var _-6D:Number; public var _-Ly:Number; public var _-Fv:Number; public var _-Hw:int; public var _-9A:Number; public var _-J8:_-7Q; public var _-22:_-7Q; public var _-4x:_-7Q; public var _-JM:_-7Q; public var _-EJ:Number; public var _-AE:Number; public var _-Cd:Number; public var _-Ek:_-7Q; public var _-21:Number; public var _-Ad:Number; public var _-CR:_-7Q; public static const _-0b:Number = 2; public function _-F5(_arg1:_-FY){ var _local2:_-HS; var _local3:Number; var _local4:Number; this._-J8 = new _-7Q(); this._-22 = new _-7Q(); this._-4x = new _-7Q(); this._-JM = new _-7Q(); this._-Ek = new _-7Q(); this._-CR = new _-7Q(); super(_arg1); this._-Gi = _-m.m_world.m_groundBody; this._-J8.x = (_arg1. each.x - this._-Gi.m_xf.position.x); this._-J8.y = (_arg1. each.y - this._-Gi.m_xf.position.y); this._-22.x = (_arg1._-5W.x - this._-Gi.m_xf.position.x); this._-22.y = (_arg1._-5W.y - this._-Gi.m_xf.position.y); this._-4x._-3g(_arg1._-IW); this._-JM._-3g(_arg1._-B5); this._-9A = _arg1._-7c; this._-Ly = (_arg1._-CT + (this._-9A * _arg1._-Lm)); this._-3W = _-8Q._-46(_arg1._-6d, (this._-Ly - (this._-9A * _-0b))); this._-1k = _-8Q._-46(_arg1._-n, ((this._-Ly - _-0b) / this._-9A)); this._-6D = 0; this._-21 = 0; this._-Ad = 0; } public function _-DN():_-7Q{ var _local1:_-7Q = this._-Gi.m_xf.position.Copy(); _local1.Add(this._-22); return (_local1); } override public function GetAnchor1():_-7Q{ return (_-m.GetWorldPoint(this._-4x)); } override public function GetAnchor2():_-7Q{ return (_-9s.GetWorldPoint(this._-JM)); } override public function GetReactionForce():_-7Q{ var _local1:_-7Q = this._-CR.Copy(); _local1.Multiply(this._-6D); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local3:_-HS; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local1:_-2b = _-m; var _local2:_-2b = _-9s; var _local4:Number = (this._-Gi.m_xf.position.x + this._-J8.x); var _local5:Number = (this._-Gi.m_xf.position.y + this._-J8.y); var _local6:Number = (this._-Gi.m_xf.position.x + this._-22.x); var _local7:Number = (this._-Gi.m_xf.position.y + this._-22.y); var _local23:Number = 0; if (this._-Hw == _-D-){ _local3 = _local1.m_xf.R; _local8 = (this._-4x.x - _local1.m_sweep.localCenter.x); _local9 = (this._-4x.y - _local1.m_sweep.localCenter.y); _local22 = ((_local3._-7f.x * _local8) + (_local3._-IO.x * _local9)); _local9 = ((_local3._-7f.y * _local8) + (_local3._-IO.y * _local9)); _local8 = _local22; _local3 = _local2.m_xf.R; _local10 = (this._-JM.x - _local2.m_sweep.localCenter.x); _local11 = (this._-JM.y - _local2.m_sweep.localCenter.y); _local22 = ((_local3._-7f.x * _local10) + (_local3._-IO.x * _local11)); _local11 = ((_local3._-7f.y * _local10) + (_local3._-IO.y * _local11)); _local10 = _local22; _local12 = (_local1.m_sweep.c.x + _local8); _local13 = (_local1.m_sweep.c.y + _local9); _local14 = (_local2.m_sweep.c.x + _local10); _local15 = (_local2.m_sweep.c.y + _local11); this._-Ek.Set((_local12 - _local4), (_local13 - _local5)); this._-CR.Set((_local14 - _local6), (_local15 - _local7)); _local16 = this._-Ek._-8u(); _local17 = this._-CR._-8u(); if (_local16 > _-Cj._-EK){ this._-Ek.Multiply((1 / _local16)); } else { this._-Ek._-Cv(); }; if (_local17 > _-Cj._-EK){ this._-CR.Multiply((1 / _local17)); } else { this._-CR._-Cv(); }; _local18 = ((this._-Ly - _local16) - (this._-9A * _local17)); _local23 = _-8Q._-Hi(_local23, -(_local18)); _local18 = _-8Q._-B2((_local18 + _-Cj._-EK), -(_-Cj._-FA), 0); _local19 = (-(this._-Cd) * _local18); _local20 = this._-Fv; this._-Fv = _-8Q._-Hi(0, (this._-Fv + _local19)); _local19 = (this._-Fv - _local20); _local12 = (-(_local19) * this._-Ek.x); _local13 = (-(_local19) * this._-Ek.y); _local14 = ((-(this._-9A) * _local19) * this._-CR.x); _local15 = ((-(this._-9A) * _local19) * this._-CR.y); _local1.m_sweep.c.x = (_local1.m_sweep.c.x + (_local1._-3R * _local12)); _local1.m_sweep.c.y = (_local1.m_sweep.c.y + (_local1._-3R * _local13)); _local1.m_sweep.a = (_local1.m_sweep.a + (_local1._-FP * ((_local8 * _local13) - (_local9 * _local12)))); _local2.m_sweep.c.x = (_local2.m_sweep.c.x + (_local2._-3R * _local14)); _local2.m_sweep.c.y = (_local2.m_sweep.c.y + (_local2._-3R * _local15)); _local2.m_sweep.a = (_local2.m_sweep.a + (_local2._-FP * ((_local10 * _local15) - (_local11 * _local14)))); _local1._-Jp(); _local2._-Jp(); }; if (this._-7o == _-D-){ _local3 = _local1.m_xf.R; _local8 = (this._-4x.x - _local1.m_sweep.localCenter.x); _local9 = (this._-4x.y - _local1.m_sweep.localCenter.y); _local22 = ((_local3._-7f.x * _local8) + (_local3._-IO.x * _local9)); _local9 = ((_local3._-7f.y * _local8) + (_local3._-IO.y * _local9)); _local8 = _local22; _local12 = (_local1.m_sweep.c.x + _local8); _local13 = (_local1.m_sweep.c.y + _local9); this._-Ek.Set((_local12 - _local4), (_local13 - _local5)); _local16 = this._-Ek._-8u(); if (_local16 > _-Cj._-EK){ this._-Ek.x = (this._-Ek.x * (1 / _local16)); this._-Ek.y = (this._-Ek.y * (1 / _local16)); } else { this._-Ek._-Cv(); }; _local18 = (this._-3W - _local16); _local23 = _-8Q._-Hi(_local23, -(_local18)); _local18 = _-8Q._-B2((_local18 + _-Cj._-EK), -(_-Cj._-FA), 0); _local19 = (-(this._-EJ) * _local18); _local21 = this._-L0; this._-L0 = _-8Q._-Hi(0, (this._-L0 + _local19)); _local19 = (this._-L0 - _local21); _local12 = (-(_local19) * this._-Ek.x); _local13 = (-(_local19) * this._-Ek.y); _local1.m_sweep.c.x = (_local1.m_sweep.c.x + (_local1._-3R * _local12)); _local1.m_sweep.c.y = (_local1.m_sweep.c.y + (_local1._-3R * _local13)); _local1.m_sweep.a = (_local1.m_sweep.a + (_local1._-FP * ((_local8 * _local13) - (_local9 * _local12)))); _local1._-Jp(); }; if (this._-GY == _-D-){ _local3 = _local2.m_xf.R; _local10 = (this._-JM.x - _local2.m_sweep.localCenter.x); _local11 = (this._-JM.y - _local2.m_sweep.localCenter.y); _local22 = ((_local3._-7f.x * _local10) + (_local3._-IO.x * _local11)); _local11 = ((_local3._-7f.y * _local10) + (_local3._-IO.y * _local11)); _local10 = _local22; _local14 = (_local2.m_sweep.c.x + _local10); _local15 = (_local2.m_sweep.c.y + _local11); this._-CR.Set((_local14 - _local6), (_local15 - _local7)); _local17 = this._-CR._-8u(); if (_local17 > _-Cj._-EK){ this._-CR.x = (this._-CR.x * (1 / _local17)); this._-CR.y = (this._-CR.y * (1 / _local17)); } else { this._-CR._-Cv(); }; _local18 = (this._-1k - _local17); _local23 = _-8Q._-Hi(_local23, -(_local18)); _local18 = _-8Q._-B2((_local18 + _-Cj._-EK), -(_-Cj._-FA), 0); _local19 = (-(this._-AE) * _local18); _local21 = this._-8H; this._-8H = _-8Q._-Hi(0, (this._-8H + _local19)); _local19 = (this._-8H - _local21); _local14 = (-(_local19) * this._-CR.x); _local15 = (-(_local19) * this._-CR.y); _local2.m_sweep.c.x = (_local2.m_sweep.c.x + (_local2._-3R * _local14)); _local2.m_sweep.c.y = (_local2.m_sweep.c.y + (_local2._-3R * _local15)); _local2.m_sweep.a = (_local2.m_sweep.a + (_local2._-FP * ((_local10 * _local15) - (_local11 * _local14)))); _local2._-Jp(); }; return ((_local23 < _-Cj._-EK)); } override public function InitVelocityConstraints(_arg1:_-2D):void{ var _local4:_-HS; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local2:_-2b = _-m; var _local3:_-2b = _-9s; _local4 = _local2.m_xf.R; var _local5:Number = (this._-4x.x - _local2.m_sweep.localCenter.x); var _local6:Number = (this._-4x.y - _local2.m_sweep.localCenter.y); var _local7:Number = ((_local4._-7f.x * _local5) + (_local4._-IO.x * _local6)); _local6 = ((_local4._-7f.y * _local5) + (_local4._-IO.y * _local6)); _local5 = _local7; _local4 = _local3.m_xf.R; var _local8:Number = (this._-JM.x - _local3.m_sweep.localCenter.x); var _local9:Number = (this._-JM.y - _local3.m_sweep.localCenter.y); _local7 = ((_local4._-7f.x * _local8) + (_local4._-IO.x * _local9)); _local9 = ((_local4._-7f.y * _local8) + (_local4._-IO.y * _local9)); _local8 = _local7; var _local10:Number = (_local2.m_sweep.c.x + _local5); var _local11:Number = (_local2.m_sweep.c.y + _local6); var _local12:Number = (_local3.m_sweep.c.x + _local8); var _local13:Number = (_local3.m_sweep.c.y + _local9); var _local14:Number = (this._-Gi.m_xf.position.x + this._-J8.x); var _local15:Number = (this._-Gi.m_xf.position.y + this._-J8.y); var _local16:Number = (this._-Gi.m_xf.position.x + this._-22.x); var _local17:Number = (this._-Gi.m_xf.position.y + this._-22.y); this._-Ek.Set((_local10 - _local14), (_local11 - _local15)); this._-CR.Set((_local12 - _local16), (_local13 - _local17)); var _local18:Number = this._-Ek._-8u(); var _local19:Number = this._-CR._-8u(); if (_local18 > _-Cj._-EK){ this._-Ek.Multiply((1 / _local18)); } else { this._-Ek._-Cv(); }; if (_local19 > _-Cj._-EK){ this._-CR.Multiply((1 / _local19)); } else { this._-CR._-Cv(); }; var _local20:Number = ((this._-Ly - _local18) - (this._-9A * _local19)); if (_local20 > 0){ this._-Hw = _-2A; this._-6D = 0; } else { this._-Hw = _-D-; this._-Fv = 0; }; if (_local18 < this._-3W){ this._-7o = _-2A; this._-21 = 0; } else { this._-7o = _-D-; this._-L0 = 0; }; if (_local19 < this._-1k){ this._-GY = _-2A; this._-Ad = 0; } else { this._-GY = _-D-; this._-8H = 0; }; var _local21:Number = ((_local5 * this._-Ek.y) - (_local6 * this._-Ek.x)); var _local22:Number = ((_local8 * this._-CR.y) - (_local9 * this._-CR.x)); this._-EJ = (_local2._-3R + ((_local2._-FP * _local21) * _local21)); this._-AE = (_local3._-3R + ((_local3._-FP * _local22) * _local22)); this._-Cd = (this._-EJ + ((this._-9A * this._-9A) * this._-AE)); this._-EJ = (1 / this._-EJ); this._-AE = (1 / this._-AE); this._-Cd = (1 / this._-Cd); if (_arg1._-29){ _local23 = ((_arg1._-CC * (-(this._-6D) - this._-21)) * this._-Ek.x); _local24 = ((_arg1._-CC * (-(this._-6D) - this._-21)) * this._-Ek.y); _local25 = ((_arg1._-CC * ((-(this._-9A) * this._-6D) - this._-Ad)) * this._-CR.x); _local26 = ((_arg1._-CC * ((-(this._-9A) * this._-6D) - this._-Ad)) * this._-CR.y); _local2._-I0.x = (_local2._-I0.x + (_local2._-3R * _local23)); _local2._-I0.y = (_local2._-I0.y + (_local2._-3R * _local24)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2._-FP * ((_local5 * _local24) - (_local6 * _local23)))); _local3._-I0.x = (_local3._-I0.x + (_local3._-3R * _local25)); _local3._-I0.y = (_local3._-I0.y + (_local3._-3R * _local26)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3._-FP * ((_local8 * _local26) - (_local9 * _local25)))); } else { this._-6D = 0; this._-21 = 0; this._-Ad = 0; }; } override public function GetReactionTorque():Number{ return (0); } public function var ():Number{ return (this._-9A); } override public function SolveVelocityConstraints(_arg1:_-2D):void{ var _local4:_-HS; var _local8:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local2:_-2b = _-m; var _local3:_-2b = _-9s; _local4 = _local2.m_xf.R; var _local5:Number = (this._-4x.x - _local2.m_sweep.localCenter.x); var _local6:Number = (this._-4x.y - _local2.m_sweep.localCenter.y); var _local7:Number = ((_local4._-7f.x * _local5) + (_local4._-IO.x * _local6)); _local6 = ((_local4._-7f.y * _local5) + (_local4._-IO.y * _local6)); _local5 = _local7; _local4 = _local3.m_xf.R; _local8 = (this._-JM.x - _local3.m_sweep.localCenter.x); var _local9:Number = (this._-JM.y - _local3.m_sweep.localCenter.y); _local7 = ((_local4._-7f.x * _local8) + (_local4._-IO.x * _local9)); _local9 = ((_local4._-7f.y * _local8) + (_local4._-IO.y * _local9)); _local8 = _local7; if (this._-Hw == _-D-){ _local10 = (_local2._-I0.x + (-(_local2.m_angularVelocity) * _local6)); _local11 = (_local2._-I0.y + (_local2.m_angularVelocity * _local5)); _local12 = (_local3._-I0.x + (-(_local3.m_angularVelocity) * _local9)); _local13 = (_local3._-I0.y + (_local3.m_angularVelocity * _local8)); _local18 = (-(((this._-Ek.x * _local10) + (this._-Ek.y * _local11))) - (this._-9A * ((this._-CR.x * _local12) + (this._-CR.y * _local13)))); _local19 = ((-(_arg1._-Hk) * this._-Cd) * _local18); _local20 = this._-6D; this._-6D = _-8Q._-Hi(0, (this._-6D + _local19)); _local19 = (this._-6D - _local20); _local14 = ((-(_arg1._-CC) * _local19) * this._-Ek.x); _local15 = ((-(_arg1._-CC) * _local19) * this._-Ek.y); _local16 = (((-(_arg1._-CC) * this._-9A) * _local19) * this._-CR.x); _local17 = (((-(_arg1._-CC) * this._-9A) * _local19) * this._-CR.y); _local2._-I0.x = (_local2._-I0.x + (_local2._-3R * _local14)); _local2._-I0.y = (_local2._-I0.y + (_local2._-3R * _local15)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2._-FP * ((_local5 * _local15) - (_local6 * _local14)))); _local3._-I0.x = (_local3._-I0.x + (_local3._-3R * _local16)); _local3._-I0.y = (_local3._-I0.y + (_local3._-3R * _local17)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3._-FP * ((_local8 * _local17) - (_local9 * _local16)))); }; if (this._-7o == _-D-){ _local10 = (_local2._-I0.x + (-(_local2.m_angularVelocity) * _local6)); _local11 = (_local2._-I0.y + (_local2.m_angularVelocity * _local5)); _local18 = -(((this._-Ek.x * _local10) + (this._-Ek.y * _local11))); _local19 = ((-(_arg1._-Hk) * this._-EJ) * _local18); _local20 = this._-21; this._-21 = _-8Q._-Hi(0, (this._-21 + _local19)); _local19 = (this._-21 - _local20); _local14 = ((-(_arg1._-CC) * _local19) * this._-Ek.x); _local15 = ((-(_arg1._-CC) * _local19) * this._-Ek.y); _local2._-I0.x = (_local2._-I0.x + (_local2._-3R * _local14)); _local2._-I0.y = (_local2._-I0.y + (_local2._-3R * _local15)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2._-FP * ((_local5 * _local15) - (_local6 * _local14)))); }; if (this._-GY == _-D-){ _local12 = (_local3._-I0.x + (-(_local3.m_angularVelocity) * _local9)); _local13 = (_local3._-I0.y + (_local3.m_angularVelocity * _local8)); _local18 = -(((this._-CR.x * _local12) + (this._-CR.y * _local13))); _local19 = ((-(_arg1._-Hk) * this._-AE) * _local18); _local20 = this._-Ad; this._-Ad = _-8Q._-Hi(0, (this._-Ad + _local19)); _local19 = (this._-Ad - _local20); _local16 = ((-(_arg1._-CC) * _local19) * this._-CR.x); _local17 = ((-(_arg1._-CC) * _local19) * this._-CR.y); _local3._-I0.x = (_local3._-I0.x + (_local3._-3R * _local16)); _local3._-I0.y = (_local3._-I0.y + (_local3._-3R * _local17)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3._-FP * ((_local8 * _local17) - (_local9 * _local16)))); }; } public function _-5n():Number{ var _local1:_-7Q = _-m.GetWorldPoint(this._-4x); var _local2:Number = (this._-Gi.m_xf.position.x + this._-J8.x); var _local3:Number = (this._-Gi.m_xf.position.y + this._-J8.y); var _local4:Number = (_local1.x - _local2); var _local5:Number = (_local1.y - _local3); return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5)))); } public function _-DE():Number{ var _local1:_-7Q = _-9s.GetWorldPoint(this._-JM); var _local2:Number = (this._-Gi.m_xf.position.x + this._-22.x); var _local3:Number = (this._-Gi.m_xf.position.y + this._-22.y); var _local4:Number = (_local1.x - _local2); var _local5:Number = (_local1.y - _local3); return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5)))); } public function _-7u():_-7Q{ var _local1:_-7Q = this._-Gi.m_xf.position.Copy(); _local1.Add(this._-J8); return (_local1); } } }//package _-4g
Section 11
//_-FY (_-4g._-FY) package _-4g { import _-BU.*; import _-80.*; public class _-FY extends _-Gz { public var _-6d:Number; public var _-n:Number; public var _-CT:Number; public var _-IW:_-7Q; public var _-B5:_-7Q; public var each:_-7Q; public var _-5W:_-7Q; public var _-7c:Number; public var _-Lm:Number; public function _-FY(){ this. each = new _-7Q(); this._-5W = new _-7Q(); this._-IW = new _-7Q(); this._-B5 = new _-7Q(); super(); type = _-8p._-8i; this. each.Set(-1, 1); this._-5W.Set(1, 1); this._-IW.Set(-1, 0); this._-B5.Set(1, 0); this._-CT = 0; this._-6d = 0; this._-Lm = 0; this._-n = 0; this._-7c = 1; _-49 = true; } public function _-Ku(_arg1:_-2b, _arg2:_-2b, _arg3:_-7Q, _arg4:_-7Q, _arg5:_-7Q, _arg6:_-7Q, _arg7:Number):void{ _-LL = _arg1; _-6h = _arg2; this. each._-3g(_arg3); this._-5W._-3g(_arg4); this._-IW = _-LL.GetLocalPoint(_arg5); this._-B5 = _-6h.GetLocalPoint(_arg6); var _local8:Number = (_arg5.x - _arg3.x); var _local9:Number = (_arg5.y - _arg3.y); this._-CT = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); var _local10:Number = (_arg6.x - _arg4.x); var _local11:Number = (_arg6.y - _arg4.y); this._-Lm = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); this._-7c = _arg7; var _local12:Number = (this._-CT + (this._-7c * this._-Lm)); this._-6d = (_local12 - (this._-7c * _-F5._-0b)); this._-n = ((_local12 - _-F5._-0b) / this._-7c); } } }//package _-4g
Section 12
//_-Gz (_-4g._-Gz) package _-4g { import _-80.*; public class _-Gz { public var _-6h:_-2b; public var type:int; public var userData; public var _-49:Boolean; public var _-LL:_-2b; public function _-Gz(){ this.type = _-8p._-IP; this.userData = null; this._-LL = null; this._-6h = null; this._-49 = false; } } }//package _-4g
Section 13
//_-I1 (_-4g._-I1) package _-4g { import _-BU.*; import _-80.*; public class _-I1 extends _-Gz { public var _-3s:Number; public var class:Boolean; public var _-F6:Number; public var _-FN:Number; public var _-IW:_-7Q; public var _-B5:_-7Q; public var _-6Y:Boolean; public var _-EG:Number; public var _-0G:Number; public function _-I1(){ this._-IW = new _-7Q(); this._-B5 = new _-7Q(); super(); type = _-8p.e_revoluteJoint; this._-IW.Set(0, 0); this._-B5.Set(0, 0); this._-F6 = 0; this._-EG = 0; this._-3s = 0; this._-0G = 0; this._-FN = 0; this._-6Y = false; this.class = false; } public function _-Ku(_arg1:_-2b, _arg2:_-2b, _arg3:_-7Q):void{ _-LL = _arg1; _-6h = _arg2; this._-IW = _-LL.GetLocalPoint(_arg3); this._-B5 = _-6h.GetLocalPoint(_arg3); this._-F6 = (_-6h.GetAngle() - _-LL.GetAngle()); } } }//package _-4g
Section 14
//_-IA (_-4g._-IA) package _-4g { import _-BU.*; import _-L9.*; import _-80.*; public class _-IA extends _-8p { public var _-0V:_-2b; public var _-J8:_-7Q; public var _-22:_-7Q; public var _-4x:_-7Q; public var _-JM:_-7Q; public var _-9A:Number; public var _-6F:_-DD; public var _-6D:Number; public var m_mass:Number; public var _-KZ:_-Bm; public var _-4A:_-2b; public var _-0u:_-DD; public var _-7K:_-Bm; public var _-Ly:Number; public var _-Fr:_-BJ; public function _-IA(_arg1:_-Ke){ var _local4:Number; var _local5:Number; this._-J8 = new _-7Q(); this._-22 = new _-7Q(); this._-4x = new _-7Q(); this._-JM = new _-7Q(); this._-Fr = new _-BJ(); super(_arg1); var _local2:int = _arg1._-Kh.m_type; var _local3:int = _arg1._-D.m_type; this._-0u = null; this._-7K = null; this._-6F = null; this._-KZ = null; this._-4A = _arg1._-Kh._-m; _-m = _arg1._-Kh._-9s; if (_local2 == _-8p.e_revoluteJoint){ this._-0u = (_arg1._-Kh as _-DD); this._-J8._-3g(this._-0u._-4x); this._-4x._-3g(this._-0u._-JM); _local4 = this._-0u._-0g(); } else { this._-7K = (_arg1._-Kh as _-Bm); this._-J8._-3g(this._-7K._-4x); this._-4x._-3g(this._-7K._-JM); _local4 = this._-7K._-Jj(); }; this._-0V = _arg1._-D._-m; _-9s = _arg1._-D._-9s; if (_local3 == _-8p.e_revoluteJoint){ this._-6F = (_arg1._-D as _-DD); this._-22._-3g(this._-6F._-4x); this._-JM._-3g(this._-6F._-JM); _local5 = this._-6F._-0g(); } else { this._-KZ = (_arg1._-D as _-Bm); this._-22._-3g(this._-KZ._-4x); this._-JM._-3g(this._-KZ._-JM); _local5 = this._-KZ._-Jj(); }; this._-9A = _arg1._-7c; this._-Ly = (_local4 + (this._-9A * _local5)); this._-6D = 0; } override public function GetAnchor1():_-7Q{ return (_-m.GetWorldPoint(this._-4x)); } override public function GetAnchor2():_-7Q{ return (_-9s.GetWorldPoint(this._-JM)); } override public function InitVelocityConstraints(_arg1:_-2D):void{ var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:_-HS; var _local11:_-7Q; var _local12:Number; var _local13:Number; var _local15:Number; var _local2:_-2b = this._-4A; var _local3:_-2b = this._-0V; var _local4:_-2b = _-m; var _local5:_-2b = _-9s; var _local14:Number = 0; this._-Fr._-Cv(); if (this._-0u){ this._-Fr._-LC = -1; _local14 = (_local14 + _local4._-FP); } else { _local10 = _local2.m_xf.R; _local11 = this._-7K._-54; _local6 = ((_local10._-7f.x * _local11.x) + (_local10._-IO.x * _local11.y)); _local7 = ((_local10._-7f.y * _local11.x) + (_local10._-IO.y * _local11.y)); _local10 = _local4.m_xf.R; _local8 = (this._-4x.x - _local4.m_sweep.localCenter.x); _local9 = (this._-4x.y - _local4.m_sweep.localCenter.y); _local13 = ((_local10._-7f.x * _local8) + (_local10._-IO.x * _local9)); _local9 = ((_local10._-7f.y * _local8) + (_local10._-IO.y * _local9)); _local8 = _local13; _local12 = ((_local8 * _local7) - (_local9 * _local6)); this._-Fr._-Cm.Set(-(_local6), -(_local7)); this._-Fr._-LC = -(_local12); _local14 = (_local14 + (_local4._-3R + ((_local4._-FP * _local12) * _local12))); }; if (this._-6F){ this._-Fr._-2c = -(this._-9A); _local14 = (_local14 + ((this._-9A * this._-9A) * _local5._-FP)); } else { _local10 = _local3.m_xf.R; _local11 = this._-KZ._-54; _local6 = ((_local10._-7f.x * _local11.x) + (_local10._-IO.x * _local11.y)); _local7 = ((_local10._-7f.y * _local11.x) + (_local10._-IO.y * _local11.y)); _local10 = _local5.m_xf.R; _local8 = (this._-JM.x - _local5.m_sweep.localCenter.x); _local9 = (this._-JM.y - _local5.m_sweep.localCenter.y); _local13 = ((_local10._-7f.x * _local8) + (_local10._-IO.x * _local9)); _local9 = ((_local10._-7f.y * _local8) + (_local10._-IO.y * _local9)); _local8 = _local13; _local12 = ((_local8 * _local7) - (_local9 * _local6)); this._-Fr.default.Set((-(this._-9A) * _local6), (-(this._-9A) * _local7)); this._-Fr._-2c = (-(this._-9A) * _local12); _local14 = (_local14 + ((this._-9A * this._-9A) * (_local5._-3R + ((_local5._-FP * _local12) * _local12)))); }; this.m_mass = (1 / _local14); if (_arg1._-29){ _local15 = (_arg1._-CC * this._-6D); _local4._-I0.x = (_local4._-I0.x + ((_local4._-3R * _local15) * this._-Fr._-Cm.x)); _local4._-I0.y = (_local4._-I0.y + ((_local4._-3R * _local15) * this._-Fr._-Cm.y)); _local4.m_angularVelocity = (_local4.m_angularVelocity + ((_local4._-FP * _local15) * this._-Fr._-LC)); _local5._-I0.x = (_local5._-I0.x + ((_local5._-3R * _local15) * this._-Fr.default.x)); _local5._-I0.y = (_local5._-I0.y + ((_local5._-3R * _local15) * this._-Fr.default.y)); _local5.m_angularVelocity = (_local5.m_angularVelocity + ((_local5._-FP * _local15) * this._-Fr._-2c)); } else { this._-6D = 0; }; } override public function GetReactionTorque():Number{ var _local1:_-HS = _-9s.m_xf.R; var _local2:Number = (this._-4x.x - _-9s.m_sweep.localCenter.x); var _local3:Number = (this._-4x.y - _-9s.m_sweep.localCenter.y); var _local4:Number = ((_local1._-7f.x * _local2) + (_local1._-IO.x * _local3)); _local3 = ((_local1._-7f.y * _local2) + (_local1._-IO.y * _local3)); _local2 = _local4; _local4 = ((this._-6D * this._-Fr._-2c) - ((_local2 * (this._-6D * this._-Fr.default.y)) - (_local3 * (this._-6D * this._-Fr.default.x)))); return (_local4); } override public function GetReactionForce():_-7Q{ var _local1:_-7Q = new _-7Q((this._-6D * this._-Fr.default.x), (this._-6D * this._-Fr.default.y)); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local4:Number; var _local5:Number; var _local1:Number = 0; var _local2:_-2b = _-m; var _local3:_-2b = _-9s; if (this._-0u){ _local4 = this._-0u._-0g(); } else { _local4 = this._-7K._-Jj(); }; if (this._-6F){ _local5 = this._-6F._-0g(); } else { _local5 = this._-KZ._-Jj(); }; var _local6:Number = (this._-Ly - (_local4 + (this._-9A * _local5))); var _local7:Number = (-(this.m_mass) * _local6); _local2.m_sweep.c.x = (_local2.m_sweep.c.x + ((_local2._-3R * _local7) * this._-Fr._-Cm.x)); _local2.m_sweep.c.y = (_local2.m_sweep.c.y + ((_local2._-3R * _local7) * this._-Fr._-Cm.y)); _local2.m_sweep.a = (_local2.m_sweep.a + ((_local2._-FP * _local7) * this._-Fr._-LC)); _local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local3._-3R * _local7) * this._-Fr.default.x)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local3._-3R * _local7) * this._-Fr.default.y)); _local3.m_sweep.a = (_local3.m_sweep.a + ((_local3._-FP * _local7) * this._-Fr._-2c)); _local2._-Jp(); _local3._-Jp(); return ((_local1 < _-Cj._-EK)); } public function var ():Number{ return (this._-9A); } override public function SolveVelocityConstraints(_arg1:_-2D):void{ var _local2:_-2b = _-m; var _local3:_-2b = _-9s; var _local4:Number = this._-Fr._-H8(_local2._-I0, _local2.m_angularVelocity, _local3._-I0, _local3.m_angularVelocity); var _local5:Number = ((-(_arg1._-Hk) * this.m_mass) * _local4); this._-6D = (this._-6D + _local5); var _local6:Number = (_arg1._-CC * _local5); _local2._-I0.x = (_local2._-I0.x + ((_local2._-3R * _local6) * this._-Fr._-Cm.x)); _local2._-I0.y = (_local2._-I0.y + ((_local2._-3R * _local6) * this._-Fr._-Cm.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local2._-FP * _local6) * this._-Fr._-LC)); _local3._-I0.x = (_local3._-I0.x + ((_local3._-3R * _local6) * this._-Fr.default.x)); _local3._-I0.y = (_local3._-I0.y + ((_local3._-3R * _local6) * this._-Fr.default.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3._-FP * _local6) * this._-Fr._-2c)); } } }//package _-4g
Section 15
//_-Ke (_-4g._-Ke) package _-4g { public class _-Ke extends _-Gz { public var _-Kh:_-8p; public var _-D:_-8p; public var _-7c:Number; public function _-Ke(){ type = _-8p._-GR; this._-Kh = null; this._-D = null; this._-7c = 1; } } }//package _-4g
Section 16
//_-Kn (_-4g._-Kn) package _-4g { import _-80.*; public class _-Kn { public var _-99:_-2b; public var next:_-Kn; public var _-BD:_-Kn; public var _-EM:_-8p; } }//package _-4g
Section 17
//_-4V (_-5m._-4V) package _-5m { import flash.display.*; public class _-4V { public static const _-55:String = "DrawingShapes.vertical"; public static const else:String = "DrawingShapes.horizontal"; public function _-4V(){ throw (new ArgumentError("The DrawingShapes Class cannot be instanicated.")); } public static function _-Bv(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:uint, _arg5:Number, _arg6:Number, _arg7:Number=0):void{ var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; if (_arg4 <= 2){ throw (ArgumentError("DrawingShapes.drawStar() - parameter 'points' needs to be atleast 3")); }; if (_arg4 > 2){ _local8 = ((Math.PI * 2) / _arg4); _local9 = (_local8 / 2); _local10 = ((_arg7 / 180) * Math.PI); _arg1.moveTo((_arg2 + (Math.cos(_local10) * _arg6)), (_arg3 - (Math.sin(_local10) * _arg6))); _local11 = 1; while (_local11 <= _arg4) { _local12 = (_arg2 + (Math.cos(((_local10 + (_local8 * _local11)) - _local9)) * _arg5)); _local13 = (_arg3 - (Math.sin(((_local10 + (_local8 * _local11)) - _local9)) * _arg5)); _arg1.lineTo(_local12, _local13); _local12 = (_arg2 + (Math.cos((_local10 + (_local8 * _local11))) * _arg6)); _local13 = (_arg3 - (Math.sin((_local10 + (_local8 * _local11))) * _arg6)); _arg1.lineTo(_local12, _local13); _local11++; }; }; } private static function ceil(_arg1:Number):Number{ return (((_arg1 % 1)) ? (int(_arg1) + 1) : _arg1); } public static function _-It(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number=0, _arg7:Number=0):void{ var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:int; if (arguments.length < 5){ throw (new ArgumentError("DrawingShapes.drawArc() - too few parameters, need atleast 5.")); }; if (_arg6 == 0){ _arg6 = 0; }; if (_arg7 == 0){ _arg7 = _arg4; }; if (_-4V.abs(_arg5) > 360){ _arg5 = 360; }; _local13 = _-4V.ceil((_-4V.abs(_arg5) / 45)); _local9 = (_arg5 / _local13); _local10 = (-((_local9 / 180)) * Math.PI); _local11 = (-((_arg6 / 180)) * Math.PI); _local14 = (_arg2 - (Math.cos(_local11) * _arg4)); _local15 = (_arg3 - (Math.sin(_local11) * _arg7)); if (_local13 > 0){ _arg1.moveTo(_arg2, _arg3); _local20 = 0; while (_local20 < _local13) { _local11 = (_local11 + _local10); _local12 = (_local11 - (_local10 / 2)); _local16 = (_local14 + (Math.cos(_local11) * _arg4)); _local17 = (_local15 + (Math.sin(_local11) * _arg7)); _local18 = (_local14 + (Math.cos(_local12) * (_arg4 / Math.cos((_local10 / 2))))); _local19 = (_local15 + (Math.sin(_local12) * (_arg7 / Math.cos((_local10 / 2))))); _arg1.curveTo(_local18, _local19, _local16, _local17); _local20++; }; }; } public static function _-LM(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number=0, _arg7:Number=0):void{ var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:int; if (_arg7 == 0){ _arg7 = _arg4; }; _arg1.moveTo(_arg2, _arg3); if (_arg7 == 0){ _arg7 = _arg4; }; if (_-4V.abs(_arg5) > 360){ _arg5 = 360; }; _local12 = _-4V.ceil((_-4V.abs(_arg5) / 45)); _local8 = (_arg5 / _local12); _local9 = (-((_local8 / 180)) * Math.PI); _local10 = (-((_arg6 / 180)) * Math.PI); if (_local12 > 0){ _local13 = (_arg2 + (Math.cos(((_arg6 / 180) * Math.PI)) * _arg4)); _local14 = (_arg3 + (Math.sin(((-(_arg6) / 180) * Math.PI)) * _arg7)); _arg1.lineTo(_local13, _local14); _local19 = 0; while (_local19 < _local12) { _local10 = (_local10 + _local9); _local11 = (_local10 - (_local9 / 2)); _local15 = (_arg2 + (Math.cos(_local10) * _arg4)); _local16 = (_arg3 + (Math.sin(_local10) * _arg7)); _local17 = (_arg2 + (Math.cos(_local11) * (_arg4 / Math.cos((_local9 / 2))))); _local18 = (_arg3 + (Math.sin(_local11) * (_arg7 / Math.cos((_local9 / 2))))); _arg1.curveTo(_local17, _local18, _local15, _local16); _local19++; }; _arg1.lineTo(_arg2, _arg3); }; } private static function abs(_arg1:Number):Number{ return (((_arg1 < 0)) ? -(_arg1) : _arg1); } public static function _-B-(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:uint, _arg5:Number=80, _arg6:Number=4, _arg7:Number=0, _arg8:Number=2, _arg9:Number=0):void{ var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; if (_arg4 <= 2){ throw (ArgumentError("DrawingShapes.drawGear() - parameter 'sides' needs to be atleast 3")); }; if (_arg4 > 2){ _local10 = ((Math.PI * 2) / _arg4); _local11 = (_local10 / 4); _local12 = ((_arg7 / 180) * Math.PI); _arg1.moveTo((_arg2 + (Math.cos(_local12) * _arg6)), (_arg3 - (Math.sin(_local12) * _arg6))); _local13 = 1; while (_local13 <= _arg4) { _local14 = (_arg2 + (Math.cos(((_local12 + (_local10 * _local13)) - (_local11 * 3))) * _arg5)); _local15 = (_arg3 - (Math.sin(((_local12 + (_local10 * _local13)) - (_local11 * 3))) * _arg5)); _arg1.lineTo(_local14, _local15); _local14 = (_arg2 + (Math.cos(((_local12 + (_local10 * _local13)) - (_local11 * 2))) * _arg5)); _local15 = (_arg3 - (Math.sin(((_local12 + (_local10 * _local13)) - (_local11 * 2))) * _arg5)); _arg1.lineTo(_local14, _local15); _local14 = (_arg2 + (Math.cos(((_local12 + (_local10 * _local13)) - _local11)) * _arg6)); _local15 = (_arg3 - (Math.sin(((_local12 + (_local10 * _local13)) - _local11)) * _arg6)); _arg1.lineTo(_local14, _local15); _local14 = (_arg2 + (Math.cos((_local12 + (_local10 * _local13))) * _arg6)); _local15 = (_arg3 - (Math.sin((_local12 + (_local10 * _local13))) * _arg6)); _arg1.lineTo(_local14, _local15); _local13++; }; if (_arg8 > 2){ _local10 = ((Math.PI * 2) / _arg8); _arg1.moveTo((_arg2 + (Math.cos(_local12) * _arg9)), (_arg3 - (Math.sin(_local12) * _arg9))); _local13 = 1; while (_local13 <= _arg8) { _local14 = (_arg2 + (Math.cos((_local12 + (_local10 * _local13))) * _arg9)); _local15 = (_arg3 - (Math.sin((_local12 + (_local10 * _local13))) * _arg9)); _arg1.lineTo(_local14, _local15); _local13++; }; }; }; } public static function _-Bh(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:uint, _arg5:Number, _arg6:Number=0):void{ var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; if (_arg4 <= 2){ throw (ArgumentError("DrawingShapes.drawPolygon() - parameter 'sides' needs to be atleast 3")); }; if (_arg4 > 2){ _local7 = ((Math.PI * 2) / _arg4); _local8 = ((_arg6 / 180) * Math.PI); _arg1.moveTo((_arg2 + (Math.cos(_local8) * _arg5)), (_arg3 - (Math.sin(_local8) * _arg5))); _local9 = 1; while (_local9 <= _arg4) { _local10 = (_arg2 + (Math.cos((_local8 + (_local7 * _local9))) * _arg5)); _local11 = (_arg3 - (Math.sin((_local8 + (_local7 * _local9))) * _arg5)); _arg1.lineTo(_local10, _local11); _local9++; }; }; } public static function _-5u(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String="DrawingShapes.horizontal"):void{ _arg1.moveTo(_arg2, _arg3); switch (_arg5){ case _-4V. else: _arg1.lineTo(_arg4, _arg3); break; case _-4V._-55: _arg1.moveTo(_arg2, _arg3); _arg1.lineTo(_arg2, _arg4); break; }; } public static function _-2R(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:uint, _arg5:Number, _arg6:Number, _arg7:Number=0):void{ var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; if (_arg4 <= 2){ throw (ArgumentError("DrawingShapes.drawBurst() - parameter 'sides' needs to be atleast 3")); }; if (_arg4 > 2){ _local8 = ((Math.PI * 2) / _arg4); _local9 = (_local8 / 2); _local10 = (_local8 / 4); _local11 = ((_arg7 / 180) * Math.PI); _arg1.moveTo((_arg2 + (Math.cos(_local11) * _arg6)), (_arg3 - (Math.sin(_local11) * _arg6))); _local12 = 1; while (_local12 <= _arg4) { _local15 = (_arg2 + (Math.cos(((_local11 + (_local8 * _local12)) - (_local10 * 3))) * (_arg5 / Math.cos(_local10)))); _local16 = (_arg3 - (Math.sin(((_local11 + (_local8 * _local12)) - (_local10 * 3))) * (_arg5 / Math.cos(_local10)))); _local13 = (_arg2 + (Math.cos(((_local11 + (_local8 * _local12)) - _local9)) * _arg5)); _local14 = (_arg3 - (Math.sin(((_local11 + (_local8 * _local12)) - _local9)) * _arg5)); _arg1.curveTo(_local15, _local16, _local13, _local14); _local15 = (_arg2 + (Math.cos(((_local11 + (_local8 * _local12)) - _local10)) * (_arg5 / Math.cos(_local10)))); _local16 = (_arg3 - (Math.sin(((_local11 + (_local8 * _local12)) - _local10)) * (_arg5 / Math.cos(_local10)))); _local13 = (_arg2 + (Math.cos((_local11 + (_local8 * _local12))) * _arg6)); _local14 = (_arg3 - (Math.sin((_local11 + (_local8 * _local12))) * _arg6)); _arg1.curveTo(_local15, _local16, _local13, _local14); _local12++; }; }; } public static function _-9Y(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number=5, _arg7:Number=5):void{ var _local8:Number = (_arg4 - _arg2); var _local9:Number = (_arg5 - _arg3); var _local10:Number = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); var _local11:Number = (_local10 / (_arg6 + _arg7)); var _local12:Number = (_arg6 / (_arg6 + _arg7)); var _local13:Number = ((_local8 / _local11) * _local12); var _local14:Number = ((_local8 / _local11) - _local13); var _local15:Number = ((_local9 / _local11) * _local12); var _local16:Number = ((_local9 / _local11) - _local15); _arg1.moveTo(_arg2, _arg3); while (_local10 > 0) { _arg2 = (_arg2 + _local13); _arg3 = (_arg3 + _local15); _local10 = (_local10 - _arg6); if (_local10 < 0){ _arg2 = _arg4; _arg3 = _arg5; }; _arg1.lineTo(_arg2, _arg3); _arg2 = (_arg2 + _local14); _arg3 = (_arg3 + _local16); _arg1.moveTo(_arg2, _arg3); _local10 = (_local10 - _arg7); }; _arg1.moveTo(_arg4, _arg5); } } }//package _-5m
Section 18
//_-Jv (_-7r._-Jv) package _-7r { import _-BU.*; import flash.display.*; import flash.events.*; public class _-Jv extends Sprite { protected var create_time:Number; protected var _-Fz:_-7Q; protected var radius:_-7Q; protected var _-HK:int; public function _-Jv(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int){ this._-Fz = new _-7Q(_arg1, _arg2); this.radius = new _-7Q(_arg3, _arg4); this.create_time = new Date().getTime(); this._-HK = _arg5; this.x = _arg1; this.y = _arg2; this.cacheAsBitmap = true; this.addEventListener(Event.ENTER_FRAME, this.update); } protected function update(_arg1:Event):void{ var _local2:Number = new Date().getTime(); var _local3:Number = ((_local2 - this.create_time) / this._-HK); var _local4:Number = (this.radius.x + ((this.radius.y - this.radius.x) * _local3)); this.x = (this._-Fz.x - _local4); this.y = (this._-Fz.y - _local4); this.graphics.clear(); this.graphics.lineStyle(8, 0); this.graphics.drawCircle(_local4, _local4, _local4); } } }//package _-7r
Section 19
//_-2b (_-80._-2b) package _-80 { import _-BU.*; import _-Cb.*; import _-KY.*; import _-4g.*; public class _-2b { public var _-CE:_-2b; public var m_xf:_-2w; public var _-5v:_-L1; public var m_angularVelocity:Number; public var _-Jm:_-EB; public var _-6D:_-7Q; public var m_mass:Number; public var m_sweep:_-KO; public var _-Cr:Number; public var m_userData; public var _-1i:uint; public var m_world:_-2r; public var _-6I:_-2b; public var _-3R:Number; public var m_type:int; public var _-9g:Number; public var _-CY:int; public var _-Jh:Number; public var _-FP:Number; public var _-I0:_-7Q; public var _-R:Number; public var _-GH:_-Kn; public var _-4T:Number; public static var _-Bb:uint = 64; public static var _-Dh:uint = 2; public static var _-LI:uint = 3; public static var _-G4:uint = 8; private static var _-FS:_-6O = new _-6O(); public static var _-6V:uint = 32; public static var _-1t:uint = 1; public static var _-0B:uint = 4; public static var _-1l:uint = 16; private static var _-6k:_-2w = new _-2w(); public static var _-Ag:uint = 2; public function _-2b(_arg1:_-7D, _arg2:_-2r){ this.m_xf = new _-2w(); this.m_sweep = new _-KO(); this._-I0 = new _-7Q(); this._-6D = new _-7Q(); super(); this._-1i = 0; if (_arg1._-BB){ this._-1i = (this._-1i | _-6V); }; if (_arg1._-t){ this._-1i = (this._-1i | _-Bb); }; if (_arg1._-Ls){ this._-1i = (this._-1i | _-1l); }; if (_arg1.super){ this._-1i = (this._-1i | _-G4); }; this.m_world = _arg2; this.m_xf.position._-3g(_arg1.position); this.m_xf.R.Set(_arg1.angle); this.m_sweep.localCenter._-3g(_arg1._-2v.center); this.m_sweep._-69 = 1; this.m_sweep.a0 = (this.m_sweep.a = _arg1.angle); var _local3:_-HS = this.m_xf.R; var _local4:_-7Q = this.m_sweep.localCenter; this.m_sweep.c.x = ((_local3._-7f.x * _local4.x) + (_local3._-IO.x * _local4.y)); this.m_sweep.c.y = ((_local3._-7f.y * _local4.x) + (_local3._-IO.y * _local4.y)); this.m_sweep.c.x = (this.m_sweep.c.x + this.m_xf.position.x); this.m_sweep.c.y = (this.m_sweep.c.y + this.m_xf.position.y); this.m_sweep.c0._-3g(this.m_sweep.c); this._-GH = null; this._-5v = null; this._-6I = null; this._-CE = null; this._-9g = _arg1._-8a; this._-Jh = _arg1._-Fn; this._-6D.Set(0, 0); this._-Cr = 0; this._-I0._-Cv(); this.m_angularVelocity = 0; this._-R = 0; this._-3R = 0; this._-4T = 0; this._-FP = 0; this.m_mass = _arg1._-2v._-E2; if (this.m_mass > 0){ this._-3R = (1 / this.m_mass); }; if ((this._-1i & _-2b._-Bb) == 0){ this._-4T = _arg1._-2v._-4S; }; if (this._-4T > 0){ this._-FP = (1 / this._-4T); }; if ((((this._-3R == 0)) && ((this._-FP == 0)))){ this.m_type = _-1t; } else { this.m_type = _-Ag; }; this.m_userData = _arg1.userData; this._-Jm = null; this._-CY = 0; } public function _-0M(_arg1:_-7Q):_-7Q{ return (new _-7Q((this._-I0.x + (this.m_angularVelocity * (_arg1.y - this.m_sweep.c.y))), (this._-I0.x - (this.m_angularVelocity * (_arg1.x - this.m_sweep.c.x))))); } public function _-3d(_arg1:_-7Q):void{ this._-I0._-3g(_arg1); } public function WakeUp():void{ this._-1i = (this._-1i & ~(_-G4)); this._-R = 0; } public function _-I7():_-7Q{ return (this.m_sweep.localCenter); } public function _-E5(_arg1:Number):void{ if (this.IsSleeping()){ this.WakeUp(); }; this._-Cr = (this._-Cr + _arg1); } public function _-Jo():Boolean{ return (((this._-1i & _-Dh) == _-Dh)); } public function _-JD():Boolean{ return ((this.m_type == _-Ag)); } public function _-8d():_-7Q{ return (this._-I0); } public function _-Jp():void{ this.m_xf.R.Set(this.m_sweep.a); var _local1:_-HS = this.m_xf.R; var _local2:_-7Q = this.m_sweep.localCenter; this.m_xf.position.x = (this.m_sweep.c.x - ((_local1._-7f.x * _local2.x) + (_local1._-IO.x * _local2.y))); this.m_xf.position.y = (this.m_sweep.c.y - ((_local1._-7f.y * _local2.x) + (_local1._-IO.y * _local2.y))); } public function _-AM():Number{ return (this._-4T); } public function IsSleeping():Boolean{ return (((this._-1i & _-G4) == _-G4)); } public function _-4u():void{ var _local1:_-EB; if (this.m_world._-4o == true){ return; }; this.m_mass = 0; this._-3R = 0; this._-4T = 0; this._-FP = 0; var _local2:Number = 0; var _local3:Number = 0; var _local4:_-6O = _-FS; _local1 = this._-Jm; while (_local1) { _local1.ComputeMass(_local4); this.m_mass = (this.m_mass + _local4._-E2); _local2 = (_local2 + (_local4._-E2 * _local4.center.x)); _local3 = (_local3 + (_local4._-E2 * _local4.center.y)); this._-4T = (this._-4T + _local4._-4S); _local1 = _local1._-CE; }; if (this.m_mass > 0){ this._-3R = (1 / this.m_mass); _local2 = (_local2 * this._-3R); _local3 = (_local3 * this._-3R); }; if ((((this._-4T > 0)) && (((this._-1i & _-Bb) == 0)))){ this._-4T = (this._-4T - (this.m_mass * ((_local2 * _local2) + (_local3 * _local3)))); this._-FP = (1 / this._-4T); } else { this._-4T = 0; this._-FP = 0; }; this.m_sweep.localCenter.Set(_local2, _local3); var _local5:_-HS = this.m_xf.R; var _local6:_-7Q = this.m_sweep.localCenter; this.m_sweep.c.x = ((_local5._-7f.x * _local6.x) + (_local5._-IO.x * _local6.y)); this.m_sweep.c.y = ((_local5._-7f.y * _local6.x) + (_local5._-IO.y * _local6.y)); this.m_sweep.c.x = (this.m_sweep.c.x + this.m_xf.position.x); this.m_sweep.c.y = (this.m_sweep.c.y + this.m_xf.position.y); this.m_sweep.c0._-3g(this.m_sweep.c); _local1 = this._-Jm; while (_local1) { _local1.UpdateSweepRadius(this.m_sweep.localCenter); _local1 = _local1._-CE; }; var _local7:int = this.m_type; if ((((this._-3R == 0)) && ((this._-FP == 0)))){ this.m_type = _-1t; } else { this.m_type = _-Ag; }; if (_local7 != this.m_type){ _local1 = this._-Jm; while (_local1) { _local1._-H2(this.m_world._-4Z, this.m_xf); _local1 = _local1._-CE; }; }; } public function _-Hj():void{ this._-1i = (this._-1i | _-G4); this._-R = 0; this._-I0._-Cv(); this.m_angularVelocity = 0; this._-6D._-Cv(); this._-Cr = 0; } public function _-66():_-Kn{ return (this._-GH); } public function for(_arg1:_-7Q, _arg2:Number):Boolean{ var _local3:_-EB; var _local7:Boolean; if (this.m_world._-4o == true){ return (true); }; if (this._-Jo()){ return (false); }; this.m_xf.R.Set(_arg2); this.m_xf.position._-3g(_arg1); var _local4:_-HS = this.m_xf.R; var _local5:_-7Q = this.m_sweep.localCenter; this.m_sweep.c.x = ((_local4._-7f.x * _local5.x) + (_local4._-IO.x * _local5.y)); this.m_sweep.c.y = ((_local4._-7f.y * _local5.x) + (_local4._-IO.y * _local5.y)); this.m_sweep.c.x = (this.m_sweep.c.x + this.m_xf.position.x); this.m_sweep.c.y = (this.m_sweep.c.y + this.m_xf.position.y); this.m_sweep.c0._-3g(this.m_sweep.c); this.m_sweep.a0 = (this.m_sweep.a = _arg2); var _local6:Boolean; _local3 = this._-Jm; while (_local3) { _local7 = _local3._-C0(this.m_world._-4Z, this.m_xf, this.m_xf); if (_local7 == false){ _local6 = true; break; }; _local3 = _local3._-CE; }; if (_local6 == true){ this._-1i = (this._-1i | _-Dh); this._-I0._-Cv(); this.m_angularVelocity = 0; _local3 = this._-Jm; while (_local3) { _local3._-EV(this.m_world._-4Z); _local3 = _local3._-CE; }; return (false); }; this.m_world._-4Z._-0j(); return (true); } public function GetLocalPoint(_arg1:_-7Q):_-7Q{ return (_-8Q.with(this.m_xf, _arg1)); } public function _-3x(_arg1:_-7Q, _arg2:_-7Q):void{ if (this.IsSleeping()){ this.WakeUp(); }; this._-6D.x = (this._-6D.x + _arg1.x); this._-6D.y = (this._-6D.y + _arg1.y); this._-Cr = (this._-Cr + (((_arg2.x - this.m_sweep.c.x) * _arg1.y) - ((_arg2.y - this.m_sweep.c.y) * _arg1.x))); } public function _-DU():Boolean{ var _local4:_-EB; var _local1:_-2w = _-6k; _local1.R.Set(this.m_sweep.a0); var _local2:_-HS = _local1.R; var _local3:_-7Q = this.m_sweep.localCenter; _local1.position.x = (this.m_sweep.c0.x - ((_local2._-7f.x * _local3.x) + (_local2._-IO.x * _local3.y))); _local1.position.y = (this.m_sweep.c0.y - ((_local2._-7f.y * _local3.x) + (_local2._-IO.y * _local3.y))); var _local5:Boolean; _local4 = this._-Jm; while (_local4) { _local5 = _local4._-C0(this.m_world._-4Z, _local1, this.m_xf); if (_local5 == false){ break; }; _local4 = _local4._-CE; }; if (_local5 == false){ this._-1i = (this._-1i | _-Dh); this._-I0._-Cv(); this.m_angularVelocity = 0; _local4 = this._-Jm; while (_local4) { _local4._-EV(this.m_world._-4Z); _local4 = _local4._-CE; }; return (false); }; return (true); } public function GetAngle():Number{ return (this.m_sweep.a); } public function _-3t():_-2w{ return (this.m_xf); } public function _-IZ(_arg1:_-7Q):_-7Q{ var _local2:_-HS = this.m_xf.R; var _local3:_-7Q = new _-7Q(((_local2._-7f.x * _arg1.x) + (_local2._-IO.x * _arg1.y)), ((_local2._-7f.y * _arg1.x) + (_local2._-IO.y * _arg1.y))); _local3.x = (_local3.x + this.m_xf.position.x); _local3.y = (_local3.y + this.m_xf.position.y); return (new _-7Q((this._-I0.x + (this.m_angularVelocity * (_local3.y - this.m_sweep.c.y))), (this._-I0.x - (this.m_angularVelocity * (_local3.x - this.m_sweep.c.x))))); } public function _-53():_-2b{ return (this._-CE); } public function _-H():Number{ return (this.m_mass); } public function _-DC(_arg1:_-7Q, _arg2:_-7Q):void{ if (this.IsSleeping()){ this.WakeUp(); }; this._-I0.x = (this._-I0.x + (this._-3R * _arg1.x)); this._-I0.y = (this._-I0.y + (this._-3R * _arg1.y)); this.m_angularVelocity = (this.m_angularVelocity + (this._-FP * (((_arg2.x - this.m_sweep.c.x) * _arg1.y) - ((_arg2.y - this.m_sweep.c.y) * _arg1.x)))); } public function _-JJ():Number{ return (this.m_angularVelocity); } public function _-Lw(_arg1:Number):void{ this.m_angularVelocity = _arg1; } public function _-37(_arg1:_-6O):void{ var _local2:_-EB; var _local4:_-7Q; if (this.m_world._-4o == true){ return; }; this._-3R = 0; this._-4T = 0; this._-FP = 0; this.m_mass = _arg1._-E2; if (this.m_mass > 0){ this._-3R = (1 / this.m_mass); }; if ((this._-1i & _-2b._-Bb) == 0){ this._-4T = _arg1._-4S; }; if (this._-4T > 0){ this._-FP = (1 / this._-4T); }; this.m_sweep.localCenter._-3g(_arg1.center); var _local3:_-HS = this.m_xf.R; _local4 = this.m_sweep.localCenter; this.m_sweep.c.x = ((_local3._-7f.x * _local4.x) + (_local3._-IO.x * _local4.y)); this.m_sweep.c.y = ((_local3._-7f.y * _local4.x) + (_local3._-IO.y * _local4.y)); this.m_sweep.c.x = (this.m_sweep.c.x + this.m_xf.position.x); this.m_sweep.c.y = (this.m_sweep.c.y + this.m_xf.position.y); this.m_sweep.c0._-3g(this.m_sweep.c); _local2 = this._-Jm; while (_local2) { _local2.UpdateSweepRadius(this.m_sweep.localCenter); _local2 = _local2._-CE; }; var _local5:int = this.m_type; if ((((this._-3R == 0)) && ((this._-FP == 0)))){ this.m_type = _-1t; } else { this.m_type = _-Ag; }; if (_local5 != this.m_type){ _local2 = this._-Jm; while (_local2) { _local2._-H2(this.m_world._-4Z, this.m_xf); _local2 = _local2._-CE; }; }; } public function IsStatic():Boolean{ return ((this.m_type == _-1t)); } public function _-5G(_arg1:_-7Q):_-7Q{ return (_-8Q._-08(this.m_xf.R, _arg1)); } public function _-1B():_-EB{ return (this._-Jm); } public function _-5w(_arg1:Number):void{ this.m_sweep._-5w(_arg1); this.m_sweep.c._-3g(this.m_sweep.c0); this.m_sweep.a = this.m_sweep.a0; this._-Jp(); } public function _-7t(_arg1:Boolean):void{ if (_arg1){ this._-1i = (this._-1i | _-6V); } else { this._-1i = (this._-1i & ~(_-6V)); }; } public function _-G(_arg1:_-5d):_-EB{ if (this.m_world._-4o == true){ return (null); }; var _local2:_-EB = _-EB._-1o(_arg1, this.m_world._-5O); _local2._-CE = this._-Jm; this._-Jm = _local2; this._-CY++; _local2.m_body = this; _local2._-1P(this.m_world._-4Z, this.m_xf); _local2.UpdateSweepRadius(this.m_sweep.localCenter); return (_local2); } public function _-7i(_arg1:_-2b):Boolean{ var _local2:_-Kn = this._-GH; while (_local2) { if (_local2._-99 == _arg1){ return ((_local2._-EM._-Kx == false)); }; _local2 = _local2.next; }; return (false); } public function _-AD(_arg1:_-EB):void{ if (this.m_world._-4o == true){ return; }; _arg1._-EV(this.m_world._-4Z); var _local2:_-EB = this._-Jm; var _local3:Boolean; while (_local2 != null) { if (_local2 == _arg1){ _local2 = _arg1._-CE; _local3 = true; break; }; _local2 = _local2._-CE; }; _arg1.m_body = null; _arg1._-CE = null; this._-CY--; _-EB._-2T(_arg1, this.m_world._-5O); } public function _-07(){ return (this.m_userData); } public function _-IL():Boolean{ return (((this._-1i & _-6V) == _-6V)); } public function _-M-():_-7Q{ return (this.m_sweep.c); } public function _-0Q(_arg1:Boolean):void{ if (_arg1){ this._-1i = (this._-1i | _-1l); } else { this._-1i = (this._-1i & ~(_-1l)); this.WakeUp(); }; } public function _-A8(_arg1):void{ this.m_userData = _arg1; } public function GetLocalVector(_arg1:_-7Q):_-7Q{ return (_-8Q._-X(this.m_xf.R, _arg1)); } public function GetWorldPoint(_arg1:_-7Q):_-7Q{ var _local2:_-HS = this.m_xf.R; var _local3:_-7Q = new _-7Q(((_local2._-7f.x * _arg1.x) + (_local2._-IO.x * _arg1.y)), ((_local2._-7f.y * _arg1.x) + (_local2._-IO.y * _arg1.y))); _local3.x = (_local3.x + this.m_xf.position.x); _local3.y = (_local3.y + this.m_xf.position.y); return (_local3); } public function _-D1():_-2r{ return (this.m_world); } public function _-2l():_-7Q{ return (this.m_xf.position); } } }//package _-80
Section 20
//_-2D (_-80._-2D) package _-80 { public class _-2D { public var _-29:Boolean; public var _-2H:Boolean; public var _-CC:Number; public var _-6C:int; public var _-2U:Number; public var _-Hk:Number; } }//package _-80
Section 21
//_-2r (_-80._-2r) package _-80 { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-Cb.*; import _-KY.*; import _-4g.*; public class _-2r { public var _-6l:Number; public var break:_-I2; public var _-5v:_-9W; public var _-5O; public var _-y:_-4O; public var _-6g:_-GP; public var _-4Z:_-9Z; public var _-4b:_-Lj; public var _-7A:int; public var _-4o:Boolean; public var _-5K:int; public var _-L2; public var _-73:Boolean; public var _-2M:int; public var m_groundBody:_-2b; public var _-0s:int; public var _-5F:_-7Q; public var _-CK:_-KG; public var _-8Y:_-2b; public var _-JR:_-5P; public var _-An; public var _-GH:_-8p; public var _-5V:_-7Q; public var _-Eu:_-3C; private static var _-CS:_-C = new _-C(0.5, 0.8, 0.8); public static var _-6z:Boolean; public static var _-8D:Boolean; private static var _-AL:_-C = new _-C(0.9, 0.6, 0.6); public static var _-By:Boolean; private static var _-03:_-2w = new _-2w(); public function _-2r(_arg1:_-9B, _arg2:_-7Q, _arg3:Boolean){ this._-5F = new _-7Q(); this._-Eu = new _-3C(); super(); this._-4b = null; this.break = null; this._-CK = _-KG._-7p; this._-y = null; this._-JR = null; this._-8Y = null; this._-5v = null; this._-GH = null; this._-5K = 0; this._-0s = 0; this._-7A = 0; _-By = true; _-8D = true; _-6z = true; this._-73 = _arg3; this._-5V = _arg2; this._-4o = false; this._-6l = 0; this._-Eu.m_world = this; this._-4Z = new _-9Z(_arg1, this._-Eu); var _local4:_-7D = new _-7D(); this.m_groundBody = this._-DL(_local4); } public function _-g(_arg1:_-8p):void{ var _local11:_-F5; var _local12:_-7Q; var _local13:_-7Q; var _local2:_-2b = _arg1._-m; var _local3:_-2b = _arg1._-9s; var _local4:_-2w = _local2.m_xf; var _local5:_-2w = _local3.m_xf; var _local6:_-7Q = _local4.position; var _local7:_-7Q = _local5.position; var _local8:_-7Q = _arg1.GetAnchor1(); var _local9:_-7Q = _arg1.GetAnchor2(); var _local10:_-C = _-CS; switch (_arg1.m_type){ case _-8p._-64: this._-JR._-Gc(_local8, _local9, _local10); break; case _-8p._-8i: _local11 = (_arg1 as _-F5); _local12 = _local11._-7u(); _local13 = _local11._-DN(); this._-JR._-Gc(_local12, _local8, _local10); this._-JR._-Gc(_local13, _local9, _local10); this._-JR._-Gc(_local12, _local13, _local10); break; case _-8p._-Ka: this._-JR._-Gc(_local8, _local9, _local10); break; default: if (_local2 != this.m_groundBody){ this._-JR._-Gc(_local6, _local8, _local10); }; this._-JR._-Gc(_local8, _local9, _local10); if (_local3 != this.m_groundBody){ this._-JR._-Gc(_local7, _local9, _local10); }; }; } public function case(_arg1:_-EB):void{ _arg1._-H2(this._-4Z, _arg1.m_body.m_xf); } public function _-5b(_arg1:_-5P):void{ this._-JR = _arg1; } public function _-Df(_arg1:Boolean):void{ _-6z = _arg1; } public function _-IK():int{ return (this._-4Z.set ); } public function _-3h():void{ var _local2:int; var _local3:_-2b; var _local4:_-EB; var _local5:_-8p; var _local6:_-9Z; var _local11:_-2w; var _local15:Boolean; var _local16:uint; var _local17:_-6a; var _local18:_-4w; var _local19:_-4w; var _local20:_-7Q; var _local21:_-7Q; var _local22:_-4w; var _local23:_-8P; var _local24:_-1G; var _local25:_-7Q; var _local26:_-HS; var _local27:_-7Q; var _local28:Number; if (this._-JR == null){ return; }; this._-JR._-Hx.graphics.clear(); var _local1:uint = this._-JR._-AO(); var _local7:_-7Q = new _-7Q(); var _local8:_-7Q = new _-7Q(); var _local9:_-7Q = new _-7Q(); var _local10:_-C = new _-C(0, 0, 0); var _local12:_-9B = new _-9B(); var _local13:_-9B = new _-9B(); var _local14:Array = [new _-7Q(), new _-7Q(), new _-7Q(), new _-7Q()]; if ((_local1 & _-5P._-9H)){ _local15 = ((_local1 & _-5P._-5R) == _-5P._-5R); _local3 = this._-8Y; while (_local3) { _local11 = _local3.m_xf; _local4 = _local3._-1B(); while (_local4) { if (_local3.IsStatic()){ this._-HF(_local4, _local11, new _-C(0.5, 0.9, 0.5), _local15); } else { if (_local3.IsSleeping()){ this._-HF(_local4, _local11, new _-C(0.5, 0.5, 0.9), _local15); } else { this._-HF(_local4, _local11, new _-C(0.9, 0.9, 0.9), _local15); }; }; _local4 = _local4._-CE; }; _local3 = _local3._-CE; }; }; if ((_local1 & _-5P._-DR)){ _local5 = this._-GH; while (_local5) { this._-g(_local5); _local5 = _local5._-CE; }; }; if ((_local1 & _-5P._-DB)){ _local6 = this._-4Z; _local7.Set((1 / _local6._-6r.x), (1 / _local6._-6r.y)); _local10.Set(0.9, 0.9, 0.3); _local2 = 0; while (_local2 < _-6a._-Hz) { _local16 = _local6._-Hv._-Az[_local2]; while (_local16 != _-6a._-0F) { _local17 = _local6._-Hv._-9L[_local16]; _local18 = _local6._-HC[_local17.proxyId1]; _local19 = _local6._-HC[_local17.proxyId2]; _local12._-GJ.x = (_local6._-3D._-GJ.x + (_local7.x * _local6._-Jx[0][_local18._-d[0]].value)); _local12._-GJ.y = (_local6._-3D._-GJ.y + (_local7.y * _local6._-Jx[1][_local18._-d[1]].value)); _local12._-IC.x = (_local6._-3D._-GJ.x + (_local7.x * _local6._-Jx[0][_local18._-DX[0]].value)); _local12._-IC.y = (_local6._-3D._-GJ.y + (_local7.y * _local6._-Jx[1][_local18._-DX[1]].value)); _local13._-GJ.x = (_local6._-3D._-GJ.x + (_local7.x * _local6._-Jx[0][_local19._-d[0]].value)); _local13._-GJ.y = (_local6._-3D._-GJ.y + (_local7.y * _local6._-Jx[1][_local19._-d[1]].value)); _local13._-IC.x = (_local6._-3D._-GJ.x + (_local7.x * _local6._-Jx[0][_local19._-DX[0]].value)); _local13._-IC.y = (_local6._-3D._-GJ.y + (_local7.y * _local6._-Jx[1][_local19._-DX[1]].value)); _local8.x = (0.5 * (_local12._-GJ.x + _local12._-IC.x)); _local8.y = (0.5 * (_local12._-GJ.y + _local12._-IC.y)); _local9.x = (0.5 * (_local13._-GJ.x + _local13._-IC.x)); _local9.y = (0.5 * (_local13._-GJ.y + _local13._-IC.y)); this._-JR._-Gc(_local8, _local9, _local10); _local16 = _local17.next; }; _local2++; }; }; if ((_local1 & _-5P._-Jy)){ _local6 = this._-4Z; _local20 = _local6._-3D._-GJ; _local21 = _local6._-3D._-IC; _local7.Set((1 / _local6._-6r.x), (1 / _local6._-6r.y)); _local10.Set(0.9, 0.3, 0.9); _local2 = 0; while (_local2 < _-Cj._-FK) { _local22 = _local6._-HC[_local2]; if (_local22._-D3() == false){ } else { _local12._-GJ.x = (_local20.x + (_local7.x * _local6._-Jx[0][_local22._-d[0]].value)); _local12._-GJ.y = (_local20.y + (_local7.y * _local6._-Jx[1][_local22._-d[1]].value)); _local12._-IC.x = (_local20.x + (_local7.x * _local6._-Jx[0][_local22._-DX[0]].value)); _local12._-IC.y = (_local20.y + (_local7.y * _local6._-Jx[1][_local22._-DX[1]].value)); _local14[0].Set(_local12._-GJ.x, _local12._-GJ.y); _local14[1].Set(_local12._-IC.x, _local12._-GJ.y); _local14[2].Set(_local12._-IC.x, _local12._-IC.y); _local14[3].Set(_local12._-GJ.x, _local12._-IC.y); this._-JR._-J2(_local14, 4, _local10); }; _local2++; }; _local14[0].Set(_local20.x, _local20.y); _local14[1].Set(_local21.x, _local20.y); _local14[2].Set(_local21.x, _local21.y); _local14[3].Set(_local20.x, _local21.y); this._-JR._-J2(_local14, 4, new _-C(0.3, 0.9, 0.9)); }; if ((_local1 & _-5P._-34)){ _local10.Set(0.5, 0.3, 0.5); _local3 = this._-8Y; while (_local3) { _local11 = _local3.m_xf; _local4 = _local3._-1B(); while (_local4) { if (_local4.m_type != _-EB._-Ay){ } else { _local23 = (_local4 as _-8P); _local24 = _local23._-4K(); _local25 = _local24._-Al; _local14[0].Set(-(_local25.x), -(_local25.y)); _local14[1].Set(_local25.x, -(_local25.y)); _local14[2].Set(_local25.x, _local25.y); _local14[3].Set(-(_local25.x), _local25.y); _local2 = 0; while (_local2 < 4) { _local26 = _local24.R; _local27 = _local14[_local2]; _local28 = (_local24.center.x + ((_local26._-7f.x * _local27.x) + (_local26._-IO.x * _local27.y))); _local14[_local2].y = (_local24.center.y + ((_local26._-7f.y * _local27.x) + (_local26._-IO.y * _local27.y))); _local14[_local2].x = _local28; _local26 = _local11.R; _local28 = (_local11.position.x + ((_local26._-7f.x * _local27.x) + (_local26._-IO.x * _local27.y))); _local14[_local2].y = (_local11.position.y + ((_local26._-7f.y * _local27.x) + (_local26._-IO.y * _local27.y))); _local14[_local2].x = _local28; _local2++; }; this._-JR._-J2(_local14, 4, _local10); }; _local4 = _local4._-CE; }; _local3 = _local3._-CE; }; }; if ((_local1 & _-5P._-72)){ _local3 = this._-8Y; while (_local3) { _local11 = _-03; _local11.R = _local3.m_xf.R; _local11.position = _local3._-M-(); this._-JR._-KT(_local11); _local3 = _local3._-CE; }; }; } public function _-6-(_arg1:_-2b):void{ var _local4:_-Kn; var _local5:_-EB; if (this._-4o == true){ return; }; var _local2:_-Kn = _arg1._-GH; while (_local2) { _local4 = _local2; _local2 = _local2.next; if (this._-4b){ this._-4b._-0k(_local4._-EM); }; this._-4X(_local4._-EM); }; var _local3:_-EB = _arg1._-Jm; while (_local3) { _local5 = _local3; _local3 = _local3._-CE; if (this._-4b){ this._-4b._-KP(_local5); }; _local5._-EV(this._-4Z); _-EB._-2T(_local5, this._-5O); }; if (_arg1._-6I){ _arg1._-6I._-CE = _arg1._-CE; }; if (_arg1._-CE){ _arg1._-CE._-6I = _arg1._-6I; }; if (_arg1 == this._-8Y){ this._-8Y = _arg1._-CE; }; this._-5K--; } public function _-HF(_arg1:_-EB, _arg2:_-2w, _arg3:_-C, _arg4:Boolean):void{ var _local6:_-Jt; var _local7:_-7Q; var _local8:Number; var _local9:_-7Q; var _local10:int; var _local11:_-8P; var _local12:int; var _local13:Array; var _local14:Array; var _local15:Array; var _local5:_-C = _-AL; switch (_arg1.m_type){ case _-EB._-9l: _local6 = (_arg1 as _-Jt); _local7 = _-8Q._-3p(_arg2, _local6._-Ac); _local8 = _local6._-9y; _local9 = _arg2.R._-7f; this._-JR.null(_local7, _local8, _local9, _arg3); if (_arg4){ this._-JR._-6v(_local7, (_local8 - _-Cj._-Ep), _local5); }; break; case _-EB._-Ay: _local11 = (_arg1 as _-8P); _local12 = _local11._-8N(); _local13 = _local11._-4l(); _local14 = new Array(_-Cj._-IS); _local10 = 0; while (_local10 < _local12) { _local14[_local10] = _-8Q._-3p(_arg2, _local13[_local10]); _local10++; }; this._-JR.catch(_local14, _local12, _arg3); if (_arg4){ _local15 = _local11._-CG(); _local10 = 0; while (_local10 < _local12) { _local14[_local10] = _-8Q._-3p(_arg2, _local15[_local10]); _local10++; }; this._-JR._-J2(_local14, _local12, _local5); }; break; }; } public function _-Hn():_-2b{ return (this.m_groundBody); } public function _-1d(_arg1:_-KG):void{ this._-CK = _arg1; } public function _-FM(_arg1:_-2D):void{ var _local2:_-2b; var _local9:int; var _local10:int; var _local11:_-2b; var _local12:_-L1; var _local13:_-Kn; var _local14:Boolean; this._-2M = 0; var _local3:_-45 = new _-45(this._-5K, this._-0s, this._-7A, this._-An, this._-y); _local2 = this._-8Y; while (_local2) { _local2._-1i = (_local2._-1i & ~(_-2b._-0B)); _local2 = _local2._-CE; }; var _local4:_-9W = this._-5v; while (_local4) { _local4._-1i = (_local4._-1i & ~(_-9W._-0B)); _local4 = _local4._-CE; }; var _local5:_-8p = this._-GH; while (_local5) { _local5._-93 = false; _local5 = _local5._-CE; }; var _local6:int = this._-5K; var _local7:Array = new Array(_local6); var _local8:_-2b = this._-8Y; while (_local8) { if ((_local8._-1i & ((_-2b._-0B | _-2b._-G4) | _-2b._-Dh))){ } else { if (_local8.IsStatic()){ } else { _local3._-9v(); _local9 = 0; var _temp1 = _local9; _local9 = (_local9 + 1); var _local15 = _temp1; _local7[_local15] = _local8; _local8._-1i = (_local8._-1i | _-2b._-0B); while (_local9 > 0) { --_local9; _local2 = _local7[_local9]; _local3._-HG(_local2); _local2._-1i = (_local2._-1i & ~(_-2b._-G4)); if (_local2.IsStatic()){ } else { _local12 = _local2._-5v; while (_local12) { if ((_local12._-1X._-1i & (_-9W._-0B | _-9W._-7T))){ } else { if (_local12._-1X._-BQ == 0){ } else { _local3._-6e(_local12._-1X); _local12._-1X._-1i = (_local12._-1X._-1i | _-9W._-0B); _local11 = _local12._-99; if ((_local11._-1i & _-2b._-0B)){ } else { var _temp2 = _local9; _local9 = (_local9 + 1); var _local16 = _temp2; _local7[_local16] = _local11; _local11._-1i = (_local11._-1i | _-2b._-0B); }; }; }; _local12 = _local12.next; }; _local13 = _local2._-GH; while (_local13) { if (_local13._-EM._-93 == true){ } else { _local3._-BH(_local13._-EM); _local13._-EM._-93 = true; _local11 = _local13._-99; if ((_local11._-1i & _-2b._-0B)){ } else { var _temp3 = _local9; _local9 = (_local9 + 1); _local16 = _temp3; _local7[_local16] = _local11; _local11._-1i = (_local11._-1i | _-2b._-0B); }; }; _local13 = _local13.next; }; }; }; _local3._-FM(_arg1, this._-5V, _-By, this._-73); if (_local3._-2M > this._-2M){ this._-2M = _local3._-2M; }; _local10 = 0; while (_local10 < _local3._-5K) { _local2 = _local3._-0U[_local10]; if (_local2.IsStatic()){ _local2._-1i = (_local2._-1i & ~(_-2b._-0B)); }; _local10++; }; }; }; _local8 = _local8._-CE; }; _local2 = this._-8Y; while (_local2) { if ((_local2._-1i & (_-2b._-G4 | _-2b._-Dh))){ } else { if (_local2.IsStatic()){ } else { _local14 = _local2._-DU(); if ((((_local14 == false)) && (!((this.break == null))))){ this.break._-1(_local2); }; }; }; _local2 = _local2._-CE; }; this._-4Z._-0j(); } public function _-CB(_arg1:_-9B, _arg2:Array, _arg3:int):int{ var _local4:Array = new Array(_arg3); var _local5:int = this._-4Z._-J7(_arg1, _local4, _arg3); var _local6:int; while (_local6 < _local5) { _arg2[_local6] = _local4[_local6]; _local6++; }; return (_local5); } public function _-J0():int{ return (this._-0s); } public function _-25(_arg1:_-2D):void{ var _local2:_-2b; var _local3:_-EB; var _local4:_-EB; var _local5:_-2b; var _local6:_-2b; var _local7:_-L1; var _local11:_-9W; var _local12:_-9W; var _local13:Number; var _local14:_-2b; var _local15:int; var _local16:_-2D; var _local17:int; var _local18:Number; var _local19:Number; var _local20:_-2b; var _local21:Boolean; var _local8:_-45 = new _-45(this._-5K, _-Cj._-GG, 0, this._-An, this._-y); var _local9:int = this._-5K; var _local10:Array = new Array(_local9); _local2 = this._-8Y; while (_local2) { _local2._-1i = (_local2._-1i & ~(_-2b._-0B)); _local2.m_sweep._-69 = 0; _local2 = _local2._-CE; }; _local11 = this._-5v; while (_local11) { _local11._-1i = (_local11._-1i & ~((_-9W._-7E | _-9W._-0B))); _local11 = _local11._-CE; }; while (true) { _local12 = null; _local13 = 1; _local11 = this._-5v; for (;_local11;(_local11 = _local11._-CE)) { if ((_local11._-1i & (_-9W._-EQ | _-9W._-7T))){ } else { _local18 = 1; if ((_local11._-1i & _-9W._-7E)){ _local18 = _local11._-3e; } else { _local3 = _local11._-8O; _local4 = _local11._-B8; _local5 = _local3.m_body; _local6 = _local4.m_body; if (((((_local5.IsStatic()) || (_local5.IsSleeping()))) && (((_local6.IsStatic()) || (_local6.IsSleeping()))))){ continue; }; _local19 = _local5.m_sweep._-69; if (_local5.m_sweep._-69 < _local6.m_sweep._-69){ _local19 = _local6.m_sweep._-69; _local5.m_sweep._-5w(_local19); } else { if (_local6.m_sweep._-69 < _local5.m_sweep._-69){ _local19 = _local5.m_sweep._-69; _local6.m_sweep._-5w(_local19); }; }; _local18 = _-4n._-AR(_local11._-8O, _local5.m_sweep, _local11._-B8, _local6.m_sweep); if ((((_local18 > 0)) && ((_local18 < 1)))){ _local18 = (((1 - _local18) * _local19) + _local18); if (_local18 > 1){ _local18 = 1; }; }; _local11._-3e = _local18; _local11._-1i = (_local11._-1i | _-9W._-7E); }; if ((((Number.MIN_VALUE < _local18)) && ((_local18 < _local13)))){ _local12 = _local11; _local13 = _local18; }; }; }; if ((((_local12 == null)) || (((1 - (100 * Number.MIN_VALUE)) < _local13)))){ break; }; _local3 = _local12._-8O; _local4 = _local12._-B8; _local5 = _local3.m_body; _local6 = _local4.m_body; _local5._-5w(_local13); _local6._-5w(_local13); _local12._-2k(this._-y); _local12._-1i = (_local12._-1i & ~(_-9W._-7E)); if (_local12._-BQ == 0){ } else { _local14 = _local5; if (_local14.IsStatic()){ _local14 = _local6; }; _local8._-9v(); _local15 = 0; var _temp1 = _local15; _local15 = (_local15 + 1); var _local22 = _temp1; _local10[_local22] = _local14; _local14._-1i = (_local14._-1i | _-2b._-0B); while (_local15 > 0) { --_local15; _local2 = _local10[_local15]; _local8._-HG(_local2); _local2._-1i = (_local2._-1i & ~(_-2b._-G4)); if (_local2.IsStatic()){ } else { _local7 = _local2._-5v; while (_local7) { if (_local8._-0s == _local8._-Is){ } else { if ((_local7._-1X._-1i & ((_-9W._-0B | _-9W._-EQ) | _-9W._-7T))){ } else { if (_local7._-1X._-BQ == 0){ } else { _local8._-6e(_local7._-1X); _local7._-1X._-1i = (_local7._-1X._-1i | _-9W._-0B); _local20 = _local7._-99; if ((_local20._-1i & _-2b._-0B)){ } else { if (_local20.IsStatic() == false){ _local20._-5w(_local13); _local20.WakeUp(); }; var _temp2 = _local15; _local15 = (_local15 + 1); var _local23 = _temp2; _local10[_local23] = _local20; _local20._-1i = (_local20._-1i | _-2b._-0B); }; }; }; }; _local7 = _local7.next; }; }; }; _local16 = new _-2D(); _local16._-CC = ((1 - _local13) * _arg1._-CC); _local16._-Hk = (1 / _local16._-CC); _local16._-6C = _arg1._-6C; _local8._-25(_local16); _local17 = 0; while (_local17 < _local8._-5K) { _local2 = _local8._-0U[_local17]; _local2._-1i = (_local2._-1i & ~(_-2b._-0B)); if ((_local2._-1i & (_-2b._-G4 | _-2b._-Dh))){ } else { if (_local2.IsStatic()){ } else { _local21 = _local2._-DU(); if ((((_local21 == false)) && (!((this.break == null))))){ this.break._-1(_local2); }; _local7 = _local2._-5v; while (_local7) { _local7._-1X._-1i = (_local7._-1X._-1i & ~(_-9W._-7E)); _local7 = _local7.next; }; }; }; _local17++; }; _local17 = 0; while (_local17 < _local8._-0s) { _local11 = _local8._-D9[_local17]; _local8._-D9[_local17]._-1i = (_local11._-1i & ~((_-9W._-7E | _-9W._-0B))); _local17++; }; this._-4Z._-0j(); }; }; } public function _-66():_-8p{ return (this._-GH); } public function _-2g():void{ this._-4Z._-2g(); } public function _-J1(_arg1:_-7Q):void{ this._-5V = _arg1; } public function _-LP():int{ return (this._-4Z._-Hv._-IM); } public function _-6f():_-2b{ return (this._-8Y); } public function _-Da(_arg1:Boolean):void{ _-8D = _arg1; } public function _-Db(_arg1:Boolean):void{ _-By = _arg1; } public function _-h(_arg1:_-Gz):_-8p{ var _local3:_-2b; var _local4:_-EB; var _local2:_-8p = _-8p._-1o(_arg1, this._-5O); _local2._-6I = null; _local2._-CE = this._-GH; if (this._-GH){ this._-GH._-6I = _local2; }; this._-GH = _local2; this._-7A++; _local2._-EF._-EM = _local2; _local2._-EF._-99 = _local2._-9s; _local2._-EF._-BD = null; _local2._-EF.next = _local2._-m._-GH; if (_local2._-m._-GH){ _local2._-m._-GH._-BD = _local2._-EF; }; _local2._-m._-GH = _local2._-EF; _local2._-Fs._-EM = _local2; _local2._-Fs._-99 = _local2._-m; _local2._-Fs._-BD = null; _local2._-Fs.next = _local2._-9s._-GH; if (_local2._-9s._-GH){ _local2._-9s._-GH._-BD = _local2._-Fs; }; _local2._-9s._-GH = _local2._-Fs; if (_arg1._-49 == false){ _local3 = ((_arg1._-LL._-CY < _arg1._-6h._-CY)) ? _arg1._-LL : _arg1._-6h; _local4 = _local3._-Jm; while (_local4) { _local4._-H2(this._-4Z, _local3.m_xf); _local4 = _local4._-CE; }; }; return (_local2); } public function _-4X(_arg1:_-8p):void{ var _local5:_-2b; var _local6:_-EB; var _local2:Boolean = _arg1._-Kx; if (_arg1._-6I){ _arg1._-6I._-CE = _arg1._-CE; }; if (_arg1._-CE){ _arg1._-CE._-6I = _arg1._-6I; }; if (_arg1 == this._-GH){ this._-GH = _arg1._-CE; }; var _local3:_-2b = _arg1._-m; var _local4:_-2b = _arg1._-9s; _local3.WakeUp(); _local4.WakeUp(); if (_arg1._-EF._-BD){ _arg1._-EF._-BD.next = _arg1._-EF.next; }; if (_arg1._-EF.next){ _arg1._-EF.next._-BD = _arg1._-EF._-BD; }; if (_arg1._-EF == _local3._-GH){ _local3._-GH = _arg1._-EF.next; }; _arg1._-EF._-BD = null; _arg1._-EF.next = null; if (_arg1._-Fs._-BD){ _arg1._-Fs._-BD.next = _arg1._-Fs.next; }; if (_arg1._-Fs.next){ _arg1._-Fs.next._-BD = _arg1._-Fs._-BD; }; if (_arg1._-Fs == _local4._-GH){ _local4._-GH = _arg1._-Fs.next; }; _arg1._-Fs._-BD = null; _arg1._-Fs.next = null; _-8p._-2T(_arg1, this._-5O); this._-7A--; if (_local2 == false){ _local5 = ((_local3._-CY < _local4._-CY)) ? _local3 : _local4; _local6 = _local5._-Jm; while (_local6) { _local6._-H2(this._-4Z, _local5.m_xf); _local6 = _local6._-CE; }; }; } public function _-5E(_arg1:_-4O):void{ this._-y = _arg1; } public function _-7b(_arg1:_-GP, _arg2:Array, _arg3:int, _arg4:Boolean, _arg5):int{ var _local7:int; var _local6:Array = new Array(_arg3); this._-6g = _arg1; this._-L2 = _arg5; if (_arg4){ _local7 = this._-4Z._-G-(_arg1, _local6, _arg3, this._-9U); } else { _local7 = this._-4Z._-G-(_arg1, _local6, _arg3, this._-1M); }; var _local8:int; while (_local8 < _local7) { _arg2[_local8] = _local6[_local8]; _local8++; }; return (_local7); } public function _-1M(_arg1:_-EB){ if (((this._-CK) && (!(this._-CK._-3O(this._-L2, _arg1))))){ return (-1); }; var _local2:_-2b = _arg1.GetBody(); var _local3:_-2w = _local2._-3t(); var _local4:Array = [0]; if (_arg1.TestSegment(_local3, _local4, this._-5F, this._-6g, 1) != _-EB. case){ return (-1); }; return (_local4[0]); } public function _-CH(_arg1:_-GP, _arg2:Array, _arg3:_-7Q, _arg4:Boolean, _arg5):_-EB{ var _local6:Array = new Array(1); var _local7:Number = this._-7b(_arg1, _local6, 1, _arg4, _arg5); if (_local7 == 0){ return (null); }; if (_local7 > 1){ trace(_local7); }; var _local8:_-EB = _local6[0]; var _local9:_-2w = _local8.GetBody()._-3t(); _local8.TestSegment(_local9, _arg2, _arg3, _arg1, 1); return (_local8); } public function _-DL(_arg1:_-7D):_-2b{ if (this._-4o == true){ return (null); }; var _local2:_-2b = new _-2b(_arg1, this); _local2._-6I = null; _local2._-CE = this._-8Y; if (this._-8Y){ this._-8Y._-6I = _local2; }; this._-8Y = _local2; this._-5K++; return (_local2); } public function _-9U(_arg1:_-EB){ if (((this._-CK) && (!(this._-CK._-3O(this._-L2, _arg1))))){ return (-1); }; var _local2:_-2b = _arg1.GetBody(); var _local3:_-2w = _local2._-3t(); var _local4:Array = [0]; if (_arg1.TestSegment(_local3, _local4, this._-5F, this._-6g, 1) == _-EB._-Am){ return (-1); }; return (_local4[0]); } public function _-E6(_arg1:_-I2):void{ this.break = _arg1; } public function _-ET(_arg1:_-Lj):void{ this._-4b = _arg1; } public function _-L3(_arg1:Number, _arg2:int):void{ this._-4o = true; var _local3:_-2D = new _-2D(); _local3._-CC = _arg1; _local3._-6C = _arg2; if (_arg1 > 0){ _local3._-Hk = (1 / _arg1); } else { _local3._-Hk = 0; }; _local3._-2U = (this._-6l * _arg1); _local3._-2H = _-By; _local3._-29 = _-8D; this._-Eu._-IT(); if (_local3._-CC > 0){ this._-FM(_local3); }; if (((_-6z) && ((_local3._-CC > 0)))){ this._-25(_local3); }; this._-3h(); this._-6l = _local3._-Hk; this._-4o = false; } public function _-9N():int{ return (this._-5K); } public function _-A():int{ return (this._-7A); } } }//package _-80
Section 22
//_-3C (_-80._-3C) package _-80 { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-Cb.*; import _-KY.*; public class _-3C extends _-1S { public var m_world:_-2r; public var _-7k:Boolean; public var _-Ks:_-39; private static const null:_-09 = new _-09(); public function _-3C(){ this._-Ks = new _-39(); super(); this.m_world = null; this._-7k = false; } override public function PairRemoved(_arg1, _arg2, _arg3):void{ if (_arg3 == null){ return; }; var _local4:_-9W = (_arg3 as _-9W); if (_local4 == this._-Ks){ return; }; this._-2T(_local4); } public function _-2T(_arg1:_-9W):void{ var _local7:_-2b; var _local8:_-2b; var _local9:Array; var _local10:_-09; var _local11:int; var _local12:each; var _local13:int; var _local14:_-8q; var _local15:_-7Q; var _local16:_-7Q; var _local2:_-EB = _arg1._-8O; var _local3:_-EB = _arg1._-B8; var _local4:int = _arg1._-BQ; if ((((_local4 > 0)) && (this.m_world._-y))){ _local7 = _local2.m_body; _local8 = _local3.m_body; _local9 = _arg1.GetManifolds(); _local10 = null; _local10.shape1 = _arg1._-8O; _local10.shape2 = _arg1._-8O; _local10._-Ff = _arg1.var; _local10._-82 = _arg1._-A-; _local11 = 0; while (_local11 < _local4) { _local12 = _local9[_local11]; _local10.normal._-3g(_local12.normal); _local13 = 0; while (_local13 < _local12._-Au) { _local14 = _local12.points[_local13]; _local10.position = _local7.GetWorldPoint(_local14._-1R); _local15 = _local7._-IZ(_local14._-1R); _local16 = _local8._-IZ(_local14._-GI); _local10._-CI.Set((_local16.x - _local15.x), (_local16.y - _local15.y)); _local10._-L7 = _local14._-L7; _local10.id.key = _local14.id._-E9; this.m_world._-y._-15(_local10); _local13++; }; _local11++; }; }; if (_arg1._-6I){ _arg1._-6I._-CE = _arg1._-CE; }; if (_arg1._-CE){ _arg1._-CE._-6I = _arg1._-6I; }; if (_arg1 == this.m_world._-5v){ this.m_world._-5v = _arg1._-CE; }; var _local5:_-2b = _local2.m_body; var _local6:_-2b = _local3.m_body; if (_arg1._-EF._-BD){ _arg1._-EF._-BD.next = _arg1._-EF.next; }; if (_arg1._-EF.next){ _arg1._-EF.next._-BD = _arg1._-EF._-BD; }; if (_arg1._-EF == _local5._-5v){ _local5._-5v = _arg1._-EF.next; }; if (_arg1._-Fs._-BD){ _arg1._-Fs._-BD.next = _arg1._-Fs.next; }; if (_arg1._-Fs.next){ _arg1._-Fs.next._-BD = _arg1._-Fs._-BD; }; if (_arg1._-Fs == _local6._-5v){ _local6._-5v = _arg1._-Fs.next; }; _-9W._-2T(_arg1, this.m_world._-5O); this.m_world._-0s--; } override public function PairAdded(_arg1, _arg2){ var _local5:_-2b; var _local3:_-EB = (_arg1 as _-EB); var _local4:_-EB = (_arg2 as _-EB); _local5 = _local3.m_body; var _local6:_-2b = _local4.m_body; if (((_local5.IsStatic()) && (_local6.IsStatic()))){ return (this._-Ks); }; if (_local3.m_body == _local4.m_body){ return (this._-Ks); }; if (_local6._-7i(_local5)){ return (this._-Ks); }; if (((!((this.m_world._-CK == null))) && ((this.m_world._-CK._-L5(_local3, _local4) == false)))){ return (this._-Ks); }; var _local7:_-9W = _-9W._-1o(_local3, _local4, this.m_world._-5O); if (_local7 == null){ return (this._-Ks); }; _local3 = _local7._-8O; _local4 = _local7._-B8; _local5 = _local3.m_body; _local6 = _local4.m_body; _local7._-6I = null; _local7._-CE = this.m_world._-5v; if (this.m_world._-5v != null){ this.m_world._-5v._-6I = _local7; }; this.m_world._-5v = _local7; _local7._-EF._-1X = _local7; _local7._-EF._-99 = _local6; _local7._-EF._-BD = null; _local7._-EF.next = _local5._-5v; if (_local5._-5v != null){ _local5._-5v._-BD = _local7._-EF; }; _local5._-5v = _local7._-EF; _local7._-Fs._-1X = _local7; _local7._-Fs._-99 = _local5; _local7._-Fs._-BD = null; _local7._-Fs.next = _local6._-5v; if (_local6._-5v != null){ _local6._-5v._-BD = _local7._-Fs; }; _local6._-5v = _local7._-Fs; this.m_world._-0s++; return (_local7); } public function _-IT():void{ var _local2:_-2b; var _local3:_-2b; var _local1:_-9W = this.m_world._-5v; while (_local1) { _local2 = _local1._-8O.m_body; _local3 = _local1._-B8.m_body; if (((_local2.IsSleeping()) && (_local3.IsSleeping()))){ } else { _local1._-2k(this.m_world._-y); }; _local1 = _local1._-CE; }; } } }//package _-80
Section 23
//_-45 (_-80._-45) package _-80 { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-KY.*; import _-4g.*; public class _-45 { public var _-11:_-4O; public var _-2M:int; public var _-Gh:int; public var _-0U:Array; public var _-9p:Array; public var _-2Z:int; public var _-0s:int; public var _-D9:Array; public var _-Is:int; public var _-7A:int; public var _-7a; public var _-5K:int; private static var _-02:_-4H = new _-4H(); public function _-45(_arg1:int, _arg2:int, _arg3:int, _arg4, _arg5:_-4O){ var _local6:int; super(); this._-Gh = _arg1; this._-Is = _arg2; this._-2Z = _arg3; this._-5K = 0; this._-0s = 0; this._-7A = 0; this._-7a = _arg4; this._-11 = _arg5; this._-0U = new Array(_arg1); _local6 = 0; while (_local6 < _arg1) { this._-0U[_local6] = null; _local6++; }; this._-D9 = new Array(_arg2); _local6 = 0; while (_local6 < _arg2) { this._-D9[_local6] = null; _local6++; }; this._-9p = new Array(_arg3); _local6 = 0; while (_local6 < _arg3) { this._-9p[_local6] = null; _local6++; }; this._-2M = 0; } public function _-HG(_arg1:_-2b):void{ var _local2 = this._-5K++; this._-0U[_local2] = _arg1; } public function _-BH(_arg1:_-8p):void{ var _local2 = this._-7A++; this._-9p[_local2] = _arg1; } public function _-2J(_arg1:Array):void{ var _local2:_-HS; var _local3:_-7Q; var _local5:_-9W; var _local6:_-Gx; var _local7:_-4H; var _local8:_-2b; var _local9:int; var _local10:Array; var _local11:int; var _local12:each; var _local13:int; var _local14:_-8q; var _local15:_-Kv; if (this._-11 == null){ return; }; var _local4:int; while (_local4 < this._-0s) { _local5 = this._-D9[_local4]; _local6 = _arg1[_local4]; _local7 = _-02; _local7.shape1 = _local5._-8O; _local7.shape2 = _local5._-B8; _local8 = _local7.shape1.m_body; _local9 = _local5._-BQ; _local10 = _local5.GetManifolds(); _local11 = 0; while (_local11 < _local9) { _local12 = _local10[_local11]; _local7.normal._-3g(_local12.normal); _local13 = 0; while (_local13 < _local12._-Au) { _local14 = _local12.points[_local13]; _local15 = _local6.points[_local13]; _local7.position = _local8.GetWorldPoint(_local14._-1R); _local7._-DT = _local15._-DT; _local7._-Ft = _local15._-Ft; _local7.id.key = _local14.id.key; this._-11._-Ef(_local7); _local13++; }; _local11++; }; _local4++; }; } public function _-6e(_arg1:_-9W):void{ var _local2 = this._-0s++; this._-D9[_local2] = _arg1; } public function _-FM(_arg1:_-2D, _arg2:_-7Q, _arg3:Boolean, _arg4:Boolean):void{ var _local5:int; var _local6:_-2b; var _local7:_-8p; var _local9:int; var _local10:Boolean; var _local11:Boolean; var _local12:Boolean; var _local13:Number; var _local14:Number; var _local15:Number; _local5 = 0; while (_local5 < this._-5K) { _local6 = this._-0U[_local5]; if (_local6.IsStatic()){ } else { _local6._-I0.x = (_local6._-I0.x + (_arg1._-CC * (_arg2.x + (_local6._-3R * _local6._-6D.x)))); _local6._-I0.y = (_local6._-I0.y + (_arg1._-CC * (_arg2.y + (_local6._-3R * _local6._-6D.y)))); _local6.m_angularVelocity = (_local6.m_angularVelocity + ((_arg1._-CC * _local6._-FP) * _local6._-Cr)); _local6._-6D._-Cv(); _local6._-Cr = 0; _local6._-I0.Multiply(_-8Q._-B2((1 - (_arg1._-CC * _local6._-9g)), 0, 1)); _local6.m_angularVelocity = (_local6.m_angularVelocity * _-8Q._-B2((1 - (_arg1._-CC * _local6._-Jh)), 0, 1)); if (_local6._-I0._-B0() > _-Cj._-1-){ _local6._-I0._-5Z(); _local6._-I0.x = (_local6._-I0.x * _-Cj._-G5); _local6._-I0.y = (_local6._-I0.y * _-Cj._-G5); }; if ((_local6.m_angularVelocity * _local6.m_angularVelocity) > _-Cj._-9E){ if (_local6.m_angularVelocity < 0){ _local6.m_angularVelocity = -(_-Cj._-Em); } else { _local6.m_angularVelocity = _-Cj._-Em; }; }; }; _local5++; }; var _local8:_-C6 = new _-C6(_arg1, this._-D9, this._-0s, this._-7a); _local8.InitVelocityConstraints(_arg1); _local5 = 0; while (_local5 < this._-7A) { _local7 = this._-9p[_local5]; _local7.InitVelocityConstraints(_arg1); _local5++; }; _local5 = 0; while (_local5 < _arg1._-6C) { _local8.SolveVelocityConstraints(); _local9 = 0; while (_local9 < this._-7A) { _local7 = this._-9p[_local9]; _local7.SolveVelocityConstraints(_arg1); _local9++; }; _local5++; }; _local8._-7s(); _local5 = 0; while (_local5 < this._-5K) { _local6 = this._-0U[_local5]; if (_local6.IsStatic()){ } else { _local6.m_sweep.c0._-3g(_local6.m_sweep.c); _local6.m_sweep.a0 = _local6.m_sweep.a; _local6.m_sweep.c.x = (_local6.m_sweep.c.x + (_arg1._-CC * _local6._-I0.x)); _local6.m_sweep.c.y = (_local6.m_sweep.c.y + (_arg1._-CC * _local6._-I0.y)); _local6.m_sweep.a = (_local6.m_sweep.a + (_arg1._-CC * _local6.m_angularVelocity)); _local6._-Jp(); }; _local5++; }; if (_arg3){ _local5 = 0; while (_local5 < this._-7A) { _local7 = this._-9p[_local5]; _local7._-Lq(); _local5++; }; this._-2M = 0; while (this._-2M < _arg1._-6C) { _local10 = _local8.SolvePositionConstraints(_-Cj._-7v); _local11 = true; _local5 = 0; while (_local5 < this._-7A) { _local7 = this._-9p[_local5]; _local12 = _local7.SolvePositionConstraints(); _local11 = ((_local11) && (_local12)); _local5++; }; if (((_local10) && (_local11))){ break; }; this._-2M++; }; }; this._-2J(_local8._-D5); if (_arg4){ _local13 = Number.MAX_VALUE; _local14 = (_-Cj._-Li * _-Cj._-Li); _local15 = (_-Cj._-JL * _-Cj._-JL); _local5 = 0; while (_local5 < this._-5K) { _local6 = this._-0U[_local5]; if (_local6._-3R == 0){ } else { if ((_local6._-1i & _-2b._-1l) == 0){ _local6._-R = 0; _local13 = 0; }; if (((((((_local6._-1i & _-2b._-1l) == 0)) || (((_local6.m_angularVelocity * _local6.m_angularVelocity) > _local15)))) || ((_-8Q._-J(_local6._-I0, _local6._-I0) > _local14)))){ _local6._-R = 0; _local13 = 0; } else { _local6._-R = (_local6._-R + _arg1._-CC); _local13 = _-8Q._-46(_local13, _local6._-R); }; }; _local5++; }; if (_local13 >= _-Cj._-Ln){ _local5 = 0; while (_local5 < this._-5K) { _local6 = this._-0U[_local5]; this._-0U[_local5]._-1i = (_local6._-1i | _-2b._-G4); _local6._-I0._-Cv(); _local6.m_angularVelocity = 0; _local5++; }; }; }; } public function _-9v():void{ this._-5K = 0; this._-0s = 0; this._-7A = 0; } public function _-25(_arg1:_-2D):void{ var _local2:int; var _local5:_-2b; var _local6:Boolean; var _local3:_-C6 = new _-C6(_arg1, this._-D9, this._-0s, this._-7a); _local2 = 0; while (_local2 < _arg1._-6C) { _local3.SolveVelocityConstraints(); _local2++; }; _local2 = 0; while (_local2 < this._-5K) { _local5 = this._-0U[_local2]; if (_local5.IsStatic()){ } else { _local5.m_sweep.c0._-3g(_local5.m_sweep.c); _local5.m_sweep.a0 = _local5.m_sweep.a; _local5.m_sweep.c.x = (_local5.m_sweep.c.x + (_arg1._-CC * _local5._-I0.x)); _local5.m_sweep.c.y = (_local5.m_sweep.c.y + (_arg1._-CC * _local5._-I0.y)); _local5.m_sweep.a = (_local5.m_sweep.a + (_arg1._-CC * _local5.m_angularVelocity)); _local5._-Jp(); }; _local2++; }; var _local4:Number = 0.75; _local2 = 0; while (_local2 < _arg1._-6C) { _local6 = _local3.SolvePositionConstraints(_local4); if (_local6){ break; }; _local2++; }; this._-2J(_local3._-D5); } } }//package _-80
Section 24
//_-4O (_-80._-4O) package _-80 { import Box2D.Collision.*; import _-KY.*; public class _-4O { public function Add(_arg1:_-09):void{ } public function _-15(_arg1:_-09):void{ } public function Persist(_arg1:_-09):void{ } public function _-Ef(_arg1:_-4H):void{ } } }//package _-80
Section 25
//_-5P (_-80._-5P) package _-80 { import _-BU.*; import Box2D.Collision.*; import flash.display.*; import _-L9.*; import _-Cb.*; import _-KY.*; public class _-5P { public var _-K4:Number;// = 1 public var _-CV:Number;// = 1 public var _-Ej:Number;// = 1 public var _-Hf:uint; public var _-89:Number;// = 1 public var _-Ba:Number;// = 1 public var _-Hx:Sprite; public static var _-5R:uint = 4; public static var _-9H:uint = 1; public static var _-72:uint = 64; public static var _-Jy:uint = 8; public static var _-34:uint = 16; public static var _-DB:uint = 32; public static var _-DR:uint = 2; public function _-5P(){ this._-Hf = 0; } public function _-AF(_arg1:uint):void{ this._-Hf = (this._-Hf & ~(_arg1)); } public function _-0d(_arg1:uint):void{ this._-Hf = _arg1; } public function _-20(_arg1:uint):void{ this._-Hf = (this._-Hf | _arg1); } public function _-Gc(_arg1:_-7Q, _arg2:_-7Q, _arg3:_-C):void{ this._-Hx.graphics.lineStyle(this._-89, _arg3.color, this._-Ej); this._-Hx.graphics.moveTo((_arg1.x * this._-Ba), (_arg1.y * this._-Ba)); this._-Hx.graphics.lineTo((_arg2.x * this._-Ba), (_arg2.y * this._-Ba)); } public function catch(_arg1:Array, _arg2:int, _arg3:_-C):void{ this._-Hx.graphics.lineStyle(this._-89, _arg3.color, this._-Ej); this._-Hx.graphics.moveTo((_arg1[0].x * this._-Ba), (_arg1[0].y * this._-Ba)); this._-Hx.graphics.beginFill(_arg3.color, this._-CV); var _local4 = 1; while (_local4 < _arg2) { this._-Hx.graphics.lineTo((_arg1[_local4].x * this._-Ba), (_arg1[_local4].y * this._-Ba)); _local4++; }; this._-Hx.graphics.lineTo((_arg1[0].x * this._-Ba), (_arg1[0].y * this._-Ba)); this._-Hx.graphics.endFill(); } public function _-6v(_arg1:_-7Q, _arg2:Number, _arg3:_-C):void{ this._-Hx.graphics.lineStyle(this._-89, _arg3.color, this._-Ej); this._-Hx.graphics.drawCircle((_arg1.x * this._-Ba), (_arg1.y * this._-Ba), (_arg2 * this._-Ba)); } public function _-J2(_arg1:Array, _arg2:int, _arg3:_-C):void{ this._-Hx.graphics.lineStyle(this._-89, _arg3.color, this._-Ej); this._-Hx.graphics.moveTo((_arg1[0].x * this._-Ba), (_arg1[0].y * this._-Ba)); var _local4 = 1; while (_local4 < _arg2) { this._-Hx.graphics.lineTo((_arg1[_local4].x * this._-Ba), (_arg1[_local4].y * this._-Ba)); _local4++; }; this._-Hx.graphics.lineTo((_arg1[0].x * this._-Ba), (_arg1[0].y * this._-Ba)); } public function null(_arg1:_-7Q, _arg2:Number, _arg3:_-7Q, _arg4:_-C):void{ this._-Hx.graphics.lineStyle(this._-89, _arg4.color, this._-Ej); this._-Hx.graphics.moveTo(0, 0); this._-Hx.graphics.beginFill(_arg4.color, this._-CV); this._-Hx.graphics.drawCircle((_arg1.x * this._-Ba), (_arg1.y * this._-Ba), (_arg2 * this._-Ba)); this._-Hx.graphics.endFill(); this._-Hx.graphics.moveTo((_arg1.x * this._-Ba), (_arg1.y * this._-Ba)); this._-Hx.graphics.lineTo(((_arg1.x + (_arg3.x * _arg2)) * this._-Ba), ((_arg1.y + (_arg3.y * _arg2)) * this._-Ba)); } public function _-AO():uint{ return (this._-Hf); } public function _-KT(_arg1:_-2w):void{ this._-Hx.graphics.lineStyle(this._-89, 0xFF0000, this._-Ej); this._-Hx.graphics.moveTo((_arg1.position.x * this._-Ba), (_arg1.position.y * this._-Ba)); this._-Hx.graphics.lineTo(((_arg1.position.x + (this._-K4 * _arg1.R._-7f.x)) * this._-Ba), ((_arg1.position.y + (this._-K4 * _arg1.R._-7f.y)) * this._-Ba)); this._-Hx.graphics.lineStyle(this._-89, 0xFF00, this._-Ej); this._-Hx.graphics.moveTo((_arg1.position.x * this._-Ba), (_arg1.position.y * this._-Ba)); this._-Hx.graphics.lineTo(((_arg1.position.x + (this._-K4 * _arg1.R._-IO.x)) * this._-Ba), ((_arg1.position.y + (this._-K4 * _arg1.R._-IO.y)) * this._-Ba)); } } }//package _-80
Section 26
//_-7D (_-80._-7D) package _-80 { import _-BU.*; import _-Cb.*; public class _-7D { public var _-Fn:Number; public var angle:Number; public var super:Boolean; public var position:_-7Q; public var _-BB:Boolean; public var _-Ls:Boolean; public var userData; public var _-t:Boolean; public var _-8a:Number; public var _-2v:_-6O; public function _-7D(){ this._-2v = new _-6O(); this.position = new _-7Q(); super(); this._-2v.center._-Cv(); this._-2v._-E2 = 0; this._-2v._-4S = 0; this.userData = null; this.position.Set(0, 0); this.angle = 0; this._-8a = 0; this._-Fn = 0; this._-Ls = true; this.super = false; this._-t = false; this._-BB = false; } } }//package _-80
Section 27
//_-I2 (_-80._-I2) package _-80 { public class _-I2 { public function _-1(_arg1:_-2b):void{ } } }//package _-80
Section 28
//_-KG (_-80._-KG) package _-80 { import _-Cb.*; public class _-KG { public static var _-7p:_-KG = new (_-KG); ; public function _-L5(_arg1:_-EB, _arg2:_-EB):Boolean{ var _local3:_-KD = _arg1._-FX(); var _local4:_-KD = _arg2._-FX(); if ((((_local3._-Eg == _local4._-Eg)) && (!((_local3._-Eg == 0))))){ return ((_local3._-Eg > 0)); }; var _local5:Boolean = ((!(((_local3._-1J & _local4._-1Y) == 0))) && (!(((_local3._-1Y & _local4._-1J) == 0)))); return (_local5); } public function _-3O(_arg1, _arg2:_-EB):Boolean{ if (!_arg1){ return (true); }; return (this._-L5((_arg1 as _-EB), _arg2)); } } }//package _-80
Section 29
//_-Lj (_-80._-Lj) package _-80 { import _-Cb.*; import _-4g.*; public class _-Lj { public function _-KP(_arg1:_-EB):void{ } public function _-0k(_arg1:_-8p):void{ } } }//package _-80
Section 30
//_-Cx (_-83._-Cx) package _-83 { import flash.display.*; import flash.events.*; public class _-Cx extends Sprite { protected var _-BG:SimpleButton; private var _-Jw:Class; protected var _-3k:Function; public function _-Cx(_arg1:Function){ this._-Jw = _-k; super(); this._-3k = _arg1; } protected function update(_arg1:Event):void{ this._-BG.y = this. try(this._-BG.y, 410, 0.1); if (this._-BG.y <= 409){ this._-BG.y = 410; }; } public function _-1U():void{ var _local1:DisplayObject = new this._-Jw(); this._-BG = new SimpleButton(_local1, _local1, _local1, _local1); this._-BG.x = ((640 - _local1.width) / 2); this._-BG.y = 480; this._-BG.alpha = 1; this._-BG.addEventListener(MouseEvent.CLICK, this._-3k); addChild(this._-BG); addEventListener(Event.ENTER_FRAME, this.update); } protected function try(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } public function _-FW():void{ removeEventListener(Event.ENTER_FRAME, this.update); } } }//package _-83
Section 31
//_-HE (_-83._-HE) package _-83 { import flash.display.*; import flash.events.*; import flash.utils.*; import game.*; import _-Ew.*; public class _-HE extends MovieClip { protected var _-3I:Number; protected var sprite:_-Cx; protected var _-Fw:_-JP; protected var _-9u:_-3c; protected var _-Gr:Sprite; public function _-HE(){ stop(); stage.scaleMode = StageScaleMode.NO_SCALE; var _local1:finally = new finally(); addChild(_local1); var _local2:Sprite = new Sprite(); addChild(_local2); this._-Gr = new Sprite(); addChild(this._-Gr); this.sprite = new _-Cx(this._-8M); addChild(this.sprite); this.sprite.x = 0; this.sprite.y = 0; var _local3:Date = new Date(); this._-3I = _local3.getTime(); addEventListener(Event.ENTER_FRAME, this._-Dp); } function _-9f(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; _local7 = (_arg5 + _arg6); _local8 = (_arg3 - _arg1); _local9 = (_arg4 - _arg2); var _local13:Number = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local10 = Math.floor(Math.abs((_local13 / _local7))); var _local14:Number = Math.atan2(_local9, _local8); _local11 = _arg1; _local12 = _arg2; _local8 = (Math.cos(_local14) * _local7); _local9 = (Math.sin(_local14) * _local7); var _local15:* = 0; while (_local15 < _local10) { this._-Gr.graphics.moveTo(_local11, _local12); this._-Gr.graphics.lineTo((_local11 + (Math.cos(_local14) * _arg5)), (_local12 + (Math.sin(_local14) * _arg5))); _local11 = (_local11 + _local8); _local12 = (_local12 + _local9); _local15++; }; this._-Gr.graphics.moveTo(_local11, _local12); _local13 = Math.sqrt((((_arg3 - _local11) * (_arg3 - _local11)) + ((_arg4 - _local12) * (_arg4 - _local12)))); if (_local13 > _arg5){ this._-Gr.graphics.lineTo((_local11 + (Math.cos(_local14) * _arg5)), (_local12 + (Math.sin(_local14) * _arg5))); } else { if (_local13 > 0){ this._-Gr.graphics.lineTo((_local11 + (Math.cos(_local14) * _local13)), (_local12 + (Math.sin(_local14) * _local13))); }; }; this._-Gr.graphics.moveTo(_arg3, _arg4); } public function _-u(_arg1:Array):Boolean{ var _local2:String = stage.loaderInfo.loaderURL; var _local3:Number = (_local2.indexOf("://") + 3); var _local4:Number = _local2.indexOf("/", _local3); var _local5:String = _local2.substring(_local3, _local4); var _local6:Number = (_local5.lastIndexOf(".") - 1); var _local7:Number = (_local5.lastIndexOf(".", _local6) + 1); _local5 = _local5.substring(_local7, _local5.length); var _local8:int; while (_local8 < _arg1.length) { if (_local5 == _arg1[_local8]){ return (true); }; _local8++; }; return (false); } private function each ():void{ this.sprite._-1U(); } private function _-8M(_arg1:MouseEvent):void{ var _local2:Class = Class(getDefinitionByName("Main")); var _local3:DisplayObject = new (_local2); parent.addChild(_local3); this.sprite._-FW(); removeChild(this.sprite); this.sprite = null; parent.removeChild(this); } public function _-Dp(_arg1:Event):void{ var _local4:Number; var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); if ((((framesLoaded == totalFrames)) && (((_local3 - this._-3I) > 1000)))){ removeEventListener(Event.ENTER_FRAME, this._-Dp); nextFrame(); this.each (); } else { _local4 = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal); this._-Gr.graphics.clear(); this._-Gr.graphics.lineStyle(2, 0xFFFFFF); this._-9f(20, 380, (600 * _local4), 380, 10, 15); this._-9f(20, 400, (600 * _local4), 400, 10, 15); this._-Gr.graphics.moveTo(20, 380); this._-Gr.graphics.lineTo(20, 400); this._-Gr.graphics.moveTo((600 * _local4), 380); this._-Gr.graphics.lineTo((600 * _local4), 400); this._-Gr.graphics.endFill(); }; } } }//package _-83
Section 32
//_-k (_-83._-k) package _-83 { import mx.core.*; public class _-k extends BitmapAsset { } }//package _-83
Section 33
//_-2w (_-BU._-2w) package _-BU { public class _-2w { public var position:_-7Q; public var R:_-HS; public function _-2w(_arg1:_-7Q=null, _arg2:_-HS=null):void{ this.position = new _-7Q(); this.R = new _-HS(); super(); if (_arg1){ this.position._-3g(_arg1); this.R._-Fj(_arg2); }; } public function _-Ku(_arg1:_-7Q, _arg2:_-HS):void{ this.position._-3g(_arg1); this.R._-Fj(_arg2); } public function Set(_arg1:_-2w):void{ this.position._-3g(_arg1.position); this.R._-Fj(_arg1.R); } public function _-Hg():void{ this.position._-Cv(); this.R._-Hg(); } } }//package _-BU
Section 34
//_-7Q (_-BU._-7Q) package _-BU { public class _-7Q { public var y:Number; public var x:Number; public function _-7Q(_arg1:Number=0, _arg2:Number=0):void{ this.x = _arg1; this.y = _arg2; } public function Add(_arg1:_-7Q):void{ this.x = (this.x + _arg1.x); this.y = (this.y + _arg1.y); } public function Set(_arg1:Number=0, _arg2:Number=0):void{ this.x = _arg1; this.y = _arg2; } public function Multiply(_arg1:Number):void{ this.x = (this.x * _arg1); this.y = (this.y * _arg1); } public function _-8u():Number{ return (Math.sqrt(((this.x * this.x) + (this.y * this.y)))); } public function _-B0():Number{ return (((this.x * this.x) + (this.y * this.y))); } public function _-G0(_arg1:_-HS):void{ var _local2:Number = this.x; this.x = ((_arg1._-7f.x * _local2) + (_arg1._-IO.x * this.y)); this.y = ((_arg1._-7f.y * _local2) + (_arg1._-IO.y * this.y)); } public function _-Cv():void{ this.x = 0; this.y = 0; } public function in (_arg1:_-7Q):void{ this.x = ((this.x < _arg1.x)) ? this.x : _arg1.x; this.y = ((this.y < _arg1.y)) ? this.y : _arg1.y; } public function _-5Z():Number{ var _local1:Number = Math.sqrt(((this.x * this.x) + (this.y * this.y))); if (_local1 < Number.MIN_VALUE){ return (0); }; var _local2:Number = (1 / _local1); this.x = (this.x * _local2); this.y = (this.y * _local2); return (_local1); } public function _-DY(_arg1:Number):void{ var _local2:Number = this.x; this.x = (_arg1 * this.y); this.y = (-(_arg1) * _local2); } public function _-Ib(_arg1:_-7Q):void{ this.x = ((this.x > _arg1.x)) ? this.x : _arg1.x; this.y = ((this.y > _arg1.y)) ? this.y : _arg1.y; } public function _-3g(_arg1:_-7Q):void{ this.x = _arg1.x; this.y = _arg1.y; } public function _-Fb():_-7Q{ return (new _-7Q(-(this.x), -(this.y))); } public function _-FT(_arg1:Number):void{ var _local2:Number = this.x; this.x = (-(_arg1) * this.y); this.y = (_arg1 * _local2); } public function _-EY():void{ if (this.x < 0){ this.x = -(this.x); }; if (this.y < 0){ this.y = -(this.y); }; } public function _-I4(_arg1:_-7Q):void{ this.x = (this.x - _arg1.x); this.y = (this.y - _arg1.y); } public function Copy():_-7Q{ return (new _-7Q(this.x, this.y)); } public function set(_arg1:_-HS):void{ var _local2:Number = _-8Q._-J(this, _arg1._-7f); this.y = _-8Q._-J(this, _arg1._-IO); this.x = _local2; } public function _-D3():Boolean{ return (((_-8Q._-7w(this.x)) && (_-8Q._-7w(this.y)))); } public static function _-LK(_arg1:Number, _arg2:Number):_-7Q{ return (new _-7Q(_arg1, _arg2)); } } }//package _-BU
Section 35
//_-8Q (_-BU._-8Q) package _-BU { public class _-8Q { public static const _-7d:_-HS = new _-HS(0, new _-7Q(1, 0), new _-7Q(0, 1)); public static const _-Hl:_-2w = new _-2w(_-Ai, _-7d); public static const _-Ai:_-7Q = new _-7Q(0, 0); public static function _-1D(_arg1:_-7Q, _arg2:Number):_-7Q{ var _local3:_-7Q = new _-7Q((_arg2 * _arg1.y), (-(_arg2) * _arg1.x)); return (_local3); } public static function _-Km(_arg1:_-7Q, _arg2:_-7Q):_-7Q{ var _local3:_-7Q = new _-7Q((_arg1.x + _arg2.x), (_arg1.y + _arg2.y)); return (_local3); } public static function _-7w(_arg1:Number):Boolean{ return (isFinite(_arg1)); } public static function _-4d(_arg1:_-7Q, _arg2:_-7Q):_-7Q{ var _local3:_-7Q = new _-7Q(_-46(_arg1.x, _arg2.x), _-46(_arg1.y, _arg2.y)); return (_local3); } public static function _-3p(_arg1:_-2w, _arg2:_-7Q):_-7Q{ var _local3:_-7Q; _local3 = _-08(_arg1.R, _arg2); _local3.x = (_local3.x + _arg1.position.x); _local3.y = (_local3.y + _arg1.position.y); return (_local3); } public static function _-3S(_arg1:_-7Q, _arg2:_-7Q):Number{ var _local3:Number = (_arg1.x - _arg2.x); var _local4:Number = (_arg1.y - _arg2.y); return (((_local3 * _local3) + (_local4 * _local4))); } public static function _-6Z(_arg1:Array, _arg2:Array):void{ var _local3:* = _arg1[0]; _arg1[0] = _arg2[0]; _arg2[0] = _local3; } public static function _-CX(_arg1:_-HS):_-HS{ var _local2:_-HS = new _-HS(0, return(_arg1._-7f), return(_arg1._-IO)); return (_local2); } public static function _-86(_arg1:_-7Q, _arg2:_-7Q):_-7Q{ var _local3:_-7Q = new _-7Q((_arg1.x - _arg2.x), (_arg1.y - _arg2.y)); return (_local3); } public static function with(_arg1:_-2w, _arg2:_-7Q):_-7Q{ var _local3:_-7Q; var _local4:Number; _local3 = _-86(_arg2, _arg1.position); _local4 = ((_local3.x * _arg1.R._-7f.x) + (_local3.y * _arg1.R._-7f.y)); _local3.y = ((_local3.x * _arg1.R._-IO.x) + (_local3.y * _arg1.R._-IO.y)); _local3.x = _local4; return (_local3); } public static function _-Ce(_arg1:Number):Number{ return (((_arg1 > 0)) ? _arg1 : -(_arg1)); } public static function _-B2(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return (_-Hi(_arg2, _-46(_arg1, _arg3))); } public static function return(_arg1:_-7Q):_-7Q{ var _local2:_-7Q = new _-7Q(_-Ce(_arg1.x), _-Ce(_arg1.y)); return (_local2); } public static function _-Io(_arg1:Number, _arg2:_-7Q):_-7Q{ var _local3:_-7Q = new _-7Q((_arg1 * _arg2.x), (_arg1 * _arg2.y)); return (_local3); } public static function _-GA(_arg1:_-7Q, _arg2:_-7Q):Number{ return (((_arg1.x * _arg2.y) - (_arg1.y * _arg2.x))); } public static function _-J(_arg1:_-7Q, _arg2:_-7Q):Number{ return (((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y))); } public static function _-51(_arg1:Number, _arg2:_-7Q):_-7Q{ var _local3:_-7Q = new _-7Q((-(_arg1) * _arg2.y), (_arg1 * _arg2.x)); return (_local3); } public static function _-CD(_arg1:_-HS, _arg2:_-HS):_-HS{ var _local3:_-HS = new _-HS(0, _-Km(_arg1._-7f, _arg2._-7f), _-Km(_arg1._-IO, _arg2._-IO)); return (_local3); } public static function _-14(_arg1:_-7Q, _arg2:_-7Q):Number{ var _local3:Number = (_arg1.x - _arg2.x); var _local4:Number = (_arg1.y - _arg2.y); return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4)))); } public static function _-1w(_arg1:_-HS, _arg2:_-HS):_-HS{ var _local3:_-7Q = new _-7Q(_-J(_arg1._-7f, _arg2._-7f), _-J(_arg1._-IO, _arg2._-7f)); var _local4:_-7Q = new _-7Q(_-J(_arg1._-7f, _arg2._-IO), _-J(_arg1._-IO, _arg2._-IO)); var _local5:_-HS = new _-HS(0, _local3, _local4); return (_local5); } public static function _-Ec(_arg1:_-7Q, _arg2:_-7Q):_-7Q{ var _local3:_-7Q = new _-7Q(_-Hi(_arg1.x, _arg2.x), _-Hi(_arg1.y, _arg2.y)); return (_local3); } public static function _-JC(_arg1:uint):Boolean{ var _local2:Boolean = (((_arg1 > 0)) && (((_arg1 & (_arg1 - 1)) == 0))); return (_local2); } public static function _-4k(_arg1:_-7Q, _arg2:_-7Q, _arg3:_-7Q):_-7Q{ return (_-Ec(_arg2, _-4d(_arg1, _arg3))); } public static function _-Fe(_arg1:Number, _arg2:Number):Number{ var _local3:Number = Math.random(); _local3 = (((_arg2 - _arg1) * _local3) + _arg1); return (_local3); } public static function _-X(_arg1:_-HS, _arg2:_-7Q):_-7Q{ var _local3:_-7Q = new _-7Q(_-J(_arg2, _arg1._-7f), _-J(_arg2, _arg1._-IO)); return (_local3); } public static function _-46(_arg1:Number, _arg2:Number):Number{ return (((_arg1 < _arg2)) ? _arg1 : _arg2); } public static function _-1y():Number{ return (((Math.random() * 2) - 1)); } public static function _-AH(_arg1:_-HS, _arg2:_-HS):_-HS{ var _local3:_-HS = new _-HS(0, _-08(_arg1, _arg2._-7f), _-08(_arg1, _arg2._-IO)); return (_local3); } public static function _-9r(_arg1:uint):uint{ _arg1 = (_arg1 | ((_arg1 >> 1) & 2147483647)); _arg1 = (_arg1 | ((_arg1 >> 2) & 1073741823)); _arg1 = (_arg1 | ((_arg1 >> 4) & 268435455)); _arg1 = (_arg1 | ((_arg1 >> 8) & 0xFFFFFF)); _arg1 = (_arg1 | ((_arg1 >> 16) & 0xFFFF)); return ((_arg1 + 1)); } public static function _-Hi(_arg1:Number, _arg2:Number):Number{ return (((_arg1 > _arg2)) ? _arg1 : _arg2); } public static function _-08(_arg1:_-HS, _arg2:_-7Q):_-7Q{ var _local3:_-7Q = new _-7Q(((_arg1._-7f.x * _arg2.x) + (_arg1._-IO.x * _arg2.y)), ((_arg1._-7f.y * _arg2.x) + (_arg1._-IO.y * _arg2.y))); return (_local3); } } }//package _-BU
Section 36
//_-HS (_-BU._-HS) package _-BU { public class _-HS { public var _-7f:_-7Q; public var _-IO:_-7Q; public function _-HS(_arg1:Number=0, _arg2:_-7Q=null, _arg3:_-7Q=null){ var _local4:Number; var _local5:Number; this._-7f = new _-7Q(); this._-IO = new _-7Q(); super(); if (((!((_arg2 == null))) && (!((_arg3 == null))))){ this._-7f._-3g(_arg2); this._-IO._-3g(_arg3); } else { _local4 = Math.cos(_arg1); _local5 = Math.sin(_arg1); this._-7f.x = _local4; this._-IO.x = -(_local5); this._-7f.y = _local5; this._-IO.y = _local4; }; } public function _-Hg():void{ this._-7f.x = 1; this._-IO.x = 0; this._-7f.y = 0; this._-IO.y = 1; } public function _-JG(_arg1:_-7Q, _arg2:_-7Q):void{ this._-7f._-3g(_arg1); this._-IO._-3g(_arg2); } public function Set(_arg1:Number):void{ var _local2:Number; _local2 = Math.cos(_arg1); var _local3:Number = Math.sin(_arg1); this._-7f.x = _local2; this._-IO.x = -(_local3); this._-7f.y = _local3; this._-IO.y = _local2; } public function _-Cv():void{ this._-7f.x = 0; this._-IO.x = 0; this._-7f.y = 0; this._-IO.y = 0; } public function _-Fj(_arg1:_-HS):void{ this._-7f._-3g(_arg1._-7f); this._-IO._-3g(_arg1._-IO); } public function _-1j(_arg1:_-HS):void{ this._-7f.x = (this._-7f.x + _arg1._-7f.x); this._-7f.y = (this._-7f.y + _arg1._-7f.y); this._-IO.x = (this._-IO.x + _arg1._-IO.x); this._-IO.y = (this._-IO.y + _arg1._-IO.y); } public function _-EY():void{ this._-7f._-EY(); this._-IO._-EY(); } public function Copy():_-HS{ return (new _-HS(0, this._-7f, this._-IO)); } public function _-1r(_arg1:_-HS):_-HS{ var _local2:Number; var _local4:Number; var _local6:Number; _local2 = this._-7f.x; var _local3:Number = this._-IO.x; _local4 = this._-7f.y; var _local5:Number = this._-IO.y; _local6 = ((_local2 * _local5) - (_local3 * _local4)); _local6 = (1 / _local6); _arg1._-7f.x = (_local6 * _local5); _arg1._-IO.x = (-(_local6) * _local3); _arg1._-7f.y = (-(_local6) * _local4); _arg1._-IO.y = (_local6 * _local2); return (_arg1); } public function GetAngle():Number{ return (Math.atan2(this._-7f.y, this._-7f.x)); } public function _-FM(_arg1:_-7Q, _arg2:Number, _arg3:Number):_-7Q{ var _local4:Number = this._-7f.x; var _local5:Number = this._-IO.x; var _local6:Number = this._-7f.y; var _local7:Number = this._-IO.y; var _local8:Number = ((_local4 * _local7) - (_local5 * _local6)); _local8 = (1 / _local8); _arg1.x = (_local8 * ((_local7 * _arg2) - (_local5 * _arg3))); _arg1.y = (_local8 * ((_local4 * _arg3) - (_local6 * _arg2))); return (_arg1); } } }//package _-BU
Section 37
//_-KO (_-BU._-KO) package _-BU { public class _-KO { public var localCenter:_-7Q; public var a:Number; public var c:_-7Q; public var a0:Number; public var c0:_-7Q; public var _-69:Number; public function _-KO(){ this.localCenter = new _-7Q(); this.c0 = new _-7Q(); this.c = new _-7Q(); super(); } public function _-5w(_arg1:Number):void{ var _local2:Number; if ((((this._-69 < _arg1)) && (((1 - this._-69) > Number.MIN_VALUE)))){ _local2 = ((_arg1 - this._-69) / (1 - this._-69)); this.c0.x = (((1 - _local2) * this.c0.x) + (_local2 * this.c.x)); this.c0.y = (((1 - _local2) * this.c0.y) + (_local2 * this.c.y)); this.a0 = (((1 - _local2) * this.a0) + (_local2 * this.a)); this._-69 = _arg1; }; } public function _-3t(_arg1:_-2w, _arg2:Number):void{ var _local4:Number; var _local5:Number; if ((1 - this._-69) > Number.MIN_VALUE){ _local4 = ((_arg2 - this._-69) / (1 - this._-69)); _arg1.position.x = (((1 - _local4) * this.c0.x) + (_local4 * this.c.x)); _arg1.position.y = (((1 - _local4) * this.c0.y) + (_local4 * this.c.y)); _local5 = (((1 - _local4) * this.a0) + (_local4 * this.a)); _arg1.R.Set(_local5); } else { _arg1.position._-3g(this.c); _arg1.R.Set(this.a); }; var _local3:_-HS = _arg1.R; _arg1.position.x = (_arg1.position.x - ((_local3._-7f.x * this.localCenter.x) + (_local3._-IO.x * this.localCenter.y))); _arg1.position.y = (_arg1.position.y - ((_local3._-7f.y * this.localCenter.x) + (_local3._-IO.y * this.localCenter.y))); } } }//package _-BU
Section 38
//_-0l (_-Cb._-0l) package _-Cb { import _-BU.*; import _-L9.*; public class _-0l extends _-5d { public var vertices:Array; public var vertexCount:int; private static var _-9Q:_-HS = new _-HS(); public function _-0l(){ this.vertices = new Array(_-Cj._-IS); super(); type = _-EB._-Ay; this.vertexCount = 0; var _local1:int; while (_local1 < _-Cj._-IS) { this.vertices[_local1] = new _-7Q(); _local1++; }; } public function _-63(_arg1:Number, _arg2:Number, _arg3:_-7Q=null, _arg4:Number=0):void{ var _local5:_-7Q; var _local6:_-HS; var _local7:int; this.vertexCount = 4; this.vertices[0].Set(-(_arg1), -(_arg2)); this.vertices[1].Set(_arg1, -(_arg2)); this.vertices[2].Set(_arg1, _arg2); this.vertices[3].Set(-(_arg1), _arg2); if (_arg3){ _local5 = _arg3; _local6 = _-9Q; _local6.Set(_arg4); _local7 = 0; while (_local7 < this.vertexCount) { _arg3 = this.vertices[_local7]; _arg1 = (_local5.x + ((_local6._-7f.x * _arg3.x) + (_local6._-IO.x * _arg3.y))); _arg3.y = (_local5.y + ((_local6._-7f.y * _arg3.x) + (_local6._-IO.y * _arg3.y))); _arg3.x = _arg1; _local7++; }; }; } public function _-Jq(_arg1:Number, _arg2:Number):void{ this.vertexCount = 4; this.vertices[0].Set(-(_arg1), -(_arg2)); this.vertices[1].Set(_arg1, -(_arg2)); this.vertices[2].Set(_arg1, _arg2); this.vertices[3].Set(-(_arg1), _arg2); } } }//package _-Cb
Section 39
//_-5d (_-Cb._-5d) package _-Cb { public class _-5d { public var _-Ff:Number;// = 0.2 public var _-0P:Boolean;// = false public var density:Number;// = 0 public var _-82:Number;// = 0 public var userData;// = null public var _-G7:_-KD; public var type:int; public function _-5d(){ this.type = _-EB._-1V; this._-G7 = new _-KD(); super(); } } }//package _-Cb
Section 40
//_-6O (_-Cb._-6O) package _-Cb { import _-BU.*; public class _-6O { public var _-E2:Number;// = 0 public var center:_-7Q; public var _-4S:Number;// = 0 public function _-6O(){ this.center = new _-7Q(0, 0); super(); } } }//package _-Cb
Section 41
//_-8P (_-Cb._-8P) package _-Cb { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-80.*; public class _-8P extends _-EB { public var _-FI:Array; public var _-9K:Array; private var try:_-7Q; public var _-GF:_-7Q; public var _-L-:Array; public var _-Gu:_-1G; public var _-JX:int; private static var case :_-HS = new _-HS(); private static var _-Bq:_-9B = new _-9B(); private static var _-7z:_-9B = new _-9B(); public function _-8P(_arg1:_-5d){ var _local3:int; 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; var _local16:Number; var _local17:Number; this.try = new _-7Q(); this._-Gu = new _-1G(); this._-9K = new Array(_-Cj._-IS); this._-L- = new Array(_-Cj._-IS); this._-FI = new Array(_-Cj._-IS); super(_arg1); m_type = _-Ay; var _local2:_-0l = (_arg1 as _-0l); this._-JX = _local2.vertexCount; var _local4:int = _local3; var _local5:int = _local3; _local3 = 0; while (_local3 < this._-JX) { this._-9K[_local3] = _local2.vertices[_local3].Copy(); _local3++; }; _local3 = 0; while (_local3 < this._-JX) { _local4 = _local3; _local5 = (((_local3 + 1) < this._-JX)) ? (_local3 + 1) : 0; _local6 = (this._-9K[_local5].x - this._-9K[_local4].x); _local7 = (this._-9K[_local5].y - this._-9K[_local4].y); _local8 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7))); this._-L-[_local3] = new _-7Q((_local7 / _local8), (-(_local6) / _local8)); _local3++; }; this._-GF = _-E-(_local2.vertices, _local2.vertexCount); _-5e(this._-Gu, this._-9K, this._-JX); _local3 = 0; while (_local3 < this._-JX) { _local4 = (((_local3 - 1) >= 0)) ? (_local3 - 1) : (this._-JX - 1); _local5 = _local3; _local9 = this._-L-[_local4].x; _local10 = this._-L-[_local4].y; _local11 = this._-L-[_local5].x; _local12 = this._-L-[_local5].y; _local13 = (this._-9K[_local3].x - this._-GF.x); _local14 = (this._-9K[_local3].y - this._-GF.y); _local15 = (((_local9 * _local13) + (_local10 * _local14)) - _-Cj._-Ep); _local16 = (((_local11 * _local13) + (_local12 * _local14)) - _-Cj._-Ep); _local17 = (1 / ((_local9 * _local12) - (_local10 * _local11))); this._-FI[_local3] = new _-7Q(((_local17 * ((_local12 * _local15) - (_local10 * _local16))) + this._-GF.x), ((_local17 * ((_local9 * _local16) - (_local11 * _local15))) + this._-GF.y)); _local3++; }; } override public function ComputeSweptAABB(_arg1:_-9B, _arg2:_-2w, _arg3:_-2w):void{ var _local4:_-9B = _-Bq; var _local5:_-9B = _-7z; this.ComputeAABB(_local4, _arg2); this.ComputeAABB(_local5, _arg3); _arg1._-GJ.Set(((_local4._-GJ.x < _local5._-GJ.x)) ? _local4._-GJ.x : _local5._-GJ.x, ((_local4._-GJ.y < _local5._-GJ.y)) ? _local4._-GJ.y : _local5._-GJ.y); _arg1._-IC.Set(((_local4._-IC.x > _local5._-IC.x)) ? _local4._-IC.x : _local5._-IC.x, ((_local4._-IC.y > _local5._-IC.y)) ? _local4._-IC.y : _local5._-IC.y); } public function _-4l():Array{ return (this._-9K); } public function _-CG():Array{ return (this._-FI); } public function _-CJ():_-7Q{ return (this._-GF); } public function _-4K():_-1G{ return (this._-Gu); } public function GetFirstVertex(_arg1:_-2w):_-7Q{ return (_-8Q._-3p(_arg1, this._-FI[0])); } public function _-05(_arg1:_-2w):_-7Q{ return (_-8Q._-3p(_arg1, this._-GF)); } override public function TestSegment(_arg1:_-2w, _arg2:Array, _arg3:_-7Q, _arg4:_-GP, _arg5:Number):int{ var _local8:Number; var _local9:Number; var _local10:_-HS; var _local11:_-7Q; var _local20:Number; var _local21:Number; var _local6:Number = 0; var _local7:Number = _arg5; _local8 = (_arg4.p1.x - _arg1.position.x); _local9 = (_arg4.p1.y - _arg1.position.y); _local10 = _arg1.R; var _local12:Number = ((_local8 * _local10._-7f.x) + (_local9 * _local10._-7f.y)); var _local13:Number = ((_local8 * _local10._-IO.x) + (_local9 * _local10._-IO.y)); _local8 = (_arg4.p2.x - _arg1.position.x); _local9 = (_arg4.p2.y - _arg1.position.y); _local10 = _arg1.R; var _local14:Number = ((_local8 * _local10._-7f.x) + (_local9 * _local10._-7f.y)); var _local15:Number = ((_local8 * _local10._-IO.x) + (_local9 * _local10._-IO.y)); var _local16:Number = (_local14 - _local12); var _local17:Number = (_local15 - _local13); var _local18 = -1; var _local19:int; while (_local19 < this._-JX) { _local11 = this._-9K[_local19]; _local8 = (_local11.x - _local12); _local9 = (_local11.y - _local13); _local11 = this._-L-[_local19]; _local20 = ((_local11.x * _local8) + (_local11.y * _local9)); _local21 = ((_local11.x * _local16) + (_local11.y * _local17)); if ((((_local21 < 0)) && ((_local20 < (_local6 * _local21))))){ _local6 = (_local20 / _local21); _local18 = _local19; } else { if ((((_local21 > 0)) && ((_local20 < (_local7 * _local21))))){ _local7 = (_local20 / _local21); }; }; if (_local7 < _local6){ return (_-Am); }; _local19++; }; if (_local18 >= 0){ _arg2[0] = _local6; _local10 = _arg1.R; _local11 = this._-L-[_local18]; _arg3.x = ((_local10._-7f.x * _local11.x) + (_local10._-IO.x * _local11.y)); _arg3.y = ((_local10._-7f.y * _local11.x) + (_local10._-IO.y * _local11.y)); return ( case); }; _arg2[0] = 0; return (_-0K); } override public function ComputeMass(_arg1:_-6O):void{ var _local10:_-7Q; var _local11:_-7Q; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local2:Number = 0; var _local3:Number = 0; var _local4:Number = 0; var _local5:Number = 0; var _local6:Number = 0; var _local7:Number = 0; var _local8:Number = (1 / 3); var _local9:int; while (_local9 < this._-JX) { _local10 = this._-9K[_local9]; _local11 = (((_local9 + 1) < this._-JX)) ? this._-9K[int((_local9 + 1))] : this._-9K[0]; _local12 = (_local10.x - _local6); _local13 = (_local10.y - _local7); _local14 = (_local11.x - _local6); _local15 = (_local11.y - _local7); _local16 = ((_local12 * _local15) - (_local13 * _local14)); _local17 = (0.5 * _local16); _local4 = (_local4 + _local17); _local2 = (_local2 + ((_local17 * _local8) * ((_local6 + _local10.x) + _local11.x))); _local3 = (_local3 + ((_local17 * _local8) * ((_local7 + _local10.y) + _local11.y))); _local18 = _local6; _local19 = _local7; _local20 = _local12; _local21 = _local13; _local22 = _local14; _local23 = _local15; _local24 = ((_local8 * ((0.25 * (((_local20 * _local20) + (_local22 * _local20)) + (_local22 * _local22))) + ((_local18 * _local20) + (_local18 * _local22)))) + ((0.5 * _local18) * _local18)); _local25 = ((_local8 * ((0.25 * (((_local21 * _local21) + (_local23 * _local21)) + (_local23 * _local23))) + ((_local19 * _local21) + (_local19 * _local23)))) + ((0.5 * _local19) * _local19)); _local5 = (_local5 + (_local16 * (_local24 + _local25))); _local9++; }; _arg1._-E2 = (_-5x * _local4); _local2 = (_local2 * (1 / _local4)); _local3 = (_local3 * (1 / _local4)); _arg1.center.Set(_local2, _local3); _arg1._-4S = (_-5x * _local5); } public function _-Cu():Array{ return (this._-L-); } public function Support(_arg1:_-2w, _arg2:Number, _arg3:Number):_-7Q{ var _local4:_-7Q; var _local5:_-HS; var _local11:Number; _local5 = _arg1.R; var _local6:Number = ((_arg2 * _local5._-7f.x) + (_arg3 * _local5._-7f.y)); var _local7:Number = ((_arg2 * _local5._-IO.x) + (_arg3 * _local5._-IO.y)); var _local8:int; _local4 = this._-FI[0]; var _local9:Number = ((_local4.x * _local6) + (_local4.y * _local7)); var _local10 = 1; while (_local10 < this._-JX) { _local4 = this._-FI[_local10]; _local11 = ((_local4.x * _local6) + (_local4.y * _local7)); if (_local11 > _local9){ _local8 = _local10; _local9 = _local11; }; _local10++; }; _local5 = _arg1.R; _local4 = this._-FI[_local8]; this.try.x = (_arg1.position.x + ((_local5._-7f.x * _local4.x) + (_local5._-IO.x * _local4.y))); this.try.y = (_arg1.position.y + ((_local5._-7f.y * _local4.x) + (_local5._-IO.y * _local4.y))); return (this.try); } public function _-Aa(_arg1:_-2w, _arg2:Array, _arg3:Array, _arg4:_-GP, _arg5:Number):int{ var _local8:Number; var _local9:Number; var _local10:_-HS; var _local11:_-7Q; var _local20:Number; var _local21:Number; var _local6:Number = 0; var _local7:Number = _arg5; _local8 = (_arg4.p1.x - _arg1.position.x); _local9 = (_arg4.p1.y - _arg1.position.y); _local10 = _arg1.R; var _local12:Number = ((_local8 * _local10._-7f.x) + (_local9 * _local10._-7f.y)); var _local13:Number = ((_local8 * _local10._-IO.x) + (_local9 * _local10._-IO.y)); _local8 = (_arg4.p2.x - _arg1.position.x); _local9 = (_arg4.p2.y - _arg1.position.y); _local10 = _arg1.R; var _local14:Number = ((_local8 * _local10._-7f.x) + (_local9 * _local10._-7f.y)); var _local15:Number = ((_local8 * _local10._-IO.x) + (_local9 * _local10._-IO.y)); var _local16:Number = (_local14 - _local12); var _local17:Number = (_local15 - _local13); var _local18 = -1; var _local19:int; while (_local19 < this._-JX) { _local11 = this._-9K[_local19]; _local8 = (_local11.x - _local12); _local9 = (_local11.y - _local13); _local11 = this._-L-[_local19]; _local20 = ((_local11.x * _local8) + (_local11.y * _local9)); _local21 = ((_local11.x * _local16) + (_local11.y * _local17)); if ((((_local21 < 0)) && ((_local20 < (_local6 * _local21))))){ _local6 = (_local20 / _local21); _local18 = _local19; } else { if ((((_local21 > 0)) && ((_local20 < (_local7 * _local21))))){ _local7 = (_local20 / _local21); }; }; if (_local7 < _local6){ return (_-Am); }; _local19++; }; if (_local18 >= 0){ _arg2[0] = _local6; _arg3[0] = _local18; return ( case); }; _arg2[0] = 0; return (_-0K); } public function _-8N():int{ return (this._-JX); } override public function ComputeAABB(_arg1:_-9B, _arg2:_-2w):void{ var _local3:_-HS; var _local4:_-7Q; var _local5:_-HS = case ; _local3 = _arg2.R; _local4 = this._-Gu.R._-7f; _local5._-7f.x = ((_local3._-7f.x * _local4.x) + (_local3._-IO.x * _local4.y)); _local5._-7f.y = ((_local3._-7f.y * _local4.x) + (_local3._-IO.y * _local4.y)); _local4 = this._-Gu.R._-IO; _local5._-IO.x = ((_local3._-7f.x * _local4.x) + (_local3._-IO.x * _local4.y)); _local5._-IO.y = ((_local3._-7f.y * _local4.x) + (_local3._-IO.y * _local4.y)); _local5._-EY(); var _local6:_-HS = _local5; _local4 = this._-Gu._-Al; var _local7:Number = ((_local6._-7f.x * _local4.x) + (_local6._-IO.x * _local4.y)); var _local8:Number = ((_local6._-7f.y * _local4.x) + (_local6._-IO.y * _local4.y)); _local3 = _arg2.R; _local4 = this._-Gu.center; var _local9:Number = (_arg2.position.x + ((_local3._-7f.x * _local4.x) + (_local3._-IO.x * _local4.y))); var _local10:Number = (_arg2.position.y + ((_local3._-7f.y * _local4.x) + (_local3._-IO.y * _local4.y))); _arg1._-GJ.Set((_local9 - _local7), (_local10 - _local8)); _arg1._-IC.Set((_local9 + _local7), (_local10 + _local8)); } override public function UpdateSweepRadius(_arg1:_-7Q):void{ var _local2:_-7Q; var _local4:Number; var _local5:Number; _-4t = 0; var _local3:int; while (_local3 < this._-JX) { _local2 = this._-FI[_local3]; _local4 = (_local2.x - _arg1.x); _local5 = (_local2.y - _arg1.y); _local4 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); if (_local4 > _-4t){ _-4t = _local4; }; _local3++; }; } override public function TestPoint(_arg1:_-2w, _arg2:_-7Q):Boolean{ var _local3:_-7Q; var _local10:Number; var _local4:_-HS = _arg1.R; var _local5:Number = (_arg2.x - _arg1.position.x); var _local6:Number = (_arg2.y - _arg1.position.y); var _local7:Number = ((_local5 * _local4._-7f.x) + (_local6 * _local4._-7f.y)); var _local8:Number = ((_local5 * _local4._-IO.x) + (_local6 * _local4._-IO.y)); var _local9:int; while (_local9 < this._-JX) { _local3 = this._-9K[_local9]; _local5 = (_local7 - _local3.x); _local6 = (_local8 - _local3.y); _local3 = this._-L-[_local9]; _local10 = ((_local3.x * _local5) + (_local3.y * _local6)); if (_local10 > 0){ return (false); }; _local9++; }; return (true); } public static function _-E-(_arg1:Array, _arg2:int):_-7Q{ var _local3:_-7Q; var _local7:Number; var _local9:_-7Q; var _local10:_-7Q; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; _local3 = new _-7Q(); var _local4:Number = 0; var _local5:Number = 0; var _local6:Number = 0; _local7 = (1 / 3); var _local8:int; while (_local8 < _arg2) { _local9 = _arg1[_local8]; _local10 = (((_local8 + 1) < _arg2)) ? _arg1[int((_local8 + 1))] : _arg1[0]; _local11 = (_local9.x - _local5); _local12 = (_local9.y - _local6); _local13 = (_local10.x - _local5); _local14 = (_local10.y - _local6); _local15 = ((_local11 * _local14) - (_local12 * _local13)); _local16 = (0.5 * _local15); _local4 = (_local4 + _local16); _local3.x = (_local3.x + ((_local16 * _local7) * ((_local5 + _local9.x) + _local10.x))); _local3.y = (_local3.y + ((_local16 * _local7) * ((_local6 + _local9.y) + _local10.y))); _local8++; }; _local3.x = (_local3.x * (1 / _local4)); _local3.y = (_local3.y * (1 / _local4)); return (_local3); } public static function _-5e(_arg1:_-1G, _arg2:Array, _arg3:int):void{ var _local4:int; var _local7:_-7Q; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:int; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:_-HS; var _local5:Array = new Array((_-Cj._-IS + 1)); _local4 = 0; while (_local4 < _arg3) { _local5[_local4] = _arg2[_local4]; _local4++; }; _local5[_arg3] = _local5[0]; var _local6:Number = Number.MAX_VALUE; _local4 = 1; while (_local4 <= _arg3) { _local7 = _local5[int((_local4 - 1))]; _local8 = (_local5[_local4].x - _local7.x); _local9 = (_local5[_local4].y - _local7.y); _local10 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (_local8 / _local10); _local9 = (_local9 / _local10); _local11 = -(_local9); _local12 = _local8; _local13 = Number.MAX_VALUE; _local14 = Number.MAX_VALUE; _local15 = -(Number.MAX_VALUE); _local16 = -(Number.MAX_VALUE); _local17 = 0; while (_local17 < _arg3) { _local19 = (_local5[_local17].x - _local7.x); _local20 = (_local5[_local17].y - _local7.y); _local21 = ((_local8 * _local19) + (_local9 * _local20)); _local22 = ((_local11 * _local19) + (_local12 * _local20)); if (_local21 < _local13){ _local13 = _local21; }; if (_local22 < _local14){ _local14 = _local22; }; if (_local21 > _local15){ _local15 = _local21; }; if (_local22 > _local16){ _local16 = _local22; }; _local17++; }; _local18 = ((_local15 - _local13) * (_local16 - _local14)); if (_local18 < (0.95 * _local6)){ _local6 = _local18; _arg1.R._-7f.x = _local8; _arg1.R._-7f.y = _local9; _arg1.R._-IO.x = _local11; _arg1.R._-IO.y = _local12; _local23 = (0.5 * (_local13 + _local15)); _local24 = (0.5 * (_local14 + _local16)); _local25 = _arg1.R; _arg1.center.x = (_local7.x + ((_local25._-7f.x * _local23) + (_local25._-IO.x * _local24))); _arg1.center.y = (_local7.y + ((_local25._-7f.y * _local23) + (_local25._-IO.y * _local24))); _arg1._-Al.x = (0.5 * (_local15 - _local13)); _arg1._-Al.y = (0.5 * (_local16 - _local14)); }; _local4++; }; } } }//package _-Cb
Section 42
//_-EB (_-Cb._-EB) package _-Cb { import _-BU.*; import Box2D.Collision.*; import _-80.*; public class _-EB { public var _-CE:_-EB; public var m_type:int; public var _-4t:Number; public var _-5x:Number; public var _-52:_-KD; public var var:Number; public var m_isSensor:Boolean; public var _-A-:Number; public var m_userData; public var _-Iu:uint; public var m_body:_-2b; public static const _-Ay:int = 1; public static const case:int = 1; public static const _-Am:int = 0; public static const _-1V:int = -1; public static const _-9l:int = 0; public static const _-EN:int = 2; public static const _-0K:int = -1; private static var _-K6:_-9B = new _-9B(); private static var _-Ld:_-9B = new _-9B(); private static var _-92:_-9B = new _-9B(); public function _-EB(_arg1:_-5d){ this.m_userData = _arg1.userData; this.var = _arg1._-Ff; this._-A- = _arg1._-82; this._-5x = _arg1.density; this.m_body = null; this._-4t = 0; this._-CE = null; this._-Iu = _-6a._-0A; this._-52 = _arg1._-G7.Copy(); this.m_isSensor = _arg1._-0P; } public function _-A8(_arg1):void{ this.m_userData = _arg1; } public function if():Number{ return (this._-4t); } public function _-53():_-EB{ return (this._-CE); } public function ComputeSweptAABB(_arg1:_-9B, _arg2:_-2w, _arg3:_-2w):void{ } public function GetType():int{ return (this.m_type); } public function _-5L():Number{ return (this._-A-); } public function _-Jc():Number{ return (this.var); } public function _-FX():_-KD{ return (this._-52.Copy()); } public function TestSegment(_arg1:_-2w, _arg2:Array, _arg3:_-7Q, _arg4:_-GP, _arg5:Number):int{ return (_-Am); } public function _-H2(_arg1:_-9Z, _arg2:_-2w):void{ if (this._-Iu == _-6a._-0A){ return; }; _arg1._-EV(this._-Iu); var _local3:_-9B = _-K6; this.ComputeAABB(_local3, _arg2); var _local4:Boolean = _arg1._-Bz(_local3); if (_local4){ this._-Iu = _arg1._-1P(_local3, this); } else { this._-Iu = _-6a._-0A; }; } public function _-Js(_arg1:_-KD):void{ this._-52 = _arg1.Copy(); } public function _-07(){ return (this.m_userData); } public function _-C0(_arg1:_-9Z, _arg2:_-2w, _arg3:_-2w):Boolean{ if (this._-Iu == _-6a._-0A){ return (false); }; var _local4:_-9B = _-Ld; this.ComputeSweptAABB(_local4, _arg2, _arg3); if (_arg1._-Bz(_local4)){ _arg1._-06(this._-Iu, _local4); return (true); }; return (false); } public function ComputeMass(_arg1:_-6O):void{ } public function _-4v():Boolean{ return (this.m_isSensor); } public function _-EV(_arg1:_-9Z):void{ if (this._-Iu != _-6a._-0A){ _arg1._-EV(this._-Iu); this._-Iu = _-6a._-0A; }; } public function UpdateSweepRadius(_arg1:_-7Q):void{ } public function ComputeAABB(_arg1:_-9B, _arg2:_-2w):void{ } public function GetBody():_-2b{ return (this.m_body); } public function _-1P(_arg1:_-9Z, _arg2:_-2w):void{ var _local3:_-9B = _-92; this.ComputeAABB(_local3, _arg2); var _local4:Boolean = _arg1._-Bz(_local3); if (_local4){ this._-Iu = _arg1._-1P(_local3, this); } else { this._-Iu = _-6a._-0A; }; } public function TestPoint(_arg1:_-2w, _arg2:_-7Q):Boolean{ return (false); } public static function _-2T(_arg1:_-EB, _arg2):void{ } public static function _-1o(_arg1:_-5d, _arg2):_-EB{ switch (_arg1.type){ case _-9l: return (new _-Jt(_arg1)); case _-Ay: return (new _-8P(_arg1)); default: return (null); }; } } }//package _-Cb
Section 43
//_-IN (_-Cb._-IN) package _-Cb { import _-BU.*; public class _-IN extends _-5d { public var radius:Number; public var _-8z:_-7Q; public function _-IN(){ this._-8z = new _-7Q(0, 0); super(); type = _-EB._-9l; this.radius = 1; } } }//package _-Cb
Section 44
//_-Jt (_-Cb._-Jt) package _-Cb { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-80.*; public class _-Jt extends _-EB { public var _-Ac:_-7Q; public var _-9y:Number; public function _-Jt(_arg1:_-5d){ this._-Ac = new _-7Q(); super(_arg1); var _local2:_-IN = (_arg1 as _-IN); m_type = _-9l; this._-Ac._-3g(_local2._-8z); this._-9y = _local2.radius; } override public function TestSegment(_arg1:_-2w, _arg2:Array, _arg3:_-7Q, _arg4:_-GP, _arg5:Number):int{ var _local10:Number; var _local6:_-HS = _arg1.R; var _local7:Number = (_arg1.position.x + ((_local6._-7f.x * this._-Ac.x) + (_local6._-IO.x * this._-Ac.y))); var _local8:Number = (_arg1.position.y + ((_local6._-7f.y * this._-Ac.x) + (_local6._-IO.y * this._-Ac.y))); var _local9:Number = (_arg4.p1.x - _local7); _local10 = (_arg4.p1.y - _local8); var _local11:Number = (((_local9 * _local9) + (_local10 * _local10)) - (this._-9y * this._-9y)); if (_local11 < 0){ _arg2[0] = 0; return (_-0K); }; var _local12:Number = (_arg4.p2.x - _arg4.p1.x); var _local13:Number = (_arg4.p2.y - _arg4.p1.y); var _local14:Number = ((_local9 * _local12) + (_local10 * _local13)); var _local15:Number = ((_local12 * _local12) + (_local13 * _local13)); var _local16:Number = ((_local14 * _local14) - (_local15 * _local11)); if ((((_local16 < 0)) || ((_local15 < Number.MIN_VALUE)))){ return (_-Am); }; var _local17:Number = -((_local14 + Math.sqrt(_local16))); if ((((0 <= _local17)) && ((_local17 <= (_arg5 * _local15))))){ _local17 = (_local17 / _local15); _arg2[0] = _local17; _arg3.x = (_local9 + (_local17 * _local12)); _arg3.y = (_local10 + (_local17 * _local13)); _arg3._-5Z(); return ( case); }; return (_-Am); } public function _-BL():_-7Q{ return (this._-Ac); } public function _-7G():Number{ return (this._-9y); } override public function ComputeSweptAABB(_arg1:_-9B, _arg2:_-2w, _arg3:_-2w):void{ var _local4:_-HS; _local4 = _arg2.R; var _local5:Number = (_arg2.position.x + ((_local4._-7f.x * this._-Ac.x) + (_local4._-IO.x * this._-Ac.y))); var _local6:Number = (_arg2.position.y + ((_local4._-7f.y * this._-Ac.x) + (_local4._-IO.y * this._-Ac.y))); _local4 = _arg3.R; var _local7:Number = (_arg3.position.x + ((_local4._-7f.x * this._-Ac.x) + (_local4._-IO.x * this._-Ac.y))); var _local8:Number = (_arg3.position.y + ((_local4._-7f.y * this._-Ac.x) + (_local4._-IO.y * this._-Ac.y))); _arg1._-GJ.Set((((_local5 < _local7)) ? _local5 : _local7 - this._-9y), (((_local6 < _local8)) ? _local6 : _local8 - this._-9y)); _arg1._-IC.Set((((_local5 > _local7)) ? _local5 : _local7 + this._-9y), (((_local6 > _local8)) ? _local6 : _local8 + this._-9y)); } override public function ComputeMass(_arg1:_-6O):void{ _arg1._-E2 = (((_-5x * _-Cj. set) * this._-9y) * this._-9y); _arg1.center._-3g(this._-Ac); _arg1._-4S = (_arg1._-E2 * (((0.5 * this._-9y) * this._-9y) + ((this._-Ac.x * this._-Ac.x) + (this._-Ac.y * this._-Ac.y)))); } override public function UpdateSweepRadius(_arg1:_-7Q):void{ var _local2:Number = (this._-Ac.x - _arg1.x); var _local3:Number = (this._-Ac.y - _arg1.y); _local2 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _-4t = ((_local2 + this._-9y) - _-Cj._-Ep); } override public function ComputeAABB(_arg1:_-9B, _arg2:_-2w):void{ var _local3:_-HS = _arg2.R; var _local4:Number = (_arg2.position.x + ((_local3._-7f.x * this._-Ac.x) + (_local3._-IO.x * this._-Ac.y))); var _local5:Number = (_arg2.position.y + ((_local3._-7f.y * this._-Ac.x) + (_local3._-IO.y * this._-Ac.y))); _arg1._-GJ.Set((_local4 - this._-9y), (_local5 - this._-9y)); _arg1._-IC.Set((_local4 + this._-9y), (_local5 + this._-9y)); } override public function TestPoint(_arg1:_-2w, _arg2:_-7Q):Boolean{ var _local3:_-HS = _arg1.R; var _local4:Number = (_arg1.position.x + ((_local3._-7f.x * this._-Ac.x) + (_local3._-IO.x * this._-Ac.y))); var _local5:Number = (_arg1.position.y + ((_local3._-7f.y * this._-Ac.x) + (_local3._-IO.y * this._-Ac.y))); _local4 = (_arg2.x - _local4); _local5 = (_arg2.y - _local5); return ((((_local4 * _local4) + (_local5 * _local5)) <= (this._-9y * this._-9y))); } } }//package _-Cb
Section 45
//_-KD (_-Cb._-KD) package _-Cb { public class _-KD { public var _-1J:uint;// = 0xFFFF public var _-Eg:int;// = 0 public var _-1Y:uint;// = 1 public function Copy():_-KD{ var _local1:_-KD = new _-KD(); _local1._-1Y = this._-1Y; _local1._-1J = this._-1J; _local1._-Eg = this._-Eg; return (_local1); } } }//package _-Cb
Section 46
//_-JP (_-Ew._-JP) package _-Ew { import flash.display.*; import flash.events.*; import flash.net.*; import flash.system.*; public class _-JP extends Sprite { private var _-6P:Loader; private var _-2q:String; public function _-JP(_arg1:String){ this._-2q = _arg1; addEventListener(Event.ADDED, this._-6K); } private function _-Gk(_arg1:Event):void{ dispatchEvent(_arg1); } private function _-6K(_arg1:Event):void{ removeEventListener(Event.ADDED, this._-6K); Security.allowDomain("server.cpmstar.com"); var _local2 = "http://server.cpmstar.com/adviewas3.swf"; var _local3:DisplayObjectContainer = parent; this._-6P = new Loader(); this._-6P.contentLoaderInfo.addEventListener(Event.INIT, this._-Gk); this._-6P.contentLoaderInfo.addEventListener(Event.COMPLETE, this._-Gk); this._-6P.load(new URLRequest(((_local2 + "?contentspotid=") + this._-2q))); addChild(this._-6P); } } }//package _-Ew
Section 47
//_-39 (_-KY._-39) package _-KY { import _-80.*; public class _-39 extends _-9W { override public function Evaluate(_arg1:_-4O):void{ } override public function GetManifolds():Array{ return (null); } } }//package _-KY
Section 48
//_-4H (_-KY._-4H) package _-KY { import _-BU.*; import Box2D.Collision.*; import _-Cb.*; public class _-4H { public var position:_-7Q; public var shape1:_-EB; public var shape2:_-EB; public var _-DT:Number; public var normal:_-7Q; public var _-Ft:Number; public var id:_-Dv; public function _-4H(){ this.position = new _-7Q(); this.normal = new _-7Q(); this.id = new _-Dv(); super(); } } }//package _-KY
Section 49
//_-62 (_-KY._-62) package _-KY { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-80.*; import _-Cb.*; public class _-62 extends _-9W { private var _-JV:Array; private var _-8t:each; public var get:each; private static const null:_-09 = new _-09(); public function _-62(_arg1:_-EB, _arg2:_-EB):void{ this._-8t = new each(); this._-JV = [new each()]; super(_arg1, _arg2); this. get = this._-JV[0]; this. get._-Au = 0; } override public function Evaluate(_arg1:_-4O):void{ var _local2:_-7Q; var _local3:_-7Q; var _local4:_-8q; var _local7:_-09; var _local8:int; var _local10:_-8q; var _local11:Boolean; var _local12:uint; var _local13:int; var _local5:_-2b = _-8O.m_body; var _local6:_-2b = _-B8.m_body; this._-8t.Set(this. get); null ._-8w(this. get, (_-8O as _-8P), _local5.m_xf, (_-B8 as _-8P), _local6.m_xf); var _local9:Array = [false, false]; _local7 = null; _local7.shape1 = _-8O; _local7.shape2 = _-B8; _local7._-Ff = var; _local7._-82 = _-A-; if (this. get._-Au > 0){ _local8 = 0; while (_local8 < this. get._-Au) { _local10 = this. get.points[_local8]; _local10._-DT = 0; _local10._-Ft = 0; _local11 = false; _local12 = _local10.id._-E9; _local13 = 0; while (_local13 < this._-8t._-Au) { if (_local9[_local13] == true){ } else { _local4 = this._-8t.points[_local13]; if (_local4.id._-E9 == _local12){ _local9[_local13] = true; _local10._-DT = _local4._-DT; _local10._-Ft = _local4._-Ft; _local11 = true; if (_arg1 != null){ _local7.position = _local5.GetWorldPoint(_local10._-1R); _local2 = _local5._-IZ(_local10._-1R); _local3 = _local6._-IZ(_local10._-GI); _local7._-CI.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-3g(this. get.normal); _local7._-L7 = _local10._-L7; _local7.id.key = _local12; _arg1.Persist(_local7); }; break; }; }; _local13++; }; if ((((_local11 == false)) && (!((_arg1 == null))))){ _local7.position = _local5.GetWorldPoint(_local10._-1R); _local2 = _local5._-IZ(_local10._-1R); _local3 = _local6._-IZ(_local10._-GI); _local7._-CI.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-3g(this. get.normal); _local7._-L7 = _local10._-L7; _local7.id.key = _local12; _arg1.Add(_local7); }; _local8++; }; _-BQ = 1; } else { _-BQ = 0; }; if (_arg1 == null){ return; }; _local8 = 0; while (_local8 < this._-8t._-Au) { if (_local9[_local8]){ } else { _local4 = this._-8t.points[_local8]; _local7.position = _local5.GetWorldPoint(_local4._-1R); _local2 = _local5._-IZ(_local4._-1R); _local3 = _local6._-IZ(_local4._-GI); _local7._-CI.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-3g(this._-8t.normal); _local7._-L7 = _local4._-L7; _local7.id.key = _local4.id._-E9; _arg1._-15(_local7); }; _local8++; }; } override public function GetManifolds():Array{ return (this._-JV); } public static function _-2T(_arg1:_-9W, _arg2):void{ } public static function _-1o(_arg1:_-EB, _arg2:_-EB, _arg3):_-9W{ return (new _-62(_arg1, _arg2)); } } }//package _-KY
Section 50
//_-9W (_-KY._-9W) package _-KY { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-80.*; import _-Cb.*; public class _-9W { public var _-8O:_-EB; public var _-B8:_-EB; public var _-6I:_-9W; public var _-3e:Number; public var _-CE:_-9W; public var var:Number; public var _-BQ:int; public var _-EF:_-L1; public var _-Fs:_-L1; public var _-A-:Number; public var _-1i:uint; public static var _-7E:uint = 8; public static var _-7T:uint = 1; public static var _-EQ:uint = 2; public static var _-0B:uint = 4; public static var _-1C:Array; public static var _-L:Boolean = false; public function _-9W(_arg1:_-EB=null, _arg2:_-EB=null){ this._-EF = new _-L1(); this._-Fs = new _-L1(); super(); this._-1i = 0; if (((!(_arg1)) || (!(_arg2)))){ this._-8O = null; this._-B8 = null; return; }; if (((_arg1._-4v()) || (_arg2._-4v()))){ this._-1i = (this._-1i | _-7T); }; this._-8O = _arg1; this._-B8 = _arg2; this._-BQ = 0; this.var = Math.sqrt((this._-8O.var * this._-B8.var)); this._-A- = _-8Q._-Hi(this._-8O._-A-, this._-B8._-A-); this._-6I = null; this._-CE = null; this._-EF._-1X = null; this._-EF._-BD = null; this._-EF.next = null; this._-EF._-99 = null; this._-Fs._-1X = null; this._-Fs._-BD = null; this._-Fs.next = null; this._-Fs._-99 = null; } public function _-7W():Boolean{ return (((this._-1i & _-7T) == 0)); } public function _-9n():_-EB{ return (this._-8O); } public function _-5J():_-EB{ return (this._-B8); } public function _-53():_-9W{ return (this._-CE); } public function _-Bu():int{ return (this._-BQ); } public function GetManifolds():Array{ return (null); } public function _-2k(_arg1:_-4O):void{ var _local2:int = this._-BQ; this.Evaluate(_arg1); var _local3:int = this._-BQ; var _local4:_-2b = this._-8O.m_body; var _local5:_-2b = this._-B8.m_body; if ((((_local3 == 0)) && ((_local2 > 0)))){ _local4.WakeUp(); _local5.WakeUp(); }; if (((((((_local4.IsStatic()) || (_local4._-IL()))) || (_local5.IsStatic()))) || (_local5._-IL()))){ this._-1i = (this._-1i & ~(_-EQ)); } else { this._-1i = (this._-1i | _-EQ); }; } public function Evaluate(_arg1:_-4O):void{ } public static function _-f():void{ var _local2:int; _-1C = new Array(_-EB._-EN); var _local1:int; while (_local1 < _-EB._-EN) { _-1C[_local1] = new Array(_-EB._-EN); _local2 = 0; while (_local2 < _-EB._-EN) { _-1C[_local1][_local2] = new _-DI(); _local2++; }; _local1++; }; _-0T(_-GX._-1o, _-GX._-2T, _-EB._-9l, _-EB._-9l); _-0T(_-J6._-1o, _-J6._-2T, _-EB._-Ay, _-EB._-9l); _-0T(_-62._-1o, _-62._-2T, _-EB._-Ay, _-EB._-Ay); } public static function _-2T(_arg1:_-9W, _arg2):void{ if (_arg1._-BQ > 0){ _arg1._-8O.m_body.WakeUp(); _arg1._-B8.m_body.WakeUp(); }; var _local3:int = _arg1._-8O.m_type; var _local4:int = _arg1._-B8.m_type; var _local5:_-DI = _-1C[_local3][_local4]; var _local6:Function = _local5.destroyFcn; _local6(_arg1, _arg2); } public static function _-0T(_arg1:Function, _arg2:Function, _arg3:int, _arg4:int):void{ _-1C[_arg3][_arg4].createFcn = _arg1; _-1C[_arg3][_arg4].destroyFcn = _arg2; _-1C[_arg3][_arg4].primary = true; if (_arg3 != _arg4){ _-1C[_arg4][_arg3].createFcn = _arg1; _-1C[_arg4][_arg3].destroyFcn = _arg2; _-1C[_arg4][_arg3].primary = false; }; } public static function _-1o(_arg1:_-EB, _arg2:_-EB, _arg3):_-9W{ var _local8:_-9W; var _local9:int; var _local10:each; if (_-L == false){ _-f(); _-L = true; }; var _local4:int = _arg1.m_type; var _local5:int = _arg2.m_type; var _local6:_-DI = _-1C[_local4][_local5]; var _local7:Function = _local6.createFcn; if (_local7 != null){ if (_local6.primary){ return (_local7(_arg1, _arg2, _arg3)); }; _local8 = _local7(_arg2, _arg1, _arg3); _local9 = 0; while (_local9 < _local8._-BQ) { _local10 = _local8.GetManifolds()[_local9]; _local8.GetManifolds()[_local9].normal = _local10.normal._-Fb(); _local9++; }; return (_local8); } else { }; return (!NULL!); } } }//package _-KY
Section 51
//_-C6 (_-KY._-C6) package _-KY { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-80.*; public class _-C6 { public var _-BI:int; public var _-D5:Array; public var _-7a; public var _-Kf:_-2D; public function _-C6(_arg1:_-2D, _arg2:Array, _arg3:int, _arg4){ var _local5:_-9W; var _local6:int; var _local7:_-7Q; var _local8:_-HS; var _local10:_-2b; var _local11:_-2b; var _local12:int; var _local13:Array; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:int; var _local23:each; var _local24:Number; var _local25:Number; var _local26:_-Gx; var _local27:uint; var _local28:_-8q; var _local29:_-Kv; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:Number; var _local38:Number; var _local39:Number; var _local40:Number; var _local41:Number; var _local42:Number; var _local43:Number; var _local44:Number; var _local45:Number; var _local46:Number; var _local47:Number; this._-Kf = new _-2D(); this._-D5 = new Array(); super(); this._-Kf._-CC = _arg1._-CC; this._-Kf._-Hk = _arg1._-Hk; this._-Kf._-6C = _arg1._-6C; this._-7a = _arg4; this._-BI = 0; _local6 = 0; while (_local6 < _arg3) { _local5 = _arg2[_local6]; this._-BI = (this._-BI + _local5._-BQ); _local6++; }; _local6 = 0; while (_local6 < this._-BI) { this._-D5[_local6] = new _-Gx(); _local6++; }; var _local9:int; _local6 = 0; while (_local6 < _arg3) { _local5 = _arg2[_local6]; _local10 = _local5._-8O.m_body; _local11 = _local5._-B8.m_body; _local12 = _local5._-BQ; _local13 = _local5.GetManifolds(); _local14 = _local5.var; _local15 = _local5._-A-; _local16 = _local10._-I0.x; _local17 = _local10._-I0.y; _local18 = _local11._-I0.x; _local19 = _local11._-I0.y; _local20 = _local10.m_angularVelocity; _local21 = _local11.m_angularVelocity; _local22 = 0; while (_local22 < _local12) { _local23 = _local13[_local22]; _local24 = _local23.normal.x; _local25 = _local23.normal.y; _local26 = this._-D5[_local9]; _local26._-LL = _local10; _local26._-6h = _local11; _local26._-6B = _local23; _local26.normal.x = _local24; _local26.normal.y = _local25; _local26._-Au = _local23._-Au; _local26._-Ff = _local14; _local26._-82 = _local15; _local27 = 0; while (_local27 < _local26._-Au) { _local28 = _local23.points[_local27]; _local29 = _local26.points[_local27]; _local29._-DT = _local28._-DT; _local29._-Ft = _local28._-Ft; _local29._-L7 = _local28._-L7; _local29._-60 = 0; _local29._-IW._-3g(_local28._-1R); _local29._-B5._-3g(_local28._-GI); _local8 = _local10.m_xf.R; _local32 = (_local28._-1R.x - _local10.m_sweep.localCenter.x); _local33 = (_local28._-1R.y - _local10.m_sweep.localCenter.y); _local30 = ((_local8._-7f.x * _local32) + (_local8._-IO.x * _local33)); _local33 = ((_local8._-7f.y * _local32) + (_local8._-IO.y * _local33)); _local32 = _local30; _local29._-71.Set(_local32, _local33); _local8 = _local11.m_xf.R; _local34 = (_local28._-GI.x - _local11.m_sweep.localCenter.x); _local35 = (_local28._-GI.y - _local11.m_sweep.localCenter.y); _local30 = ((_local8._-7f.x * _local34) + (_local8._-IO.x * _local35)); _local35 = ((_local8._-7f.y * _local34) + (_local8._-IO.y * _local35)); _local34 = _local30; _local29._-8y.Set(_local34, _local35); _local36 = ((_local32 * _local32) + (_local33 * _local33)); _local37 = ((_local34 * _local34) + (_local35 * _local35)); _local38 = ((_local32 * _local24) + (_local33 * _local25)); _local39 = ((_local34 * _local24) + (_local35 * _local25)); _local40 = (_local10._-3R + _local11._-3R); _local40 = (_local40 + ((_local10._-FP * (_local36 - (_local38 * _local38))) + (_local11._-FP * (_local37 - (_local39 * _local39))))); _local29._-Fc = (1 / _local40); _local41 = ((_local10.m_mass * _local10._-3R) + (_local11.m_mass * _local11._-3R)); _local41 = (_local41 + (((_local10.m_mass * _local10._-FP) * (_local36 - (_local38 * _local38))) + ((_local11.m_mass * _local11._-FP) * (_local37 - (_local39 * _local39))))); _local29._-9i = (1 / _local41); _local42 = _local25; _local43 = -(_local24); _local44 = ((_local32 * _local42) + (_local33 * _local43)); _local45 = ((_local34 * _local42) + (_local35 * _local43)); _local46 = (_local10._-3R + _local11._-3R); _local46 = (_local46 + ((_local10._-FP * (_local36 - (_local44 * _local44))) + (_local11._-FP * (_local37 - (_local45 * _local45))))); _local29._-8- = (1 / _local46); _local29._-2F = 0; if (_local29._-L7 > 0){ _local29._-2F = (-60 * _local29._-L7); }; _local30 = (((_local18 + (-(_local21) * _local35)) - _local16) - (-(_local20) * _local33)); _local31 = (((_local19 + (_local21 * _local34)) - _local17) - (_local20 * _local32)); _local47 = ((_local26.normal.x * _local30) + (_local26.normal.y * _local31)); if (_local47 < -(_-Cj._-Av)){ _local29._-2F = (_local29._-2F + (-(_local26._-82) * _local47)); }; _local27++; }; _local9++; _local22++; }; _local6++; }; } public function InitVelocityConstraints(_arg1:_-2D):void{ var _local2:_-7Q; var _local3:_-7Q; var _local4:_-HS; var _local6:_-Gx; var _local7:_-2b; var _local8:_-2b; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:int; var _local19:int; var _local20:_-Kv; var _local21:Number; var _local22:Number; var _local23:_-Kv; var _local5:int; while (_local5 < this._-BI) { _local6 = this._-D5[_local5]; _local7 = _local6._-LL; _local8 = _local6._-6h; _local9 = _local7._-3R; _local10 = _local7._-FP; _local11 = _local8._-3R; _local12 = _local8._-FP; _local13 = _local6.normal.x; _local14 = _local6.normal.y; _local15 = _local14; _local16 = -(_local13); if (_arg1._-29){ _local19 = _local6._-Au; _local18 = 0; while (_local18 < _local19) { _local20 = _local6.points[_local18]; _local6.points[_local18]._-DT = (_local20._-DT * _arg1._-2U); _local20._-Ft = (_local20._-Ft * _arg1._-2U); _local21 = ((_local20._-DT * _local13) + (_local20._-Ft * _local15)); _local22 = ((_local20._-DT * _local14) + (_local20._-Ft * _local16)); _local7.m_angularVelocity = (_local7.m_angularVelocity - (_local10 * ((_local20._-71.x * _local22) - (_local20._-71.y * _local21)))); _local7._-I0.x = (_local7._-I0.x - (_local9 * _local21)); _local7._-I0.y = (_local7._-I0.y - (_local9 * _local22)); _local8.m_angularVelocity = (_local8.m_angularVelocity + (_local12 * ((_local20._-8y.x * _local22) - (_local20._-8y.y * _local21)))); _local8._-I0.x = (_local8._-I0.x + (_local11 * _local21)); _local8._-I0.y = (_local8._-I0.y + (_local11 * _local22)); _local18++; }; } else { _local19 = _local6._-Au; _local18 = 0; while (_local18 < _local19) { _local23 = _local6.points[_local18]; _local23._-DT = 0; _local23._-Ft = 0; _local18++; }; }; _local5++; }; } public function SolvePositionConstraints(_arg1:Number):Boolean{ var _local3:_-HS; var _local4:_-7Q; var _local6:_-Gx; var _local7:_-2b; var _local8:_-2b; var _local9:_-7Q; var _local10:Number; var _local11:_-7Q; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:int; var _local20:int; var _local21:_-Kv; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:Number; var _local38:Number; var _local2:Number = 0; var _local5:int; while (_local5 < this._-BI) { _local6 = this._-D5[_local5]; _local7 = _local6._-LL; _local8 = _local6._-6h; _local9 = _local7.m_sweep.c; _local10 = _local7.m_sweep.a; _local11 = _local8.m_sweep.c; _local12 = _local8.m_sweep.a; _local13 = (_local7.m_mass * _local7._-3R); _local14 = (_local7.m_mass * _local7._-FP); _local15 = (_local8.m_mass * _local8._-3R); _local16 = (_local8.m_mass * _local8._-FP); _local17 = _local6.normal.x; _local18 = _local6.normal.y; _local19 = _local6._-Au; _local20 = 0; while (_local20 < _local19) { _local21 = _local6.points[_local20]; _local3 = _local7.m_xf.R; _local4 = _local7.m_sweep.localCenter; _local22 = (_local21._-IW.x - _local4.x); _local23 = (_local21._-IW.y - _local4.y); _local26 = ((_local3._-7f.x * _local22) + (_local3._-IO.x * _local23)); _local23 = ((_local3._-7f.y * _local22) + (_local3._-IO.y * _local23)); _local22 = _local26; _local3 = _local8.m_xf.R; _local4 = _local8.m_sweep.localCenter; _local24 = (_local21._-B5.x - _local4.x); _local25 = (_local21._-B5.y - _local4.y); _local26 = ((_local3._-7f.x * _local24) + (_local3._-IO.x * _local25)); _local25 = ((_local3._-7f.y * _local24) + (_local3._-IO.y * _local25)); _local24 = _local26; _local27 = (_local9.x + _local22); _local28 = (_local9.y + _local23); _local29 = (_local11.x + _local24); _local30 = (_local11.y + _local25); _local31 = (_local29 - _local27); _local32 = (_local30 - _local28); _local33 = (((_local31 * _local17) + (_local32 * _local18)) + _local21._-L7); _local2 = _-8Q._-46(_local2, _local33); _local34 = (_arg1 * _-8Q._-B2((_local33 + _-Cj._-EK), -(_-Cj._-FA), 0)); _local35 = (-(_local21._-9i) * _local34); _local36 = _local21._-60; _local21._-60 = _-8Q._-Hi((_local36 + _local35), 0); _local35 = (_local21._-60 - _local36); _local37 = (_local35 * _local17); _local38 = (_local35 * _local18); _local9.x = (_local9.x - (_local13 * _local37)); _local9.y = (_local9.y - (_local13 * _local38)); _local10 = (_local10 - (_local14 * ((_local22 * _local38) - (_local23 * _local37)))); _local7.m_sweep.a = _local10; _local7._-Jp(); _local11.x = (_local11.x + (_local15 * _local37)); _local11.y = (_local11.y + (_local15 * _local38)); _local12 = (_local12 + (_local16 * ((_local24 * _local38) - (_local25 * _local37)))); _local8.m_sweep.a = _local12; _local8._-Jp(); _local20++; }; _local5++; }; return ((_local2 >= (-1.5 * _-Cj._-EK))); } public function SolveVelocityConstraints():void{ var _local1:int; var _local2:_-Kv; 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; var _local16:Number; var _local17:_-HS; var _local18:_-7Q; var _local20:_-Gx; var _local21:_-2b; var _local22:_-2b; var _local23:Number; var _local24:Number; var _local25:_-7Q; var _local26:_-7Q; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:int; var _local38:Number; var _local19:int; while (_local19 < this._-BI) { _local20 = this._-D5[_local19]; _local21 = _local20._-LL; _local22 = _local20._-6h; _local23 = _local21.m_angularVelocity; _local24 = _local22.m_angularVelocity; _local25 = _local21._-I0; _local26 = _local22._-I0; _local27 = _local21._-3R; _local28 = _local21._-FP; _local29 = _local22._-3R; _local30 = _local22._-FP; _local31 = _local20.normal.x; _local32 = _local20.normal.y; _local33 = _local32; _local34 = -(_local31); _local35 = _local20._-Ff; _local37 = _local20._-Au; _local1 = 0; while (_local1 < _local37) { _local2 = _local20.points[_local1]; _local7 = (((_local26.x + (-(_local24) * _local2._-8y.y)) - _local25.x) - (-(_local23) * _local2._-71.y)); _local8 = (((_local26.y + (_local24 * _local2._-8y.x)) - _local25.y) - (_local23 * _local2._-71.x)); _local9 = ((_local7 * _local31) + (_local8 * _local32)); _local11 = (-(_local2._-Fc) * (_local9 - _local2._-2F)); _local10 = ((_local7 * _local33) + (_local8 * _local34)); _local12 = (_local2._-8- * -(_local10)); _local13 = _-8Q._-Hi((_local2._-DT + _local11), 0); _local11 = (_local13 - _local2._-DT); _local38 = (_local35 * _local2._-DT); _local14 = _-8Q._-B2((_local2._-Ft + _local12), -(_local38), _local38); _local12 = (_local14 - _local2._-Ft); _local15 = ((_local11 * _local31) + (_local12 * _local33)); _local16 = ((_local11 * _local32) + (_local12 * _local34)); _local25.x = (_local25.x - (_local27 * _local15)); _local25.y = (_local25.y - (_local27 * _local16)); _local23 = (_local23 - (_local28 * ((_local2._-71.x * _local16) - (_local2._-71.y * _local15)))); _local26.x = (_local26.x + (_local29 * _local15)); _local26.y = (_local26.y + (_local29 * _local16)); _local24 = (_local24 + (_local30 * ((_local2._-8y.x * _local16) - (_local2._-8y.y * _local15)))); _local2._-DT = _local13; _local2._-Ft = _local14; _local1++; }; _local21.m_angularVelocity = _local23; _local22.m_angularVelocity = _local24; _local19++; }; } public function _-7s():void{ var _local2:_-Gx; var _local3:each; var _local4:int; var _local5:_-8q; var _local6:_-Kv; var _local1:int; while (_local1 < this._-BI) { _local2 = this._-D5[_local1]; _local3 = _local2._-6B; _local4 = 0; while (_local4 < _local2._-Au) { _local5 = _local3.points[_local4]; _local6 = _local2.points[_local4]; _local5._-DT = _local6._-DT; _local5._-Ft = _local6._-Ft; _local4++; }; _local1++; }; } } }//package _-KY
Section 52
//_-DI (_-KY._-DI) package _-KY { public class _-DI { public var primary:Boolean; public var createFcn:Function; public var destroyFcn:Function; } }//package _-KY
Section 53
//_-Gx (_-KY._-Gx) package _-KY { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-80.*; public class _-Gx { public var points:Array; public var normal:_-7Q; public var _-82:Number; public var _-LL:_-2b; public var _-6B:each; public var _-6h:_-2b; public var _-Ff:Number; public var _-Au:int; public function _-Gx(){ this.normal = new _-7Q(); super(); this.points = new Array(_-Cj._-Eq); var _local1:int; while (_local1 < _-Cj._-Eq) { this.points[_local1] = new _-Kv(); _local1++; }; } } }//package _-KY
Section 54
//_-GX (_-KY._-GX) package _-KY { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-80.*; import _-Cb.*; public class _-GX extends _-9W { private var _-JV:Array; public var get:each; private var _-8t:each; private static const null:_-09 = new _-09(); public function _-GX(_arg1:_-EB, _arg2:_-EB){ this._-JV = [new each()]; this._-8t = new each(); super(_arg1, _arg2); this. get = this._-JV[0]; this. get._-Au = 0; var _local3:_-8q = this. get.points[0]; _local3._-DT = 0; _local3._-Ft = 0; } override public function Evaluate(_arg1:_-4O):void{ var _local2:_-7Q; var _local3:_-7Q; var _local4:_-8q; var _local8:_-8q; var _local5:_-2b = _-8O.m_body; var _local6:_-2b = _-B8.m_body; this._-8t.Set(this. get); null ._-AI(this. get, (_-8O as _-Jt), _local5.m_xf, (_-B8 as _-Jt), _local6.m_xf); var _local7:_-09 = null; _local7.shape1 = _-8O; _local7.shape2 = _-B8; _local7._-Ff = var; _local7._-82 = _-A-; if (this. get._-Au > 0){ _-BQ = 1; _local8 = this. get.points[0]; if (this._-8t._-Au == 0){ _local8._-DT = 0; _local8._-Ft = 0; if (_arg1){ _local7.position = _local5.GetWorldPoint(_local8._-1R); _local2 = _local5._-IZ(_local8._-1R); _local3 = _local6._-IZ(_local8._-GI); _local7._-CI.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-3g(this. get.normal); _local7._-L7 = _local8._-L7; _local7.id.key = _local8.id._-E9; _arg1.Add(_local7); }; } else { _local4 = this._-8t.points[0]; _local8._-DT = _local4._-DT; _local8._-Ft = _local4._-Ft; if (_arg1){ _local7.position = _local5.GetWorldPoint(_local8._-1R); _local2 = _local5._-IZ(_local8._-1R); _local3 = _local6._-IZ(_local8._-GI); _local7._-CI.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-3g(this. get.normal); _local7._-L7 = _local8._-L7; _local7.id.key = _local8.id._-E9; _arg1.Persist(_local7); }; }; } else { _-BQ = 0; if ((((this._-8t._-Au > 0)) && (_arg1))){ _local4 = this._-8t.points[0]; _local7.position = _local5.GetWorldPoint(_local4._-1R); _local2 = _local5._-IZ(_local4._-1R); _local3 = _local6._-IZ(_local4._-GI); _local7._-CI.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-3g(this._-8t.normal); _local7._-L7 = _local4._-L7; _local7.id.key = _local4.id._-E9; _arg1._-15(_local7); }; }; } override public function GetManifolds():Array{ return (this._-JV); } public static function _-2T(_arg1:_-9W, _arg2):void{ } public static function _-1o(_arg1:_-EB, _arg2:_-EB, _arg3):_-9W{ return (new _-GX(_arg1, _arg2)); } } }//package _-KY
Section 55
//_-J6 (_-KY._-J6) package _-KY { import _-BU.*; import Box2D.Collision.*; import _-L9.*; import _-80.*; import _-Cb.*; public class _-J6 extends _-9W { private var _-JV:Array; public var get:each; private var _-8t:each; private static const null:_-09 = new _-09(); public function _-J6(_arg1:_-EB, _arg2:_-EB){ this._-JV = [new each()]; this._-8t = new each(); super(_arg1, _arg2); this. get = this._-JV[0]; _-Cj._-Kr((_-8O.m_type == _-EB._-Ay)); _-Cj._-Kr((_-B8.m_type == _-EB._-9l)); this. get._-Au = 0; var _local3:_-8q = this. get.points[0]; _local3._-DT = 0; _local3._-Ft = 0; } override public function Evaluate(_arg1:_-4O):void{ var _local2:int; var _local3:_-7Q; var _local4:_-7Q; var _local5:_-8q; var _local10:_-8q; var _local11:Boolean; var _local12:uint; var _local13:int; var _local6:_-2b = _-8O.m_body; var _local7:_-2b = _-B8.m_body; this._-8t.Set(this. get); null ._-1b(this. get, (_-8O as _-8P), _local6.m_xf, (_-B8 as _-Jt), _local7.m_xf); var _local8:Array = [false, false]; var _local9:_-09 = null; _local9.shape1 = _-8O; _local9.shape2 = _-B8; _local9._-Ff = var; _local9._-82 = _-A-; if (this. get._-Au > 0){ _local2 = 0; while (_local2 < this. get._-Au) { _local10 = this. get.points[_local2]; _local10._-DT = 0; _local10._-Ft = 0; _local11 = false; _local12 = _local10.id._-E9; _local13 = 0; while (_local13 < this._-8t._-Au) { if (_local8[_local13] == true){ } else { _local5 = this._-8t.points[_local13]; if (_local5.id._-E9 == _local12){ _local8[_local13] = true; _local10._-DT = _local5._-DT; _local10._-Ft = _local5._-Ft; _local11 = true; if (_arg1 != null){ _local9.position = _local6.GetWorldPoint(_local10._-1R); _local3 = _local6._-IZ(_local10._-1R); _local4 = _local7._-IZ(_local10._-GI); _local9._-CI.Set((_local4.x - _local3.x), (_local4.y - _local3.y)); _local9.normal._-3g(this. get.normal); _local9._-L7 = _local10._-L7; _local9.id.key = _local12; _arg1.Persist(_local9); }; break; }; }; _local13++; }; if ((((_local11 == false)) && (!((_arg1 == null))))){ _local9.position = _local6.GetWorldPoint(_local10._-1R); _local3 = _local6._-IZ(_local10._-1R); _local4 = _local7._-IZ(_local10._-GI); _local9._-CI.Set((_local4.x - _local3.x), (_local4.y - _local3.y)); _local9.normal._-3g(this. get.normal); _local9._-L7 = _local10._-L7; _local9.id.key = _local12; _arg1.Add(_local9); }; _local2++; }; _-BQ = 1; } else { _-BQ = 0; }; if (_arg1 == null){ return; }; _local2 = 0; while (_local2 < this._-8t._-Au) { if (_local8[_local2]){ } else { _local5 = this._-8t.points[_local2]; _local9.position = _local6.GetWorldPoint(_local5._-1R); _local3 = _local6._-IZ(_local5._-1R); _local4 = _local7._-IZ(_local5._-GI); _local9._-CI.Set((_local4.x - _local3.x), (_local4.y - _local3.y)); _local9.normal._-3g(this._-8t.normal); _local9._-L7 = _local5._-L7; _local9.id.key = _local5.id._-E9; _arg1._-15(_local9); }; _local2++; }; } override public function GetManifolds():Array{ return (this._-JV); } public static function _-2T(_arg1:_-9W, _arg2):void{ } public static function _-1o(_arg1:_-EB, _arg2:_-EB, _arg3):_-9W{ return (new _-J6(_arg1, _arg2)); } } }//package _-KY
Section 56
//_-Kv (_-KY._-Kv) package _-KY { import _-BU.*; public class _-Kv { public var _-8y:_-7Q; public var _-L7:Number; public var _-60:Number; public var _-DT:Number; public var _-8-:Number; public var _-9i:Number; public var _-Ft:Number; public var _-IW:_-7Q; public var _-B5:_-7Q; public var _-Fc:Number; public var _-2F:Number; public var _-71:_-7Q; public function _-Kv(){ this._-IW = new _-7Q(); this._-B5 = new _-7Q(); this._-71 = new _-7Q(); this._-8y = new _-7Q(); super(); } } }//package _-KY
Section 57
//_-L1 (_-KY._-L1) package _-KY { import _-80.*; public class _-L1 { public var _-99:_-2b; public var _-BD:_-L1; public var _-1X:_-9W; public var next:_-L1; } }//package _-KY
Section 58
//_-C (_-L9._-C) package _-L9 { import _-BU.*; public class _-C { private var _-2:uint;// = 0 private var _-FG:uint;// = 0 private var _-JK:uint;// = 0 public function _-C(_arg1:Number, _arg2:Number, _arg3:Number){ this._-2 = uint((0xFF * _-8Q._-B2(_arg1, 0, 1))); this._-FG = uint((0xFF * _-8Q._-B2(_arg2, 0, 1))); this._-JK = uint((0xFF * _-8Q._-B2(_arg3, 0, 1))); } public function Set(_arg1:Number, _arg2:Number, _arg3:Number):void{ this._-2 = uint((0xFF * _-8Q._-B2(_arg1, 0, 1))); this._-FG = uint((0xFF * _-8Q._-B2(_arg2, 0, 1))); this._-JK = uint((0xFF * _-8Q._-B2(_arg3, 0, 1))); } public function set b(_arg1:Number):void{ this._-JK = uint((0xFF * _-8Q._-B2(_arg1, 0, 1))); } public function get color():uint{ return (((this._-2 | (this._-FG << 8)) | (this._-JK << 16))); } public function set r(_arg1:Number):void{ this._-2 = uint((0xFF * _-8Q._-B2(_arg1, 0, 1))); } public function set g(_arg1:Number):void{ this._-FG = uint((0xFF * _-8Q._-B2(_arg1, 0, 1))); } } }//package _-L9
Section 59
//_-Cj (_-L9._-Cj) package _-L9 { import _-BU.*; public class _-Cj { public static const _-JL:Number = 0.0111111111111111; public static const _-Li:Number = 0.01; public static const _-6G:Number = 0.0349065850398866; public static const _-EK:Number = 0.005; public static const set:Number = 3.14159265358979; public static const _-FK:int = 0x0200; public static const _-9E:Number = 62500; public static const _-IS:int = 8; public static const _-Av:Number = 1; public static const _-7v:Number = 0.2; public static const _-F8:int = 4096; public static const _-GG:int = 32; public static const _-Ln:Number = 0.5; public static const _-Eq:int = 2; public static const _-Em:Number = 250; public static const _-B9:Number = 0.139626340159546; public static const _-Jz:int = 0xFFFF; public static const _-G5:Number = 200; public static const _-FA:Number = 0.2; public static const _-Ep:Number = 0.04; public static const _-1-:Number = 40000; public static function _-Kr(_arg1:Boolean):void{ var _local2:_-7Q; if (!_arg1){ _local2.x++; }; } } }//package _-L9
Section 60
//_-09 (Box2D.Collision._-09) package Box2D.Collision { import _-BU.*; import _-Cb.*; public class _-09 { public var _-Ff:Number; public var _-L7:Number; public var normal:_-7Q; public var position:_-7Q; public var _-82:Number; public var shape1:_-EB; public var shape2:_-EB; public var id:_-Dv; public var _-CI:_-7Q; public function _-09(){ this.position = new _-7Q(); this._-CI = new _-7Q(); this.normal = new _-7Q(); this.id = new _-Dv(); super(); } } }//package Box2D.Collision
Section 61
//_-14 (Box2D.Collision._-14) package Box2D.Collision { import _-BU.*; import _-L9.*; import _-Cb.*; public class _-14 { private static var _-FE:Array = [new _-7Q(), new _-7Q(), new _-7Q()]; private static var _-Ez:Array = [new _-7Q(), new _-7Q(), new _-7Q()]; private static var _-Fm:Array = [new _-7Q(), new _-7Q(), new _-7Q()]; private static var _-LE:_-Iz = new _-Iz(); public static var _-16:int = 0; public static function _-I9(_arg1:_-7Q, _arg2:Array, _arg3:int):Boolean{ var _local6:_-7Q; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local4:Number = (100 * Number.MIN_VALUE); var _local5:int; while (_local5 < _arg3) { _local6 = _arg2[_local5]; _local7 = Math.abs((_arg1.x - _local6.x)); _local8 = Math.abs((_arg1.y - _local6.y)); _local9 = Math.max(Math.abs(_arg1.x), Math.abs(_local6.x)); _local10 = Math.max(Math.abs(_arg1.y), Math.abs(_local6.y)); if ((((_local7 < (_local4 * (_local9 + 1)))) && ((_local8 < (_local4 * (_local10 + 1)))))){ return (true); }; _local5++; }; return (false); } public static function _-LJ(_arg1:_-7Q, _arg2:_-7Q, _arg3, _arg4:_-2w, _arg5, _arg6:_-2w):Number{ var _local7:_-7Q; var _local15:Number; var _local16:Number; var _local17:_-7Q; var _local18:_-7Q; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:int; var _local8:Array = _-Ez; var _local9:Array = _-FE; var _local10:Array = _-Fm; var _local11:int; _arg1._-3g(_arg3.GetFirstVertex(_arg4)); _arg2._-3g(_arg5.GetFirstVertex(_arg6)); var _local12:Number = 0; var _local13 = 20; var _local14:int; while (_local14 < _local13) { _local15 = (_arg2.x - _arg1.x); _local16 = (_arg2.y - _arg1.y); _local17 = _arg3.Support(_arg4, _local15, _local16); _local18 = _arg5.Support(_arg6, -(_local15), -(_local16)); _local12 = ((_local15 * _local15) + (_local16 * _local16)); _local19 = (_local18.x - _local17.x); _local20 = (_local18.y - _local17.y); _local21 = ((_local15 * _local19) + (_local16 * _local20)); if ((_local12 - ((_local15 * _local19) + (_local16 * _local20))) <= (0.01 * _local12)){ if (_local11 == 0){ _arg1._-3g(_local17); _arg2._-3g(_local18); }; _-16 = _local14; return (Math.sqrt(_local12)); }; switch (_local11){ case 0: _local7 = _local8[0]; _local7._-3g(_local17); _local7 = _local9[0]; _local7._-3g(_local18); _local7 = _local10[0]; _local7.x = _local19; _local7.y = _local20; _arg1._-3g(_local8[0]); _arg2._-3g(_local9[0]); _local11++; break; case 1: _local7 = _local8[1]; _local7._-3g(_local17); _local7 = _local9[1]; _local7._-3g(_local18); _local7 = _local10[1]; _local7.x = _local19; _local7.y = _local20; _local11 = _-Lk(_arg1, _arg2, _local8, _local9, _local10); break; case 2: _local7 = _local8[2]; _local7._-3g(_local17); _local7 = _local9[2]; _local7._-3g(_local18); _local7 = _local10[2]; _local7.x = _local19; _local7.y = _local20; _local11 = _-l(_arg1, _arg2, _local8, _local9, _local10); break; }; if (_local11 == 3){ _-16 = _local14; return (0); }; _local22 = -(Number.MAX_VALUE); _local23 = 0; while (_local23 < _local11) { _local7 = _local10[_local23]; _local22 = _-8Q._-Hi(_local22, ((_local7.x * _local7.x) + (_local7.y * _local7.y))); _local23++; }; if ((((_local11 == 3)) || ((_local12 <= ((100 * Number.MIN_VALUE) * _local22))))){ _-16 = _local14; _local15 = (_arg2.x - _arg1.x); _local16 = (_arg2.y - _arg1.y); _local12 = ((_local15 * _local15) + (_local16 * _local16)); return (Math.sqrt(_local12)); }; _local14++; }; _-16 = _local13; return (Math.sqrt(_local12)); } public static function _-2B(_arg1:_-7Q, _arg2:_-7Q, _arg3:_-Jt, _arg4:_-2w, _arg5:_-Jt, _arg6:_-2w):Number{ var _local7:_-HS; var _local8:_-7Q; var _local19:Number; var _local20:Number; _local7 = _arg4.R; _local8 = _arg3._-Ac; var _local9:Number = (_arg4.position.x + ((_local7._-7f.x * _local8.x) + (_local7._-IO.x * _local8.y))); var _local10:Number = (_arg4.position.y + ((_local7._-7f.y * _local8.x) + (_local7._-IO.y * _local8.y))); _local7 = _arg6.R; _local8 = _arg5._-Ac; var _local11:Number = (_arg6.position.x + ((_local7._-7f.x * _local8.x) + (_local7._-IO.x * _local8.y))); var _local12:Number = (_arg6.position.y + ((_local7._-7f.y * _local8.x) + (_local7._-IO.y * _local8.y))); var _local13:Number = (_local11 - _local9); var _local14:Number = (_local12 - _local10); var _local15:Number = ((_local13 * _local13) + (_local14 * _local14)); var _local16:Number = (_arg3._-9y - _-Cj._-Ep); var _local17:Number = (_arg5._-9y - _-Cj._-Ep); var _local18:Number = (_local16 + _local17); if (_local15 > (_local18 * _local18)){ _local19 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14))); _local13 = (_local13 / _local19); _local14 = (_local14 / _local19); _local20 = (_local19 - _local18); _arg1.x = (_local9 + (_local16 * _local13)); _arg1.y = (_local10 + (_local16 * _local14)); _arg2.x = (_local11 - (_local17 * _local13)); _arg2.y = (_local12 - (_local17 * _local14)); return (_local20); }; if (_local15 > (Number.MIN_VALUE * Number.MIN_VALUE)){ _local19 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14))); _local13 = (_local13 / _local19); _local14 = (_local14 / _local19); _arg1.x = (_local9 + (_local16 * _local13)); _arg1.y = (_local10 + (_local16 * _local14)); _arg2.x = _arg1.x; _arg2.y = _arg1.y; return (0); }; _arg1.x = _local9; _arg1.y = _local10; _arg2.x = _arg1.x; _arg2.y = _arg1.y; return (0); } public static function _-l(_arg1:_-7Q, _arg2:_-7Q, _arg3:Array, _arg4:Array, _arg5:Array):int{ var _local6:_-7Q; var _local7:_-7Q; var _local8:_-7Q; var _local9:_-7Q; var _local10:_-7Q; var _local11:_-7Q; var _local12:_-7Q; var _local13:_-7Q; var _local35:Number; _local6 = _arg5[0]; _local7 = _arg5[1]; _local8 = _arg5[2]; _local9 = _arg3[0]; _local10 = _arg3[1]; _local11 = _arg3[2]; _local12 = _arg4[0]; _local13 = _arg4[1]; var _local14:_-7Q = _arg4[2]; var _local15:Number = _local6.x; var _local16:Number = _local6.y; var _local17:Number = _local7.x; var _local18:Number = _local7.y; var _local19:Number = _local8.x; var _local20:Number = _local8.y; var _local21:Number = (_local17 - _local15); var _local22:Number = (_local18 - _local16); var _local23:Number = (_local19 - _local15); var _local24:Number = (_local20 - _local16); var _local25:Number = (_local19 - _local17); var _local26:Number = (_local20 - _local18); var _local27:Number = -(((_local15 * _local21) + (_local16 * _local22))); var _local28:Number = ((_local17 * _local21) + (_local18 * _local22)); var _local29:Number = -(((_local15 * _local23) + (_local16 * _local24))); var _local30:Number = ((_local19 * _local23) + (_local20 * _local24)); var _local31:Number = -(((_local17 * _local25) + (_local18 * _local26))); var _local32:Number = ((_local19 * _local25) + (_local20 * _local26)); if ((((_local30 <= 0)) && ((_local32 <= 0)))){ _arg1._-3g(_local11); _arg2._-3g(_local14); _local9._-3g(_local11); _local12._-3g(_local14); _local6._-3g(_local8); return (1); }; var _local33:Number = ((_local21 * _local24) - (_local22 * _local23)); var _local34:Number = (_local33 * ((_local15 * _local18) - (_local16 * _local17))); var _local36:Number = (_local33 * ((_local17 * _local20) - (_local18 * _local19))); if ((((((((_local36 <= 0)) && ((_local31 >= 0)))) && ((_local32 >= 0)))) && (((_local31 + _local32) > 0)))){ _local35 = (_local31 / (_local31 + _local32)); _arg1.x = (_local10.x + (_local35 * (_local11.x - _local10.x))); _arg1.y = (_local10.y + (_local35 * (_local11.y - _local10.y))); _arg2.x = (_local13.x + (_local35 * (_local14.x - _local13.x))); _arg2.y = (_local13.y + (_local35 * (_local14.y - _local13.y))); _local9._-3g(_local11); _local12._-3g(_local14); _local6._-3g(_local8); return (2); }; var _local37:Number = (_local33 * ((_local19 * _local16) - (_local20 * _local15))); if ((((((((_local37 <= 0)) && ((_local29 >= 0)))) && ((_local30 >= 0)))) && (((_local29 + _local30) > 0)))){ _local35 = (_local29 / (_local29 + _local30)); _arg1.x = (_local9.x + (_local35 * (_local11.x - _local9.x))); _arg1.y = (_local9.y + (_local35 * (_local11.y - _local9.y))); _arg2.x = (_local12.x + (_local35 * (_local14.x - _local12.x))); _arg2.y = (_local12.y + (_local35 * (_local14.y - _local12.y))); _local10._-3g(_local11); _local13._-3g(_local14); _local7._-3g(_local8); return (2); }; var _local38:Number = ((_local36 + _local37) + _local34); _local38 = (1 / _local38); var _local39:Number = (_local36 * _local38); var _local40:Number = (_local37 * _local38); var _local41:Number = ((1 - _local39) - _local40); _arg1.x = (((_local39 * _local9.x) + (_local40 * _local10.x)) + (_local41 * _local11.x)); _arg1.y = (((_local39 * _local9.y) + (_local40 * _local10.y)) + (_local41 * _local11.y)); _arg2.x = (((_local39 * _local12.x) + (_local40 * _local13.x)) + (_local41 * _local14.x)); _arg2.y = (((_local39 * _local12.y) + (_local40 * _local13.y)) + (_local41 * _local14.y)); return (3); } public static function _-AN(_arg1:_-7Q, _arg2:_-7Q, _arg3:_-8P, _arg4:_-2w, _arg5:_-Jt, _arg6:_-2w):Number{ var _local7:_-HS; var _local8:_-7Q; var _local12:Number; var _local13:Number; var _local14:Number; var _local9:_-Iz = _-LE; _local8 = _arg5._-Ac; _local7 = _arg6.R; _local9.p.x = (_arg6.position.x + ((_local7._-7f.x * _local8.x) + (_local7._-IO.x * _local8.y))); _local9.p.y = (_arg6.position.y + ((_local7._-7f.y * _local8.x) + (_local7._-IO.y * _local8.y))); var _local10:Number = _-LJ(_arg1, _arg2, _arg3, _arg4, _local9, _-8Q._-Hl); var _local11:Number = (_arg5._-9y - _-Cj._-Ep); if (_local10 > _local11){ _local10 = (_local10 - _local11); _local12 = (_arg2.x - _arg1.x); _local13 = (_arg2.y - _arg1.y); _local14 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); _local12 = (_local12 / _local14); _local13 = (_local13 / _local14); _arg2.x = (_arg2.x - (_local11 * _local12)); _arg2.y = (_arg2.y - (_local11 * _local13)); } else { _local10 = 0; _arg2.x = _arg1.x; _arg2.y = _arg1.y; }; return (_local10); } public static function _-38(_arg1:_-7Q, _arg2:_-7Q, _arg3:_-EB, _arg4:_-2w, _arg5:_-EB, _arg6:_-2w):Number{ var _local7:int = _arg3.m_type; var _local8:int = _arg5.m_type; if ((((_local7 == _-EB._-9l)) && ((_local8 == _-EB._-9l)))){ return (_-2B(_arg1, _arg2, (_arg3 as _-Jt), _arg4, (_arg5 as _-Jt), _arg6)); }; if ((((_local7 == _-EB._-Ay)) && ((_local8 == _-EB._-9l)))){ return (_-AN(_arg1, _arg2, (_arg3 as _-8P), _arg4, (_arg5 as _-Jt), _arg6)); }; if ((((_local7 == _-EB._-9l)) && ((_local8 == _-EB._-Ay)))){ return (_-AN(_arg2, _arg1, (_arg5 as _-8P), _arg6, (_arg3 as _-Jt), _arg4)); }; if ((((_local7 == _-EB._-Ay)) && ((_local8 == _-EB._-Ay)))){ return (_-LJ(_arg1, _arg2, (_arg3 as _-8P), _arg4, (_arg5 as _-8P), _arg6)); }; return (0); } public static function _-Lk(_arg1:_-7Q, _arg2:_-7Q, _arg3:Array, _arg4:Array, _arg5:Array):int{ var _local9:_-7Q; var _local10:_-7Q; var _local11:_-7Q; var _local17:Number; var _local6:_-7Q = _arg5[0]; var _local7:_-7Q = _arg5[1]; var _local8:_-7Q = _arg3[0]; _local9 = _arg3[1]; _local10 = _arg4[0]; _local11 = _arg4[1]; var _local12:Number = -(_local7.x); var _local13:Number = -(_local7.y); var _local14:Number = (_local6.x - _local7.x); var _local15:Number = (_local6.y - _local7.y); var _local16:Number = Math.sqrt(((_local14 * _local14) + (_local15 * _local15))); _local14 = (_local14 / _local16); _local15 = (_local15 / _local16); _local17 = ((_local12 * _local14) + (_local13 * _local15)); if ((((_local17 <= 0)) || ((_local16 < Number.MIN_VALUE)))){ _arg1._-3g(_local9); _arg2._-3g(_local11); _local8._-3g(_local9); _local10._-3g(_local11); _local6._-3g(_local7); return (1); }; _local17 = (_local17 / _local16); _arg1.x = (_local9.x + (_local17 * (_local8.x - _local9.x))); _arg1.y = (_local9.y + (_local17 * (_local8.y - _local9.y))); _arg2.x = (_local11.x + (_local17 * (_local10.x - _local11.x))); _arg2.y = (_local11.y + (_local17 * (_local10.y - _local11.y))); return (2); } } }//package Box2D.Collision
Section 62
//_-1G (Box2D.Collision._-1G) package Box2D.Collision { import _-BU.*; public class _-1G { public var R:_-HS; public var center:_-7Q; public var _-Al:_-7Q; public function _-1G(){ this.R = new _-HS(); this.center = new _-7Q(); this._-Al = new _-7Q(); super(); } } }//package Box2D.Collision
Section 63
//_-1S (Box2D.Collision._-1S) package Box2D.Collision { public class _-1S { public function PairRemoved(_arg1, _arg2, _arg3):void{ } public function PairAdded(_arg1, _arg2){ return (null); } } }//package Box2D.Collision
Section 64
//_-4n (Box2D.Collision._-4n) package Box2D.Collision { import _-BU.*; import _-L9.*; import _-Cb.*; public class _-4n { public static var _-6k:_-2w = new _-2w(); public static var _-LX:_-2w = new _-2w(); public static var _-Hr:_-7Q = new _-7Q(); public static var _-Iy:_-7Q = new _-7Q(); public static function _-AR(_arg1:_-EB, _arg2:_-KO, _arg3:_-EB, _arg4:_-KO):Number{ var _local5:Number; var _local6:Number; var _local25:Number; var _local26:_-2w; var _local27:_-2w; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local7:Number = _arg1._-4t; var _local8:Number = _arg3._-4t; var _local9:Number = _arg2._-69; var _local10:Number = (_arg2.c.x - _arg2.c0.x); var _local11:Number = (_arg2.c.y - _arg2.c0.y); var _local12:Number = (_arg4.c.x - _arg4.c0.x); var _local13:Number = (_arg4.c.y - _arg4.c0.y); var _local14:Number = (_arg2.a - _arg2.a0); var _local15:Number = (_arg4.a - _arg4.a0); var _local16:Number = 0; var _local17:_-7Q = _-Hr; var _local18:_-7Q = _-Iy; var _local19 = 20; var _local20:int; var _local21:Number = 0; var _local22:Number = 0; var _local23:Number = 0; var _local24:Number = 0; while (true) { _local25 = (((1 - _local16) * _local9) + _local16); _local26 = _-6k; _local27 = _-LX; _arg2._-3t(_local26, _local25); _arg4._-3t(_local27, _local25); _local23 = _-14._-38(_local17, _local18, _arg1, _local26, _arg3, _local27); if (_local20 == 0){ if (_local23 > (2 * _-Cj._-Ep)){ _local24 = (1.5 * _-Cj._-Ep); } else { _local5 = (0.05 * _-Cj._-Ep); _local6 = (_local23 - (0.5 * _-Cj._-Ep)); _local24 = ((_local5 > _local6)) ? _local5 : _local6; }; }; if (((((_local23 - _local24) < (0.05 * _-Cj._-Ep))) || ((_local20 == _local19)))){ break; }; _local21 = (_local18.x - _local17.x); _local22 = (_local18.y - _local17.y); _local28 = Math.sqrt(((_local21 * _local21) + (_local22 * _local22))); _local21 = (_local21 / _local28); _local22 = (_local22 / _local28); _local29 = ((((_local21 * (_local10 - _local12)) + (_local22 * (_local11 - _local13))) + (((_local14 < 0)) ? -(_local14) : _local14 * _local7)) + (((_local15 < 0)) ? -(_local15) : _local15 * _local8)); if (_local29 == 0){ _local16 = 1; break; }; _local30 = ((_local23 - _local24) / _local29); _local31 = (_local16 + _local30); if ((((_local31 < 0)) || ((1 < _local31)))){ _local16 = 1; break; }; if (_local31 < ((1 + (100 * Number.MIN_VALUE)) * _local16)){ break; }; _local16 = _local31; _local20++; }; return (_local16); } } }//package Box2D.Collision
Section 65
//_-4w (Box2D.Collision._-4w) package Box2D.Collision { public class _-4w { public var _-6n:uint; public var userData;// = null public var _-d:Array; public var _-DX:Array; public var import:uint; public function _-4w(){ this._-d = [uint(0), uint(0)]; this._-DX = [uint(0), uint(0)]; super(); } public function _-53():uint{ return (this._-d[0]); } public function _-D3():Boolean{ return (!((this._-6n == _-9Z._-Bc))); } public function _-3a(_arg1:uint):void{ this._-d[0] = (_arg1 & 0xFFFF); } } }//package Box2D.Collision
Section 66
//_-6a (Box2D.Collision._-6a) package Box2D.Collision { public class _-6a { public var proxyId1:uint; public var userData;// = null public var proxyId2:uint; public var status:uint; public var next:uint; public static var _-EH:uint = 4; public static var _-26:int = (_-Hz - 1); public static var _-G2:uint = 2; public static var _-0F:uint = 0xFFFF; public static var _-GO:uint = 1; public static var _-0A:uint = 0xFFFF; public static var _-Hz:int = 4096; public function _-LW():void{ this.status = (this.status | _-GO); } public function _-AK():Boolean{ return (((this.status & _-GO) == _-GO)); } public function _-9G():Boolean{ return (((this.status & _-EH) == _-EH)); } public function _-N():void{ this.status = (this.status & ~(_-G2)); } public function _-Hs():void{ this.status = (this.status | _-EH); } public function _-Lu():Boolean{ return (((this.status & _-G2) == _-G2)); } public function _-K0():void{ this.status = (this.status & ~(_-GO)); } public function _-r():void{ this.status = (this.status | _-G2); } } }//package Box2D.Collision
Section 67
//_-8 (Box2D.Collision._-8) package Box2D.Collision { public class _-8 { public var value:uint; public var proxyId:uint; public var _-AB:uint; public function _-(_arg1:_-8):void{ var _local2:uint = this.value; var _local3:uint = this.proxyId; var _local4:uint = this._-AB; this.value = _arg1.value; this.proxyId = _arg1.proxyId; this._-AB = _arg1._-AB; _arg1.value = _local2; _arg1.proxyId = _local3; _arg1._-AB = _local4; } public function IsLower():Boolean{ return (((this.value & 1) == 0)); } public function IsUpper():Boolean{ return (((this.value & 1) == 1)); } } }//package Box2D.Collision
Section 68
//_-8q (Box2D.Collision._-8q) package Box2D.Collision { import _-BU.*; public class _-8q { public var _-L7:Number; public var _-GI:_-7Q; public var _-DT:Number; public var _-Ft:Number; public var _-1R:_-7Q; public var id:_-Dv; public function _-8q(){ this._-1R = new _-7Q(); this._-GI = new _-7Q(); this.id = new _-Dv(); super(); } public function Set(_arg1:_-8q):void{ this._-1R._-3g(_arg1._-1R); this._-GI._-3g(_arg1._-GI); this._-L7 = _arg1._-L7; this._-DT = _arg1._-DT; this._-Ft = _arg1._-Ft; this.id.key = _arg1.id.key; } public function _-Ic():void{ this._-1R._-Cv(); this._-GI._-Cv(); this._-L7 = 0; this._-DT = 0; this._-Ft = 0; this.id.key = 0; } } }//package Box2D.Collision
Section 69
//_-9B (Box2D.Collision._-9B) package Box2D.Collision { import _-BU.*; public class _-9B { public var _-IC:_-7Q; public var _-GJ:_-7Q; public function _-9B(){ this._-GJ = new _-7Q(); this._-IC = new _-7Q(); super(); } public function _-D3():Boolean{ var _local1:Number = (this._-IC.x - this._-GJ.x); var _local2:Number = (this._-IC.y - this._-GJ.y); var _local3:Boolean = (((_local1 >= 0)) && ((_local2 >= 0))); _local3 = ((((_local3) && (this._-GJ._-D3()))) && (this._-IC._-D3())); return (_local3); } } }//package Box2D.Collision
Section 70
//_-9Z (Box2D.Collision._-9Z) package Box2D.Collision { import _-BU.*; import _-L9.*; public class _-9Z { public var _-Jx:Array; public var _-3D:_-9B; public var _-Kd:Array; public var _-Eb:uint; public var _-6r:_-7Q; public var set :int; public var _-HC:Array; public var _-1W:int; public var _-Hv:_-Fg; public var _-4y:uint; public var _-Y:Array; public static const _-7y:uint = 0xFFFF; public static const _-Bc:uint = 0xFFFF; public static var _-E3:Boolean = false; public function _-9Z(_arg1:_-9B, _arg2:_-1S){ var _local3:int; var _local6:_-4w; var _local7:int; this._-Hv = new _-Fg(); this._-HC = new Array(_-Cj._-F8); this._-Jx = new Array((2 * _-Cj._-FK)); this._-Kd = new Array(_-Cj._-FK); this._-Y = new Array(_-Cj._-FK); this._-6r = new _-7Q(); super(); this._-Hv._-Ku(this, _arg2); this._-3D = _arg1; this.set = 0; _local3 = 0; while (_local3 < _-Cj._-FK) { this._-Y[_local3] = 0; this._-Kd[_local3] = 0; _local3++; }; this._-Jx = new Array(2); _local3 = 0; while (_local3 < 2) { this._-Jx[_local3] = new Array((2 * _-Cj._-FK)); _local7 = 0; while (_local7 < (2 * _-Cj._-FK)) { this._-Jx[_local3][_local7] = new _-8(); _local7++; }; _local3++; }; var _local4:Number = (_arg1._-IC.x - _arg1._-GJ.x); var _local5:Number = (_arg1._-IC.y - _arg1._-GJ.y); this._-6r.x = (_-Cj._-Jz / _local4); this._-6r.y = (_-Cj._-Jz / _local5); _local3 = 0; while (_local3 < (_-Cj._-FK - 1)) { _local6 = new _-4w(); this._-HC[_local3] = _local6; _local6._-3a((_local3 + 1)); _local6.import = 0; _local6._-6n = _-Bc; _local6.userData = null; _local3++; }; _local6 = new _-4w(); this._-HC[int((_-Cj._-FK - 1))] = _local6; _local6._-3a(_-6a._-0A); _local6.import = 0; _local6._-6n = _-Bc; _local6.userData = null; this._-Eb = 0; this._-4y = 1; this._-1W = 0; } public function _-J7(_arg1:_-9B, _arg2, _arg3:int):int{ var _local6:uint; var _local7:uint; var _local12:_-4w; var _local4:Array = new Array(); var _local5:Array = new Array(); this._-BT(_local4, _local5, _arg1); var _local8:Array = [_local6]; var _local9:Array = [_local7]; this._-CB(_local8, _local9, _local4[0], _local5[0], this._-Jx[0], (2 * this.set ), 0); this._-CB(_local8, _local9, _local4[1], _local5[1], this._-Jx[1], (2 * this.set ), 1); var _local10:int; var _local11:int; while ((((_local11 < this._-1W)) && ((_local10 < _arg3)))) { _local12 = this._-HC[this._-Y[_local11]]; _arg2[_local11] = _local12.userData; _local11++; _local10++; }; this._-1W = 0; this._-J5(); return (_local10); } public function _-0j():void{ this._-Hv._-0j(); } public function function(_arg1:int):_-4w{ var _local2:_-4w = this._-HC[_arg1]; if ((((_arg1 == _-6a._-0A)) || ((_local2._-D3() == false)))){ return (null); }; return (_local2); } private function _-J5():void{ var _local1:uint; if (this._-4y == _-Cj._-Jz){ _local1 = 0; while (_local1 < _-Cj._-FK) { (this._-HC[_local1] as _-4w).import = 0; _local1++; }; this._-4y = 1; } else { this._-4y++; }; } private function _-CB(_arg1:Array, _arg2:Array, _arg3:uint, _arg4:uint, _arg5:Array, _arg6:uint, _arg7:int):void{ var _local10:_-8; var _local12:int; var _local13:int; var _local14:_-4w; var _local8:uint = _-3A(_arg5, _arg6, _arg3); var _local9:uint = _-3A(_arg5, _arg6, _arg4); var _local11:uint = _local8; while (_local11 < _local9) { _local10 = _arg5[_local11]; if (_local10.IsLower()){ this._-I(_local10.proxyId); }; _local11++; }; if (_local8 > 0){ _local12 = (_local8 - 1); _local10 = _arg5[_local12]; _local13 = _local10._-AB; while (_local13) { _local10 = _arg5[_local12]; if (_local10.IsLower()){ _local14 = this._-HC[_local10.proxyId]; if (_local8 <= _local14._-DX[_arg7]){ this._-I(_local10.proxyId); _local13--; }; }; _local12--; }; }; _arg1[0] = _local8; _arg2[0] = _local9; } private function _-BS(_arg1:uint, _arg2:_-4w, _arg3:Number, _arg4:Function):void{ var _local9:Number; var _local10:uint; var _local5:Number = _arg4(_arg2.userData); if (_local5 < 0){ return; }; var _local6:Number = 0; while ((((_local6 < this._-1W)) && ((this._-Kd[_local6] < _local5)))) { _local6++; }; var _local7:Number = _local5; var _local8:uint = _arg1; this._-1W = (this._-1W + 1); if (this._-1W > _arg3){ this._-1W = _arg3; }; while (_local6 < this._-1W) { _local9 = this._-Kd[_local6]; _local10 = this._-Y[_local6]; this._-Kd[_local6] = _local7; this._-Y[_local6] = _local8; _local7 = _local9; _local8 = _local10; _local6++; }; } private function _-M(_arg1:_-4w, _arg2:_-4w):Boolean{ var _local4:Array; var _local5:_-8; var _local6:_-8; var _local3:int; while (_local3 < 2) { _local4 = this._-Jx[_local3]; _local5 = _local4[_arg1._-d[_local3]]; _local6 = _local4[_arg2._-DX[_local3]]; if (_local5.value > _local6.value){ return (false); }; _local5 = _local4[_arg1._-DX[_local3]]; _local6 = _local4[_arg2._-d[_local3]]; if (_local5.value < _local6.value){ return (false); }; _local3++; }; return (true); } private function _-BT(_arg1:Array, _arg2:Array, _arg3:_-9B):void{ var _local4:Number = _arg3._-GJ.x; var _local5:Number = _arg3._-GJ.y; _local4 = _-8Q._-46(_local4, this._-3D._-IC.x); _local5 = _-8Q._-46(_local5, this._-3D._-IC.y); _local4 = _-8Q._-Hi(_local4, this._-3D._-GJ.x); _local5 = _-8Q._-Hi(_local5, this._-3D._-GJ.y); var _local6:Number = _arg3._-IC.x; var _local7:Number = _arg3._-IC.y; _local6 = _-8Q._-46(_local6, this._-3D._-IC.x); _local7 = _-8Q._-46(_local7, this._-3D._-IC.y); _local6 = _-8Q._-Hi(_local6, this._-3D._-GJ.x); _local7 = _-8Q._-Hi(_local7, this._-3D._-GJ.y); _arg1[0] = (uint((this._-6r.x * (_local4 - this._-3D._-GJ.x))) & (_-Cj._-Jz - 1)); _arg2[0] = ((uint((this._-6r.x * (_local6 - this._-3D._-GJ.x))) & 0xFFFF) | 1); _arg1[1] = (uint((this._-6r.y * (_local5 - this._-3D._-GJ.y))) & (_-Cj._-Jz - 1)); _arg2[1] = ((uint((this._-6r.y * (_local7 - this._-3D._-GJ.y))) & 0xFFFF) | 1); } public function _-1P(_arg1:_-9B, _arg2):uint{ var _local3:uint; var _local4:_-4w; var _local11:Array; var _local12:uint; var _local13:uint; var _local14:Array; var _local15:Array; var _local16:Array; var _local17:int; var _local18:int; var _local19:_-8; var _local20:_-8; var _local21:_-8; var _local22:int; var _local23:_-4w; var _local5:uint = this._-Eb; _local4 = this._-HC[_local5]; this._-Eb = _local4._-53(); _local4._-6n = 0; _local4.userData = _arg2; var _local6:uint = (2 * this.set ); var _local7:Array = new Array(); var _local8:Array = new Array(); this._-BT(_local7, _local8, _arg1); var _local9:int; while (_local9 < 2) { _local11 = this._-Jx[_local9]; _local14 = [_local12]; _local15 = [_local13]; this._-CB(_local14, _local15, _local7[_local9], _local8[_local9], _local11, _local6, _local9); _local12 = _local14[0]; _local13 = _local15[0]; _local16 = new Array(); _local18 = (_local6 - _local13); _local17 = 0; while (_local17 < _local18) { _local16[_local17] = new _-8(); _local19 = _local16[_local17]; _local20 = _local11[int((_local13 + _local17))]; _local19.value = _local20.value; _local19.proxyId = _local20.proxyId; _local19._-AB = _local20._-AB; _local17++; }; _local18 = _local16.length; _local22 = (_local13 + 2); _local17 = 0; while (_local17 < _local18) { _local20 = _local16[_local17]; _local19 = _local11[int((_local22 + _local17))]; _local19.value = _local20.value; _local19.proxyId = _local20.proxyId; _local19._-AB = _local20._-AB; _local17++; }; _local16 = new Array(); _local18 = (_local13 - _local12); _local17 = 0; while (_local17 < _local18) { _local16[_local17] = new _-8(); _local19 = _local16[_local17]; _local20 = _local11[int((_local12 + _local17))]; _local19.value = _local20.value; _local19.proxyId = _local20.proxyId; _local19._-AB = _local20._-AB; _local17++; }; _local18 = _local16.length; _local22 = (_local12 + 1); _local17 = 0; while (_local17 < _local18) { _local20 = _local16[_local17]; _local19 = _local11[int((_local22 + _local17))]; _local19.value = _local20.value; _local19.proxyId = _local20.proxyId; _local19._-AB = _local20._-AB; _local17++; }; _local13++; _local19 = _local11[_local12]; _local20 = _local11[_local13]; _local19.value = _local7[_local9]; _local19.proxyId = _local5; _local20.value = _local8[_local9]; _local20.proxyId = _local5; _local21 = _local11[int((_local12 - 1))]; _local19._-AB = ((_local12 == 0)) ? 0 : _local21._-AB; _local21 = _local11[int((_local13 - 1))]; _local20._-AB = _local21._-AB; _local3 = _local12; while (_local3 < _local13) { _local21 = _local11[_local3]; _local21._-AB++; _local3++; }; _local3 = _local12; while (_local3 < (_local6 + 2)) { _local19 = _local11[_local3]; _local23 = this._-HC[_local19.proxyId]; if (_local19.IsLower()){ _local23._-d[_local9] = _local3; } else { _local23._-DX[_local9] = _local3; }; _local3++; }; _local9++; }; this.set ++; var _local10:int; while (_local10 < this._-1W) { this._-Hv._-8k(_local5, this._-Y[_local10]); _local10++; }; this._-Hv._-0j(); this._-1W = 0; this._-J5(); return (_local5); } public function _-EV(_arg1:uint):void{ var _local2:_-8; var _local3:_-8; var _local8:Array; var _local9:uint; var _local10:uint; var _local11:uint; var _local12:uint; var _local13:Array; var _local14:int; var _local15:int; var _local16:int; var _local17:uint; var _local18:int; var _local19:_-4w; var _local4:_-4w = this._-HC[_arg1]; var _local5:int = (2 * this.set ); var _local6:int; while (_local6 < 2) { _local8 = this._-Jx[_local6]; _local9 = _local4._-d[_local6]; _local10 = _local4._-DX[_local6]; _local2 = _local8[_local9]; _local11 = _local2.value; _local3 = _local8[_local10]; _local12 = _local3.value; _local13 = new Array(); _local15 = ((_local10 - _local9) - 1); _local14 = 0; while (_local14 < _local15) { _local13[_local14] = new _-8(); _local2 = _local13[_local14]; _local3 = _local8[int(((_local9 + 1) + _local14))]; _local2.value = _local3.value; _local2.proxyId = _local3.proxyId; _local2._-AB = _local3._-AB; _local14++; }; _local15 = _local13.length; _local16 = _local9; _local14 = 0; while (_local14 < _local15) { _local3 = _local13[_local14]; _local2 = _local8[int((_local16 + _local14))]; _local2.value = _local3.value; _local2.proxyId = _local3.proxyId; _local2._-AB = _local3._-AB; _local14++; }; _local13 = new Array(); _local15 = ((_local5 - _local10) - 1); _local14 = 0; while (_local14 < _local15) { _local13[_local14] = new _-8(); _local2 = _local13[_local14]; _local3 = _local8[int(((_local10 + 1) + _local14))]; _local2.value = _local3.value; _local2.proxyId = _local3.proxyId; _local2._-AB = _local3._-AB; _local14++; }; _local15 = _local13.length; _local16 = (_local10 - 1); _local14 = 0; while (_local14 < _local15) { _local3 = _local13[_local14]; _local2 = _local8[int((_local16 + _local14))]; _local2.value = _local3.value; _local2.proxyId = _local3.proxyId; _local2._-AB = _local3._-AB; _local14++; }; _local15 = (_local5 - 2); _local17 = _local9; while (_local17 < _local15) { _local2 = _local8[_local17]; _local19 = this._-HC[_local2.proxyId]; if (_local2.IsLower()){ _local19._-d[_local6] = _local17; } else { _local19._-DX[_local6] = _local17; }; _local17++; }; _local15 = (_local10 - 1); _local18 = _local9; while (_local18 < _local15) { _local2 = _local8[_local18]; _local2._-AB--; _local18++; }; this._-CB([0], [0], _local11, _local12, _local8, (_local5 - 2), _local6); _local6++; }; var _local7:int; while (_local7 < this._-1W) { this._-Hv._-3B(_arg1, this._-Y[_local7]); _local7++; }; this._-Hv._-0j(); this._-1W = 0; this._-J5(); _local4.userData = null; _local4._-6n = _-Bc; _local4._-d[0] = _-Bc; _local4._-d[1] = _-Bc; _local4._-DX[0] = _-Bc; _local4._-DX[1] = _-Bc; _local4._-3a(this._-Eb); this._-Eb = _arg1; this.set --; } public function _-GS(_arg1:_-FH, _arg2:_-4w):Boolean{ var _local4:Array; var _local5:_-8; var _local3:int; while (_local3 < 2) { _local4 = this._-Jx[_local3]; _local5 = _local4[_arg2._-DX[_local3]]; if (_arg1._-IR[_local3] > _local5.value){ return (false); }; _local5 = _local4[_arg2._-d[_local3]]; if (_arg1._-Gn[_local3] < _local5.value){ return (false); }; _local3++; }; return (true); } public function _-2g():void{ var _local1:_-6a; var _local2:_-4w; var _local3:_-4w; var _local4:Boolean; var _local6:_-8; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:_-8; var _local5:int; while (_local5 < 2) { _local6 = this._-Jx[_local5]; _local7 = (2 * this.set ); _local8 = 0; _local9 = 0; while (_local9 < _local7) { _local10 = _local6[_local9]; if (_local10.IsLower() == true){ _local8++; } else { _local8--; }; _local9++; }; _local5++; }; } private function _-I(_arg1:uint):void{ var _local2:_-4w = this._-HC[_arg1]; if (_local2.import < this._-4y){ _local2.import = this._-4y; _local2._-6n = 1; } else { _local2._-6n = 2; this._-Y[this._-1W] = _arg1; this._-1W++; }; } public function _-Bz(_arg1:_-9B):Boolean{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; _local2 = _arg1._-GJ.x; _local3 = _arg1._-GJ.y; _local2 = (_local2 - this._-3D._-IC.x); _local3 = (_local3 - this._-3D._-IC.y); _local4 = this._-3D._-GJ.x; _local5 = this._-3D._-GJ.y; _local4 = (_local4 - _arg1._-IC.x); _local5 = (_local5 - _arg1._-IC.y); _local2 = _-8Q._-Hi(_local2, _local4); _local3 = _-8Q._-Hi(_local3, _local5); return ((_-8Q._-Hi(_local2, _local3) < 0)); } public function _-G-(_arg1:_-GP, _arg2, _arg3:int, _arg4:Function):int{ var _local15:int; var _local16:int; var _local17:uint; var _local18:_-4w; var _local19:uint; var _local20:uint; var _local24:Number; var _local25:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:uint; var _local5:Number = 1; var _local6:Number = ((_arg1.p2.x - _arg1.p1.x) * this._-6r.x); var _local7:Number = ((_arg1.p2.y - _arg1.p1.y) * this._-6r.y); var _local8:int = ((_local6 < -(Number.MIN_VALUE))) ? -1 : ((_local6 > Number.MIN_VALUE)) ? 1 : 0; var _local9:int = ((_local7 < -(Number.MIN_VALUE))) ? -1 : ((_local7 > Number.MIN_VALUE)) ? 1 : 0; var _local10:Number = (this._-6r.x * (_arg1.p1.x - this._-3D._-GJ.x)); var _local11:Number = (this._-6r.y * (_arg1.p1.y - this._-3D._-GJ.y)); var _local12:Array = new Array(); var _local13:Array = new Array(); _local12[0] = (uint(_local10) & (_-Cj._-Jz - 1)); _local12[1] = (uint(_local11) & (_-Cj._-Jz - 1)); _local13[0] = (_local12[0] + 1); _local13[1] = (_local12[1] + 1); var _local14:Array = new Array(); var _local21:Array = [_local19]; var _local22:Array = [_local20]; this._-CB(_local21, _local22, _local12[0], _local13[0], this._-Jx[0], (2 * this.set ), 0); if (_local8 >= 0){ _local15 = (_local22[0] - 1); } else { _local15 = _local21[0]; }; this._-CB(_local21, _local22, _local12[1], _local13[1], this._-Jx[1], (2 * this.set ), 1); if (_local9 >= 0){ _local16 = (_local22[0] - 1); } else { _local16 = _local21[0]; }; if (_arg4 != null){ _local27 = 0; while (_local27 < this._-1W) { this._-Kd[_local27] = _arg4(this._-HC[this._-Y[_local27]].userData); _local27++; }; _local27 = 0; while (_local27 < (this._-1W - 1)) { _local28 = this._-Kd[_local27]; _local29 = this._-Kd[(_local27 + 1)]; if (((_local28)<0) ? (_local29 >= 0) : (((_local28 > _local29)) && ((_local29 >= 0)))){ this._-Kd[(_local27 + 1)] = _local28; this._-Kd[_local27] = _local29; _local30 = this._-Y[(_local27 + 1)]; this._-Y[(_local27 + 1)] = this._-Y[_local27]; this._-Y[_local27] = _local30; --_local27; if (_local27 == -1){ _local27 = 1; }; } else { _local27++; }; }; while ((((this._-1W > 0)) && ((this._-Kd[(this._-1W - 1)] < 0)))) { this._-1W--; }; }; var _local23:Boolean; if ((((_local15 < 0)) || ((_local15 >= (this.set * 2))))){ _local23 = false; }; if ((((_local16 < 0)) || ((_local16 >= (this.set * 2))))){ _local23 = false; }; if (_local23){ if (_local8 != 0){ if (_local8 > 0){ _local15++; if (_local15 == (this.set * 2)){ _local23 = false; }; } else { --_local15; if (_local15 < 0){ _local23 = false; }; }; _local24 = ((this._-Jx[0][_local15].value - _local10) / _local6); }; if (_local9 != 0){ if (_local9 > 0){ _local16++; if (_local16 == (this.set * 2)){ _local23 = false; }; } else { --_local16; if (_local16 < 0){ _local23 = false; }; }; _local25 = ((this._-Jx[1][_local16].value - _local11) / _local7); }; }; while (_local23) { if ((((_local9 == 0)) || (((!((_local8 == 0))) && ((_local24 < _local25)))))){ if (_local24 > _local5){ break; }; if (((_local8 > 0)) ? this._-Jx[0][_local15].IsLower() : this._-Jx[0][_local15].IsUpper()){ _local17 = this._-Jx[0][_local15].proxyId; _local18 = this._-HC[_local17]; if (_local9 >= 0){ if ((((_local18._-d[1] <= (_local16 - 1))) && ((_local18._-DX[1] >= _local16)))){ if (_arg4 != null){ this._-BS(_local17, _local18, _arg3, _arg4); } else { this._-Y[this._-1W] = _local17; this._-1W++; }; }; } else { if ((((_local18._-d[1] <= _local16)) && ((_local18._-DX[1] >= (_local16 + 1))))){ if (_arg4 != null){ this._-BS(_local17, _local18, _arg3, _arg4); } else { this._-Y[this._-1W] = _local17; this._-1W++; }; }; }; }; if (((((((!((_arg4 == null))) && ((this._-1W == _arg3)))) && ((this._-1W > 0)))) && ((_local24 > this._-Kd[(this._-1W - 1)])))){ break; }; if (_local8 > 0){ _local15++; if (_local15 == (this.set * 2)){ break; }; } else { --_local15; if (_local15 < 0){ break; }; }; _local24 = ((this._-Jx[0][_local15].value - _local10) / _local6); } else { if (_local25 > _local5){ break; }; if (((_local9 > 0)) ? this._-Jx[1][_local16].IsLower() : this._-Jx[1][_local16].IsUpper()){ _local17 = this._-Jx[1][_local16].proxyId; _local18 = this._-HC[_local17]; if (_local8 >= 0){ if ((((_local18._-d[0] <= (_local15 - 1))) && ((_local18._-DX[0] >= _local15)))){ if (_arg4 != null){ this._-BS(_local17, _local18, _arg3, _arg4); } else { this._-Y[this._-1W] = _local17; this._-1W++; }; }; } else { if ((((_local18._-d[0] <= _local15)) && ((_local18._-DX[0] >= (_local15 + 1))))){ if (_arg4 != null){ this._-BS(_local17, _local18, _arg3, _arg4); } else { this._-Y[this._-1W] = _local17; this._-1W++; }; }; }; }; if (((((((!((_arg4 == null))) && ((this._-1W == _arg3)))) && ((this._-1W > 0)))) && ((_local25 > this._-Kd[(this._-1W - 1)])))){ break; }; if (_local9 > 0){ _local16++; if (_local16 == (this.set * 2)){ break; }; } else { --_local16; if (_local16 < 0){ break; }; }; _local25 = ((this._-Jx[1][_local16].value - _local11) / _local7); }; }; var _local26:int; _local27 = 0; while ((((_local27 < this._-1W)) && ((_local26 < _arg3)))) { _local18 = this._-HC[this._-Y[_local27]]; _arg2[_local27] = _local18.userData; _local27++; _local26++; }; this._-1W = 0; this._-J5(); return (_local26); } public function _-06(_arg1:uint, _arg2:_-9B):void{ var _local3:Array; var _local4:int; var _local5:uint; var _local6:uint; var _local7:_-8; var _local8:_-8; var _local9:_-8; var _local10:uint; var _local11:_-4w; var _local16:Array; var _local17:uint; var _local18:uint; var _local19:uint; var _local20:uint; var _local21:int; var _local22:int; var _local23:uint; var _local24:_-4w; if ((((_arg1 == _-6a._-0A)) || ((_-Cj._-FK <= _arg1)))){ return; }; if (_arg2._-D3() == false){ return; }; var _local12:uint = (2 * this.set ); var _local13:_-4w = this._-HC[_arg1]; var _local14:_-FH = new _-FH(); this._-BT(_local14._-IR, _local14._-Gn, _arg2); var _local15:_-FH = new _-FH(); _local5 = 0; while (_local5 < 2) { _local7 = this._-Jx[_local5][_local13._-d[_local5]]; _local15._-IR[_local5] = _local7.value; _local7 = this._-Jx[_local5][_local13._-DX[_local5]]; _local15._-Gn[_local5] = _local7.value; _local5++; }; _local5 = 0; while (_local5 < 2) { _local16 = this._-Jx[_local5]; _local17 = _local13._-d[_local5]; _local18 = _local13._-DX[_local5]; _local19 = _local14._-IR[_local5]; _local20 = _local14._-Gn[_local5]; _local7 = _local16[_local17]; _local21 = (_local19 - _local7.value); _local7.value = _local19; _local7 = _local16[_local18]; _local22 = (_local20 - _local7.value); _local7.value = _local20; if (_local21 < 0){ _local6 = _local17; while ((((_local6 > 0)) && ((_local19 < (_local16[int((_local6 - 1))] as _-8).value)))) { _local7 = _local16[_local6]; _local8 = _local16[int((_local6 - 1))]; _local23 = _local8.proxyId; _local24 = this._-HC[_local8.proxyId]; _local8._-AB++; if (_local8.IsUpper() == true){ if (this._-GS(_local14, _local24)){ this._-Hv._-8k(_arg1, _local23); }; _local3 = _local24._-DX; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-AB++; } else { _local3 = _local24._-d; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-AB--; }; _local3 = _local13._-d; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-(_local8); _local6--; }; }; if (_local22 > 0){ _local6 = _local18; while ((((_local6 < (_local12 - 1))) && (((_local16[int((_local6 + 1))] as _-8).value <= _local20)))) { _local7 = _local16[_local6]; _local9 = _local16[int((_local6 + 1))]; _local10 = _local9.proxyId; _local11 = this._-HC[_local10]; _local9._-AB++; if (_local9.IsLower() == true){ if (this._-GS(_local14, _local11)){ this._-Hv._-8k(_arg1, _local10); }; _local3 = _local11._-d; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-AB++; } else { _local3 = _local11._-DX; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-AB--; }; _local3 = _local13._-DX; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-(_local9); _local6++; }; }; if (_local21 > 0){ _local6 = _local17; while ((((_local6 < (_local12 - 1))) && (((_local16[int((_local6 + 1))] as _-8).value <= _local19)))) { _local7 = _local16[_local6]; _local9 = _local16[int((_local6 + 1))]; _local10 = _local9.proxyId; _local11 = this._-HC[_local10]; _local9._-AB--; if (_local9.IsUpper()){ if (this._-GS(_local15, _local11)){ this._-Hv._-3B(_arg1, _local10); }; _local3 = _local11._-DX; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-AB--; } else { _local3 = _local11._-d; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-AB++; }; _local3 = _local13._-d; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-(_local9); _local6++; }; }; if (_local22 < 0){ _local6 = _local18; while ((((_local6 > 0)) && ((_local20 < (_local16[int((_local6 - 1))] as _-8).value)))) { _local7 = _local16[_local6]; _local8 = _local16[int((_local6 - 1))]; _local23 = _local8.proxyId; _local24 = this._-HC[_local23]; _local8._-AB--; if (_local8.IsLower() == true){ if (this._-GS(_local15, _local24)){ this._-Hv._-3B(_arg1, _local23); }; _local3 = _local24._-d; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-AB--; } else { _local3 = _local24._-DX; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-AB++; }; _local3 = _local13._-DX; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-(_local8); _local6--; }; }; _local5++; }; } public static function _-3A(_arg1:Array, _arg2:int, _arg3:uint):uint{ var _local6:int; var _local7:_-8; var _local4:int; var _local5:int = (_arg2 - 1); while (_local4 <= _local5) { _local6 = ((_local4 + _local5) / 2); _local7 = _arg1[_local6]; if (_local7.value > _arg3){ _local5 = (_local6 - 1); } else { if (_local7.value < _arg3){ _local4 = (_local6 + 1); } else { return (uint(_local6)); }; }; }; return (uint(_local4)); } } }//package Box2D.Collision
Section 71
//_-A2 (Box2D.Collision._-A2) package Box2D.Collision { public class _-A2 { public var proxyId1:uint; public var proxyId2:uint; } }//package Box2D.Collision
Section 72
//_-c (Box2D.Collision._-c) package Box2D.Collision { import _-BU.*; public class _-c { public var id:_-Dv; public var v:_-7Q; public function _-c(){ this.v = new _-7Q(); this.id = new _-Dv(); super(); } } }//package Box2D.Collision
Section 73
//_-Dv (Box2D.Collision._-Dv) package Box2D.Collision { public class _-Dv { public var _-E9:uint; public var _-I8:_-Hy; public function _-Dv(){ this._-I8 = new _-Hy(); super(); this._-I8._-Ko = this; } public function Set(_arg1:_-Dv):void{ this.key = _arg1._-E9; } public function Copy():_-Dv{ var _local1:_-Dv = new _-Dv(); _local1.key = this.key; return (_local1); } public function set key(_arg1:uint):void{ this._-E9 = _arg1; this._-I8._-L4 = (this._-E9 & 0xFF); this._-I8._-6A = (((this._-E9 & 0xFF00) >> 8) & 0xFF); this._-I8._-1u = (((this._-E9 & 0xFF0000) >> 16) & 0xFF); this._-I8._-3Q = (((this._-E9 & 4278190080) >> 24) & 0xFF); } public function get key():uint{ return (this._-E9); } } }//package Box2D.Collision
Section 74
//_-Fg (Box2D.Collision._-Fg) package Box2D.Collision { import _-BU.*; import _-L9.*; public class _-Fg { public var _-IM:int; public var _-0w:Array; public var _-Az:Array; public var _-8C:_-1S; public var _-9L:Array; public var _-4q:int; public var _-4Z:_-9Z; public var do:uint; public function _-Fg(){ var _local1:uint; super(); this._-Az = new Array(_-6a._-Hz); _local1 = 0; while (_local1 < _-6a._-Hz) { this._-Az[_local1] = _-6a._-0F; _local1++; }; this._-9L = new Array(_-Cj._-F8); _local1 = 0; while (_local1 < _-Cj._-F8) { this._-9L[_local1] = new _-6a(); _local1++; }; this._-0w = new Array(_-Cj._-F8); _local1 = 0; while (_local1 < _-Cj._-F8) { this._-0w[_local1] = new _-A2(); _local1++; }; _local1 = 0; while (_local1 < _-Cj._-F8) { this._-9L[_local1].proxyId1 = _-6a._-0A; this._-9L[_local1].proxyId2 = _-6a._-0A; this._-9L[_local1].userData = null; this._-9L[_local1].status = 0; this._-9L[_local1].next = (_local1 + 1); _local1++; }; this._-9L[int((_-Cj._-F8 - 1))].next = _-6a._-0F; this._-IM = 0; this._-4q = 0; } private function _-Gm(_arg1:uint, _arg2:uint, _arg3:uint):_-6a{ var _local4:_-6a; var _local5:uint = this._-Az[_arg3]; _local4 = this._-9L[_local5]; while (((!((_local5 == _-6a._-0F))) && ((_-IU(_local4, _arg1, _arg2) == false)))) { _local5 = _local4.next; _local4 = this._-9L[_local5]; }; if (_local5 == _-6a._-0F){ return (null); }; return (_local4); } private function _-7Z(_arg1:uint, _arg2:uint):_-6a{ var _local4:uint; if (_arg1 > _arg2){ _local4 = _arg1; _arg1 = _arg2; _arg2 = _local4; }; var _local3:uint = (_-4i(_arg1, _arg2) & _-6a._-26); return (this._-Gm(_arg1, _arg2, _local3)); } private function _-KI():void{ } public function _-0j():void{ var _local1:_-A2; var _local2:int; var _local5:_-6a; var _local6:_-4w; var _local7:_-4w; var _local3:int; var _local4:Array = this._-4Z._-HC; _local2 = 0; while (_local2 < this._-4q) { _local1 = this._-0w[_local2]; _local5 = this._-7Z(_local1.proxyId1, _local1.proxyId2); _local5._-K0(); _local6 = _local4[_local5.proxyId1]; _local7 = _local4[_local5.proxyId2]; if (_local5._-Lu()){ if (_local5._-9G() == true){ this._-8C.PairRemoved(_local6.userData, _local7.userData, _local5.userData); }; _local1 = this._-0w[_local3]; _local1.proxyId1 = _local5.proxyId1; _local1.proxyId2 = _local5.proxyId2; _local3++; } else { if (_local5._-9G() == false){ _local5.userData = this._-8C.PairAdded(_local6.userData, _local7.userData); _local5._-Hs(); }; }; _local2++; }; _local2 = 0; while (_local2 < _local3) { _local1 = this._-0w[_local2]; this._-HO(_local1.proxyId1, _local1.proxyId2); _local2++; }; this._-4q = 0; if (_-9Z._-E3){ this._-Lg(); }; } public function _-3B(_arg1:int, _arg2:int):void{ var _local3:_-A2; var _local4:_-6a = this._-7Z(_arg1, _arg2); if (_local4 == null){ return; }; if (_local4._-AK() == false){ _local4._-LW(); _local3 = this._-0w[this._-4q]; _local3.proxyId1 = _local4.proxyId1; _local3.proxyId2 = _local4.proxyId2; this._-4q++; }; _local4._-r(); if (_-9Z._-E3){ this._-KI(); }; } private function _-HO(_arg1:uint, _arg2:uint){ var _local3:_-6a; var _local7:uint; var _local8:uint; var _local9:*; if (_arg1 > _arg2){ _local7 = _arg1; _arg1 = _arg2; _arg2 = _local7; }; var _local4:uint = (_-4i(_arg1, _arg2) & _-6a._-26); var _local5:uint = this._-Az[_local4]; var _local6:_-6a; while (_local5 != _-6a._-0F) { if (_-IU(this._-9L[_local5], _arg1, _arg2)){ _local8 = _local5; _local3 = this._-9L[_local5]; if (_local6){ _local6.next = _local3.next; } else { this._-Az[_local4] = _local3.next; }; _local3 = this._-9L[_local8]; _local9 = _local3.userData; _local3.next = this. do; _local3.proxyId1 = _-6a._-0A; _local3.proxyId2 = _-6a._-0A; _local3.userData = null; _local3.status = 0; this. do = _local8; this._-IM--; return (_local9); } else { _local6 = this._-9L[_local5]; _local5 = _local6.next; }; }; return (null); } public function _-Ku(_arg1:_-9Z, _arg2:_-1S):void{ this._-4Z = _arg1; this._-8C = _arg2; } public function _-8k(_arg1:int, _arg2:int):void{ var _local3:_-A2; var _local4:_-6a = this._-KA(_arg1, _arg2); if (_local4._-AK() == false){ _local4._-LW(); _local3 = this._-0w[this._-4q]; _local3.proxyId1 = _local4.proxyId1; _local3.proxyId2 = _local4.proxyId2; this._-4q++; }; _local4._-N(); if (_-9Z._-E3){ this._-KI(); }; } private function _-KA(_arg1:uint, _arg2:uint):_-6a{ var _local6:uint; if (_arg1 > _arg2){ _local6 = _arg1; _arg1 = _arg2; _arg2 = _local6; }; var _local3:uint = (_-4i(_arg1, _arg2) & _-6a._-26); var _local4 = this._-Gm(_arg1, _arg2, _local3); if (_local4 != null){ return (_local4); }; var _local5:uint = this. do; _local4 = this._-9L[_local5]; this. do = _local4.next; _local4.proxyId1 = _arg1; _local4.proxyId2 = _arg2; _local4.status = 0; _local4.userData = null; _local4.next = this._-Az[_local3]; this._-Az[_local3] = _local5; this._-IM++; return (_local4); } private function _-Lg():void{ } public static function _-Eh(_arg1:_-A2, _arg2:_-A2):Boolean{ return ((((_arg1.proxyId1 == _arg2.proxyId1)) && ((_arg1.proxyId2 == _arg2.proxyId2)))); } public static function _-4i(_arg1:uint, _arg2:uint):uint{ var _local3:uint = (((_arg2 << 16) & 4294901760) | _arg1); _local3 = (~(_local3) + ((_local3 << 15) & 4294934528)); _local3 = (_local3 ^ ((_local3 >> 12) & 1048575)); _local3 = (_local3 + ((_local3 << 2) & 4294967292)); _local3 = (_local3 ^ ((_local3 >> 4) & 268435455)); _local3 = (_local3 * 2057); _local3 = (_local3 ^ ((_local3 >> 16) & 0xFFFF)); return (_local3); } public static function _-IU(_arg1:_-6a, _arg2:uint, _arg3:uint):Boolean{ return ((((_arg1.proxyId1 == _arg2)) && ((_arg1.proxyId2 == _arg3)))); } } }//package Box2D.Collision
Section 75
//_-FH (Box2D.Collision._-FH) package Box2D.Collision { public class _-FH { public var _-IR:Array; public var _-Gn:Array; public function _-FH(){ this._-IR = [0, 0]; this._-Gn = [0, 0]; super(); } } }//package Box2D.Collision
Section 76
//_-GP (Box2D.Collision._-GP) package Box2D.Collision { import _-BU.*; import _-L9.*; public class _-GP { public var p1:_-7Q; public var p2:_-7Q; public function _-GP(){ this.p1 = new _-7Q(); this.p2 = new _-7Q(); super(); } public function TestSegment(_arg1:Array, _arg2:_-7Q, _arg3:_-GP, _arg4:Number):Boolean{ var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local5:_-7Q = _arg3.p1; var _local6:Number = (_arg3.p2.x - _local5.x); var _local7:Number = (_arg3.p2.y - _local5.y); var _local8:Number = (this.p2.x - this.p1.x); var _local9:Number = (this.p2.y - this.p1.y); var _local10:Number = _local9; var _local11:Number = -(_local8); var _local12:Number = (100 * Number.MIN_VALUE); var _local13:Number = -(((_local6 * _local10) + (_local7 * _local11))); if (_local13 > _local12){ _local14 = (_local5.x - this.p1.x); _local15 = (_local5.y - this.p1.y); _local16 = ((_local14 * _local10) + (_local15 * _local11)); if ((((0 <= _local16)) && ((_local16 <= (_arg4 * _local13))))){ _local17 = ((-(_local7) * _local15) + (_local7 * _local14)); if (((((-(_local12) * _local13) <= _local17)) && ((_local17 <= (_local13 * (1 + _local12)))))){ _local16 = (_local16 / _local13); _local18 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); _local10 = (_local10 / _local18); _local11 = (_local11 / _local18); _arg1[0] = _local16; _arg2.Set(_local10, _local11); return (true); }; }; }; return (false); } public function _-K8(_arg1:_-9B):void{ this._-Fx(_arg1); this._-0L(_arg1); } public function _-Fx(_arg1:_-9B):void{ var aabb = _arg1; var dX:Number = (this.p2.x - this.p1.x); var dY:Number = (this.p2.y - this.p1.y); var greaterthan0:* = function (_arg1){ return ((_arg1 > 0)); }; var lambda:Number = Math.min(((dX > 0)) ? ((aabb._-IC.x - this.p1.x) / dX) : ((dX < 0)) ? ((aabb._-GJ.x - this.p1.x) / dX) : Number.POSITIVE_INFINITY, ((dY > 0)) ? ((aabb._-IC.y - this.p1.y) / dY) : ((dY < 0)) ? ((aabb._-GJ.y - this.p1.y) / dY) : Number.POSITIVE_INFINITY); this.p2.x = (this.p1.x + (dX * lambda)); this.p2.y = (this.p1.y + (dY * lambda)); } public function _-0L(_arg1:_-9B):void{ var dY:Number; var lambda:Number; var aabb = _arg1; var dX:Number = (-(this.p2.x) + this.p1.x); dY = (-(this.p2.y) + this.p1.y); var greaterthan0:* = function (_arg1){ return ((_arg1 > 0)); }; lambda = Math.min(((dX > 0)) ? ((aabb._-IC.x - this.p2.x) / dX) : ((dX < 0)) ? ((aabb._-GJ.x - this.p2.x) / dX) : Number.POSITIVE_INFINITY, ((dY > 0)) ? ((aabb._-IC.y - this.p2.y) / dY) : ((dY < 0)) ? ((aabb._-GJ.y - this.p2.y) / dY) : Number.POSITIVE_INFINITY); this.p1.x = (this.p2.x + (dX * lambda)); this.p1.y = (this.p2.y + (dY * lambda)); } } }//package Box2D.Collision
Section 77
//_-Hy (Box2D.Collision._-Hy) package Box2D.Collision { public class _-Hy { public var _-L4:int; public var _-6A:int; public var _-3Q:int; public var _-1u:int; public var _-Ko:_-Dv; public function get _-Kl():int{ return (this._-L4); } public function set _-H0(_arg1:int):void{ this._-1u = _arg1; this._-Ko._-E9 = ((this._-Ko._-E9 & 4278255615) | ((this._-1u << 16) & 0xFF0000)); } public function get _-Ao():int{ return (this._-3Q); } public function get _-Ix():int{ return (this._-6A); } public function set _-Kl(_arg1:int):void{ this._-L4 = _arg1; this._-Ko._-E9 = ((this._-Ko._-E9 & 4294967040) | (this._-L4 & 0xFF)); } public function get _-H0():int{ return (this._-1u); } public function set _-Ao(_arg1:int):void{ this._-3Q = _arg1; this._-Ko._-E9 = ((this._-Ko._-E9 & 0xFFFFFF) | ((this._-3Q << 24) & 4278190080)); } public function set _-Ix(_arg1:int):void{ this._-6A = _arg1; this._-Ko._-E9 = ((this._-Ko._-E9 & 4294902015) | ((this._-6A << 8) & 0xFF00)); } } }//package Box2D.Collision
Section 78
//_-Iz (Box2D.Collision._-Iz) package Box2D.Collision { import _-BU.*; public class _-Iz { public var p:_-7Q; public function _-Iz(){ this.p = new _-7Q(); super(); } public function GetFirstVertex(_arg1:_-2w):_-7Q{ return (this.p); } public function Support(_arg1:_-2w, _arg2:Number, _arg3:Number):_-7Q{ return (this.p); } } }//package Box2D.Collision
Section 79
//each (Box2D.Collision.each) package Box2D.Collision { import _-BU.*; import _-L9.*; public class each { public var _-Au:int;// = 0 public var normal:_-7Q; public var points:Array; public function each(){ this.points = new Array(_-Cj._-Eq); var _local1:int; while (_local1 < _-Cj._-Eq) { this.points[_local1] = new _-8q(); _local1++; }; this.normal = new _-7Q(); } public function Set(_arg1:each):void{ this._-Au = _arg1._-Au; var _local2:int; while (_local2 < _-Cj._-Eq) { (this.points[_local2] as _-8q).Set(_arg1.points[_local2]); _local2++; }; this.normal._-3g(_arg1.normal); } public function _-Ic():void{ var _local1:int; while (_local1 < _-Cj._-Eq) { (this.points[_local1] as _-8q)._-Ic(); _local1++; }; this.normal._-Cv(); this._-Au = 0; } } }//package Box2D.Collision
Section 80
//null (Box2D.Collision.null ) package Box2D.Collision { import _-BU.*; import _-L9.*; import _-Cb.*; public class null { public static const _-GQ:uint = 0xFF; private static var _-7O:_-7Q = new _-7Q(); public static function _-KV(_arg1:_-8P, _arg2:_-2w, _arg3:int, _arg4:_-8P, _arg5:_-2w):Number{ var _local11:_-HS; var _local12:_-7Q; var _local25:Number; var _local6:int = _arg1._-JX; var _local7:Array = _arg1._-9K; var _local8:Array = _arg1._-L-; var _local9:int = _arg4._-JX; var _local10:Array = _arg4._-9K; _local11 = _arg2.R; _local12 = _local8[_arg3]; var _local13:Number = ((_local11._-7f.x * _local12.x) + (_local11._-IO.x * _local12.y)); var _local14:Number = ((_local11._-7f.y * _local12.x) + (_local11._-IO.y * _local12.y)); _local11 = _arg5.R; var _local15:Number = ((_local11._-7f.x * _local13) + (_local11._-7f.y * _local14)); var _local16:Number = ((_local11._-IO.x * _local13) + (_local11._-IO.y * _local14)); var _local17:int; var _local18:Number = Number.MAX_VALUE; var _local19:int; while (_local19 < _local9) { _local12 = _local10[_local19]; _local25 = ((_local12.x * _local15) + (_local12.y * _local16)); if (_local25 < _local18){ _local18 = _local25; _local17 = _local19; }; _local19++; }; _local12 = _local7[_arg3]; _local11 = _arg2.R; var _local20:Number = (_arg2.position.x + ((_local11._-7f.x * _local12.x) + (_local11._-IO.x * _local12.y))); var _local21:Number = (_arg2.position.y + ((_local11._-7f.y * _local12.x) + (_local11._-IO.y * _local12.y))); _local12 = _local10[_local17]; _local11 = _arg5.R; var _local22:Number = (_arg5.position.x + ((_local11._-7f.x * _local12.x) + (_local11._-IO.x * _local12.y))); var _local23:Number = (_arg5.position.y + ((_local11._-7f.y * _local12.x) + (_local11._-IO.y * _local12.y))); _local22 = (_local22 - _local20); _local23 = (_local23 - _local21); var _local24:Number = ((_local22 * _local13) + (_local23 * _local14)); return (_local24); } public static function _-76(_arg1:_-9B, _arg2:_-9B):Boolean{ var _local3:_-7Q = _arg2._-GJ; var _local4:_-7Q = _arg1._-IC; var _local5:Number = (_local3.x - _local4.x); var _local6:Number = (_local3.y - _local4.y); _local3 = _arg1._-GJ; _local4 = _arg2._-IC; var _local7:Number = (_local3.x - _local4.x); var _local8:Number = (_local3.y - _local4.y); if ((((_local5 > 0)) || ((_local6 > 0)))){ return (false); }; if ((((_local7 > 0)) || ((_local8 > 0)))){ return (false); }; return (true); } public static function _-5g(_arg1:Array, _arg2:_-8P, _arg3:_-2w, _arg4:int, _arg5:_-8P, _arg6:_-2w):void{ var _local12:_-HS; var _local13:_-7Q; var _local20:_-c; var _local23:Number; var _local7:int = _arg2._-JX; var _local8:Array = _arg2._-L-; var _local9:int = _arg5._-JX; var _local10:Array = _arg5._-9K; var _local11:Array = _arg5._-L-; _local12 = _arg3.R; _local13 = _local8[_arg4]; var _local14:Number = ((_local12._-7f.x * _local13.x) + (_local12._-IO.x * _local13.y)); var _local15:Number = ((_local12._-7f.y * _local13.x) + (_local12._-IO.y * _local13.y)); _local12 = _arg6.R; var _local16:Number = ((_local12._-7f.x * _local14) + (_local12._-7f.y * _local15)); _local15 = ((_local12._-IO.x * _local14) + (_local12._-IO.y * _local15)); _local14 = _local16; var _local17:int; var _local18:Number = Number.MAX_VALUE; var _local19:int; while (_local19 < _local9) { _local13 = _local11[_local19]; _local23 = ((_local14 * _local13.x) + (_local15 * _local13.y)); if (_local23 < _local18){ _local18 = _local23; _local17 = _local19; }; _local19++; }; var _local21:int = _local17; var _local22:int = (((_local21 + 1) < _local9)) ? (_local21 + 1) : 0; _local20 = _arg1[0]; _local13 = _local10[_local21]; _local12 = _arg6.R; _local20.v.x = (_arg6.position.x + ((_local12._-7f.x * _local13.x) + (_local12._-IO.x * _local13.y))); _local20.v.y = (_arg6.position.y + ((_local12._-7f.y * _local13.x) + (_local12._-IO.y * _local13.y))); _local20.id._-I8._-Kl = _arg4; _local20.id._-I8._-Ix = _local21; _local20.id._-I8._-H0 = 0; _local20 = _arg1[1]; _local13 = _local10[_local22]; _local12 = _arg6.R; _local20.v.x = (_arg6.position.x + ((_local12._-7f.x * _local13.x) + (_local12._-IO.x * _local13.y))); _local20.v.y = (_arg6.position.y + ((_local12._-7f.y * _local13.x) + (_local12._-IO.y * _local13.y))); _local20.id._-I8._-Kl = _arg4; _local20.id._-I8._-Ix = _local22; _local20.id._-I8._-H0 = 1; } public static function _-8w(_arg1:each, _arg2:_-8P, _arg3:_-2w, _arg4:_-8P, _arg5:_-2w):void{ var _local6:_-c; var _local13:_-8P; var _local14:_-8P; var _local17:int; var _local18:uint; var _local34:int; var _local37:_-7Q; var _local38:Number; var _local39:_-8q; _arg1._-Au = 0; var _local7:int; var _local8:Array = [_local7]; var _local9:Number = _-F2(_local8, _arg2, _arg3, _arg4, _arg5); _local7 = _local8[0]; if (_local9 > 0){ return; }; var _local10:int; var _local11:Array = [_local10]; var _local12:Number = _-F2(_local11, _arg4, _arg5, _arg2, _arg3); _local10 = _local11[0]; if (_local12 > 0){ return; }; var _local15:_-2w = new _-2w(); var _local16:_-2w = new _-2w(); var _local19:Number = 0.98; var _local20:Number = 0.001; if (_local12 > ((_local19 * _local9) + _local20)){ _local13 = _arg4; _local14 = _arg2; _local15.Set(_arg5); _local16.Set(_arg3); _local17 = _local10; _local18 = 1; } else { _local13 = _arg2; _local14 = _arg4; _local15.Set(_arg3); _local16.Set(_arg5); _local17 = _local7; _local18 = 0; }; var _local21:Array = [new _-c(), new _-c()]; _-5g(_local21, _local13, _local15, _local17, _local14, _local16); var _local22:int = _local13._-JX; var _local23:Array = _local13._-9K; var _local24:_-7Q = _local23[_local17]; var _local25:_-7Q = _local24.Copy(); if ((_local17 + 1) < _local22){ _local24 = _local23[int((_local17 + 1))]; _local37 = _local24.Copy(); } else { _local24 = _local23[0]; _local37 = _local24.Copy(); }; var _local26:_-7Q = _-8Q._-86(_local37, _local25); var _local27:_-7Q = _-8Q._-08(_local15.R, _-8Q._-86(_local37, _local25)); _local27._-5Z(); var _local28:_-7Q = _-8Q._-1D(_local27, 1); _local25 = _-8Q._-3p(_local15, _local25); _local37 = _-8Q._-3p(_local15, _local37); var _local29:Number = _-8Q._-J(_local28, _local25); var _local30:Number = -(_-8Q._-J(_local27, _local25)); var _local31:Number = _-8Q._-J(_local27, _local37); var _local32:Array = [new _-c(), new _-c()]; var _local33:Array = [new _-c(), new _-c()]; _local34 = _-7H(_local32, _local21, _local27._-Fb(), _local30); if (_local34 < 2){ return; }; _local34 = _-7H(_local33, _local32, _local27, _local31); if (_local34 < 2){ return; }; _arg1.normal = (_local18) ? _local28._-Fb() : _local28.Copy(); var _local35:int; var _local36:int; while (_local36 < _-Cj._-Eq) { _local6 = _local33[_local36]; _local38 = (_-8Q._-J(_local28, _local6.v) - _local29); if (_local38 <= 0){ _local39 = _arg1.points[_local35]; _local39._-L7 = _local38; _local39._-1R = _-8Q.with(_arg3, _local6.v); _local39._-GI = _-8Q.with(_arg5, _local6.v); _local39.id.key = _local6.id._-E9; _local39.id._-I8._-Ao = _local18; _local35++; }; _local36++; }; _arg1._-Au = _local35; } public static function _-F2(_arg1:Array, _arg2:_-8P, _arg3:_-2w, _arg4:_-8P, _arg5:_-2w):Number{ var _local8:_-7Q; var _local9:_-HS; var _local22:int; var _local23:Number; var _local24:int; var _local25:Number; var _local6:int = _arg2._-JX; var _local7:Array = _arg2._-L-; _local9 = _arg5.R; _local8 = _arg4._-GF; var _local10:Number = (_arg5.position.x + ((_local9._-7f.x * _local8.x) + (_local9._-IO.x * _local8.y))); var _local11:Number = (_arg5.position.y + ((_local9._-7f.y * _local8.x) + (_local9._-IO.y * _local8.y))); _local9 = _arg3.R; _local8 = _arg2._-GF; _local10 = (_local10 - (_arg3.position.x + ((_local9._-7f.x * _local8.x) + (_local9._-IO.x * _local8.y)))); _local11 = (_local11 - (_arg3.position.y + ((_local9._-7f.y * _local8.x) + (_local9._-IO.y * _local8.y)))); var _local12:Number = ((_local10 * _arg3.R._-7f.x) + (_local11 * _arg3.R._-7f.y)); var _local13:Number = ((_local10 * _arg3.R._-IO.x) + (_local11 * _arg3.R._-IO.y)); var _local14:int; var _local15:Number = -(Number.MAX_VALUE); var _local16:int; while (_local16 < _local6) { _local8 = _local7[_local16]; _local25 = ((_local8.x * _local12) + (_local8.y * _local13)); if (_local25 > _local15){ _local15 = _local25; _local14 = _local16; }; _local16++; }; var _local17:Number = _-KV(_arg2, _arg3, _local14, _arg4, _arg5); if (_local17 > 0){ return (_local17); }; var _local18:int = (((_local14 - 1) >= 0)) ? (_local14 - 1) : (_local6 - 1); var _local19:Number = _-KV(_arg2, _arg3, _local18, _arg4, _arg5); if (_local19 > 0){ return (_local19); }; var _local20:int = (((_local14 + 1) < _local6)) ? (_local14 + 1) : 0; var _local21:Number = _-KV(_arg2, _arg3, _local20, _arg4, _arg5); if (_local21 > 0){ return (_local21); }; if ((((_local19 > _local17)) && ((_local19 > _local21)))){ _local24 = -1; _local22 = _local18; _local23 = _local19; } else { if (_local21 > _local17){ _local24 = 1; _local22 = _local20; _local23 = _local21; } else { _arg1[0] = _local14; return (_local17); }; }; while (true) { if (_local24 == -1){ _local14 = (((_local22 - 1) >= 0)) ? (_local22 - 1) : (_local6 - 1); } else { _local14 = (((_local22 + 1) < _local6)) ? (_local22 + 1) : 0; }; _local17 = _-KV(_arg2, _arg3, _local14, _arg4, _arg5); if (_local17 > 0){ return (_local17); }; if (_local17 > _local23){ _local22 = _local14; _local23 = _local17; } else { break; }; }; _arg1[0] = _local22; return (_local23); } public static function _-7H(_arg1:Array, _arg2:Array, _arg3:_-7Q, _arg4:Number):int{ var _local5:_-c; var _local6:int; var _local7:_-7Q; var _local8:_-7Q; var _local9:Number; var _local11:Number; var _local12:_-7Q; var _local13:_-c; _local6 = 0; _local5 = _arg2[0]; _local7 = _local5.v; _local5 = _arg2[1]; _local8 = _local5.v; _local9 = (_-8Q._-J(_arg3, _local7) - _arg4); var _local10:Number = (_-8Q._-J(_arg3, _local8) - _arg4); if (_local9 <= 0){ var _temp1 = _local6; _local6 = (_local6 + 1); var _local14 = _temp1; _arg1[_local14] = _arg2[0]; }; if (_local10 <= 0){ var _temp2 = _local6; _local6 = (_local6 + 1); _local14 = _temp2; _arg1[_local14] = _arg2[1]; }; if ((_local9 * _local10) < 0){ _local11 = (_local9 / (_local9 - _local10)); _local5 = _arg1[_local6]; _local12 = _local5.v; _local12.x = (_local7.x + (_local11 * (_local8.x - _local7.x))); _local12.y = (_local7.y + (_local11 * (_local8.y - _local7.y))); _local5 = _arg1[_local6]; if (_local9 > 0){ _local13 = _arg2[0]; _local5.id = _local13.id; } else { _local13 = _arg2[1]; _local5.id = _local13.id; }; _local6++; }; return (_local6); } public static function _-AI(_arg1:each, _arg2:_-Jt, _arg3:_-2w, _arg4:_-Jt, _arg5:_-2w):void{ var _local6:_-HS; var _local7:_-7Q; var _local18:Number; var _local24:Number; var _local25:Number; _arg1._-Au = 0; _local6 = _arg3.R; _local7 = _arg2._-Ac; var _local8:Number = (_arg3.position.x + ((_local6._-7f.x * _local7.x) + (_local6._-IO.x * _local7.y))); var _local9:Number = (_arg3.position.y + ((_local6._-7f.y * _local7.x) + (_local6._-IO.y * _local7.y))); _local6 = _arg5.R; _local7 = _arg4._-Ac; var _local10:Number = (_arg5.position.x + ((_local6._-7f.x * _local7.x) + (_local6._-IO.x * _local7.y))); var _local11:Number = (_arg5.position.y + ((_local6._-7f.y * _local7.x) + (_local6._-IO.y * _local7.y))); var _local12:Number = (_local10 - _local8); var _local13:Number = (_local11 - _local9); var _local14:Number = ((_local12 * _local12) + (_local13 * _local13)); var _local15:Number = _arg2._-9y; var _local16:Number = _arg4._-9y; var _local17:Number = (_local15 + _local16); if (_local14 > (_local17 * _local17)){ return; }; if (_local14 < Number.MIN_VALUE){ _local18 = -(_local17); _arg1.normal.Set(0, 1); } else { _local24 = Math.sqrt(_local14); _local18 = (_local24 - _local17); _local25 = (1 / _local24); _arg1.normal.x = (_local25 * _local12); _arg1.normal.y = (_local25 * _local13); }; _arg1._-Au = 1; var _local19:_-8q = _arg1.points[0]; _local19.id.key = 0; _local19._-L7 = _local18; _local8 = (_local8 + (_local15 * _arg1.normal.x)); _local9 = (_local9 + (_local15 * _arg1.normal.y)); _local10 = (_local10 - (_local16 * _arg1.normal.x)); _local11 = (_local11 - (_local16 * _arg1.normal.y)); var _local20:Number = (0.5 * (_local8 + _local10)); var _local21:Number = (0.5 * (_local9 + _local11)); var _local22:Number = (_local20 - _arg3.position.x); var _local23:Number = (_local21 - _arg3.position.y); _local19._-1R.x = ((_local22 * _arg3.R._-7f.x) + (_local23 * _arg3.R._-7f.y)); _local19._-1R.y = ((_local22 * _arg3.R._-IO.x) + (_local23 * _arg3.R._-IO.y)); _local22 = (_local20 - _arg5.position.x); _local23 = (_local21 - _arg5.position.y); _local19._-GI.x = ((_local22 * _arg5.R._-7f.x) + (_local23 * _arg5.R._-7f.y)); _local19._-GI.y = ((_local22 * _arg5.R._-IO.x) + (_local23 * _arg5.R._-IO.y)); } public static function _-1b(_arg1:each, _arg2:_-8P, _arg3:_-2w, _arg4:_-Jt, _arg5:_-2w):void{ var _local6:_-8q; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:_-7Q; var _local12:_-HS; var _local17:Number; var _local32:Number; var _local33:Number; var _local34:Number; _arg1._-Au = 0; _local12 = _arg5.R; _local11 = _arg4._-Ac; var _local13:Number = (_arg5.position.x + ((_local12._-7f.x * _local11.x) + (_local12._-IO.x * _local11.y))); var _local14:Number = (_arg5.position.y + ((_local12._-7f.y * _local11.x) + (_local12._-IO.y * _local11.y))); _local7 = (_local13 - _arg3.position.x); _local8 = (_local14 - _arg3.position.y); _local12 = _arg3.R; var _local15:Number = ((_local7 * _local12._-7f.x) + (_local8 * _local12._-7f.y)); var _local16:Number = ((_local7 * _local12._-IO.x) + (_local8 * _local12._-IO.y)); var _local18:int; var _local19:Number = -(Number.MAX_VALUE); var _local20:Number = _arg4._-9y; var _local21:int = _arg2._-JX; var _local22:Array = _arg2._-9K; var _local23:Array = _arg2._-L-; var _local24:int; while (_local24 < _local21) { _local11 = _local22[_local24]; _local7 = (_local15 - _local11.x); _local8 = (_local16 - _local11.y); _local11 = _local23[_local24]; _local34 = ((_local11.x * _local7) + (_local11.y * _local8)); if (_local34 > _local20){ return; }; if (_local34 > _local19){ _local19 = _local34; _local18 = _local24; }; _local24++; }; if (_local19 < Number.MIN_VALUE){ _arg1._-Au = 1; _local11 = _local23[_local18]; _local12 = _arg3.R; _arg1.normal.x = ((_local12._-7f.x * _local11.x) + (_local12._-IO.x * _local11.y)); _arg1.normal.y = ((_local12._-7f.y * _local11.x) + (_local12._-IO.y * _local11.y)); _local6 = _arg1.points[0]; _local6.id._-I8._-Ix = _local18; _local6.id._-I8._-H0 = _-GQ; _local6.id._-I8._-Kl = 0; _local6.id._-I8._-Ao = 0; _local9 = (_local13 - (_local20 * _arg1.normal.x)); _local10 = (_local14 - (_local20 * _arg1.normal.y)); _local7 = (_local9 - _arg3.position.x); _local8 = (_local10 - _arg3.position.y); _local12 = _arg3.R; _local6._-1R.x = ((_local7 * _local12._-7f.x) + (_local8 * _local12._-7f.y)); _local6._-1R.y = ((_local7 * _local12._-IO.x) + (_local8 * _local12._-IO.y)); _local7 = (_local9 - _arg5.position.x); _local8 = (_local10 - _arg5.position.y); _local12 = _arg5.R; _local6._-GI.x = ((_local7 * _local12._-7f.x) + (_local8 * _local12._-7f.y)); _local6._-GI.y = ((_local7 * _local12._-IO.x) + (_local8 * _local12._-IO.y)); _local6._-L7 = (_local19 - _local20); return; }; var _local25:int = _local18; var _local26:int = (((_local25 + 1) < _local21)) ? (_local25 + 1) : 0; _local11 = _local22[_local25]; var _local27:_-7Q = _local22[_local26]; var _local28:Number = (_local27.x - _local11.x); var _local29:Number = (_local27.y - _local11.y); var _local30:Number = Math.sqrt(((_local28 * _local28) + (_local29 * _local29))); _local28 = (_local28 / _local30); _local29 = (_local29 / _local30); _local7 = (_local15 - _local11.x); _local8 = (_local16 - _local11.y); var _local31:Number = ((_local7 * _local28) + (_local8 * _local29)); _local6 = _arg1.points[0]; if (_local31 <= 0){ _local32 = _local11.x; _local33 = _local11.y; _local6.id._-I8._-Ix = _-GQ; _local6.id._-I8._-H0 = _local25; } else { if (_local31 >= _local30){ _local32 = _local27.x; _local33 = _local27.y; _local6.id._-I8._-Ix = _-GQ; _local6.id._-I8._-H0 = _local26; } else { _local32 = ((_local28 * _local31) + _local11.x); _local33 = ((_local29 * _local31) + _local11.y); _local6.id._-I8._-Ix = _local18; _local6.id._-I8._-H0 = 0; }; }; _local7 = (_local15 - _local32); _local8 = (_local16 - _local33); _local17 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); _local7 = (_local7 / _local17); _local8 = (_local8 / _local17); if (_local17 > _local20){ return; }; _arg1._-Au = 1; _local12 = _arg3.R; _arg1.normal.x = ((_local12._-7f.x * _local7) + (_local12._-IO.x * _local8)); _arg1.normal.y = ((_local12._-7f.y * _local7) + (_local12._-IO.y * _local8)); _local9 = (_local13 - (_local20 * _arg1.normal.x)); _local10 = (_local14 - (_local20 * _arg1.normal.y)); _local7 = (_local9 - _arg3.position.x); _local8 = (_local10 - _arg3.position.y); _local12 = _arg3.R; _local6._-1R.x = ((_local7 * _local12._-7f.x) + (_local8 * _local12._-7f.y)); _local6._-1R.y = ((_local7 * _local12._-IO.x) + (_local8 * _local12._-IO.y)); _local7 = (_local9 - _arg5.position.x); _local8 = (_local10 - _arg5.position.y); _local12 = _arg5.R; _local6._-GI.x = ((_local7 * _local12._-7f.x) + (_local8 * _local12._-7f.y)); _local6._-GI.y = ((_local7 * _local12._-IO.x) + (_local8 * _local12._-IO.y)); _local6._-L7 = (_local17 - _local20); _local6.id._-I8._-Kl = 0; _local6.id._-I8._-Ao = 0; } } }//package Box2D.Collision
Section 81
//_-0H (game._-0H) package game { import flash.display.*; import flash.events.*; import flash.text.*; public class _-0H extends Sprite { protected var _-5q:Function; private var _-Jw:Class; protected var _-3o:SimpleButton; public function _-0H(_arg1:Function){ this._-Jw = _-Fl; super(); this._-5q = _arg1; var _local2:TextFormat = new TextFormat(); _local2.font = "embed_font_1"; var _local3:DisplayObject = new this._-Jw(); _local3.x = -60; _local3.y = -60; addChild(_local3); _local2.color = 0xFFFFFF; _local2.size = 35; _local2.bold = true; var _local4:TextField = new TextField(); _local4.embedFonts = true; _local4.defaultTextFormat = _local2; _local4.selectable = false; _local4.mouseEnabled = false; _local4.antiAliasType = AntiAliasType.ADVANCED; _local4.text = "<< back"; _local4.width = (_local4.textWidth + 5); _local4.height = _local4.textHeight; this._-3o = new SimpleButton(_local4, _local4, _local4, _local4); this._-3o.x = 110; this._-3o.y = 310; this._-3o.addEventListener(MouseEvent.CLICK, this._-2-); addChild(this._-3o); this.alpha = 0; } protected function _-2-(_arg1:MouseEvent):void{ this._-3o.removeEventListener(MouseEvent.CLICK, this._-2-); this._-5q(); } } }//package game
Section 82
//_-0p (game._-0p) package game { import mx.core.*; public class _-0p extends SpriteAsset { } }//package game
Section 83
//_-0S (game._-0S) package game { import mx.core.*; public class _-0S extends BitmapAsset { } }//package game
Section 84
//_-0v (game._-0v) package game { import mx.core.*; public class _-0v extends BitmapAsset { } }//package game
Section 85
//_-0y (game._-0y) package game { import _-BU.*; import flash.display.*; import _-Cb.*; import flash.geom.*; import _-5m.*; public class _-0y extends Bitmap { public var is_possible_remove:Boolean; public var info_contour:Boolean; public var _-KM:int; public var coll2_sensor:Boolean; public var _-5A:Number; public var info_tile:Class; public var info_gradient:Boolean; public var coll2_sensor_angle:_-7Q; public var magic_shift:_-7Q; public var collision_group:int; public var info_colour:uint; public function _-0y(_arg1:Class, _arg2:_-0l, _arg3:Number, _arg4:Boolean=false, _arg5:Number=2, _arg6:uint=0, _arg7:Boolean=true, _arg8:Boolean=false){ var _local9:BitmapData; var _local11:int; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local20:_-7Q; var _local25:int; var _local26:int; var _local29:Matrix; var _local30:Sprite; this.info_tile = _arg1; this.info_colour = _arg6; this.info_gradient = _arg7; this.info_contour = _arg4; this.magic_shift = this.extends(_arg2, _arg3); var _local10:int = _arg2.vertexCount; _local12 = _arg2.vertices[0].x; _local13 = _arg2.vertices[0].y; _local14 = _arg2.vertices[0].x; _local15 = _arg2.vertices[0].y; _local11 = 1; while (_local11 < _local10) { if (_arg2.vertices[_local11].x < _local12){ _local12 = _arg2.vertices[_local11].x; }; if (_arg2.vertices[_local11].x > _local14){ _local14 = _arg2.vertices[_local11].x; }; if (_arg2.vertices[_local11].y < _local13){ _local13 = _arg2.vertices[_local11].y; }; if (_arg2.vertices[_local11].y > _local15){ _local15 = _arg2.vertices[_local11].y; }; _local11++; }; _local16 = (_local14 - _local12); if (_local16 < 0){ _local16 = -(_local16); }; _local17 = (_local15 - _local13); if (_local17 < 0){ _local17 = -(_local17); }; _local9 = new BitmapData(Math.ceil((_local16 * _arg3)), Math.ceil((_local17 * _arg3)), true, 0); var _local18:Sprite = new Sprite(); _local18.graphics.clear(); _local18.graphics.beginFill(0xFF00, 1); var _local19:Number = 5; _local11 = (_local10 - 1); _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); _local18.graphics.moveTo(_local20.x, _local20.y); _local11 = 0; while (_local11 < _local10) { if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); }; _local18.graphics.curveTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3), _local20.x, _local20.y); if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); }; _local18.graphics.lineTo(_local20.x, _local20.y); _local11++; }; _local18.graphics.endFill(); _local9.draw(_local18); _local18 = null; var _local21:int = Math.ceil(Math.sqrt(((_local9.width * _local9.width) + (_local9.height * _local9.height)))); if (_local21 > 2880){ _local21 = 2880; }; _local18 = new Sprite(); var _local22:DisplayObject = new (_arg1); var _local23:int = ((_local21 / _local22.width) + 1); var _local24:int = ((_local21 / _local22.height) + 1); var _local27:Sprite = new Sprite(); this._-Ch(_local27, _local21, _arg6); if (!_arg8){ _local27.rotation = 0; _local29 = _local27.transform.matrix; _local29.tx = -((_local21 / 2)); _local29.ty = -((_local21 / 2)); _local29.rotate((this._-5A + (Math.PI / 3))); _local29.tx = (_local29.tx + (_local9.width / 2)); _local29.ty = (_local29.ty + (_local9.height / 2)); _local27.transform.matrix = _local29; }; _local18.addChild(_local27); if (_arg4){ _local30 = new Sprite(); _local18.addChild(_local30); _local30.graphics.lineStyle(5, 51); _local11 = (_local10 - 1); _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); _local30.graphics.moveTo(_local20.x, _local20.y); _local11 = 0; while (_local11 < _local10) { if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); }; _local30.graphics.curveTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3), _local20.x, _local20.y); if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); }; _local30.graphics.lineTo(_local20.x, _local20.y); _local11++; }; }; var _local28:BitmapData = new BitmapData(_local9.width, _local9.height, true, 0); _local28.draw(_local18); _local18 = null; _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.RED, BitmapDataChannel.RED); _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.GREEN, BitmapDataChannel.GREEN); _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.BLUE, BitmapDataChannel.BLUE); _local28 = null; super(_local9, "auto", true); } public function _-8s(_arg1:_-7Q, _arg2:_-7Q, _arg3:Number):_-7Q{ var _local4:_-7Q = _arg2.Copy(); _local4._-I4(_arg1); var _local5:Number = _local4._-8u(); if (_local5 > _arg3){ _local4.Multiply((_arg3 / _local5)); } else { _local4.Multiply((1 / _local5)); }; var _local6:_-7Q = _arg2.Copy(); _local6._-I4(_local4); return (_local6); } public function _-Ch(_arg1:Sprite, _arg2:int, _arg3:int):void{ var _local6:int; var _local7:int; var _local4 = 2; var _local5 = 15; var _local8:int = ((_arg2 / (_local4 + _local5)) + 1); _arg1.graphics.lineStyle(0, 0); _arg1.graphics.beginFill(0xFFFFFF); _arg1.graphics.drawRect(0, 0, _arg2, _arg2); _arg1.graphics.endFill(); _arg1.graphics.beginFill(_arg3, 0.55); _arg1.graphics.drawRect(0, 0, _arg2, _arg2); _arg1.graphics.endFill(); _arg1.graphics.lineStyle(_local4, 0, 0.55); _arg1.graphics.beginFill(0, 0.55); _local6 = 0; while (_local6 < _local8) { _local7 = 0; while (_local7 < _local8) { _-4V._-Bv(_arg1.graphics, (_local6 * (_local4 + _local5)), (_local7 * (_local4 + _local5)), 5, 5, 2); _local7++; }; _local6++; }; _arg1.graphics.endFill(); } protected function extends(_arg1:_-0l, _arg2:Number):_-7Q{ var _local4:int; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local13:Number; var _local3:int = _arg1.vertexCount; var _local9:_-7Q = _arg1.vertices[0].Copy(); this._-KM = 0; _local9._-I4(_arg1.vertices[1]); var _local10:Number = _local9._-8u(); _local5 = _arg1.vertices[0].x; _local6 = _arg1.vertices[0].y; _local7 = _arg1.vertices[0].x; _local8 = _arg1.vertices[0].y; _local4 = 1; while (_local4 < _local3) { if (_arg1.vertices[_local4].x < _local5){ _local5 = _arg1.vertices[_local4].x; }; if (_arg1.vertices[_local4].x > _local7){ _local7 = _arg1.vertices[_local4].x; }; if (_arg1.vertices[_local4].y < _local6){ _local6 = _arg1.vertices[_local4].y; }; if (_arg1.vertices[_local4].y > _local8){ _local8 = _arg1.vertices[_local4].y; }; _local9 = _arg1.vertices[_local4].Copy(); if (_local4 != (_local3 - 1)){ _local9._-I4(_arg1.vertices[(_local4 + 1)]); } else { _local9._-I4(_arg1.vertices[0]); }; _local13 = _local9._-8u(); if (_local13 > _local10){ _local10 = _local13; this._-KM = _local4; }; _local4++; }; if (this._-KM != (_local3 - 1)){ this._-5A = Math.atan2((-(_arg1.vertices[this._-KM].y) + _arg1.vertices[(this._-KM + 1)].y), (_arg1.vertices[(this._-KM + 1)].x - _arg1.vertices[this._-KM].x)); } else { this._-5A = Math.atan2((-(_arg1.vertices[this._-KM].y) + _arg1.vertices[0].y), (_arg1.vertices[0].x - _arg1.vertices[this._-KM].x)); }; var _local11:_-7Q = new _-7Q(((_local7 - _local5) / 2), ((_local8 - _local6) / 2)); var _local12:_-7Q = new _-7Q(_local5, _local6); _local12.Add(_local11); _local12.Multiply(_arg2); return (_local12); } } }//package game
Section 86
//_-1n (game._-1n) package game { import _-BU.*; import flash.display.*; import _-Cb.*; import flash.geom.*; import _-5m.*; public class _-1n extends Bitmap { public var is_possible_remove:Boolean; public var info_contour:Boolean; public var _-KM:int; public var coll2_sensor:Boolean; public var _-5A:Number; public var info_tile:Class; public var info_gradient:Boolean; public var coll2_sensor_angle:_-7Q; public var magic_shift:_-7Q; public var collision_group:int; public var info_colour:uint; public function _-1n(_arg1:Class, _arg2:_-0l, _arg3:Number, _arg4:Boolean=false, _arg5:Number=2, _arg6:uint=0, _arg7:Boolean=true, _arg8:Boolean=false){ var _local9:BitmapData; var _local11:int; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local20:_-7Q; var _local25:int; var _local26:int; var _local29:Matrix; var _local30:Sprite; this.info_tile = _arg1; this.info_colour = _arg6; this.info_gradient = _arg7; this.info_contour = _arg4; this.magic_shift = this.extends(_arg2, _arg3); var _local10:int = _arg2.vertexCount; _local12 = _arg2.vertices[0].x; _local13 = _arg2.vertices[0].y; _local14 = _arg2.vertices[0].x; _local15 = _arg2.vertices[0].y; _local11 = 1; while (_local11 < _local10) { if (_arg2.vertices[_local11].x < _local12){ _local12 = _arg2.vertices[_local11].x; }; if (_arg2.vertices[_local11].x > _local14){ _local14 = _arg2.vertices[_local11].x; }; if (_arg2.vertices[_local11].y < _local13){ _local13 = _arg2.vertices[_local11].y; }; if (_arg2.vertices[_local11].y > _local15){ _local15 = _arg2.vertices[_local11].y; }; _local11++; }; _local16 = (_local14 - _local12); if (_local16 < 0){ _local16 = -(_local16); }; _local17 = (_local15 - _local13); if (_local17 < 0){ _local17 = -(_local17); }; _local9 = new BitmapData(Math.ceil((_local16 * _arg3)), Math.ceil((_local17 * _arg3)), true, 0); var _local18:Sprite = new Sprite(); _local18.graphics.clear(); _local18.graphics.beginFill(0xFF00, 1); var _local19:Number = 5; _local11 = (_local10 - 1); _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); _local18.graphics.moveTo(_local20.x, _local20.y); _local11 = 0; while (_local11 < _local10) { if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); }; _local18.graphics.curveTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3), _local20.x, _local20.y); if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); }; _local18.graphics.lineTo(_local20.x, _local20.y); _local11++; }; _local18.graphics.endFill(); _local9.draw(_local18); _local18 = null; var _local21:int = Math.ceil(Math.sqrt(((_local9.width * _local9.width) + (_local9.height * _local9.height)))); if (_local21 > 2880){ _local21 = 2880; }; _local18 = new Sprite(); var _local22:DisplayObject = new (_arg1); var _local23:int = ((_local21 / _local22.width) + 1); var _local24:int = ((_local21 / _local22.height) + 1); var _local27:Sprite = new Sprite(); this._-Ch(_local27, _local21, _arg6); if (!_arg8){ _local27.rotation = 0; _local29 = _local27.transform.matrix; _local29.tx = -((_local21 / 2)); _local29.ty = -((_local21 / 2)); _local29.rotate((this._-5A + (Math.PI / 3))); _local29.tx = (_local29.tx + (_local9.width / 2)); _local29.ty = (_local29.ty + (_local9.height / 2)); _local27.transform.matrix = _local29; }; _local18.addChild(_local27); if (_arg4){ _local30 = new Sprite(); _local18.addChild(_local30); _local30.graphics.lineStyle(5, 51); _local11 = (_local10 - 1); _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); _local30.graphics.moveTo(_local20.x, _local20.y); _local11 = 0; while (_local11 < _local10) { if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); }; _local30.graphics.curveTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3), _local20.x, _local20.y); if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); }; _local30.graphics.lineTo(_local20.x, _local20.y); _local11++; }; }; var _local28:BitmapData = new BitmapData(_local9.width, _local9.height, true, 0); _local28.draw(_local18); _local18 = null; _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.RED, BitmapDataChannel.RED); _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.GREEN, BitmapDataChannel.GREEN); _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.BLUE, BitmapDataChannel.BLUE); _local28 = null; super(_local9, "auto", true); } public function _-8s(_arg1:_-7Q, _arg2:_-7Q, _arg3:Number):_-7Q{ var _local4:_-7Q = _arg2.Copy(); _local4._-I4(_arg1); var _local5:Number = _local4._-8u(); if (_local5 > _arg3){ _local4.Multiply((_arg3 / _local5)); } else { _local4.Multiply((1 / _local5)); }; var _local6:_-7Q = _arg2.Copy(); _local6._-I4(_local4); return (_local6); } public function _-Ch(_arg1:Sprite, _arg2:int, _arg3:int):void{ var _local6:int; var _local7:int; var _local4 = 2; var _local5 = 5; var _local8:int = (((_arg2 / (_local4 + _local5)) * 2) + 1); _arg1.graphics.lineStyle(0, 0); _arg1.graphics.beginFill(0xFFFFFF); _arg1.graphics.drawRect(0, 0, _arg2, _arg2); _arg1.graphics.endFill(); _arg1.graphics.beginFill(_arg3, 0.55); _arg1.graphics.drawRect(0, 0, _arg2, _arg2); _arg1.graphics.endFill(); _arg1.graphics.lineStyle(_local4, 0, 0.55); _local6 = 0; while (_local6 < _local8) { _local7 = 0; while (_local7 < _local8) { _-4V._-2R(_arg1.graphics, ((_local6 * (_local4 + _local5)) * 2), ((_local7 * (_local4 + _local5)) * 2), 3, _local5, _local4); _local7++; }; _local6++; }; } protected function extends(_arg1:_-0l, _arg2:Number):_-7Q{ var _local4:int; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local13:Number; var _local3:int = _arg1.vertexCount; var _local9:_-7Q = _arg1.vertices[0].Copy(); this._-KM = 0; _local9._-I4(_arg1.vertices[1]); var _local10:Number = _local9._-8u(); _local5 = _arg1.vertices[0].x; _local6 = _arg1.vertices[0].y; _local7 = _arg1.vertices[0].x; _local8 = _arg1.vertices[0].y; _local4 = 1; while (_local4 < _local3) { if (_arg1.vertices[_local4].x < _local5){ _local5 = _arg1.vertices[_local4].x; }; if (_arg1.vertices[_local4].x > _local7){ _local7 = _arg1.vertices[_local4].x; }; if (_arg1.vertices[_local4].y < _local6){ _local6 = _arg1.vertices[_local4].y; }; if (_arg1.vertices[_local4].y > _local8){ _local8 = _arg1.vertices[_local4].y; }; _local9 = _arg1.vertices[_local4].Copy(); if (_local4 != (_local3 - 1)){ _local9._-I4(_arg1.vertices[(_local4 + 1)]); } else { _local9._-I4(_arg1.vertices[0]); }; _local13 = _local9._-8u(); if (_local13 > _local10){ _local10 = _local13; this._-KM = _local4; }; _local4++; }; if (this._-KM != (_local3 - 1)){ this._-5A = Math.atan2((-(_arg1.vertices[this._-KM].y) + _arg1.vertices[(this._-KM + 1)].y), (_arg1.vertices[(this._-KM + 1)].x - _arg1.vertices[this._-KM].x)); } else { this._-5A = Math.atan2((-(_arg1.vertices[this._-KM].y) + _arg1.vertices[0].y), (_arg1.vertices[0].x - _arg1.vertices[this._-KM].x)); }; var _local11:_-7Q = new _-7Q(((_local7 - _local5) / 2), ((_local8 - _local6) / 2)); var _local12:_-7Q = new _-7Q(_local5, _local6); _local12.Add(_local11); _local12.Multiply(_arg2); return (_local12); } } }//package game
Section 87
//_-1s (game._-1s) package game { import mx.core.*; public class _-1s extends BitmapAsset { } }//package game
Section 88
//_-2e (game._-2e) package game { import mx.core.*; public class _-2e extends SpriteAsset { } }//package game
Section 89
//_-2K (game._-2K) package game { import mx.core.*; public class _-2K extends SpriteAsset { } }//package game
Section 90
//_-2N (game._-2N) package game { import mx.core.*; public class _-2N extends SpriteAsset { } }//package game
Section 91
//_-2u (game._-2u) package game { import mx.core.*; public class _-2u extends BitmapAsset { } }//package game
Section 92
//_-2z (game._-2z) package game { import mx.core.*; public class _-2z extends SpriteAsset { } }//package game
Section 93
//_-3c (game._-3c) package game { import mochi.as3.*; import flash.display.*; import flash.events.*; public dynamic class _-3c extends Sprite { public function _-3c(){ if (stage){ this.each (); } else { addEventListener(Event.ADDED_TO_STAGE, this.each ); }; } public function each (_arg1:Event=null):void{ removeEventListener(Event.ADDED_TO_STAGE, this.each ); _-6L.connect("2acd5b391eba93bd", this); } } }//package game
Section 94
//_-3H (game._-3H) package game { import _-BU.*; import flash.display.*; import _-Cb.*; import flash.geom.*; import _-5m.*; public class _-3H extends Bitmap { public var is_possible_remove:Boolean; public var info_contour:Boolean; public var _-KM:int; public var coll2_sensor:Boolean; public var _-5A:Number; public var info_tile:Class; public var info_gradient:Boolean; public var coll2_sensor_angle:_-7Q; public var magic_shift:_-7Q; public var collision_group:int; public var info_colour:uint; public function _-3H(_arg1:Class, _arg2:_-0l, _arg3:Number, _arg4:Boolean=false, _arg5:Number=2, _arg6:uint=0, _arg7:Boolean=true, _arg8:Boolean=false){ var _local9:BitmapData; var _local11:int; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local20:_-7Q; var _local25:int; var _local26:int; var _local29:Matrix; var _local30:Sprite; this.info_tile = _arg1; this.info_colour = _arg6; this.info_gradient = _arg7; this.info_contour = _arg4; this.magic_shift = this.extends(_arg2, _arg3); var _local10:int = _arg2.vertexCount; _local12 = _arg2.vertices[0].x; _local13 = _arg2.vertices[0].y; _local14 = _arg2.vertices[0].x; _local15 = _arg2.vertices[0].y; _local11 = 1; while (_local11 < _local10) { if (_arg2.vertices[_local11].x < _local12){ _local12 = _arg2.vertices[_local11].x; }; if (_arg2.vertices[_local11].x > _local14){ _local14 = _arg2.vertices[_local11].x; }; if (_arg2.vertices[_local11].y < _local13){ _local13 = _arg2.vertices[_local11].y; }; if (_arg2.vertices[_local11].y > _local15){ _local15 = _arg2.vertices[_local11].y; }; _local11++; }; _local16 = (_local14 - _local12); if (_local16 < 0){ _local16 = -(_local16); }; _local17 = (_local15 - _local13); if (_local17 < 0){ _local17 = -(_local17); }; _local9 = new BitmapData(Math.ceil((_local16 * _arg3)), Math.ceil((_local17 * _arg3)), true, 0); var _local18:Sprite = new Sprite(); _local18.graphics.clear(); _local18.graphics.beginFill(0xFF00, 1); var _local19:Number = 5; _local11 = (_local10 - 1); _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); _local18.graphics.moveTo(_local20.x, _local20.y); _local11 = 0; while (_local11 < _local10) { if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); }; _local18.graphics.curveTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3), _local20.x, _local20.y); if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); }; _local18.graphics.lineTo(_local20.x, _local20.y); _local11++; }; _local18.graphics.endFill(); _local9.draw(_local18); _local18 = null; var _local21:int = Math.ceil(Math.sqrt(((_local9.width * _local9.width) + (_local9.height * _local9.height)))); if (_local21 > 2880){ _local21 = 2880; }; _local18 = new Sprite(); var _local22:DisplayObject = new (_arg1); var _local23:int = ((_local21 / _local22.width) + 1); var _local24:int = ((_local21 / _local22.height) + 1); var _local27:Sprite = new Sprite(); this._-Ch(_local27, _local21, _arg6); if (!_arg8){ _local27.rotation = 0; _local29 = _local27.transform.matrix; _local29.tx = -((_local21 / 2)); _local29.ty = -((_local21 / 2)); _local29.rotate((this._-5A + (Math.PI / 3))); _local29.tx = (_local29.tx + (_local9.width / 2)); _local29.ty = (_local29.ty + (_local9.height / 2)); _local27.transform.matrix = _local29; }; _local18.addChild(_local27); if (_arg4){ _local30 = new Sprite(); _local18.addChild(_local30); _local30.graphics.lineStyle(5, 51); _local11 = (_local10 - 1); _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); _local30.graphics.moveTo(_local20.x, _local20.y); _local11 = 0; while (_local11 < _local10) { if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); }; _local30.graphics.curveTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3), _local20.x, _local20.y); if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); }; _local30.graphics.lineTo(_local20.x, _local20.y); _local11++; }; }; var _local28:BitmapData = new BitmapData(_local9.width, _local9.height, true, 0); _local28.draw(_local18); _local18 = null; _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.RED, BitmapDataChannel.RED); _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.GREEN, BitmapDataChannel.GREEN); _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.BLUE, BitmapDataChannel.BLUE); _local28 = null; super(_local9, "auto", true); } public function _-8s(_arg1:_-7Q, _arg2:_-7Q, _arg3:Number):_-7Q{ var _local4:_-7Q = _arg2.Copy(); _local4._-I4(_arg1); var _local5:Number = _local4._-8u(); if (_local5 > _arg3){ _local4.Multiply((_arg3 / _local5)); } else { _local4.Multiply((1 / _local5)); }; var _local6:_-7Q = _arg2.Copy(); _local6._-I4(_local4); return (_local6); } public function _-Ch(_arg1:Sprite, _arg2:int, _arg3:int):void{ var _local6:int; var _local7:int; var _local4 = 2; var _local5 = 15; var _local8:int = ((_arg2 / (_local4 + _local5)) + 1); _arg1.graphics.lineStyle(0, 0); _arg1.graphics.beginFill(0xFFFFFF); _arg1.graphics.drawRect(0, 0, _arg2, _arg2); _arg1.graphics.endFill(); _arg1.graphics.beginFill(_arg3, 0.55); _arg1.graphics.drawRect(0, 0, _arg2, _arg2); _arg1.graphics.endFill(); _arg1.graphics.lineStyle(_local4, 0, 0.55); _local6 = 0; while (_local6 < _local8) { _-4V._-9Y(_arg1.graphics, (_local6 * (_local4 + _local5)), 0, (_local6 * (_local4 + _local5)), _arg2); _-4V._-9Y(_arg1.graphics, 0, (_local6 * (_local4 + _local5)), _arg2, (_local6 * (_local4 + _local5))); _local6++; }; } protected function extends(_arg1:_-0l, _arg2:Number):_-7Q{ var _local4:int; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local13:Number; var _local3:int = _arg1.vertexCount; var _local9:_-7Q = _arg1.vertices[0].Copy(); this._-KM = 0; _local9._-I4(_arg1.vertices[1]); var _local10:Number = _local9._-8u(); _local5 = _arg1.vertices[0].x; _local6 = _arg1.vertices[0].y; _local7 = _arg1.vertices[0].x; _local8 = _arg1.vertices[0].y; _local4 = 1; while (_local4 < _local3) { if (_arg1.vertices[_local4].x < _local5){ _local5 = _arg1.vertices[_local4].x; }; if (_arg1.vertices[_local4].x > _local7){ _local7 = _arg1.vertices[_local4].x; }; if (_arg1.vertices[_local4].y < _local6){ _local6 = _arg1.vertices[_local4].y; }; if (_arg1.vertices[_local4].y > _local8){ _local8 = _arg1.vertices[_local4].y; }; _local9 = _arg1.vertices[_local4].Copy(); if (_local4 != (_local3 - 1)){ _local9._-I4(_arg1.vertices[(_local4 + 1)]); } else { _local9._-I4(_arg1.vertices[0]); }; _local13 = _local9._-8u(); if (_local13 > _local10){ _local10 = _local13; this._-KM = _local4; }; _local4++; }; if (this._-KM != (_local3 - 1)){ this._-5A = Math.atan2((-(_arg1.vertices[this._-KM].y) + _arg1.vertices[(this._-KM + 1)].y), (_arg1.vertices[(this._-KM + 1)].x - _arg1.vertices[this._-KM].x)); } else { this._-5A = Math.atan2((-(_arg1.vertices[this._-KM].y) + _arg1.vertices[0].y), (_arg1.vertices[0].x - _arg1.vertices[this._-KM].x)); }; var _local11:_-7Q = new _-7Q(((_local7 - _local5) / 2), ((_local8 - _local6) / 2)); var _local12:_-7Q = new _-7Q(_local5, _local6); _local12.Add(_local11); _local12.Multiply(_arg2); return (_local12); } } }//package game
Section 95
//_-3P (game._-3P) package game { import mx.core.*; public class _-3P extends SpriteAsset { } }//package game
Section 96
//_-43 (game._-43) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.geom.*; import flash.net.*; public class _-43 extends Sprite { private var _-e:Class; private var _-4L:Class; private var _-Q:Class; private var _-La:Class; private var _-Jw:Class; private var _-EI:Class; protected var _-3o:SimpleButton; private var _-8g:Class; private var _-FO:Class; private var _-9D:Class; private var _-Ah:Class; private var _-IB:Class; protected var _-8A:Function; protected var _-EZ:int; public function _-43(_arg1:int, _arg2:Function){ this._-e = _-K1; this._-4L = _-6S; this._-Jw = _-2e; this._-EI = _-s; this._-IB = _-Hm; this._-8g = _-JB; this._-FO = _-2K; this._-9D = _-0p; this._-Ah = _-JE; this._-Q = _-LA; this._-La = _-L6; super(); this._-EZ = _arg1; this._-8A = _arg2; this._-E8(); } protected function get(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=Slicerix-2&utm_source=ingame&utm_content=ingame"); navigateToURL(_local2, "_blank"); } protected function _-E8():void{ var _local1:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local10:Bitmap; var _local14:Sprite; var _local15:TextFormat; var _local16:TextField; var _local17:Sprite; var _local18:SimpleButton; _local1 = 52; var _local2:int = (_local1 + 5); var _local7:Bitmap = (new this._-4L() as Bitmap); _local5 = 40; _local6 = 20; var _local8:DisplayObject = new this._-Jw(); _local8.x = 0; var _local9:DisplayObject = new this._-EI(); var _local11:Sprite = new Sprite(); _local11.addChild(_local8); var _local12:Sprite = new Sprite(); _local12.addChild(_local9); var _local13:int; _local4 = 0; while (_local4 < 6) { _local3 = 0; while (_local3 < 7) { if (_local13 >= 26){ break; }; if (_local13 <= this._-EZ){ _local10 = new Bitmap(new BitmapData(49, 50, true, 0)); _local14 = new Sprite(); _local14.graphics.lineStyle(4, 15463160); _local14.graphics.beginFill(416936, 0.25); _local14.graphics.drawRect(0, 0, 49, 50); _local14.graphics.endFill(); _local10.bitmapData.draw(_local14); _local15 = new TextFormat(); _local15.font = "embed_font_1"; _local15.color = 0xFFFFFF; _local15.size = 30; _local16 = new TextField(); _local16.embedFonts = true; _local16.defaultTextFormat = _local15; _local16.selectable = false; _local16.mouseEnabled = false; _local16.antiAliasType = AntiAliasType.ADVANCED; _local16.text = int((_local13 + 1)).toString(); _local16.x = (((_local1 - _local16.textWidth) / 2) - 2); _local16.y = 4; _local16.width = (_local16.textWidth + 5); _local16.height = _local16.textHeight; _local17 = new Sprite(); _local17.addChild(_local10); _local17.addChild(_local16); _local18 = new SimpleButton(_local17, _local17, _local17, _local17); _local18.name = _local13.toString(); if (this._-8A != null){ _local18.addEventListener(MouseEvent.CLICK, this._-8A); }; _local18.x = _local5; _local18.y = _local6; addChild(_local18); } else { _local10 = new Bitmap(new BitmapData(49, 50, true, 0)); _local14 = new Sprite(); _local14.graphics.lineStyle(4, 15463160); _local14.graphics.beginFill(416936, 0.25); _local14.graphics.drawRect(0, 0, 49, 50); _local14.graphics.endFill(); _local10.bitmapData.draw(_local14); _local17 = new Sprite(); _local17.addChild(_local10); _local17.x = _local5; _local17.y = _local6; addChild(_local17); }; _local5 = (_local5 + _local2); _local13++; _local3++; }; _local5 = 40; _local6 = (_local6 + _local2); _local4++; }; _local16 = new TextField(); _local16.embedFonts = true; _local16.defaultTextFormat = _local15; _local16.selectable = false; _local16.mouseEnabled = false; _local16.antiAliasType = AntiAliasType.ADVANCED; _local16.text = "<< back"; _local16.width = (_local16.textWidth + 5); _local16.height = _local16.textHeight; this._-3o = new SimpleButton(_local16, _local16, _local16, _local16); this._-3o.x = 360; this._-3o.y = 270; addChild(this._-3o); _local15.color = 0xFFFFFF; _local15.size = 35; _local16 = new TextField(); _local16.embedFonts = true; _local16.defaultTextFormat = _local15; _local16.selectable = false; _local16.mouseEnabled = false; _local16.antiAliasType = AntiAliasType.ADVANCED; _local16.text = "select a level:"; _local16.x = 40; _local16.y = -40; _local16.width = (_local16.textWidth + 5); _local16.height = _local16.textHeight; addChild(_local16); } public function _-5Y(_arg1:Boolean, _arg2:Function):void{ if (_arg1){ this._-3o.addEventListener(MouseEvent.CLICK, _arg2); } else { this._-3o.removeEventListener(MouseEvent.CLICK, _arg2); this._-3o.enabled = false; }; } protected function _-5I():void{ var _local1:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local8:Sprite; var _local9:Bitmap; var _local13:BitmapData; var _local14:SimpleButton; _local1 = 30; var _local2:int = (_local1 + 9); this.graphics.lineStyle(2, 0); this.graphics.drawRoundRect(0, 0, 400, 250, 20, 20); _local5 = 10; _local6 = 10; this.graphics.lineStyle(2, 0); var _local7:Bitmap = (new this._-4L() as Bitmap); _local5 = 10; _local6 = 10; var _local10:int; _local4 = 0; while (_local4 < 4) { _local3 = 0; while (_local3 < 10) { _local13 = new BitmapData(_local1, _local1, true, 0); _local13.copyPixels(_local7.bitmapData, new Rectangle((_local5 - 10), (_local6 - 10), _local1, _local1), new Point(0, 0)); _local9 = new Bitmap(_local13); _local8 = new Sprite(); _local8.graphics.lineStyle(2, 0); if (_local10 <= this._-EZ){ _local8.graphics.beginFill(6144772); }; _local8.graphics.drawRoundRect(0, 0, _local1, _local1, 4, 4); if (_local10 <= this._-EZ){ _local8.graphics.endFill(); } else { _local8.x = _local5; _local8.y = _local6; }; _local8.addChild(_local9); if (_local10 <= this._-EZ){ _local14 = new SimpleButton(_local8, _local8, _local8, _local8); _local14.name = _local10.toString(); if (this._-8A != null){ _local14.addEventListener(MouseEvent.CLICK, this._-8A); }; _local14.x = _local5; _local14.y = _local6; addChild(_local14); } else { addChild(_local8); }; _local5 = (_local5 + _local2); _local10++; _local3++; }; _local5 = 10; _local6 = (_local6 + _local2); _local4++; }; var _local11:DisplayObject = new this._-8g(); var _local12:DisplayObject = new this._-IB(); this._-3o = new SimpleButton(_local11, _local12, _local12, _local12); this._-3o.x = 410; this._-3o.y = 310; addChild(this._-3o); } } }//package game
Section 97
//_-4B (game._-4B) package game { import mx.core.*; public class _-4B extends BitmapAsset { } }//package game
Section 98
//_-4m (game._-4m) package game { import flash.display.*; import flash.events.*; import flash.geom.*; public class _-4m extends Sprite { var _-Jl:Number; var _-Ge:Number; private var _-Jw:Class; var sky1:DisplayObject; var sky2:DisplayObject; var _-G3:Bitmap; var _-FV:Number; public function _-4m(){ this._-Jw = _-a; super(); this._-G3 = new Bitmap(new BitmapData(640, 480, true, 0)); addChild(this._-G3); this.init(); this.addEventListener(Event.ENTER_FRAME, this.do); } protected function do(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); this._-Jl = _local3; this.sky1.x = (this.sky1.x + this._-FV); this.sky2.x = (this.sky2.x + this._-Ge); if (this.sky1.x > 640){ this.sky1 = this._-3U(); this.sky1.x = -((150 + (Math.random() * 50))); this.sky1.y = (50 + (Math.random() * 100)); this._-FV = (1 + (Math.random() * 3)); }; if (this.sky2.x > 640){ this.sky2 = this._-3U(); this.sky2.x = -((150 + (Math.random() * 50))); this.sky2.y = (50 + (Math.random() * 100)); this._-Ge = (1 + (Math.random() * 3)); }; var _local4:Sprite = new Sprite(); _local4.addChild(this.sky1); _local4.addChild(this.sky2); this._-G3.bitmapData.fillRect(new Rectangle(0, 0, 640, 480), 0); this._-G3.bitmapData.draw(_local4); } protected function _-3U():DisplayObject{ var _local1:int = Math.floor((Math.random() * 3)); var _local2:DisplayObject = new this._-Jw(); switch (_local1){ case 0: _local2.scaleX = 0.75; _local2.scaleY = 0.75; break; case 1: _local2.scaleX = 0.5; _local2.scaleY = 0.5; break; case 2: _local2.scaleX = 0.65; _local2.scaleY = 0.65; break; }; return (_local2); } protected function init():void{ this.sky1 = this._-3U(); this.sky1.x = -((150 + (Math.random() * 50))); this.sky1.y = (50 + (Math.random() * 100)); this._-FV = (0.25 + (Math.random() * 1.5)); this.sky2 = this._-3U(); this.sky2.x = -((150 + (Math.random() * 50))); this.sky2.y = (50 + (Math.random() * 100)); this._-Ge = (0.25 + (Math.random() * 1.5)); } } }//package game
Section 99
//_-4s (game._-4s) package game { import flash.display.*; import flash.events.*; public class _-4s extends Sprite { private var _-Jw:Class; private var _-2o:Function; public function _-4s(_arg1:Function):void{ this._-Jw = _-CQ; super(); this.graphics.beginFill(0); this.graphics.drawRect(0, 0, 640, 480); this.graphics.endFill(); var _local2:DisplayObject = new this._-Jw(); var _local3:Sprite = new Sprite(); _local3.buttonMode = true; _local3.addEventListener(MouseEvent.CLICK, this._-FB); addChild(_local3); _local3.addChild(_local2); this._-2o = _arg1; } protected function _-FB(_arg1:MouseEvent):void{ this._-2o(); } } }//package game
Section 100
//_-4W (game._-4W) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.filters.*; public class _-4W extends Sprite { protected var _-LN:TextField; protected var _-9R:int; protected var _-2X:Number; protected var _-Eo:Boolean;// = false public function _-4W(){ var _local1:TextFormat = new TextFormat(); _local1.font = "embed_font_1"; _local1.color = 0xFFFFFF; _local1.size = 25; this._-LN = new TextField(); this._-LN.embedFonts = true; this._-LN.defaultTextFormat = _local1; this._-LN.selectable = false; this._-LN.mouseEnabled = false; this._-LN.antiAliasType = AntiAliasType.ADVANCED; this._-LN.text = ""; this._-LN.width = (this._-LN.textWidth + 5); this._-LN.height = this._-LN.textHeight; this._-1H(this._-LN); addChild(this._-LN); var _local2:TextField = new TextField(); _local2.embedFonts = true; _local2.defaultTextFormat = _local1; _local2.selectable = false; _local2.mouseEnabled = false; _local2.antiAliasType = AntiAliasType.ADVANCED; _local2.text = "time bonus: "; _local2.width = (_local2.textWidth + 5); _local2.height = _local2.textHeight; _local2.x = 0; _local2.y = 0; this._-1H(_local2); this._-LN.x = (_local2.x + _local2.width); this._-LN.y = _local2.y; addChild(_local2); } protected function _-Cy(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); this.update(_local3); } public function update(_arg1:Number):void{ var _local2:int = Math.ceil(((_arg1 - this._-2X) / 1000)); if (_local2 <= 60){ _local2 = (((61 - _local2) * 16) + (this._-9R * 10)); } else { _local2 = (this._-9R * 10); }; this._-LN.text = _local2.toString(); this._-LN.width = (this._-LN.textWidth + 5); this._-LN.height = this._-LN.textHeight; } public function _-FW():void{ if (this._-Eo){ removeEventListener(Event.ENTER_FRAME, this._-Cy); }; this._-Eo = false; } protected function _-1H(_arg1:DisplayObject):void{ var _local2:DropShadowFilter = new DropShadowFilter(); _local2.color = 0; _local2.blurY = 4; _local2.blurX = 4; _local2.angle = 45; _local2.alpha = 0.5; _local2.distance = 4; var _local3:Array = new Array(_local2); _arg1.filters = _local3; } public function if (_arg1:Number, _arg2:int):void{ this._-2X = _arg1; this._-9R = _arg2; if (this._-Eo){ removeEventListener(Event.ENTER_FRAME, this._-Cy); }; this._-Eo = true; addEventListener(Event.ENTER_FRAME, this._-Cy); } } }//package game
Section 101
//_-4Y (game._-4Y) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; public class _-4Y extends Sprite { protected const _-18:String = "23.12.2010"; private var _-AG:Class; private var _-AS:Class; private var _-Ee:Class; private var _-e:Class; public var _-33:int; private var _-GD:String;// = "mainMenu_FontClass1" protected var do :_-0H; protected var _-4a:SimpleButton; protected var _-0o:SimpleButton; private var _-GM:Class; private var _-4L:Class; private var _-Co:Class; private var _-H5:Class; private var _-1c:Class; private var _-7l:Class; private var _-9X:Class; private var _-9D:Class; private var _-Ah:Class; private var _-Es:Class; private var _-GE:Class; protected var _-6H:SimpleButton; private var _-Hh:Class; private var _-Q:Class; private var _-La:Class; protected var _-Ca:int;// = 0 protected var _-LT:SimpleButton; protected var _-4F:SimpleButton; protected var _-9O:Number; protected var throw:SimpleButton; protected var _-8I:SimpleButton; protected var _-4Q:Sprite; public var _-8R:Boolean;// = false protected var _-5k:_-58; protected var _-C4:_-43; protected var _-8x:Sprite; public function _-4Y(){ this._-9D = _-BR; this._-Ah = _-Ey; this._-Es = _-6y; this._-GE = _-Gb; this._-Co = _-BY; this._-H5 = _-JY; this._-Hh = _-Bx; this._-e = _-0v; this._-GM = _-5H; this._-4L = _-Gq; this._-Q = _-CF; this._-La = _-JO; this._-1c = _-1s; this._-7l = _-5S; this._-9X = in; this._-AG = _-E; this._-AS = _-88; this._-Ee = _-4B; super(); var _local1:finally = new finally(); addChild(_local1); this._-4Q = new Sprite(); var _local2:DisplayObject = new this._-1c(); var _local3:Sprite = new Sprite(); _local3.addChild(_local2); _local3.x = ((640 - _local2.width) / 2); this._-4Q.addChild(_local3); this._-5I(); } protected function _-FD(_arg1:MouseEvent):void{ this._-33 = uint((_arg1.target as SimpleButton).name); this._-Ca = 4; this._-C4._-5Y(false, this._-G8); } protected function _-2E(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.4v4.com/free-online-puzzle-games/66/slicerix.html?utm_medium=brandedgames_external&utm_campaign=Slicerix-2&utm_source=otherepisode&utm_content=otherepisode"); navigateToURL(_local2, "_blank"); } protected function try(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } protected function _-W(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.addictinggames.com/"); navigateToURL(_local2, "_blank"); } protected function _-Lz(_arg1:MouseEvent):void{ this._-Ha(false); this._-Ca = 8; } public function _-0W():void{ this._-8x.removeEventListener(Event.ENTER_FRAME, this.use); } protected function _-BF():void{ this._-Ca = 7; } protected function _-4E(_arg1:MouseEvent):void{ this._-Ha(false); this._-Ca = 5; } protected function _-G8(_arg1:MouseEvent):void{ this._-Ca = 3; this._-C4._-5Y(false, this._-G8); } protected function _-KR():void{ var _local1:DisplayObject = new this._-Hh(); var _local2:Sprite = new Sprite(); _local2.addChild(_local1); _local2.x = 100; _local2.y = 460; _local2.scaleX = 0.5; _local2.scaleY = _local2.scaleX; _local2.addEventListener(MouseEvent.CLICK, this._-6E); _local2.buttonMode = true; addChild(_local2); } protected function _-6E(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.addictinggames.com/"); navigateToURL(_local2, "_blank"); } protected function _-EE(_arg1:MouseEvent):void{ this._-Ca = 1; this._-Ha(false); } protected function _-Ha(_arg1:Boolean):void{ this._-0o.enabled = _arg1; this._-LT.enabled = _arg1; this._-4F.enabled = _arg1; this._-8I.enabled = _arg1; if (_arg1){ this._-0o.addEventListener(MouseEvent.CLICK, this._-EE); this._-LT.addEventListener(MouseEvent.CLICK, this._-Lz); this._-4F.addEventListener(MouseEvent.CLICK, this._-4E); this._-8I.addEventListener(MouseEvent.CLICK, this._-W); } else { this._-0o.removeEventListener(MouseEvent.CLICK, this._-EE); this._-LT.removeEventListener(MouseEvent.CLICK, this._-Lz); this._-4F.removeEventListener(MouseEvent.CLICK, this._-4E); this._-8I.removeEventListener(MouseEvent.CLICK, this._-W); }; } protected function use(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); this._-9O = _local3; switch (this._-Ca){ case 1: this._-8x.x = this. try(this._-8x.x, 180, 0.1); this._-8x.alpha = this. try(this._-8x.alpha, 0, 0.25); if (this._-8x.alpha <= 0.001){ this._-8x.alpha = 0; this._-8x.x = 640; this._-Ca = 2; this._-C4 = new _-43(_-K3._-0a()._-B6(), this._-FD); this._-C4._-5Y(true, this._-G8); addChild(this._-C4); this._-C4.x = 90; this._-C4.y = 100; this._-C4.alpha = 0; }; return; case 2: this._-C4.alpha = this. try(this._-C4.alpha, 1, 0.25); if (this._-C4.alpha >= 0.999){ this._-C4.alpha = 1; this._-Ca = 0; }; return; case 3: this._-C4.alpha = this. try(this._-C4.alpha, 0, 0.25); this._-C4.x = this. try(this._-C4.x, 220, 0.1); if (this._-C4.alpha < 0.001){ removeChild(this._-C4); this._-C4 = null; this._-8x.x = 0; this._-Ca = 99; this._-Ha(true); }; return; case 4: this._-C4.alpha = this. try(this._-C4.alpha, 0, 0.25); this._-C4.x = this. try(this._-C4.x, 220, 0.1); if (this._-C4.alpha < 0.001){ removeChild(this._-C4); this._-C4 = null; this._-8R = true; }; return; case 5: this._-8x.x = this. try(this._-8x.x, 180, 0.1); this._-8x.alpha = this. try(this._-8x.alpha, 0, 0.1); if (this._-8x.alpha <= 0.001){ this._-8x.alpha = 0; this._-Ca = 6; this._-5k = new _-58(this._-BF); this._-5k.x = 150; this._-5k.y = 100; addChild(this._-5k); }; return; case 6: this._-5k.alpha = this. try(this._-5k.alpha, 1, 0.1); if (this._-5k.alpha >= 0.999){ this._-5k.alpha = 1; this._-Ca = 0; }; return; case 7: this._-5k.alpha = this. try(this._-5k.alpha, 0, 0.25); this._-5k.y = this. try(this._-5k.y, 90, 0.25); if (this._-5k.alpha <= 0.001){ this._-5k.alpha = 0; removeChild(this._-5k); this._-5k = null; this._-8x.x = 0; this._-Ha(true); this._-Ca = 99; }; return; case 8: this._-8x.x = this. try(this._-8x.x, 180, 0.1); this._-8x.alpha = this. try(this._-8x.alpha, 0, 0.1); if (this._-8x.alpha <= 0.001){ this._-8x.alpha = 0; this._-Ca = 9; this.do = new _-0H(this.try ); this.do .x = 150; this.do .y = 100; addChild(this.do ); }; return; case 9: this.do .alpha = this. try(this.do .alpha, 1, 0.1); if (this.do .alpha >= 0.999){ this.do .alpha = 1; this._-Ca = 0; }; return; case 10: this.do .alpha = this. try(this.do .alpha, 0, 0.25); this.do .y = this. try(this.do .y, 90, 0.25); if (this.do .alpha <= 0.001){ this.do .alpha = 0; removeChild(this.do ); this.do = null; this._-8x.x = 0; this._-Ha(true); this._-Ca = 99; }; return; case 99: this._-8x.alpha = this. try(this._-8x.alpha, 1, 0.25); if (this._-8x.alpha >= 0.999){ this._-8x.alpha = 1; this._-Ca = 0; }; return; }; } protected function _-8L():void{ var _local1:TextFormat = new TextFormat(); _local1.font = "embed_font_1"; _local1.color = 0xFFFFFF; _local1.size = 16; var _local2:TextField = new TextField(); _local2.embedFonts = true; _local2.defaultTextFormat = _local1; _local2.selectable = false; _local2.mouseEnabled = false; _local2.antiAliasType = AntiAliasType.ADVANCED; _local2.autoSize = TextFieldAutoSize.LEFT; _local2.text = ("build: " + this._-18); _local2.x = (640 - _local2.width); _local2.y = (480 - _local2.height); addChild(_local2); } protected function try ():void{ this._-Ca = 10; } protected function _-5I():void{ this._-8L(); this._-KR(); var _local1 = 0xFFFFFF; var _local2 = 0xFFFFFF; var _local3 = 180; this._-8x = new Sprite(); this._-8x.addEventListener(Event.ENTER_FRAME, this.use); this._-8x.alpha = 0; this._-Ca = 99; addChild(this._-8x); this._-8x.addChild(this._-4Q); var _local4:Sprite = new Sprite(); var _local5:Sprite = new Sprite(); var _local6:TextFormat = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = _local1; _local6.size = 60; var _local7:TextField = new TextField(); _local4.addChild(_local7); _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.autoSize = TextFieldAutoSize.LEFT; _local7.text = "play"; _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = _local2; _local6.size = 60; var _local8:TextField = new TextField(); _local5.addChild(_local8); _local8.embedFonts = true; _local8.defaultTextFormat = _local6; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.autoSize = TextFieldAutoSize.LEFT; _local8.text = "play"; this._-0o = new SimpleButton(_local4, _local5, _local5, _local5); this._-0o.x = ((640 - _local4.width) / 2); this._-0o.y = (_local3 + 20); this._-8x.addChild(this._-0o); _local4 = new Sprite(); _local7 = new TextField(); _local4.addChild(_local7); _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = _local1; _local6.size = 42; _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.autoSize = TextFieldAutoSize.LEFT; _local7.text = "how to play"; _local5 = new Sprite(); _local8 = new TextField(); _local5.addChild(_local8); _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = _local2; _local6.size = 42; _local8.embedFonts = true; _local8.defaultTextFormat = _local6; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.autoSize = TextFieldAutoSize.LEFT; _local8.text = "how to play"; this._-LT = new SimpleButton(_local4, _local5, _local5, _local5); this._-LT.x = ((640 - _local4.width) / 2); this._-LT.y = (_local3 + 130); this._-8x.addChild(this._-LT); _local4 = new Sprite(); _local7 = new TextField(); _local4.addChild(_local7); _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = _local1; _local6.size = 42; _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.autoSize = TextFieldAutoSize.LEFT; _local7.text = "about"; _local5 = new Sprite(); _local8 = new TextField(); _local5.addChild(_local8); _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = _local2; _local6.size = 42; _local8.embedFonts = true; _local8.defaultTextFormat = _local6; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.autoSize = TextFieldAutoSize.LEFT; _local8.text = "about"; this._-4F = new SimpleButton(_local4, _local5, _local5, _local5); this._-4F.x = ((640 - _local4.width) / 2); this._-4F.y = (_local3 + 180); this._-8x.addChild(this._-4F); _local4 = new Sprite(); _local7 = new TextField(); _local4.addChild(_local7); _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = _local1; _local6.size = 42; _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.autoSize = TextFieldAutoSize.LEFT; _local7.text = "more games"; _local5 = new Sprite(); _local8 = new TextField(); _local5.addChild(_local8); _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = _local2; _local6.size = 42; _local8.embedFonts = true; _local8.defaultTextFormat = _local6; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.autoSize = TextFieldAutoSize.LEFT; _local8.text = "more games"; this._-8I = new SimpleButton(_local4, _local5, _local5, _local5); this._-8I.x = ((640 - _local4.width) / 2); this._-8I.y = (_local3 + 80); this._-8x.addChild(this._-8I); this._-Ha(true); } } }//package game
Section 102
//_-58 (game._-58) package game { import flash.display.*; import flash.events.*; import flash.text.*; public class _-58 extends Sprite { protected var _-5q:Function; protected var _-3E:SimpleButton; private var _-Jw:Class; protected var _-Fo:DisplayObject; public function _-58(_arg1:Function){ this._-Jw = _-2u; super(); this._-5q = _arg1; var _local2:TextFormat = new TextFormat(); _local2.font = "embed_font_1"; var _local3:DisplayObject = new this._-Jw(); _local3.x = 0; _local3.y = -50; addChild(_local3); _local2.color = 0xFFFFFF; _local2.size = 35; _local2.bold = true; var _local4:TextField = new TextField(); _local4.embedFonts = true; _local4.defaultTextFormat = _local2; _local4.selectable = false; _local4.mouseEnabled = false; _local4.antiAliasType = AntiAliasType.ADVANCED; _local4.text = "<< back"; _local4.width = (_local4.textWidth + 5); _local4.height = _local4.textHeight; this._-3E = new SimpleButton(_local4, _local4, _local4, _local4); this._-3E.x = 110; this._-3E.y = 310; this._-3E.addEventListener(MouseEvent.CLICK, this.else ); addChild(this._-3E); this.alpha = 0; } protected function else (_arg1:MouseEvent):void{ this._-3E.removeEventListener(MouseEvent.CLICK, this.else ); this._-5q(); } } }//package game
Section 103
//_-5f (game._-5f) package game { import flash.display.*; import flash.events.*; public class _-5f extends Sprite { protected var _-F9:Array; public function _-5f(){ this._-F9 = new Array(); addEventListener(Event.ENTER_FRAME, this.update); } protected function update(_arg1:Event):void{ var _local3:int; var _local6:Number; var _local2:int = this._-F9.length; if (_local2 == 0){ return; }; var _local4:Date = new Date(); var _local5:Number = _local4.getTime(); _local3 = 0; while (_local3 < _local2) { if ((_local5 - this._-F9[_local3].create_time) >= this._-F9[_local3].live_time){ this.removeChild(this._-F9[_local3].sprite); this._-F9[_local3].sprite = null; this._-F9.splice(_local3, 1); this._-F9.length = (_local2 - 1); return; }; _local6 = ((_local5 - this._-F9[_local3].create_time) / this._-F9[_local3].live_time); if (!this._-F9[_local3].is_rotate_item){ this._-F9[_local3].sprite.alpha = ((this._-F9[_local3].live_time - (_local5 - this._-F9[_local3].create_time)) / this._-F9[_local3].live_time); } else { this._-F9[_local3].sprite.y = (this._-F9[_local3].sprite.y - 1); this._-F9[_local3].sprite.rotation = (this._-F9[_local3].sprite.rotation + 10); }; _local3++; }; } public function _-2C(_arg1:DisplayObject, _arg2:Number=500, _arg3:Boolean=false):void{ var _local4:int = this._-F9.length; this._-F9.length = (_local4 + 1); var _local5:Date = new Date(); var _local6:Number = _local5.getTime(); this._-F9[_local4] = new EffectItem(); if (_arg3){ this._-F9[_local4].sprite = new Sprite(); this._-F9[_local4].sprite.x = (_arg1.x - (_arg1.width / 2)); this._-F9[_local4].sprite.y = (_arg1.y - (_arg1.height / 2)); _arg1.x = (-(_arg1.width) / 2); _arg1.y = (-(_arg1.height) / 2); _arg1.rotation = 0; this._-F9[_local4].sprite.addChild(_arg1); } else { this._-F9[_local4].sprite = _arg1; }; this._-F9[_local4].create_time = _local6; this._-F9[_local4].live_time = _arg2; this._-F9[_local4].is_rotate_item = _arg3; addChild(this._-F9[_local4].sprite); } } }//package game import flash.display.*; class EffectItem { private var create_time:Number; private var is_rotate_item:Boolean;// = false private var sprite:DisplayObject; private var live_time:Number;// = 500 private function EffectItem(){ } }
Section 104
//_-5H (game._-5H) package game { import mx.core.*; public class _-5H extends BitmapAsset { } }//package game
Section 105
//_-5S (game._-5S) package game { import mx.core.*; public class _-5S extends BitmapAsset { } }//package game
Section 106
//_-6N (game._-6N) package game { import mx.core.*; public class _-6N extends BitmapAsset { } }//package game
Section 107
//_-6S (game._-6S) package game { import mx.core.*; public class _-6S extends BitmapAsset { } }//package game
Section 108
//_-6y (game._-6y) package game { import mx.core.*; public class _-6y extends SpriteAsset { } }//package game
Section 109
//_-78 (game._-78) package game { import mx.core.*; public class _-78 extends BitmapAsset { } }//package game
Section 110
//_-81 (game._-81) package game { import mx.core.*; public class _-81 extends BitmapAsset { } }//package game
Section 111
//_-84 (game._-84) package game { import flash.display.*; import flash.events.*; public class _-84 extends Sprite { var _-F3:_-KX; var _-Ae:int; var _-5-:use ; var _-7x:_-4Y; var _-G6:_-Jd; public function _-84(){ this._-7x = new _-4Y(); addChild(this._-7x); this._-Ae = 0; _-Gv.getInstance(); this.addEventListener(Event.ENTER_FRAME, this.do); } protected function do(_arg1:Event):void{ var _local2:int; var _local3:Boolean; switch (this._-Ae){ case 0: if (this._-7x._-8R){ _local2 = this._-7x._-33; this._-Ae = 1; removeChild(this._-7x); this._-7x._-0W(); this._-7x = null; this._-5- = new use (); addChild(this._-5-); this._-F3 = new _-KX(this._-A7); addChild(this._-F3); this._-F3.x = 10; this._-F3.y = 450; _local3 = this._-5-._-Et(_local2); }; return; case 1: if (this._-5-._-8Z){ removeChild(this._-5-); this._-5- = null; removeChild(this._-F3); this._-F3 = null; this._-7x = new _-4Y(); addChild(this._-7x); this._-Ae = 0; }; return; }; } protected function _-A7():void{ if (_-Gv.getInstance()._-FL()){ _-Gv.getInstance()._-7n(); } else { _-Gv.getInstance()._-Cq(); }; } } }//package game
Section 112
//_-88 (game._-88) package game { import mx.core.*; public class _-88 extends BitmapAsset { } }//package game
Section 113
//_-8W (game._-8W) package game { import _-BU.*; import flash.display.*; import _-80.*; import _-Cb.*; import flash.events.*; public class _-8W extends Sprite { protected var shift:_-7Q; protected var _-FF:BitmapData; protected var _-j:Bitmap; public var _-Cc:_-7Q; protected var _-7Y:Array; public function _-8W(_arg1:_-7Q, _arg2:_-7Q, _arg3:_-EB, _arg4:Number):void{ this._-j = new Bitmap(new BitmapData(640, 480, true, 0)); this._-j.x = _arg1.x; this._-j.y = _arg1.y; addChild(this._-j); this.shift = _arg1; this._-5i(); this._-Cc = _arg2.Copy(); this._-7Y = new Array(); var _local5:int = _arg3.GetType(); if (_local5 == _-EB._-Ay){ this._-9C((_arg3 as _-8P), _arg4); }; addEventListener(Event.ENTER_FRAME, this.update); } public function _-AP(_arg1:Array, _arg2:_-7Q):Boolean{ var _local4:int; var _local5:Number; var _local6:_-7Q; var _local7:_-7Q; var _local3:int; var _local8:int = _arg1.length; _local6 = _arg1[0]; _local4 = 1; while (_local4 <= _local8) { _local7 = _arg1[(_local4 % _local8)]; if (_arg2.y > Math.min(_local6.y, _local7.y)){ if (_arg2.y <= Math.max(_local6.y, _local7.y)){ if (_arg2.x <= Math.max(_local6.x, _local7.x)){ if (_local6.y != _local7.y){ _local5 = ((((_arg2.y - _local6.y) * (_local7.x - _local6.x)) / (_local7.y - _local6.y)) + _local6.x); if ((((_local6.x == _local7.x)) || ((_arg2.x <= _local5)))){ _local3++; }; }; }; }; }; _local6 = _local7; _local4++; }; if ((_local3 % 2) == 0){ return (false); }; return (true); } protected function _-5i():void{ var _local1:int; var _local2:int; var _local4:Number; this._-FF = new BitmapData(((15 * 15) * 2), ((15 * 15) * 2), true, 0); var _local3:Sprite = new Sprite(); _local1 = 0; while (_local1 < 15) { _local2 = 1; while (_local2 < 15) { _local3.graphics.beginFill(0xFF7F00, ((1 / 15) * (_local1 + 1))); _local4 = _local2; _local3.graphics.drawCircle(((_local1 * 30) + _local2), ((_local2 * 30) + _local2), _local2); _local3.graphics.endFill(); _local2++; }; _local1++; }; this._-FF.draw(_local3); _local3 = null; } public function clear():void{ removeEventListener(Event.ENTER_FRAME, this.update); removeChild(this._-j); this._-7Y = null; this._-j = null; this._-FF = null; } protected function _-9C(_arg1:_-8P, _arg2:Number):void{ var _local8:_-7Q; var _local9:_-7Q; var _local10:int; var _local16:Number; var _local17:Number; var _local18:_-KE; var _local3:_-2b = _arg1.GetBody(); var _local4:_-2w = _local3._-3t(); var _local5:Array = _arg1._-4l(); var _local6:Array = new Array(); var _local7:int = _arg1._-8N(); _local6.length = _local7; _local10 = 0; while (_local10 < _local7) { _local6[_local10] = _-8Q._-3p(_arg1.m_body.m_xf, _local5[_local10]); _local6[_local10].Multiply(_arg2); if (_local10 == 0){ _local8 = _local6[0].Copy(); _local9 = _local8.Copy(); } else { if (_local6[_local10].x < _local8.x){ _local8.x = _local6[_local10].x; } else { if (_local6[_local10].x > _local9.x){ _local9.x = _local6[_local10].x; }; }; if (_local6[_local10].y < _local8.y){ _local8.y = _local6[_local10].y; } else { if (_local6[_local10].y > _local9.y){ _local9.y = _local6[_local10].y; }; }; }; _local10++; }; var _local11:Boolean; var _local12:Boolean; var _local13:Number = 15; var _local14:Number = 0.001; var _local15:int; _local10 = 0; while (_local11) { _local16 = ((_local8.x + (_local10 * _local13)) + _local14); while (_local12) { _local17 = ((_local8.y + (_local15 * _local13)) + _local14); if (this._-AP(_local6, new _-7Q(_local16, _local17))){ _local18 = new _-KE(this._-j.bitmapData, new _-7Q((_local16 - this.shift.x), (_local17 - this.shift.y)), this._-Cc); _local18._-FF = this._-FF; this._-7Y.push(_local18); }; _local15++; if (_local17 > _local9.y){ _local12 = false; }; }; _local10++; _local15 = 0; _local12 = true; if (_local16 > _local9.x){ _local11 = false; }; }; } protected function update(_arg1:Event):void{ var _local5:int; var _local2:int = this._-7Y.length; if (_local2 == 0){ return; }; var _local3:Date = new Date(); var _local4:Number = _local3.getTime(); this._-j.bitmapData.fillRect(this._-j.bitmapData.rect, 0); _local5 = 0; while (_local5 < _local2) { this._-7Y[_local5].update(_local4); _local5++; }; } } }//package game
Section 114
//_-98 (game._-98) package game { import flash.display.*; import flash.events.*; import flash.geom.*; public class _-98 extends Sprite { var _-Jl:Number; private var _-GM:Class; private var _-4L:Class; private var _-Q:Class; var sky1:DisplayObject; var sky2:DisplayObject; var _-G3:Bitmap; var _-FV:Number; var _-Ge:Number; public function _-98(){ this._-GM = _-2N; this._-4L = _-DZ; this._-Q = _-BC; super(); this._-G3 = new Bitmap(new BitmapData(640, 480, true, 0)); addChild(this._-G3); this.init(); this.addEventListener(Event.ENTER_FRAME, this.do); } protected function do(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); this._-Jl = _local3; this.sky1.x = (this.sky1.x + this._-FV); this.sky2.x = (this.sky2.x + this._-Ge); if (this.sky1.x > 640){ this.sky1 = this._-3U(); this.sky1.x = -((150 + (Math.random() * 50))); this.sky1.y = (50 + (Math.random() * 100)); this._-FV = (1 + (Math.random() * 3)); }; if (this.sky2.x > 640){ this.sky2 = this._-3U(); this.sky2.x = -((150 + (Math.random() * 50))); this.sky2.y = (50 + (Math.random() * 100)); this._-Ge = (1 + (Math.random() * 3)); }; var _local4:Sprite = new Sprite(); _local4.addChild(this.sky1); _local4.addChild(this.sky2); this._-G3.bitmapData.fillRect(new Rectangle(0, 0, 640, 480), 0); this._-G3.bitmapData.draw(_local4); } protected function _-3U():DisplayObject{ var _local1:int = Math.floor((Math.random() * 3)); switch (_local1){ case 0: return (new this._-GM()); case 1: return (new this._-4L()); case 2: return (new this._-Q()); }; return (new this._-GM()); } protected function init():void{ this.sky1 = this._-3U(); this.sky1.x = -((150 + (Math.random() * 50))); this.sky1.y = (50 + (Math.random() * 100)); this._-FV = (1 + (Math.random() * 3)); this.sky2 = this._-3U(); this.sky2.x = -((150 + (Math.random() * 50))); this.sky2.y = (50 + (Math.random() * 100)); this._-Ge = (1 + (Math.random() * 3)); } } }//package game
Section 115
//_-9e (game._-9e) package game { import mx.core.*; public class _-9e extends BitmapAsset { } }//package game
Section 116
//_-9S (game._-9S) package game { import mx.core.*; public class _-9S extends BitmapAsset { } }//package game
Section 117
//_-9x (game._-9x) package game { import mx.core.*; public class _-9x extends BitmapAsset { } }//package game
Section 118
//_-a (game._-a) package game { import mx.core.*; public class _-a extends BitmapAsset { } }//package game
Section 119
//_-Ar (game._-Ar) package game { import mx.core.*; public class _-Ar extends BitmapAsset { } }//package game
Section 120
//_-BC (game._-BC) package game { import mx.core.*; public class _-BC extends SpriteAsset { } }//package game
Section 121
//_-Bp (game._-Bp) package game { import mx.core.*; public class _-Bp extends BitmapAsset { } }//package game
Section 122
//_-BR (game._-BR) package game { import mx.core.*; public class _-BR extends SpriteAsset { } }//package game
Section 123
//_-Bw (game._-Bw) package game { import mx.core.*; public class _-Bw extends SpriteAsset { } }//package game
Section 124
//_-BX (game._-BX) package game { import mx.core.*; public class _-BX extends ByteArrayAsset { } }//package game
Section 125
//_-Bx (game._-Bx) package game { import mx.core.*; import flash.utils.*; public class _-Bx extends MovieClipLoaderAsset { public var _-C8:Class; private static var _-87:ByteArray = null; public function _-Bx(){ this._-C8 = _-C2; super(); initialWidth = (0x2020 / 20); initialHeight = (1164 / 20); } override public function get movieClipData():ByteArray{ if (_-87 == null){ _-87 = ByteArray(new this._-C8()); }; return (_-87); } } }//package game
Section 126
//_-BY (game._-BY) package game { import mx.core.*; public class _-BY extends SpriteAsset { } }//package game
Section 127
//_-C2 (game._-C2) package game { import mx.core.*; public class _-C2 extends ByteArrayAsset { } }//package game
Section 128
//_-CA (game._-CA) package game { import flash.display.*; import flash.events.*; public class _-CA extends Sprite { protected var _-0D:Function; protected var _-Be:Function; protected var _-41:Bitmap; protected var _-5l:Bitmap; protected static var _-4h:_-CA; public function _-CA():void{ this._-41 = new Bitmap(new BitmapData(640, 480, false)); this._-5l = new Bitmap(new BitmapData(640, 480, false)); } protected function update(_arg1:Event):void{ var _local2:Number = this._-41.x; this._-41.x = this. try(_local2, -640, 0.2); this._-5l.x = (this._-41.x + 640); if (this._-5l.x <= 5){ removeChild(this._-41); removeChild(this._-5l); removeEventListener(Event.ENTER_FRAME, this.update); this._-0D = null; this._-Be(); }; } protected function _-GC(_arg1:Event):void{ var _local2:Number = this._-41.y; this._-41.y = this. try(_local2, 480, 0.2); this._-5l.y = (this._-41.y - 480); if (this._-5l.y >= -5){ removeChild(this._-41); removeChild(this._-5l); removeEventListener(Event.ENTER_FRAME, this._-GC); this._-0D = null; this._-Be(); }; } protected function _-3J(_arg1:Event):void{ var _local2:Number = this._-41.y; this._-41.y = this. try(_local2, -480, 0.2); this._-5l.y = (this._-41.y + 480); if (this._-5l.y <= 5){ removeChild(this._-41); removeChild(this._-5l); removeEventListener(Event.ENTER_FRAME, this._-3J); this._-0D = null; this._-Be(); }; } public function _-B(_arg1:Function, _arg2:Sprite):void{ this._-Be = _arg1; this._-41.x = 0; this._-41.y = 0; this._-41.bitmapData.draw(_arg2); } protected function _-HW(_arg1:Event):void{ var _local2:Number = this._-41.x; this._-41.x = this. try(_local2, 640, 0.2); this._-5l.x = (this._-41.x - 640); if (this._-5l.x >= -5){ removeChild(this._-41); removeChild(this._-5l); removeEventListener(Event.ENTER_FRAME, this._-HW); this._-0D = null; this._-Be(); }; } public function _-CU(_arg1:Sprite):void{ this._-41.x = 0; this._-41.y = 0; this._-5l.x = 0; this._-5l.y = 0; if (this._-0D != null){ removeEventListener(Event.ENTER_FRAME, this._-0D); this._-0D = null; }; this._-5l.bitmapData.draw(_arg1); addChild(this._-41); addChild(this._-5l); var _local2:int = _-HJ._-Gf()._-AT; _local2 = (_local2 + 1); if (_local2 >= 4){ _local2 = 0; }; _-HJ._-Gf()._-AT = _local2; switch (_local2){ case 0: this._-5l.x = 640; this._-0D = this.update; addEventListener(Event.ENTER_FRAME, this.update); return; case 1: this._-5l.x = -640; this._-0D = this._-HW; addEventListener(Event.ENTER_FRAME, this._-HW); return; case 2: this._-5l.y = 480; this._-0D = this._-3J; addEventListener(Event.ENTER_FRAME, this._-3J); return; case 3: this._-5l.y = -480; this._-0D = this._-GC; addEventListener(Event.ENTER_FRAME, this._-GC); return; }; } protected function try(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } public static function _-Fh():_-CA{ if (_-4h){ while (_-4h.numChildren) { _-4h.removeChildAt(0); }; return (_-4h); } else { _-4h = new (_-CA); }; return (!NULL!); } } }//package game
Section 129
//_-CF (game._-CF) package game { import mx.core.*; public class _-CF extends BitmapAsset { } }//package game
Section 130
//_-CQ (game._-CQ) package game { import mx.core.*; import flash.utils.*; public class _-CQ extends MovieClipLoaderAsset { public var _-C8:Class; private static var _-87:ByteArray = null; public function _-CQ(){ this._-C8 = _-JA; super(); initialWidth = (11000 / 20); initialHeight = (8000 / 20); } override public function get movieClipData():ByteArray{ if (_-87 == null){ _-87 = ByteArray(new this._-C8()); }; return (_-87); } } }//package game
Section 131
//_-Dj (game._-Dj) package game { import mx.core.*; public class _-Dj extends ByteArrayAsset { } }//package game
Section 132
//_-Dm (game._-Dm) package game { import _-BU.*; import flash.utils.*; public class _-Dm { protected var _-Fi:Array; private var _-KU:Class; protected var data:ByteArray; public function _-Dm(){ this._-KU = _-Dj; super(); this.data = (new this._-KU() as ByteArray); this._-Fi = new Array(); this._-Lb(); } protected function _-Lb():void{ var _local1:int; var _local2:int; this.data.position = 0; _local1 = this.data.readInt(); this._-Fi.length = _local1; _local2 = 0; while (_local2 < _local1) { this._-Fi[_local2] = this.data.readInt(); _local2++; }; } public function _-K-():int{ return (this._-Fi.length); } public function _-Ie(_arg1:int, _arg2:_-HA):Boolean{ var _local4:int; var _local5:_-7Q; var _local6:int; var _local7:int; if (_arg1 >= this._-Fi.length){ return (false); }; this.data.position = this._-Fi[_arg1]; var _local3:int = this.data.readInt(); _arg2.points.length = _local3; if (_local3 != 0){ _local4 = 0; while (_local4 < _local3) { _local5 = new _-7Q(); _local5.x = this.data.readFloat(); _local5.y = this.data.readFloat(); _arg2.points[_local4] = _local5; _local4++; }; }; _local3 = this.data.readInt(); _arg2._-28.length = _local3; if (_local3 != 0){ _local4 = 0; while (_local4 < _local3) { _arg2._-28[_local4] = new _-FJ(); _arg2._-28[_local4].sprite = this.data.readInt(); _arg2._-28[_local4].is_static = this.data.readBoolean(); _arg2._-28[_local4].collision_group = this.data.readInt(); _arg2._-28[_local4].is_possible_remove = this.data.readBoolean(); _arg2._-28[_local4].material = this.data.readInt(); _arg2._-28[_local4].is_joint = this.data.readBoolean(); _arg2._-28[_local4].anglePower = this.data.readFloat(); _local6 = this.data.readInt(); _arg2._-28[_local4].points.length = _local6; if (_local6 != 0){ _local7 = 0; while (_local7 < _local6) { _arg2._-28[_local4].points[_local7] = this.data.readInt(); _local7++; }; }; _local4++; }; }; _arg2.shift = new _-7Q(); _arg2.shift.x = this.data.readFloat(); _arg2.shift.y = this.data.readFloat(); return (true); } } }//package game
Section 133
//_-DZ (game._-DZ) package game { import mx.core.*; public class _-DZ extends SpriteAsset { } }//package game
Section 134
//_-E (game._-E) package game { import mx.core.*; public class _-E extends BitmapAsset { } }//package game
Section 135
//_-EP (game._-EP) package game { import mx.core.*; public class _-EP extends BitmapAsset { } }//package game
Section 136
//_-Ey (game._-Ey) package game { import mx.core.*; public class _-Ey extends SpriteAsset { } }//package game
Section 137
//_-FJ (game._-FJ) package game { public class _-FJ { public var anglePower:Number; public var points:Array; public var sprite:int; public var material:int; public var is_static:Boolean; public var collision_group:int; public var is_joint:Boolean; public var is_possible_remove:Boolean; public function _-FJ(){ this.points = new Array(); this.is_static = false; this.is_possible_remove = false; this.collision_group = 0; this.material = 0; this.is_joint = false; } } }//package game
Section 138
//_-Fk (game._-Fk) package game { import flash.display.*; import flash.events.*; public class _-Fk extends Sprite { protected var b:Boolean; protected var _-0Y:DisplayObject; private var _-GM:Class; protected var counter:int; public function _-Fk(){ this._-GM = _-78; super(); this._-0Y = new this._-GM(); addChild(this._-0Y); this._-0Y.x = 0; this._-0Y.y = 0; this._-0Y.alpha = 0; this.counter = 0; this.b = true; addEventListener(Event.ENTER_FRAME, this.update); } public function restart():void{ this.counter = 0; if (!this.b){ this.b = true; addEventListener(Event.ENTER_FRAME, this.update); }; this._-0Y.alpha = 0; } protected function try(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } protected function update(_arg1:Event):void{ this.counter++; if (this.counter < 30){ return; }; if (this.counter < 120){ this._-0Y.alpha = this. try(this._-0Y.alpha, 1, 0.1); return; }; if (this.counter < 220){ this._-0Y.alpha = this. try(this._-0Y.alpha, 0, 0.1); return; }; if (this.counter > 320){ this.b = false; this._-0Y.alpha = 0; removeEventListener(Event.ENTER_FRAME, this.update); return; }; } } }//package game
Section 139
//_-Fl (game._-Fl) package game { import mx.core.*; public class _-Fl extends BitmapAsset { } }//package game
Section 140
//_-Fy (game._-Fy) package game { public class _-Fy { public var alphaOut:Number; public var radiusIn:Number; public var radius:Number; public var radiusOut:Number; public var alpha:Number; public var alphaIn:Number; public var colorIn:int; public var createTime:Number; public var color:int; public var colorOut:int; public var dieTime:Number; public var x:Number; public var y:Number; public function _-Fy(_arg1:Number, _arg2:Number):void{ this.createTime = _arg2; this.dieTime = (_arg2 + _arg1); } } }//package game
Section 141
//_-Gb (game._-Gb) package game { import mx.core.*; public class _-Gb extends SpriteAsset { } }//package game
Section 142
//_-Gq (game._-Gq) package game { import mx.core.*; public class _-Gq extends BitmapAsset { } }//package game
Section 143
//_-Gv (game._-Gv) package game { import flash.media.*; public class _-Gv { protected var _-9b:Boolean;// = false private var _-F4:Class; protected var _-4J:Sound; protected var _-JI:SoundChannel; protected static var _-Er:_-Gv; public function _-Gv(){ this._-F4 = soundManager_Sound1; super(); this._-4J = (new this._-F4() as Sound); this._-JI = this._-4J.play(0, int.MAX_VALUE); } public function _-Cq():void{ var _local1:SoundTransform = new SoundTransform(); _local1.volume = 0; SoundMixer.soundTransform = _local1; this._-9b = true; } public function _-7n():void{ var _local1:SoundTransform = new SoundTransform(); _local1.volume = 1; SoundMixer.soundTransform = _local1; this._-9b = false; } public function _-FL():Boolean{ return (this._-9b); } public static function getInstance():_-Gv{ if (_-Er != null){ return (_-Er); }; _-Er = new (_-Gv); return (_-Er); } } }//package game
Section 144
//_-Gw (game._-Gw) package game { import mx.core.*; public class _-Gw extends BitmapAsset { } }//package game
Section 145
//_-HA (game._-HA) package game { import _-BU.*; public class _-HA { public var shift:_-7Q; public var points:Array; public var _-28:Array; public function _-HA(){ this.points = new Array(); this._-28 = new Array(); this.shift = new _-7Q(); } } }//package game
Section 146
//_-Hd (game._-Hd) package game { import mx.core.*; public class _-Hd extends BitmapAsset { } }//package game
Section 147
//_-HJ (game._-HJ) package game { public class _-HJ { public var _-F7:Boolean;// = false public var _-AT:int;// = 0 protected static var _-DJ:_-HJ = null; public function _-HJ(){ _-DJ = this; } public static function _-Gf():_-HJ{ if (_-DJ == null){ _-DJ = new (_-HJ); return (_-DJ); }; return (_-DJ); } } }//package game
Section 148
//_-Hm (game._-Hm) package game { import mx.core.*; public class _-Hm extends SpriteAsset { } }//package game
Section 149
//_-JA (game._-JA) package game { import mx.core.*; public class _-JA extends ByteArrayAsset { } }//package game
Section 150
//_-JB (game._-JB) package game { import mx.core.*; public class _-JB extends SpriteAsset { } }//package game
Section 151
//_-Jd (game._-Jd) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; import flash.filters.*; public class _-Jd extends Sprite { public function _-Jd(){ var _local1:Bitmap; var _local2:Bitmap; var _local3:Sprite; super(); var _local4:TextFormat = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 0x555555; _local4.size = 25; _local4.bold = true; var _local5:TextFormat = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 0; _local5.size = 25; _local5.bold = true; var _local6:TextField = new TextField(); _local6.embedFonts = true; _local6.defaultTextFormat = _local5; _local6.selectable = false; _local6.mouseEnabled = false; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = "more games"; _local6.width = (_local6.textWidth + 5); _local6.height = _local6.textHeight; this._-1H(_local6); var _local7:TextField = new TextField(); _local7.embedFonts = true; _local7.defaultTextFormat = _local4; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.text = "more games"; _local7.width = (_local6.textWidth + 5); _local7.height = _local6.textHeight; this._-1H(_local7); var _local8:SimpleButton = new SimpleButton(_local6, _local7, _local7, _local7); _local8.x = 0; _local8.y = 0; addChild(_local8); _local8.addEventListener(MouseEvent.CLICK, this.onClick); } protected function onClick(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=Slicerix-2&utm_source=ingame&utm_content=ingame"); navigateToURL(_local2, "_blank"); } protected function _-1H(_arg1:DisplayObject):void{ var _local2:DropShadowFilter = new DropShadowFilter(); _local2.color = 0; _local2.blurY = 4; _local2.blurX = 4; _local2.angle = 45; _local2.alpha = 0.5; _local2.distance = 4; var _local3:Array = new Array(_local2); _arg1.filters = _local3; } } }//package game
Section 152
//_-JE (game._-JE) package game { import mx.core.*; public class _-JE extends SpriteAsset { } }//package game
Section 153
//_-JO (game._-JO) package game { import mx.core.*; public class _-JO extends BitmapAsset { } }//package game
Section 154
//_-JY (game._-JY) package game { import mx.core.*; import flash.utils.*; public class _-JY extends MovieClipLoaderAsset { public var _-C8:Class; private static var _-87:ByteArray = null; public function _-JY(){ this._-C8 = _-BX; super(); initialWidth = (3067 / 20); initialHeight = (0x0300 / 20); } override public function get movieClipData():ByteArray{ if (_-87 == null){ _-87 = ByteArray(new this._-C8()); }; return (_-87); } } }//package game
Section 155
//_-K1 (game._-K1) package game { import mx.core.*; public class _-K1 extends BitmapAsset { } }//package game
Section 156
//_-K3 (game._-K3) package game { import flash.net.*; public class _-K3 { protected var _-F9:Array; protected var _-7P:Boolean; protected var _-JZ:int; protected var _-KB:int; protected var _-6c:int;// = 0 private static var _-2t:_-K3 = null; public function _-K3(_arg1:int){ var _local2:int; super(); this._-F9 = new Array(); this._-F9.length = _arg1; this._-JZ = _arg1; _local2 = 0; while (_local2 < _arg1) { this._-F9[_local2] = 0; _local2++; }; this._-7P = false; this._-4z(); } public function _-Hq(_arg1:int):void{ if (_arg1 > this._-6c){ this._-6c = _arg1; this._-Ev(); }; } public function _-U():Boolean{ return (this._-7P); } protected function _-Ev():void{ var _local2:uint; var _local3:uint; var _local1:SharedObject = SharedObject.getLocal("turbrono/game/005", "/"); _local3 = this._-F9.length; _local1.data.my_items = this._-F9; _local1.data.magic = this._-6c; _local1.flush(); _local1.close(); } public function _-1z():uint{ var _local1:uint; var _local2:uint; var _local3:uint; _local2 = this._-F9.length; _local3 = 0; _local1 = 0; while (_local1 < _local2) { _local3 = (_local3 + this._-F9[_local1]); _local1++; }; return (_local3); } public function _-2k(_arg1:uint, _arg2:uint):void{ var _local3:uint = this._-F9[_arg1]; this._-KB = _arg2; if (_arg2 > _local3){ this._-F9[_arg1] = _arg2; this._-7P = true; this._-Ev(); }; } public function override():void{ this._-7P = false; } protected function _-4z():void{ var _local2:uint; var _local3:uint; var _local4:uint; var _local1:SharedObject = SharedObject.getLocal("turbrono/game/005", "/"); _local3 = this._-F9.length; if (_local1.data["my_items"] != null){ this._-F9 = _local1.data.my_items; }; if (_local1.data["magic"] != null){ this._-6c = _local1.data.magic; }; _local1.close(); } public function _-B6():int{ return (this._-6c); } public function _-8j():int{ return (this._-KB); } public static function _-0a():_-K3{ if (_-2t == null){ _-2t = new _-K3(30); return (_-2t); }; return (_-2t); } } }//package game
Section 157
//_-KE (game._-KE) package game { import _-BU.*; import flash.display.*; import flash.geom.*; public class _-KE { protected const _-0X:Number = 4; protected const _-Dr:int = 2; public var _-FF:BitmapData; protected var position:_-7Q; protected var _-30:Array; protected var _-Cc:_-7Q; protected var _-3Y:int; protected var _-ED:BitmapData; public function _-KE(_arg1:BitmapData, _arg2:_-7Q, _arg3:_-7Q):void{ this._-30 = new Array(); this.position = _arg2.Copy(); this._-Cc = _arg3.Copy(); this._-ED = _arg1; } protected function _-35(_arg1:Array):int{ return ((((_arg1[0] << 16) | (_arg1[1] << 8)) | _arg1[2])); } public function update(_arg1:Number):void{ var _local4:int; var _local5:Number; var _local6:Number; var _local7:Array; var _local8:Array; var _local9:Array; var _local10:int; var _local11:Number; this._-F1(_arg1); var _local2:int = this._-30.length; if (_local2 == 0){ return; }; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _local2) { _local5 = (this._-30[_local4].dieTime - this._-30[_local4].createTime); _local6 = (this._-30[_local4].dieTime - _arg1); if (_local6 < 0){ _local3.push(_local4); } else { this._-30[_local4].radius = (this._-30[_local4].radiusIn + ((this._-30[_local4].radiusOut - this._-30[_local4].radiusIn) * (1 - (_local6 / _local5)))); this._-30[_local4].alpha = (this._-30[_local4].alphaIn + ((this._-30[_local4].alphaOut - this._-30[_local4].alphaIn) * (1 - (_local6 / _local5)))); _local7 = this._-2h(this._-30[_local4].colorIn); _local8 = this._-2h(this._-30[_local4].colorOut); _local9 = new Array(); _local9.length = 3; _local11 = (1 - (_local6 / _local5)); _local10 = 0; while (_local10 < 3) { _local9[_local10] = (_local7[_local10] + ((_local8[_local10] - _local7[_local10]) * _local11)); _local10++; }; this._-30[_local4].color = this._-35(_local9); this._-30[_local4].x = (this._-30[_local4].x + (this._-Cc.x * this._-0X)); this._-30[_local4].y = (this._-30[_local4].y + (this._-Cc.y * this._-0X)); }; _local4++; }; _local2 = _local3.length; _local3.sort(Array.NUMERIC); if (_local2 != 0){ _local4 = (_local2 - 1); while (_local4 >= 0) { this._-30.splice(_local3[_local4], 1); _local4--; }; }; this._-DP(); } protected function _-2h(_arg1:int):Array{ var _local2:Number = ((_arg1 >> 16) & 0xFF); var _local3:Number = ((_arg1 >> 8) & 0xFF); var _local4:Number = (_arg1 & 0xFF); return ([_local2, _local3, _local4]); } protected function _-F1(_arg1:Number):void{ var _local2:_-Fy; if (this._-3Y == 0){ this._-3Y = this._-Dr; _local2 = new _-Fy((450 + (Math.random() * 150)), _arg1); _local2.alphaIn = 0; _local2.alphaOut = 1; _local2.radiusIn = 15; _local2.radiusOut = 1; _local2.colorIn = 0xFFFFFF; _local2.colorOut = 11184895; _local2.x = (-5 + (Math.random() * 10)); _local2.y = (-5 + (Math.random() * 10)); this._-30.push(_local2); } else { this._-3Y--; }; } protected function _-DP():void{ var _local2:int; var _local3:int; var _local4:int; var _local1:int = this._-30.length; if (_local1 == 0){ return; }; _local2 = 0; while (_local2 < _local1) { _local3 = Math.round((this._-30[_local2].alpha * 15)); _local4 = Math.round(this._-30[_local2].radius); this._-ED.copyPixels(this._-FF, new Rectangle((_local3 * 30), (_local4 * 30), 30, 30), new Point(((this.position.x + this._-30[_local2].x) - _local4), ((this.position.y + this._-30[_local2].y) - _local4)), null, null, true); _local2++; }; } } }//package game
Section 158
//_-KH (game._-KH) package game { import mx.core.*; public class _-KH extends BitmapAsset { } }//package game
Section 159
//_-KX (game._-KX) package game { import flash.display.*; import flash.events.*; import flash.filters.*; public class _-KX extends Sprite { protected var _-2P:Function; private var _-GM:Class; protected var _-1q:Boolean; protected var _-3E:SimpleButton; protected var _-0Y:Sprite; protected var _-44:Sprite; public function _-KX(_arg1:Function){ this._-GM = _-6N; super(); this._-2P = _arg1; this._-1q = false; var _local2:DisplayObject = new this._-GM(); this._-3E = new SimpleButton(_local2, _local2, _local2, _local2); this._-1H(this._-3E); addChild(this._-3E); this._-3E.addEventListener(MouseEvent.CLICK, this._-8M); } protected function _-8M(_arg1:MouseEvent):void{ if (this._-2P != null){ this._-2P(); }; } protected function _-1H(_arg1:DisplayObject):void{ var _local2:DropShadowFilter = new DropShadowFilter(); _local2.color = 0; _local2.blurY = 4; _local2.blurX = 4; _local2.angle = 45; _local2.alpha = 0.5; _local2.distance = 4; var _local3:Array = new Array(_local2); _arg1.filters = _local3; } } }//package game
Section 160
//_-L6 (game._-L6) package game { import mx.core.*; public class _-L6 extends BitmapAsset { } }//package game
Section 161
//_-LA (game._-LA) package game { import mx.core.*; public class _-LA extends BitmapAsset { } }//package game
Section 162
//_-LR (game._-LR) package game { import _-BU.*; import Box2D.Collision.*; import flash.display.*; import _-80.*; import _-Cb.*; import test.*; import _-4g.*; import flash.events.*; import flash.geom.*; import flash.filters.*; import _-7r.*; public class _-LR extends Sprite { protected var _-Jf:int; public var _-FQ:Function; protected var _-Dd:Sprite; private var _-e:Class; protected var _-i:_-2r; protected var _-Jl:Number; private var _-I-:Class; private var _-4L:Class; private var _-Q:Class; private var _-La:Class; private var _-1c:Class; private var _-7l:Class; private var _-9X:Class; protected var it:_-HA; protected var _-De:_-5f; protected var _-I6:Bitmap; protected var _-KC:Sprite; public var _-B4:Function; protected var _-7F:_-8h; private var _-0n:Class; protected var _-4:Number;// = 30 protected var for:Boolean;// = false protected var true:Boolean; protected var _-9h:int; protected var _-1a:myContactListener; public var _-Ho:_-7Q; public function _-LR(){ this._-e = if; this._-I- = _-Ar; this._-0n = _-Hd; this._-4L = _-KH; this._-Q = _-Bp; this._-La = _-EP; this._-1c = _-9S; this._-7l = _-Gw; this._-9X = _-81; super(); this.it = null; this._-4 = 30; this._-Dd = new Sprite(); addChild(this._-Dd); this._-Dd.mouseChildren = false; this._-KC = new Sprite(); addChild(this._-KC); this._-De = new _-5f(); this._-Gd(); addEventListener(Event.ENTER_FRAME, this.update); var _local1:Date = new Date(); var _local2:Number = _local1.getTime(); this._-Jl = _local2; addChild(this._-De); } public function _-C5(_arg1:int):int{ var _local2:int = this.it._-28.length; var _local3:int = _arg1; var _local4:int = this.it._-28[_local3].points[0]; var _local5:_-7Q = this.it.points[_local4].Copy(); var _local6:_-7Q = _local5.Copy(); _local4 = this.it._-28[_local3].points[1]; _local5.Add(this.it.points[_local4]); _local6._-I4(this.it.points[_local4]); _local5.Multiply((0.5 / this._-4)); var _local7:Number = ((_local6._-8u() * 0.5) / this._-4); var _local8:_-7Q = _local5.Copy(); _local3 = 0; while (_local3 < _local2) { if (_arg1 == _local3){ } else { if (this.it._-28[_local3].is_joint){ _local4 = this.it._-28[_local3].points[0]; _local5 = this.it.points[_local4].Copy(); _local6 = _local5.Copy(); _local4 = this.it._-28[_local3].points[1]; _local5.Add(this.it.points[_local4]); _local6._-I4(this.it.points[_local4]); _local5.Multiply((0.5 / this._-4)); _local5._-I4(_local8); if (_local5._-8u() < _local7){ return (_local3); }; }; }; _local3++; }; return (-1); } function _-9f(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; _local7 = (_arg5 + _arg6); _local8 = (_arg3 - _arg1); _local9 = (_arg4 - _arg2); var _local13:Number = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local10 = Math.floor(Math.abs((_local13 / _local7))); var _local14:Number = Math.atan2(_local9, _local8); _local11 = _arg1; _local12 = _arg2; _local8 = (Math.cos(_local14) * _local7); _local9 = (Math.sin(_local14) * _local7); var _local15:* = 0; while (_local15 < _local10) { this._-KC.graphics.moveTo(_local11, _local12); this._-KC.graphics.lineTo((_local11 + (Math.cos(_local14) * _arg5)), (_local12 + (Math.sin(_local14) * _arg5))); _local11 = (_local11 + _local8); _local12 = (_local12 + _local9); _local15++; }; this._-KC.graphics.moveTo(_local11, _local12); _local13 = Math.sqrt((((_arg3 - _local11) * (_arg3 - _local11)) + ((_arg4 - _local12) * (_arg4 - _local12)))); if (_local13 > _arg5){ this._-KC.graphics.lineTo((_local11 + (Math.cos(_local14) * _arg5)), (_local12 + (Math.sin(_local14) * _arg5))); } else { if (_local13 > 0){ this._-KC.graphics.lineTo((_local11 + (Math.cos(_local14) * _local13)), (_local12 + (Math.sin(_local14) * _local13))); }; }; this._-KC.graphics.moveTo(_arg3, _arg4); } public function _-9m(_arg1:_-HA):void{ var _local3:int; var _local4:int; var _local5:_-7D; var _local6:_-5d; var _local7:_-2b; var _local8:int; var _local9:_-I1; var _local10:_-8p; var _local11:Sprite; var _local12:_-IN; var _local13:int; var _local14:_-7Q; var _local15:_-7Q; var _local16:_-0l; var _local17:_-0l; var _local18:int; var _local19:int; this.it = _arg1; var _local2:int = this.it._-28.length; if (_local2 == 0){ return; }; this._-Id(); this._-Gd(); _local3 = 0; while (_local3 < _local2) { _local4 = this.it._-28[_local3].points.length; if (_local4 <= 1){ } else { if (this.it._-28[_local3].is_joint){ } else { _local5 = new _-7D(); _local5.position.Set(0, 0); if (_local4 == 2){ _local12 = new _-IN(); _local6 = _local12; if (this.it._-28[_local3].is_static){ _local12.density = 0; } else { _local12.density = 1; }; this._-0x(_local6, this.it._-28[_local3].material); _local13 = this.it._-28[_local3].points[0]; _local14 = this.it.points[_local13].Copy(); _local15 = _local14.Copy(); _local13 = this.it._-28[_local3].points[1]; _local14.Add(this.it.points[_local13]); _local15._-I4(this.it.points[_local13]); _local14.Multiply((0.5 / this._-4)); _local5.position = _local14.Copy(); _local12.radius = ((_local15._-8u() * 0.5) / this._-4); _local16 = this._-6T(0x0100, _local12.radius); if (this.it._-28[_local3].is_possible_remove){ if ((this.it._-28[_local3].collision_group == 1)){ _local5.userData = new _-1n(this._-68(this.it._-28[_local3].sprite), _local16, this._-4, true, 4, this._-42(this.it._-28[_local3].sprite), (this.it._-28[_local3].collision_group == 0), !((this.it._-28[_local3].collision_group == 0))); } else { _local5.userData = new _-3H(this._-68(this.it._-28[_local3].sprite), _local16, this._-4, true, 4, this._-42(this.it._-28[_local3].sprite), (this.it._-28[_local3].collision_group == 0), !((this.it._-28[_local3].collision_group == 0))); }; } else { if ((((this.it._-28[_local3].collision_group == 2)) || ((this.it._-28[_local3].collision_group == 3)))){ _local5.userData = new _-0y(this._-68(this.it._-28[_local3].sprite), _local16, this._-4, true, 4, this._-42(this.it._-28[_local3].sprite), (this.it._-28[_local3].collision_group == 0), !((this.it._-28[_local3].collision_group == 0))); } else { _local5.userData = new _-3T(this._-68(this.it._-28[_local3].sprite), _local16, this._-4, true, 4, this._-42(this.it._-28[_local3].sprite), (this.it._-28[_local3].collision_group == 0), !((this.it._-28[_local3].collision_group == 0))); }; }; _local5.userData.is_possible_remove = this.it._-28[_local3].is_possible_remove; _local5.userData.collision_group = this.it._-28[_local3].collision_group; if (this.it._-28[_local3].collision_group == 1){ _local5.userData.coll2_sensor = true; }; _local5.userData.coll2_sensor_angle = new _-7Q(Math.cos(this.it._-28[_local3].anglePower), Math.sin(this.it._-28[_local3].anglePower)); this._-1H(_local5.userData); this._-Dd.addChild(_local5.userData); } else { _local17 = new _-0l(); _local6 = _local17; if (this.it._-28[_local3].is_static){ _local6.density = 0; } else { _local6.density = 1; }; this._-0x(_local6, this.it._-28[_local3].material); _local17.vertexCount = _local4; _local18 = 0; while (_local18 < _local4) { _local19 = this.it._-28[_local3].points[_local18]; _local17.vertices[_local18] = this.it.points[_local19].Copy(); _local17.vertices[_local18].Multiply((1 / this._-4)); _local18++; }; if (this.it._-28[_local3].is_possible_remove){ if ((this.it._-28[_local3].collision_group == 1)){ _local5.userData = new _-1n(this._-0O(this.it._-28[_local3].sprite), _local17, this._-4, true, 4, this._-42(this.it._-28[_local3].sprite), ((!((this.it._-28[_local3].collision_group == 0))) || ((this.it._-28[_local3].sprite == 4)))); } else { _local5.userData = new _-3H(this._-0O(this.it._-28[_local3].sprite), _local17, this._-4, true, 4, this._-42(this.it._-28[_local3].sprite), ((!((this.it._-28[_local3].collision_group == 0))) || ((this.it._-28[_local3].sprite == 4)))); }; } else { if ((((this.it._-28[_local3].collision_group == 2)) || ((this.it._-28[_local3].collision_group == 3)))){ _local5.userData = new _-0y(this._-0O(this.it._-28[_local3].sprite), _local17, this._-4, true, 4, this._-42(this.it._-28[_local3].sprite), ((!((this.it._-28[_local3].collision_group == 0))) || ((this.it._-28[_local3].sprite == 4)))); } else { _local5.userData = new _-3T(this._-0O(this.it._-28[_local3].sprite), _local17, this._-4, true, 4, this._-42(this.it._-28[_local3].sprite), ((!((this.it._-28[_local3].collision_group == 0))) || ((this.it._-28[_local3].sprite == 4)))); }; }; _local5.userData.is_possible_remove = this.it._-28[_local3].is_possible_remove; _local5.userData.collision_group = this.it._-28[_local3].collision_group; _local5.userData.coll2_sensor_angle = new _-7Q(Math.cos(this.it._-28[_local3].anglePower), Math.sin(this.it._-28[_local3].anglePower)); if (this.it._-28[_local3].collision_group == 1){ _local5.userData.coll2_sensor = true; }; this._-1H(_local5.userData); if (_local5.userData.is_possible_remove){ _local5.userData.info_tile = this._-I-; }; this._-Dd.addChild(_local5.userData); }; _local7 = this._-i._-DL(_local5); _local7._-G(_local6); _local7._-4u(); _local7.m_mass = (_local7.m_mass * 100); if (this.it._-28[_local3].is_static){ } else { _local8 = this._-7g(_local3); if (_local8 == -1){ } else { _local13 = this.it._-28[_local8].points[0]; _local14 = this.it.points[_local13].Copy(); _local15 = _local14.Copy(); _local13 = this.it._-28[_local8].points[1]; _local14.Add(this.it.points[_local13]); _local15._-I4(this.it.points[_local13]); _local14.Multiply((0.5 / this._-4)); _local9 = new _-I1(); _local9._-Ku(this._-i._-Hn(), _local7, _local14); _local10 = this._-i._-h(_local9); _local11 = new Sprite(); this._-Dd.addChild(_local11); _local11.x = ((_local14.x * this._-4) - 5); _local11.y = ((_local14.y * this._-4) - 5); _local11.graphics.lineStyle(2, 0); _local11.graphics.moveTo(5, 0); _local11.graphics.lineTo(5, 10); _local11.graphics.moveTo(0, 5); _local11.graphics.lineTo(10, 5); }; }; }; }; _local3++; }; this._-1h(); this._-DP(); } public function _-BP(_arg1:MouseEvent):void{ var _local3:_-Jv; var _local4:_-EB; var _local5:_-8W; var _local6:Bitmap; var _local2:_-2b = this._-BO(true); if (_local2 == null){ return; }; if (!_local2.m_userData.is_possible_remove){ return; }; if (_local2._-Jm._-4v()){ return; }; if (_local2.m_userData.coll2_sensor){ _local4 = this.shape2sensor(_local2._-Jm); _local5 = new _-8W(this._-Ho, _local4.m_body.m_userData.coll2_sensor_angle, _local2._-Jm, this._-4); _local4.m_body.m_userData.parent.addChild(_local5); _local6 = _local4.m_body.m_userData; _local6.bitmapData.fillRect(_local6.bitmapData.rect, 0); _local4.m_body.m_userData.collision_group = 1; _local4.m_body.m_userData.coll2_sensor = true; this._-i._-6-(_local2); _local2 = null; _local3 = new _-Jv(mouseX, mouseY, 10, 25, 250); this._-De._-2C(_local3, 250); return; }; this._-Dd.removeChild(_local2.m_userData); this._-De._-2C(_local2.m_userData, 100); this._-i._-6-(_local2); _local2 = null; _local3 = new _-Jv(mouseX, mouseY, 10, 25, 250); this._-De._-2C(_local3, 250); } public function _-BO(_arg1:Boolean=false):_-2b{ var _local11:_-EB; var _local12:Boolean; var _local2:_-7Q = new _-7Q(); var _local3:Number = (mouseX / this._-4); var _local4:Number = (mouseY / this._-4); _local2.Set(_local3, _local4); var _local5:_-9B = new _-9B(); _local5._-GJ.Set((_local3 - 0.001), (_local4 - 0.001)); _local5._-IC.Set((_local3 + 0.001), (_local4 + 0.001)); var _local6 = 10; var _local7:Array = new Array(); var _local8:int = this._-i._-CB(_local5, _local7, _local6); var _local9:_-2b; var _local10:int; while (_local10 < _local8) { if ((((_local7[_local10].GetBody().IsStatic() == false)) || (_arg1))){ _local11 = (_local7[_local10] as _-EB); _local12 = (_local7[_local10] as _-EB).TestPoint(_local11.GetBody()._-3t(), _local2); if (_local12){ _local9 = _local11.GetBody(); break; }; }; _local10++; }; return (_local9); } protected function _-0x(_arg1:_-5d, _arg2:int):void{ switch (_arg2){ case 0: _arg1._-Ff = 0.9; _arg1._-82 = 0; return; case 1: _arg1._-Ff = 0.9; _arg1._-82 = 0.3; return; case 2: _arg1._-Ff = 0.5; _arg1._-82 = 0; return; case 3: _arg1._-Ff = 0.5; _arg1._-82 = 0.3; return; }; } public function _-0O(_arg1:int):Class{ switch (_arg1){ case 0: return (this._-4L); case 1: return (this._-e); case 2: return (this._-Q); case 3: return (this._-La); case 4: return (this._-1c); }; return (null); } protected function _-Gp():void{ var _local2:int; var _local3:_-2b; var _local1:int = this._-1a.shapes.length; if (_local1 == 0){ return; }; _local2 = 0; while (_local2 < _local1) { _local3 = this._-1a.shapes[_local2].m_body; this._-Dd.removeChild(_local3.m_userData); this._-De._-2C(_local3.m_userData); _local3.m_userData = null; this._-i._-6-(_local3); _local3 = null; this._-Jf++; _local2++; }; this._-1a.shapes.length = 0; if (this._-Jf == this._-9h){ if (this._-B4 != null){ this._-B4(); }; }; } protected function _-DP():void{ var _local2:_-7Q; var _local3:Number; var _local4:Matrix; var _local5:_-HS; var _local6:_-7Q; var _local1:_-2b = this._-i._-8Y; while (_local1) { if ((_local1.m_userData is DisplayObject)){ _local2 = _local1._-2l(); _local3 = _local1.GetAngle(); _local1.m_userData.rotation = 0; _local4 = _local1.m_userData.transform.matrix; _local4.tx = -((_local1.m_userData.width / 2)); _local4.ty = -((_local1.m_userData.height / 2)); _local4.rotate(_local3); _local5 = new _-HS(_local3); _local6 = _-8Q._-08(_local5, _local1.m_userData.magic_shift); _local4.tx = (_local4.tx + ((_local2.x * this._-4) + _local6.x)); _local4.ty = (_local4.ty + ((_local2.y * this._-4) + _local6.y)); _local1.m_userData.transform.matrix = _local4; _local1.m_userData.scaleX = 1; _local1.m_userData.scaleY = 1; }; _local1 = _local1._-CE; }; } public function _-AP(_arg1:Array, _arg2:_-7Q):Boolean{ var _local4:int; var _local5:Number; var _local6:_-7Q; var _local7:_-7Q; var _local3:int; var _local8:int = _arg1.length; _local6 = _arg1[0]; _local4 = 1; while (_local4 <= _local8) { _local7 = _arg1[(_local4 % _local8)]; if (_arg2.y > Math.min(_local6.y, _local7.y)){ if (_arg2.y <= Math.max(_local6.y, _local7.y)){ if (_arg2.x <= Math.max(_local6.x, _local7.x)){ if (_local6.y != _local7.y){ _local5 = ((((_arg2.y - _local6.y) * (_local7.x - _local6.x)) / (_local7.y - _local6.y)) + _local6.x); if ((((_local6.x == _local7.x)) || ((_arg2.x <= _local5)))){ _local3++; }; }; }; }; }; _local6 = _local7; _local4++; }; if ((_local3 % 2) == 0){ return (false); }; return (true); } public function _-Lv(_arg1:Boolean):void{ if (_arg1 == this. true){ return; }; this. true = _arg1; if (!_arg1){ addEventListener(Event.ENTER_FRAME, this.update); } else { removeEventListener(Event.ENTER_FRAME, this.update); }; } public function _-6w(_arg1:MouseEvent):void{ this.for = true; this._-KC.graphics.clear(); this._-7F._-1g.p1 = new _-7Q((mouseX / this._-4), (mouseY / this._-4)); } protected function update(_arg1:Event):void{ if (this._-i == null){ return; }; var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); this._-Jl = _local3; this._-i._-L3((1 / 30), 10); this._-DP(); this._-8T(); this._-Gp(); this._-Kq(); } protected function shape2sensor(_arg1:_-EB):_-EB{ var _local6:Array; var _local7:_-0l; var _local8:_-EB; var _local9:_-IN; var _local2:_-7Q = _arg1.m_body._-2l(); var _local3:Number = _arg1.m_body.GetAngle(); var _local4:_-7D = new _-7D(); _local4.position = _local2; _local4.angle = _local3; _local4.userData = _arg1.m_body.m_userData; _local4.userData.alpha = 1; _local4._-Ls = false; _local4._-BB = false; _local4.super = false; var _local5:_-2b = this._-i._-DL(_local4); trace("shape2sensor"); trace(_arg1.m_type); switch (_arg1.m_type){ case _-EB._-Ay: _local6 = (_arg1 as _-8P)._-9K; _local7 = new _-0l(); _local7.density = 0; _local7._-Ff = _arg1.var; _local7._-82 = _arg1._-A-; _local7.vertexCount = (_arg1 as _-8P)._-JX; _local7.vertices = (_arg1 as _-8P)._-9K; _local7._-0P = true; _local8 = _local5._-G(_local7); _local5._-4u(); return (_local8); case _-EB._-9l: _local9 = new _-IN(); _local9.density = 0; _local9._-Ff = _arg1.var; _local9._-82 = _arg1._-A-; _local9.radius = (_arg1 as _-Jt)._-9y; _local9._-0P = true; _local8 = _local5._-G(_local9); _local5._-4u(); return (_local8); default: return (null); }; } public function _-6T(_arg1:int, _arg2:Number):_-0l{ var _local4:int; var _local5:Number; var _local6:Number; var _local3:_-0l = new _-0l(); _local3.vertexCount = _arg1; _local5 = ((Math.PI * 2) / _arg1); _local6 = 0; _local4 = 0; while (_local4 < _arg1) { _local3.vertices[_local4] = new _-7Q((Math.cos(_local6) * _arg2), (Math.sin(_local6) * _arg2)); _local6 = (_local6 + _local5); _local4++; }; return (_local3); } protected function _-Dc():void{ var _local1:_-2b; var _local2:_-2b; var _local3:_-7D; var _local4:_-0l; _local3 = new _-7D(); _local3.position.Set(27, 10); _local4 = new _-0l(); _local4._-Jq(0.25, 10); _local4._-Ff = 0.3; _local4.density = 0; _local4._-0P = true; _local3.userData = null; _local1 = this._-i._-DL(_local3); _local1._-G(_local4); _local3.position.Set(-0.25, 10); _local3.userData = null; _local2 = this._-i._-DL(_local3); _local2._-G(_local4); _local3 = new _-7D(); _local3.position.Set(13, 21); _local4 = new _-0l(); _local4._-Jq(14, 0.25); _local4._-Ff = 0.3; _local4.density = 0; _local4._-0P = true; _local3.userData = null; _local1 = this._-i._-DL(_local3); _local1._-G(_local4); } public function _-42(_arg1:int):int{ switch (_arg1){ case 0: return (0x717400); case 1: return (0xFF7F00); case 2: return (0xE50039); case 3: return (16763929); default: return (0x310047); }; } public function _-Id():void{ var _local1:_-2b; var _local2:DisplayObject; if (this._-i){ if (this._-i._-8Y){ _local1 = this._-i._-8Y; while (_local1) { if (_local1.m_userData != null){ this._-Dd.removeChild(_local1.m_userData); }; _local1 = _local1._-CE; }; }; if (this._-i._-JR){ if (this._-i._-JR._-Hx){ this._-Dd.removeChild(this._-i._-JR._-Hx); }; }; this._-i = null; this._-7F = null; this._-1a = null; }; while (this._-Dd.numChildren) { _local2 = this._-Dd.getChildAt(0); if ((_local2 is _-8W)){ (_local2 as _-8W).clear(); }; this._-Dd.removeChildAt(0); }; } protected function _-Bl(_arg1:_-7Q, _arg2:_-7Q):void{ this._-KC.graphics.clear(); this._-KC.graphics.lineStyle(5, 0); this._-9f(_arg1.x, _arg1.y, _arg2.x, _arg2.y, 10, 15); this._-KC.graphics.lineStyle(2, 0xFFFFFF); this._-9f(_arg1.x, _arg1.y, _arg2.x, _arg2.y, 10, 15); } protected function _-1H(_arg1:DisplayObject):void{ var _local2:DropShadowFilter = new DropShadowFilter(); _local2.color = 0; _local2.blurY = 4; _local2.blurX = 4; _local2.angle = 45; _local2.alpha = 0.5; _local2.distance = 4; var _local3:Array = new Array(_local2); _arg1.filters = _local3; } protected function _-Gd():void{ var _local1:_-9B = new _-9B(); _local1._-GJ.Set(-100, -100); _local1._-IC.Set(100, 100); var _local2:_-7Q = new _-7Q(0, 15); this._-i = new _-2r(_local1, _local2, true); this._-1a = new myContactListener(); this._-i._-5E(this._-1a); this._-Dc(); this._-7F = new _-8h(this._-i); this._-7F._-LB = this._-Dd; this._-7F._-De = this._-De; } public function _-1h():void{ if (this._-i == null){ return; }; this._-9h = 0; this._-Jf = 0; var _local1:_-2b = this._-i._-8Y; while (_local1) { if ((_local1.m_userData is DisplayObject)){ if (_local1.m_userData.collision_group > 1){ this._-9h++; }; }; _local1 = _local1._-CE; }; if (this._-9h == 0){ this._-9h = int.MAX_VALUE; }; } public function _-68(_arg1:int):Class{ switch (_arg1){ case 2: return (this._-7l); case 3: return (this._-9X); }; return (this._-0O(_arg1)); } protected function _-Kq():void{ var _local2:int; var _local3:_-2b; var _local1:int = this._-1a.sensors.length; if (_local1 == 0){ return; }; _local2 = 0; while (_local2 < _local1) { _local3 = this._-1a.sensors[_local2].m_body; this._-Dd.removeChild(_local3.m_userData); this._-i._-6-(_local3); _local3 = null; _local2++; }; this._-1a.sensors.length = 0; if (this._-FQ != null){ this._-FQ(); }; } public function _-Hu(_arg1:MouseEvent):void{ if (!this.for){ return; }; this._-Bl(new _-7Q((this._-7F._-1g.p1.x * this._-4), (this._-7F._-1g.p1.y * this._-4)), new _-7Q(mouseX, mouseY)); } public function _-7g(_arg1:int):int{ var _local3:int; var _local6:_-7Q; var _local7:int; var _local8:_-7Q; var _local9:_-7Q; var _local2:int = this.it._-28.length; if (_local2 == 0){ return (-1); }; var _local4:int = this.it._-28[_arg1].points.length; if (_local4 == 2){ return (this._-C5(_arg1)); }; var _local5:Array = new Array(); _local5.length = _local4; _local3 = 0; while (_local3 < _local4) { _local6 = this.it.points[this.it._-28[_arg1].points[_local3]].Copy(); _local6.Multiply((1 / this._-4)); _local5[_local3] = _local6; _local3++; }; _local3 = 0; while (_local3 < _local2) { if (_arg1 == _local3){ } else { if (this.it._-28[_local3].is_joint){ _local7 = this.it._-28[_local3].points[0]; _local8 = this.it.points[_local7].Copy(); _local9 = _local8.Copy(); _local7 = this.it._-28[_local3].points[1]; _local8.Add(this.it.points[_local7]); _local9._-I4(this.it.points[_local7]); _local8.Multiply((0.5 / this._-4)); if (this._-AP(_local5, _local8)){ return (_local3); }; }; }; _local3++; }; return (-1); } public function _-DW(_arg1:MouseEvent):void{ this._-7F._-1g.p2 = new _-7Q((mouseX / this._-4), (mouseY / this._-4)); this._-KC.graphics.clear(); this._-7F._-4r(); this.for = false; } protected function _-8T():void{ var _local3:_-7Q; var _local4:int; var _local5:_-EB; var _local6:*; var _local7:Number; var _local8:_-7Q; var _local9:_-HS; var _local10:_-7Q; var _local11:_-7Q; var _local1:int = this._-1a.specialItems.length; if (_local1 == 0){ return; }; var _local2:_-7Q = new _-7Q(0, -0.25); _local4 = 0; while (_local4 < _local1) { _local5 = this._-1a.specialItems[_local4].shape; _local6 = this._-1a.specialItems[_local4].sensor; _local2 = _local6.coll2_sensor_angle.Copy(); _local7 = _local2._-8u(); _local2.Multiply((_local7 / 4)); _local5.m_body._-0Q(false); _local8 = _local2.Copy(); _local8.Multiply(_local5.m_body._-H()); _local3 = _local5.m_body._-2l().Copy(); _local9 = new _-HS(_local5.m_body.GetAngle()); _local10 = _local5.m_body.m_userData.magic_shift.Copy(); _local10.Multiply((1 / this._-4)); _local11 = _-8Q._-08(_local9, _local10); _local3.Add(_local11); _local5.m_body._-3x(_local8, _local3); _local4++; }; this._-1a.specialItems.length = 0; } } }//package game import Box2D.Collision.*; import flash.display.*; import _-80.*; import _-Cb.*; class mySpecialSensorItem { public var shape:_-EB; public var sensor:DisplayObject; private function mySpecialSensorItem():void{ } } class myContactListener extends _-4O { public var sensors:Array; public var specialItems:Array; public var shapes:Array; private function myContactListener(){ this.shapes = new Array(); this.sensors = new Array(); this.specialItems = new Array(); } override public function Add(_arg1:_-09):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; if (_arg1.shape1.m_isSensor){ if (_arg1.shape2.m_isSensor){ return; }; if (_arg1.shape1.m_body.m_userData != null){ if (_arg1.shape1.m_body.m_userData.coll2_sensor){ return; }; }; _local2 = _arg1.shape2.m_body.m_userData.collision_group; if (_local2 >= 1){ if (!this.VerifySensor(_arg1.shape2)){ return; }; _local4 = this.sensors.length; this.sensors.length = (_local4 + 1); this.sensors[_local4] = _arg1.shape2; return; }; }; if (_arg1.shape2.m_isSensor){ if (_arg1.shape2.m_body.m_userData != null){ if (_arg1.shape2.m_body.m_userData.coll2_sensor){ return; }; }; _local2 = _arg1.shape1.m_body.m_userData.collision_group; if (_local2 >= 1){ if (!this.VerifySensor(_arg1.shape1)){ return; }; _local4 = this.sensors.length; this.sensors.length = (_local4 + 1); this.sensors[_local4] = _arg1.shape1; return; }; }; if ((_arg1.shape1.m_body.m_userData is DisplayObject)){ _local2 = _arg1.shape1.m_body.m_userData.collision_group; if (_local2 <= 1){ return; }; }; if ((_arg1.shape2.m_body.m_userData is DisplayObject)){ _local3 = _arg1.shape2.m_body.m_userData.collision_group; if (_local3 <= 1){ return; }; }; if (_local2 == _local3){ _local5 = this.shapes.length; if (!this.VerifyShape(_arg1.shape1)){ return; }; if (!this.VerifyShape(_arg1.shape2)){ return; }; this.shapes.length = (_local5 + 2); this.shapes[_local5] = _arg1.shape1; this.shapes[(_local5 + 1)] = _arg1.shape2; }; } private function VerifyShape(_arg1:_-EB):Boolean{ var _local3:int; var _local2:int = this.shapes.length; if (_local2 == 0){ return (true); }; _local3 = 0; while (_local3 < _local2) { if (this.shapes[_local3] == _arg1){ return (false); }; _local3++; }; return (true); } private function VerifySpecialItem(_arg1:_-EB, _arg2:DisplayObject):Boolean{ var _local4:int; var _local3:int = this.specialItems.length; if (_local3 == 0){ return (true); }; _local4 = 0; while (_local4 < _local3) { if (this.specialItems[_local4].shape == _arg1){ if (this.specialItems[_local4].sensor == _arg2){ return (false); }; }; _local4++; }; return (true); } override public function Persist(_arg1:_-09):void{ var _local2:int; var _local3:int; var _local4:int; if (_arg1.shape1.m_isSensor){ if (_arg1.shape2.m_isSensor){ return; }; if (_arg1.shape1.m_body.m_userData != null){ if (_arg1.shape1.m_body.m_userData.coll2_sensor){ if (this.VerifySpecialItem(_arg1.shape2, _arg1.shape1.m_userData)){ _local4 = this.specialItems.length; this.specialItems.length = (_local4 + 1); this.specialItems[_local4] = new mySpecialSensorItem(); this.specialItems[_local4].shape = _arg1.shape2; this.specialItems[_local4].sensor = _arg1.shape1.m_body.m_userData; }; return; }; }; return; }; if (_arg1.shape2.m_isSensor){ if (_arg1.shape2.m_body.m_userData != null){ if (_arg1.shape2.m_body.m_userData.coll2_sensor){ if (this.VerifySpecialItem(_arg1.shape1, _arg1.shape2.m_userData)){ _local4 = this.specialItems.length; this.specialItems.length = (_local4 + 1); this.specialItems[_local4] = new mySpecialSensorItem(); this.specialItems[_local4].shape = _arg1.shape1; this.specialItems[_local4].sensor = _arg1.shape2.m_body.m_userData; }; return; }; }; return; }; } private function VerifySensor(_arg1:_-EB):Boolean{ var _local3:int; var _local2:int = this.sensors.length; if (_local2 == 0){ return (true); }; _local3 = 0; while (_local3 < _local2) { if (this.sensors[_local3] == _arg1){ return (false); }; _local3++; }; return (true); } }
Section 163
//_-o (game._-o) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; import flash.filters.*; public class _-o extends Sprite { public var _-4-:SimpleButton;// = null protected var _-7m:Number; protected var _-Jl:Number; public var _-Cn:SimpleButton;// = null protected var _-8c:DisplayObject; public var _-Ik:SimpleButton;// = null public function _-o(_arg1:Number, _arg2:Boolean=false){ this._-7m = _arg1; if (_arg2){ this._-KN(); } else { this._-IF(); }; this.init(); this.alpha = 0; this.addEventListener(Event.ENTER_FRAME, this.do); } protected function _-0I(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.addictinggames.com/"); navigateToURL(_local2, "_blank"); } protected function do(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); if ((_local3 - this._-Jl) <= 500){ return; }; this._-Jl = (_local3 - 500); this.alpha = this. try(this.alpha, 1, 0.2); this.y = this. try(this.y, this._-7m, 0.2); if (this.alpha >= 0.999){ this.alpha = 1; this.y = this._-7m; this.removeEventListener(Event.ENTER_FRAME, this.do); }; } protected function _-32(_arg1:MouseEvent):void{ var event = _arg1; } function _-5y(_arg1:DisplayObject):DisplayObject{ var _local2:BitmapData = new BitmapData(_arg1.width, _arg1.height, true, 0); _local2.draw(_arg1); var _local3:Bitmap = new Bitmap(_local2); return (_local3); } protected function get(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.addictinggames.com/"); navigateToURL(_local2, "_blank"); } protected function init():void{ var _local1:Date = new Date(); var _local2:Number = _local1.getTime(); this._-Jl = _local2; } protected function _-IF():void{ var _local4:TextFormat; var _local5:TextField; var _local8:TextField; var _local1:Number = 550; var _local2:Number = 200; var _local3:Sprite = new Sprite(); _local3.x = 30; _local3.y = 10; _local3.graphics.lineStyle(2, 0); _local3.graphics.beginFill(0xE4E4E4); _local3.graphics.drawRoundRect(0, 0, (_local1 - 60), ((_local2 - _local3.y) - 30), 10, 10); _local3.graphics.endFill(); addChild(_local3); _local4 = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 0; _local4.size = 40; _local4.bold = true; _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local4; _local5.selectable = false; _local5.mouseEnabled = false; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = "level complete!"; _local5.width = (_local5.textWidth + 5); _local5.height = _local5.textHeight; _local5.x = ((_local1 - _local5.width) / 2); _local5.y = 10; addChild(_local5); _local4 = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 1001815; _local4.size = 32; _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local4; _local5.selectable = false; _local5.mouseEnabled = false; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = ("score " + _-K3._-0a()._-1z().toString()); _local5.width = (_local5.textWidth + 5); _local5.height = _local5.textHeight; _local5.x = ((_local1 - _local5.width) / 2); _local5.y = 50; addChild(_local5); var _local6:TextFormat = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = 0; _local6.size = 25; var _local7:TextFormat = new TextFormat(); _local7.font = "embed_font_1"; _local7.color = 0xAAAAAA; _local7.size = 25; _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local6; _local5.selectable = false; _local5.mouseEnabled = true; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = "replay level"; _local5.width = (_local5.textWidth + 5); _local5.height = _local5.textHeight; _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local7; _local8.selectable = false; _local8.mouseEnabled = true; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "replay level"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; this._-Cn = new SimpleButton(_local5, _local8, _local8, _local8); this._-Cn.x = (((_local1 / 2) - _local5.width) - 10); this._-Cn.y = (_local2 - 70); addChild(this._-Cn); _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local6; _local5.selectable = false; _local5.mouseEnabled = true; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = "more games"; _local5.width = (_local5.textWidth + 5); _local5.height = _local5.textHeight; _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local7; _local8.selectable = false; _local8.mouseEnabled = true; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "more games"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; var _local9:SimpleButton = new SimpleButton(_local5, _local8, _local8, _local8); _local9.x = ((_local1 / 2) + 10); _local9.y = (_local2 - 70); _local9.addEventListener(MouseEvent.CLICK, this._-0I); addChild(_local9); _local4 = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 0; _local4.size = 40; _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = 0xAAAAAA; _local6.size = 40; var _local10:TextField = new TextField(); _local10.embedFonts = true; _local10.defaultTextFormat = _local4; _local10.selectable = false; _local10.mouseEnabled = true; _local10.antiAliasType = AntiAliasType.ADVANCED; _local10.text = "next level"; _local10.width = (_local10.textWidth + 5); _local10.height = _local10.textHeight; this._-1H(_local10); var _local11:DisplayObject = this._-5y(_local10); this._-Ik = new SimpleButton(_local11, _local11, _local11, _local11); this._-Ik.x = ((_local1 - _local11.width) / 2); this._-Ik.y = 85; addChild(this._-Ik); } protected function _-KN():void{ var _local4:TextFormat; var _local5:TextField; var _local1:Number = 420; var _local2:Number = 200; var _local3:Sprite = new Sprite(); _local3.x = 30; _local3.y = 10; _local3.graphics.lineStyle(2, 0x8F8F8F); _local3.graphics.beginFill(0xE4E4E4); _local3.graphics.drawRoundRect(0, 0, (_local1 - 60), ((_local2 - _local3.y) - 30), 20, 20); _local3.graphics.endFill(); addChild(_local3); _local4 = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 0; _local4.size = 40; _local4.bold = true; _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local4; _local5.selectable = false; _local5.mouseEnabled = false; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = "game complete!"; _local5.width = (_local5.textWidth + 5); _local5.height = _local5.textHeight; _local5.x = ((_local1 - _local5.width) / 2); _local5.y = 10; addChild(_local5); _local4 = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 1001815; _local4.size = 32; _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local4; _local5.selectable = false; _local5.mouseEnabled = false; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = ("score " + _-K3._-0a()._-1z().toString()); _local5.width = (_local5.textWidth + 5); _local5.height = _local5.textHeight; _local5.x = ((_local1 - _local5.width) / 2); _local5.y = 50; addChild(_local5); var _local6:TextFormat = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = 0; _local6.size = 25; var _local7:TextFormat = new TextFormat(); _local7.font = "embed_font_1"; _local7.color = 0xAAAAAA; _local7.size = 25; _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local6; _local5.selectable = false; _local5.mouseEnabled = true; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = "replay level"; _local5.width = (_local5.textWidth + 5); _local5.height = _local5.textHeight; var _local8:TextField = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local7; _local8.selectable = false; _local8.mouseEnabled = true; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "replay level"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; this._-Cn = new SimpleButton(_local5, _local8, _local8, _local8); this._-Cn.x = ((_local1 - _local5.width) / 2); this._-Cn.y = (_local2 - 70); addChild(this._-Cn); _local4 = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 0; _local4.size = 40; _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = 0xAAAAAA; _local6.size = 40; var _local9:TextField = new TextField(); _local9.embedFonts = true; _local9.defaultTextFormat = _local4; _local9.selectable = false; _local9.mouseEnabled = true; _local9.antiAliasType = AntiAliasType.ADVANCED; _local9.text = "more games"; _local9.width = (_local9.textWidth + 5); _local9.height = _local9.textHeight; this._-1H(_local9); var _local10:DisplayObject = this._-5y(_local9); this._-Ik = new SimpleButton(_local10, _local10, _local10, _local10); this._-Ik.x = ((_local1 - _local10.width) / 2); this._-Ik.y = 85; this._-Ik.addEventListener(MouseEvent.CLICK, this.get); addChild(this._-Ik); } protected function try(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } protected function _-1H(_arg1:DisplayObject):void{ var _local2:DropShadowFilter = new DropShadowFilter(); _local2.color = 0; _local2.blurY = 4; _local2.blurX = 4; _local2.angle = 45; _local2.alpha = 0.5; _local2.distance = 4; _arg1.filters = [_local2]; } } }//package game
Section 164
//_-s (game._-s) package game { import mx.core.*; public class _-s extends SpriteAsset { } }//package game
Section 165
//_-V (game._-V) package game { import mx.core.*; public class _-V extends SpriteAsset { } }//package game
Section 166
//_-v (game._-v) package game { import mx.core.*; public class _-v extends BitmapAsset { } }//package game
Section 167
//finally (game.finally) package game { import flash.display.*; import _-5m.*; public class finally extends Sprite { public function finally():void{ var _local2:int; var _local3:int; var _local4:int; super(); graphics.beginFill(416936); graphics.drawRect(0, 0, 640, 480); graphics.endFill(); graphics.lineStyle(3, 0x7777); var _local1 = 8; _local2 = (640 / _local1); _local3 = 0; while (_local3 < _local2) { _local4 = (_local3 % 10); _-4V._-9Y(this.graphics, (_local3 * _local1), 0, (_local3 * _local1), 480, 7, 4); _local3++; }; _local2 = (480 / _local1); _local3 = 0; while (_local3 < _local2) { _local4 = (_local3 % 10); _-4V._-9Y(this.graphics, 0, (_local3 * _local1), 640, (_local3 * _local1), 7, 4); _local3++; }; } } }//package game
Section 168
//if (game.if) package game { import mx.core.*; public class if extends SpriteAsset { } }//package game
Section 169
//in (game.in) package game { import mx.core.*; public class in extends BitmapAsset { } }//package game
Section 170
//mainMenu_FontClass1 (game.mainMenu_FontClass1) package game { import mx.core.*; public class mainMenu_FontClass1 extends FontAsset { } }//package game
Section 171
//soundManager_Sound1 (game.soundManager_Sound1) package game { import mx.core.*; public class soundManager_Sound1 extends SoundAsset { } }//package game
Section 172
//use (game.use ) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.filters.*; public class use extends Sprite { protected var level:_-HA; public var _-8Z:Boolean;// = false protected var _-Ak:_-o; protected var _-Ga:Sprite; protected var _-i:_-LR; private var _-GM:Class; private var _-4L:Class; private var _-Q:Class; private var _-La:Class; private var _-Jw:Class; private var _-EI:Class; private var _-IB:Class; protected var _-AZ:Number; private var _-1c:Class; protected var true:Sprite; protected var _-FC:Boolean;// = false protected var sky:DisplayObject; protected var var:DisplayObject; protected var _-Ii:int; protected var _-G1:Boolean;// = true protected var _-BA:TextField; protected var _-4G:int; protected var _-AV:_-4W; protected var _-CL:_-Dm; protected var _-Dt:_-Fk; public function use (){ var _local3:Bitmap; var _local4:Bitmap; var _local5:Sprite; var _local8:TextField; var _local9:TextField; this._-GM = _-9x; this._-4L = _-9e; this._-Q = _-v; this._-La = _-0S; this._-1c = _-Bw; this._-Jw = _-3P; this._-EI = _-V; this._-IB = _-2z; super(); this.true = new Sprite(); addChild(this.true); var _local1:Number = 440; var _local2:finally = new finally(); this.true.addChild(_local2); this._-i = new _-LR(); this._-i.mouseChildren = false; this._-i.mouseEnabled = false; this.true.addChild(this._-i); this._-i._-B4 = this._-5; this._-i._-FQ = this._-Iv; this._-CL = new _-Dm(); this._-Ii = this._-CL._-K-(); this.level = new _-HA(); this.addEventListener(MouseEvent.MOUSE_DOWN, this._-DO); if (stage){ this._-Ax(null); } else { this.addEventListener(Event.ADDED_TO_STAGE, this._-Ax); }; this._-AV = new _-4W(); this._-AV.x = ((640 / 2) - 140); this._-AV.y = _local1; addChild(this._-AV); var _local6:TextFormat = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = 0xAAAAAA; _local6.size = 25; _local6.bold = true; var _local7:TextFormat = new TextFormat(); _local7.font = "embed_font_1"; _local7.color = 0xFFFFFF; _local7.size = 25; _local7.bold = true; _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local7; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "restart"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; this._-1H(_local8); _local9 = new TextField(); _local9.embedFonts = true; _local9.defaultTextFormat = _local6; _local9.selectable = false; _local9.mouseEnabled = false; _local9.antiAliasType = AntiAliasType.ADVANCED; _local9.text = "restart"; _local9.width = (_local8.textWidth + 5); _local9.height = _local8.textHeight; this._-1H(_local9); var _local10:SimpleButton = new SimpleButton(_local8, _local9, _local9, _local9); _local10.x = 420; _local10.y = _local1; addChild(_local10); _local10.addEventListener(MouseEvent.CLICK, this._-0m); _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local7; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "menu"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; this._-1H(_local8); _local9 = new TextField(); _local9.embedFonts = true; _local9.defaultTextFormat = _local6; _local9.selectable = false; _local9.mouseEnabled = false; _local9.antiAliasType = AntiAliasType.ADVANCED; _local9.text = "menu"; _local9.width = (_local8.textWidth + 5); _local9.height = _local8.textHeight; this._-1H(_local9); _local10 = new SimpleButton(_local8, _local9, _local9, _local9); _local10.x = 75; _local10.y = _local1; addChild(_local10); _local10.addEventListener(MouseEvent.CLICK, this._-79); _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local7; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "0"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; this._-1H(_local8); _local8.x = (580 - _local8.width); _local8.y = 12; addChild(_local8); this._-BA = _local8; _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local7; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = ("/" + this._-Ii.toString()); _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; this._-1H(_local8); _local8.x = 575; _local8.y = 12; addChild(_local8); _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local7; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "level"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; this._-1H(_local8); _local8.x = 455; _local8.y = 12; addChild(_local8); } protected function _-K2():void{ } protected function _-96(_arg1:MouseEvent):void{ } protected function _-0m(_arg1:MouseEvent):void{ var _local2:_-CA; var _local3:Date; var _local4:Number; if (this._-FC){ _local2 = _-CA._-Fh(); _local2._-B(this._-GK, this.true); this._-i._-9m(this.level); this._-i.x = -(this.level.shift.x); this._-i.y = -(this.level.shift.y); _local2._-CU(this.true); this.true.addChild(_local2); this._-i._-Lv(true); _local3 = new Date(); _local4 = _local3.getTime(); this._-AZ = _local4; this._-AV.if (_local4, this._-4G); if (this._-4G == 0){ this._-Dt.restart(); }; this._-Gg(); }; } protected function for (_arg1:MouseEvent):void{ var _local2:_-CA = _-CA._-Fh(); _local2._-B(this._-GK, this.true); if ((this._-4G + 1) != this._-Ii){ this._-Et((this._-4G + 1)); } else { this._-Et(0); }; _local2._-CU(this.true); this.true.addChild(_local2); this._-i._-Lv(true); this._-Gg(); this._-K2(); } protected function _-H3():void{ this._-BA.text = int((this._-4G + 1)).toString(); this._-BA.width = (this._-BA.textWidth + 5); this._-BA.x = (575 - this._-BA.width); } protected function _-Gg():void{ if (this._-Ak){ this._-Ak._-Cn.removeEventListener(MouseEvent.CLICK, this._-0m); if (this._-Ak._-Ik != null){ this._-Ak._-Ik.removeEventListener(MouseEvent.CLICK, this.for ); }; removeChild(this._-Ak); this._-Ak = null; }; } protected function _-5():void{ var _local1:_-K3 = _-K3._-0a(); var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); var _local4:int = Math.ceil(((_local3 - this._-AZ) / 1000)); if (_local4 <= 60){ _local4 = (((61 - _local4) * 16) + (this._-4G * 10)); } else { _local4 = (this._-4G * 10); }; _local1._-2k(this._-4G, _local4); if ((this._-4G + 1) != this._-Ii){ _local1._-Hq((this._-4G + 1)); }; this._-AV.update(_local3); this._-AV._-FW(); var _local5 = (this._-Ii == (this._-4G + 1)); this._-Ak = new _-o(150, _local5); this._-Ak.x = ((640 - this._-Ak.width) / 2); this._-Ak.y = 200; this._-Ak._-Cn.addEventListener(MouseEvent.CLICK, this._-0m); if (!_local5){ if (this._-Ak._-Ik != null){ this._-Ak._-Ik.addEventListener(MouseEvent.CLICK, this.for ); }; }; addChild(this._-Ak); } protected function _-Ax(_arg1:Event):void{ stage.addEventListener(KeyboardEvent.KEY_DOWN, this.true ); stage.focus = stage; } protected function _-79(_arg1:MouseEvent):void{ this._-8Z = true; this._-Gg(); } public function _-Et(_arg1:int):Boolean{ var _local2:Boolean = this._-CL._-Ie(_arg1, this.level); if (!_local2){ return (_local2); }; this._-i._-9m(this.level); this._-i.x = -(this.level.shift.x); this._-i.y = -(this.level.shift.y); this._-i._-Ho = this.level.shift.Copy(); if (_arg1 == 0){ this._-Dt = new _-Fk(); this._-Dt.x = this.level.shift.x; this._-Dt.y = this.level.shift.y; this._-i.addChild(this._-Dt); } else { if (this._-Dt != null){ this._-i.removeChild(this._-Dt); }; this._-Dt = null; }; var _local3:Date = new Date(); var _local4:Number = _local3.getTime(); this._-AZ = _local4; this._-AV.if (_local4, _arg1); this._-4G = _arg1; this._-FC = true; this._-H3(); this._-K2(); return (true); } protected function _-27(_arg1:MouseEvent):void{ if (this._-FC){ this._-i._-DW(_arg1); }; } protected function _-DO(_arg1:MouseEvent):void{ if (this._-FC){ this._-i._-BP(_arg1); }; } protected function true (_arg1:KeyboardEvent):void{ var _local2:_-CA; var _local3:Date; var _local4:Number; if (_-HJ._-Gf()._-F7 == true){ return; }; if (_arg1.keyCode == 82){ if (this._-FC){ _local2 = _-CA._-Fh(); _local2._-B(this._-GK, this.true); this._-i._-9m(this.level); this._-i.x = -(this.level.shift.x); this._-i.y = -(this.level.shift.y); _local2._-CU(this.true); this.true.addChild(_local2); this._-i._-Lv(true); _local3 = new Date(); _local4 = _local3.getTime(); this._-AZ = _local4; this._-AV.if (_local4, this._-4G); if (this._-4G == 0){ this._-Dt.restart(); }; this._-Gg(); }; }; } protected function _-1H(_arg1:DisplayObject):void{ var _local2:DropShadowFilter = new DropShadowFilter(); _local2.color = 0; _local2.blurY = 4; _local2.blurX = 4; _local2.angle = 45; _local2.alpha = 0.5; _local2.distance = 4; var _local3:Array = new Array(_local2); _arg1.filters = _local3; } protected function _-Iv():void{ var _local1:_-CA = _-CA._-Fh(); _local1._-B(this._-GK, this.true); this._-i._-9m(this.level); this._-i.x = -(this.level.shift.x); this._-i.y = -(this.level.shift.y); _local1._-CU(this.true); this.true.addChild(_local1); this._-i._-Lv(true); var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); this._-AZ = _local3; this._-AV.if (_local3, this._-4G); if (this._-4G == 0){ this._-Dt.restart(); }; } protected function _-GK():void{ this._-i._-Lv(false); } protected function _-4R(_arg1:MouseEvent):void{ if (this._-FC){ this._-i._-Hu(_arg1); }; } } }//package game
Section 173
//_-1e (mochi.as3._-1e) package mochi.as3 { public class _-1e { private var _-3r:Object; public function _-1e():void{ this._-3r = {}; } public function _-7N(_arg1:String, _arg2:Object):void{ var _local3:Object; if (this._-3r[_arg1] == undefined){ return; }; for (_local3 in this._-3r[_arg1]) { var _local6 = this._-3r[_arg1]; _local6[_local3](_arg2); }; } public function removeEventListener(_arg1:String, _arg2:Function):void{ var _local3:Object; if (this._-3r[_arg1] == undefined){ this._-3r[_arg1] = []; return; }; for (_local3 in this._-3r[_arg1]) { if (this._-3r[_arg1][_local3] != _arg2){ } else { this._-3r[_arg1].splice(Number(_local3), 1); }; }; } public function addEventListener(_arg1:String, _arg2:Function):void{ this.removeEventListener(_arg1, _arg2); this._-3r[_arg1].push(_arg2); } } }//package mochi.as3
Section 174
//_-57 (mochi.as3._-57) package mochi.as3 { public class _-57 { public static const _-FU:String = "LoggedIn"; public static const _-Fu:String = "ProfileHide"; public static const _-A9:String = "NoUser"; public static const _-BM:String = "PropertiesSize"; public static const IO_ERROR:String = "IOError"; public static const get :String = "PropertySaved"; public static const _-2y:String = "WidgetLoaded"; public static const _-Ll:String = "UserInfo"; public static const ERROR:String = "Error"; public static const include:String = "LoginShow"; public static const _-Cz:String = "LoggedOut"; public static const _-A6:String = "ProfileShow"; public static const _-8b:String = "LoginShown"; public static const _-HU:String = "LoginHide"; private static var _-3v:_-1e = new _-1e(); public static var _user_info:Object = null; public static function _-DA():String{ return (_-6L._-DA()); } public static function _-7S(_arg1:Object):void{ _-6L.send("coins_saveUserProperties", _arg1); } public static function get _-EL():Boolean{ return (!((_user_info == null))); } public static function _-7N(_arg1:String, _arg2:Object):void{ _-3v._-7N(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _-3v.addEventListener(_arg1, _arg2); } public static function _-En():void{ _-6L.send("coins_getUserInfo"); } public static function _-Il(_arg1:Object=null):void{ _-6L._-AC(); _-6L._-6U(); _-6L.send("coins_showLoginWidget", {options:_arg1}); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _-3v.removeEventListener(_arg1, _arg2); } public static function _-Dn():void{ _-6L.send("coins_requestLogin"); } public static function _-D6():String{ if (!_user_info){ return (null); }; return (_user_info.api_url); } public static function while():void{ _-6L.send("coins_hideLoginWidget"); } public static function _-Bd():String{ if (!_user_info){ return (null); }; return (_user_info.api_token); } _-57.addEventListener(_-57._-FU, function (_arg1:Object):void{ _user_info = _arg1; }); _-57.addEventListener(_-57._-Cz, function (_arg1:Object):void{ _user_info = null; }); } }//package mochi.as3
Section 175
//_-5s (mochi.as3._-5s) package mochi.as3 { import flash.display.*; public class _-5s { public static const _-JU:String = "ALIGN_BL"; public static const _-77:String = "LongForm"; public static const _-1Q:String = "ALIGN_B"; public static const _-50:String = "AchievementReceived"; public static const _-48:String = "ShortForm"; public static const _-4p:String = "ALIGN_TR"; public static const _-75:String = "ALIGN_BR"; public static const _-1p:String = "ALIGN_T"; public static const _-1T:String = "ALIGN_L"; public static const _-Br:String = "ALIGN_R"; public static const _-JQ:String = "ALIGN_TL"; public static const _-2a:String = "ALIGN_C"; private static var _-3v:_-1e = new _-1e(); private static var _-8K:Number; private static var _-5U:Number; public static function _-5C():void{ _-6L.send("events_clearRoundID", null, null, null); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _-3v.addEventListener(_arg1, _arg2); } public static function _-Dw(_arg1:String, _arg2=null):void{ _-6L.send("events_trackEvent", {tag:_arg1, value:_arg2}, null, null); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _-3v.removeEventListener(_arg1, _arg2); } public static function _-Bn(_arg1:String):void{ _-6L.send("events_beginSession", {achievementID:_arg1}, null, null); } public static function _-7N(_arg1:String, _arg2:Object):void{ _-3v._-7N(_arg1, _arg2); } public static function _-Ck(_arg1:MovieClip, _arg2:Object):void{ var _local4:Object; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; _local3.clip = _arg1; _-6L.send("events_setNotifications", _local3, null, null); } public static function _-DA():String{ return (_-6L._-DA()); } public static function _-BK(_arg1:String="gameplay"):void{ _-6L.send("events_setRoundID", {tag:String(_arg1)}, null, null); } } }//package mochi.as3
Section 176
//_-5T (mochi.as3._-5T) package mochi.as3 { public final class _-5T { private var _-4e:_-5T; private var _-HN:Number; private var _-At:Number; public function _-5T(_arg1:Number=0, _arg2:uint=0):void{ this._-At = 0; this.setValue(_arg1, _arg2); } public function _-HI():void{ var _local1:uint = int((2147483647 * Math.random())); this._-HN = (this._-HN ^ (_local1 ^ this._-At)); this._-At = _local1; } public function set value(_arg1:Number):void{ this.setValue(_arg1); } public function toString():String{ var _local1:String = String.fromCharCode((this._-HN ^ this._-At)); if (this._-4e != null){ _local1 = (_local1 + this._-4e.toString()); }; return (_local1); } public function setValue(_arg1:Number=0, _arg2:uint=0):void{ var _local3:String = _arg1.toString(); var _temp1 = _arg2; _arg2 = (_arg2 + 1); this._-HN = (_local3.charCodeAt(_temp1) ^ this._-At); if (_arg2 < _local3.length){ this._-4e = new _-5T(_arg1, _arg2); } else { this._-4e = null; }; this._-HI(); } public function get value():Number{ return (Number(this.toString())); } public function _-LY(_arg1:Number):void{ this.value = (this.value + _arg1); } } }//package mochi.as3
Section 177
//_-6L (mochi.as3._-6L) package mochi.as3 { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; import flash.geom.*; public class _-6L { private static var _-1f:Object; private static var _-L8:Boolean = false; private static var _-3b:Array; private static var _-LS:String; private static var _-KS:Object; public static var _-2Q:Boolean = false; private static var _-J-:LocalConnection; public static var _-0-:_-7L = new _-7L(); private static var _-5o:Number; private static var _-F0:MovieClip; private static var _-Ds:String; private static var _-1E:String = "services.swf"; private static var _-BV:String = "http://www.mochiads.com/static/lib/services/"; public static var widget:Boolean = false; private static var _-2O:Timer; private static var _-Ap:String; private static var _-Bo:Loader; private static var dynamic:Object; private static var _-Ct:Boolean = false; private static var _mochiLocalConnection:MovieClip; private static var switch:String = "__ms_"; public static var onError:Object; public static var netup:Boolean = true; private static var _-95:String = "MochiLC.swf"; public static function _-DS():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function get _-D0():Boolean{ return (_-L8); } private static function onReceive(_arg1:Object):void{ var methodName:String; var pkg = _arg1; var cb:String = pkg.callbackID; var cblst:Object = dynamic[cb]; if (!cblst){ return; }; var method:* = cblst.callbackMethod; methodName = ""; var obj:Object = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString())); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace(("Error invoking method on object: " + error.toString())); }; }; }; delete dynamic[cb]; } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_-L8){ _mochiLocalConnection.send(_-Ap, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_-5o}); } else { if ((((_-F0 == null)) || (!(_-Ct)))){ trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1)); _-ID(_arg2, _arg3, _arg4); flush(true); return; }; _-3b.push({methodName:_arg1, args:_arg2, callbackID:_-5o}); }; if (_-F0 != null){ if (dynamic != null){ dynamic[_-5o] = {callbackObject:_arg3, callbackMethod:_arg4}; _-5o++; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _-Ds = _arg1; if (_arg2 != null){ _-1f = _arg2; _-JS(_arg1, _-1f); }; } public static function get _-2I():Object{ return (_-F0); } private static function in(_arg1:String, _arg2:Function):MovieClip{ var _local4:int; var _local14:Loader; var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; var _local6:Array = [0, 64, 0, 0, 0]; var _local7:MovieClip = new MovieClip(); var _local8:LocalConnection = new LocalConnection(); var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time)); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); var _local10:ByteArray = new ByteArray(); var _local11:ByteArray = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); var _local12:uint = ((_local3.length + _local11.length) + 4); var _local13:uint = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } public static function _-3():void{ _-1f.addEventListener(Event.ENTER_FRAME, _-6L._-6U, false, 0, true); if (_-F0 != null){ _-F0.visible = true; }; } public static function _-GL(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var avm1Click:DisplayObject; var x:String; var req:URLRequest; var loader:Loader; var setURL:Function; var err:Function; var complete:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; var vars:Object = new Object(); vars["mav"] = _-DA(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); var s = "?"; var i:Number = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://x.mochiads.com/linkping.swf"); loader = new Loader(); setURL = function (_arg1:String):void{ if (avm1Click){ btn.removeChild(avm1Click); }; avm1Click = in(_arg1, onClick); var _local2:Rectangle = btn.getBounds(btn); btn.addChild(avm1Click); avm1Click.x = _local2.x; avm1Click.y = _local2.y; avm1Click.scaleX = (0.01 * _local2.width); avm1Click.scaleY = (0.01 * _local2.height); }; err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); setURL(burl); }; complete = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; if (netup){ setURL((url + s)); } else { setURL(burl); }; if (!((_-2Q) || (_-L8))){ _-2Q = true; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); }; } public static function _-As():void{ if (((_-L8) || (_-Ct))){ if (_-F0 != null){ if (_-F0.parent != null){ if ((_-F0.parent is Sprite)){ Sprite(_-F0.parent).removeChild(_-F0); _-F0 = null; }; }; }; _-Ct = (_-L8 = false); flush(true); try { _mochiLocalConnection.close(); } catch(error:Error) { }; }; if (_-2O != null){ try { _-2O.stop(); } catch(error:Error) { }; }; } public static function _-E1(_arg1:String):String{ var _local2:String; if (Security.sandboxType != "application"){ Security.allowDomain("*"); Security.allowInsecureDomain("*"); }; if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; if (Security.sandboxType != "application"){ Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; }; return (_local2); } public static function _-DA():String{ return ("3.8 as3"); } public static function _-Gs():void{ _-1f.removeEventListener(Event.ENTER_FRAME, _-6L._-6U); } public static function _-0q(_arg1:String, _arg2:Boolean):void{ _arg1 = _arg1.toLowerCase(); if (_arg1.length != 16){ trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length")); return; } else { if (_arg1 == "1e113c7239048b3f"){ if (_arg2){ trace("WARNING: Using testing board ID"); } else { trace("WARNING: Using testing board ID as game ID"); }; return; } else { if (_arg1 == "84993a1de4031cd8"){ if (_arg2){ trace("WARNING: Using testing game ID as board ID"); } else { trace("WARNING: Using testing game ID"); }; return; }; }; }; var _local3:Number = 0; while (_local3 < _arg1.length) { switch (_arg1.charAt(_local3)){ case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": case "a": case "b": case "c": case "d": case "e": case "f": break; default: trace(("WARNING: Board ID contains illegal characters: " + _arg1)); return; }; _local3++; }; } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (((_-F0) && (_-3b))){ while (_-3b.length > 0) { _local2 = _-3b.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = dynamic[_local2.callbackID]; }; delete dynamic[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ _-ID(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; } public static function get id():String{ return (_-Ds); } private static function onEvent(_arg1:Object):void{ var _local2:String = _arg1.target; var _local3:String = _arg1.event; switch (_local2){ case "events": _-5s._-7N(_arg1.event, _arg1.args); break; case "coins": _-LH._-7N(_arg1.event, _arg1.args); break; case "sync": _-0-._-7N(_arg1.event, _arg1.args); break; }; } private static function _-z(_arg1:Object):Object{ var _local3:String; var _local4:Array; var _local5:Number; var _local6:Array; var _local2:Object = {}; if (_arg1.stage){ _local3 = _arg1.stage.loaderInfo.parameters.mochiad_options; } else { _local3 = _arg1.loaderInfo.parameters.mochiad_options; }; if (_local3){ _local4 = _local3.split("&"); _local5 = 0; while (_local5 < _local4.length) { _local6 = _local4[_local5].split("="); _local2[unescape(_local6[0])] = unescape(_local6[1]); _local5++; }; }; return (_local2); } public static function _-AC(_arg1:Object=null, _arg2:Boolean=true):void{ if (_-F0.parent){ _-F0.parent.removeChild(_-F0); }; if (_arg1 != null){ if ((_arg1 is DisplayObjectContainer)){ _-1f = _arg1; }; }; if (_arg2){ if ((_-1f is DisplayObjectContainer)){ DisplayObjectContainer(_-1f).addChild(_-F0); }; }; } private static function _-ID(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } private static function _-Lo(_arg1:Object):void{ _-F0._mochiad_ctr_failed = true; trace("MochiServices could not load."); _-6L._-As(); _-6L.onError("IOError"); } private static function const():void{ if (!_-L8){ trace("[SERVICES_API] connected!"); _-Ct = false; _-L8 = true; _mochiLocalConnection.send(_-Ap, "onReceive", {methodName:"handshakeDone"}); _mochiLocalConnection.send(_-Ap, "onReceive", {methodName:"registerGame", preserved:_-KS, id:_-Ds, version:_-DA(), parentURL:_-1f.loaderInfo.loaderURL}); _-F0.onReceive = onReceive; _-F0.onEvent = onEvent; _-F0.onError = function ():void{ _-6L.onError("IOError"); }; while (_-3b.length > 0) { _mochiLocalConnection.send(_-Ap, "onReceive", _-3b.shift()); }; }; } private static function _-EW(_arg1:Object):void{ var loader:Loader; var clip = _arg1; loader = new Loader(); var mochiLCURL:String = (_-BV + _-95); var req:URLRequest = new URLRequest(mochiLCURL); var complete:Function = function (_arg1:Object):void{ _mochiLocalConnection = MovieClip(loader.content); listen(); }; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _-Lo); loader.load(req); clip.addChild(loader); } private static function listen():void{ _mochiLocalConnection.connect(switch); _-F0.handshake = function (_arg1:Object):void{ _-6L._-LO = _arg1.newChannel; }; trace("Waiting for MochiAds services to connect..."); } public static function get clip():Object{ return (_-1f); } public static function set _-LO(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _-Ap = (_arg1 + "_fromgame"); const(); }; }; } private static function _-JS(_arg1:String, _arg2:Object):MovieClip{ if (_-F0 != null){ return (_-F0); }; if (!_-6L._-DS()){ return (null); }; if (_-z(_arg2).servURL){ _-BV = _-z(_arg2).servURL; }; var _local3:String = (_-BV + _-1E); if (_-z(_arg2).servicesURL){ _local3 = _-z(_arg2).servicesURL; }; switch = (switch + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999)))); _-6L._-E1(_local3); _-F0 = new MovieClip(); _-EW(_-F0); _-Bo = new Loader(); _-Bo.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _-Lo); var _local4:URLRequest = new URLRequest(_local3); var _local5:URLVariables = new URLVariables(); _local5.listenLC = switch; _local5.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options; _local5.api_version = _-DA(); if (widget){ _local5.widget = true; }; _local4.data = _local5; _-Bo.load(_local4); _-F0.addChild(_-Bo); _-J- = new LocalConnection(); _-3b = []; _-5o = 0; dynamic = {}; _-2O = new Timer(10000, 1); _-2O.addEventListener(TimerEvent.TIMER, _-Bt); _-2O.start(); return (_-F0); } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; _-0q(id, false); if ((clip is DisplayObject)){ if (clip.stage == null){ trace("MochiServices connect requires the containing clip be attached to the stage"); }; if (((!(_-L8)) && ((_-F0 == null)))){ trace("MochiServices Connecting..."); _-Ct = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ _-6L.onError = onError; } else { if (_-6L.onError == null){ _-6L.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function _-8E(_arg1:Object):void{ _-6L.send("coins_updateCopy", _arg1, null, null); } public static function _-6U(_arg1:Event=null):void{ var e = _arg1; if (((!((_-6L.clip == null))) && (!((_-6L._-2I == null))))){ try { if (_-6L.clip.numChildren > 1){ _-6L.clip.setChildIndex(_-6L._-2I, (_-6L.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _-1f.removeEventListener(Event.ENTER_FRAME, _-6L._-6U); }; }; } public static function _-Bt(_arg1:TimerEvent):void{ if (!_-L8){ _-F0._mochiad_ctr_failed = true; trace("MochiServices could not load. (timeout)"); _-6L._-As(); _-6L.onError("IOError"); }; } } }//package mochi.as3
Section 178
//_-7L (mochi.as3._-7L) package mochi.as3 { import flash.utils.*; public dynamic class _-7L extends Proxy { private var _-Ju:Object; public static var _-E4:String = "UpdateProperty"; public static var _-Gj:String = "SyncRequest"; public function _-7L():void{ this._-Ju = {}; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ if (this._-Ju[_arg1] == _arg2){ return; }; var _local3:String = _arg1.toString(); this._-Ju[_local3] = _arg2; _-6L.send("sync_propUpdate", {name:_local3, value:_arg2}); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ return (this._-Ju[_arg1]); } public function _-7N(_arg1:String, _arg2:Object):void{ switch (_arg1){ case _-Gj: _-6L.send("sync_syncronize", this._-Ju); break; case _-E4: this._-Ju[_arg2.name] = _arg2.value; break; }; } } }//package mochi.as3
Section 179
//_-9k (mochi.as3._-9k) package mochi.as3 { import flash.events.*; import flash.net.*; import flash.utils.*; public class _-9k extends EventDispatcher { public var _-Jb:Function;// = null public var _-LZ:String;// = null public var error:Event;// = null public var data;// = null public var _-Bo:URLLoader; public var key:String;// = null public function _-9k(_arg1:String="", _arg2:Function=null){ this.key = _arg1; this._-Jb = _arg2; } public function _-01(_arg1):ByteArray{ var _local2:ByteArray = new ByteArray(); _local2.objectEncoding = ObjectEncoding.AMF3; _local2.writeObject(_arg1); _local2.compress(); return (_local2); } public function errorHandler(_arg1:IOErrorEvent):void{ this.data = null; this.error = _arg1; if (this._-Jb != null){ this._-Ji(); } else { dispatchEvent(_arg1); }; this.close(); } public function _-3f(_arg1):void{ this._-5B("put", this._-01(_arg1)); } public function _-2d(_arg1:ByteArray){ _arg1.objectEncoding = ObjectEncoding.AMF3; _arg1.uncompress(); return (_arg1.readObject()); } public function _-Ex(_arg1:SecurityErrorEvent):void{ this.errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString()))); } public function _-2j():void{ this._-5B("get", this._-01(null)); } override public function toString():String{ return ((((((((("[MochiUserData operation=" + this._-LZ) + " key=\"") + this.key) + "\" data=") + this.data) + " error=\"") + this.error) + "\"]")); } public function _-Ji():void{ try { this._-Jb(this); } catch(e:Error) { trace(("[MochiUserData] exception during callback: " + e)); }; } public function _-5B(_arg1:String, _arg2:ByteArray):void{ var _operation = _arg1; var _data = _arg2; this._-LZ = _operation; var api_url:String = _-57._-D6(); var api_token:String = _-57._-Bd(); if ((((api_url == null)) || ((api_token == null)))){ this.errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in")); return; }; this._-Bo = new URLLoader(); var args:URLVariables = new URLVariables(); args.op = _operation; args.key = this.key; var req:URLRequest = new URLRequest((((_-57._-D6() + "/") + "MochiUserData?") + args.toString())); req.method = URLRequestMethod.POST; req.contentType = "application/x-mochi-userdata"; req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", _-6L._-DA()), new URLRequestHeader("x-mochi-api-token", api_token)]; req.data = _data; this._-Bo.dataFormat = URLLoaderDataFormat.BINARY; this._-Bo.addEventListener(Event.COMPLETE, this.completeHandler); this._-Bo.addEventListener(IOErrorEvent.IO_ERROR, this.errorHandler); this._-Bo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this._-Ex); try { this._-Bo.load(req); } catch(e:SecurityError) { errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString()))); }; } public function completeHandler(_arg1:Event):void{ var event = _arg1; try { if (this._-Bo.data.length){ this.data = this._-2d(this._-Bo.data); } else { this.data = null; }; } catch(e:Error) { errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString()))); return; }; if (this._-Jb != null){ this._-Ji(); } else { dispatchEvent(event); }; this.close(); } public function close():void{ if (this._-Bo){ this._-Bo.removeEventListener(Event.COMPLETE, this.completeHandler); this._-Bo.removeEventListener(IOErrorEvent.IO_ERROR, this.errorHandler); this._-Bo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this._-Ex); this._-Bo.close(); this._-Bo = null; }; this.error = null; this._-Jb = null; } public static function get(_arg1:String, _arg2:Function):void{ var _local3:_-9k = new _-9k(_arg1, _arg2); _local3._-2j(); } public static function put(_arg1:String, _arg2, _arg3:Function):void{ var _local4:_-9k = new _-9k(_arg1, _arg3); _local4._-3f(_arg2); } } }//package mochi.as3
Section 180
//_-Af (mochi.as3._-Af) package mochi.as3 { import flash.events.*; import flash.utils.*; public dynamic class _-Af extends Proxy { private var _-2O:Timer; private var _-13:Array; private var _-Bj:Number; private var _-8X:Object; private var _-7e:Object; private var _-7R:Number; private var _-1A:Boolean; public static const READY:String = "InvReady"; public static const ERROR:String = "Error"; public static const IO_ERROR:String = "IoError"; private static const _-3u:String = " syncMaint"; public static const _-A0:String = "InvWritten"; public static const _-8B:String = "InvNotReady"; public static const _-D7:String = "InvValueError"; private static const _-2p:String = "MochiConsumables"; private static var _-3v:_-1e = new _-1e(); public function _-Af():void{ _-LH.addEventListener(_-LH._-E0, this._-He); _-LH.addEventListener(_-LH._-Ig, this._-GU); _-57.addEventListener(_-57._-FU, this._-EL); _-57.addEventListener(_-57._-Cz, this._-Ir); this._-7e = new Object(); this._-1A = false; this._-7R = 0; this._-Bj = 0; this._-2O = new Timer(1000); this._-2O.addEventListener(TimerEvent.TIMER, this.sync); this._-2O.start(); if (_-57._-EL){ this._-EL(); } else { this._-Ir(); }; } private function _-GU(_arg1:Object):void{ if (!this[(_arg1.id + _-3u)]){ this[(_arg1.id + _-3u)] = 0; }; if (!this[_arg1.id]){ this[_arg1.id] = 0; }; this[(_arg1.id + _-3u)] = (this[(_arg1.id + _-3u)] + _arg1.count); this[_arg1.id] = (this[_arg1.id] + _arg1.count); if (_arg1.privateProperties.consumable){ if (!this[_arg1.privateProperties.tag]){ this[_arg1.privateProperties.tag] = 0; }; this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count)); }; } public function release():void{ _-LH.removeEventListener(_-LH._-Ig, this._-GU); _-57.removeEventListener(_-57._-FU, this._-EL); _-57.removeEventListener(_-57._-Cz, this._-Ir); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ if (this._-8X == null){ _-7N(ERROR, {type:_-8B}); return (-1); }; if (this._-8X[_arg1]){ return (_-5T(this._-8X[_arg1]).value); }; return (undefined); } private function _-EL(_arg1:Object=null):void{ _-9k.get(_-2p, this._-8U); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{ if (this._-8X == null){ _-7N(ERROR, {type:_-8B}); return (false); }; if (this._-8X[_arg1] == undefined){ return (false); }; return (true); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{ return (((_arg1)>=this._-13.length) ? 0 : (_arg1 + 1)); } private function _-LF(_arg1:_-9k):void{ this._-1A = false; if (_arg1.error){ _-7N(ERROR, {type:IO_ERROR, error:_arg1.error}); this._-7R = -1; }; _-7N(_-A0, {}); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ var _local3:_-5T; if (this._-8X == null){ _-7N(ERROR, {type:_-8B}); return; }; if (!(_arg2 is Number)){ _-7N(ERROR, {type:_-D7, error:"Invalid type", arg:_arg2}); return; }; if (this._-8X[_arg1]){ _local3 = _-5T(this._-8X[_arg1]); if (_local3.value == _arg2){ return; }; _local3.value = _arg2; } else { this._-13.push(_arg1); this._-8X[_arg1] = new _-5T(_arg2); }; this._-Bj++; } private function _-He(_arg1:Object):void{ this._-7e[_arg1.id] = {properties:_arg1.properties, count:_arg1.count}; } private function sync(_arg1:Event=null):void{ var _local3:String; if (((this._-1A) || ((this._-Bj == this._-7R)))){ return; }; this._-7R = this._-Bj; var _local2:Object = {}; for (_local3 in this._-8X) { _local2[_local3] = _-5T(this._-8X[_local3]).value; }; _-9k.put(_-2p, _local2, this._-LF); this._-1A = true; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{ return (this._-13[(_arg1 - 1)]); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{ if (!this._-8X[_arg1]){ return (false); }; this._-13.splice(this._-13.indexOf(_arg1), 1); delete this._-8X[_arg1]; return (true); } private function _-8U(_arg1:_-9k):void{ var _local2:String; var _local3:Number; if (_arg1.error){ _-7N(ERROR, {type:IO_ERROR, error:_arg1.error}); return; }; this._-8X = {}; this._-13 = new Array(); if (_arg1.data){ for (_local2 in _arg1.data) { this._-13.push(_local2); this._-8X[_local2] = new _-5T(_arg1.data[_local2]); }; }; for (_local2 in this._-7e) { _local3 = this._-7e[_local2].count; if (this._-8X[(_local2 + _-3u)]){ _local3 = (_local3 - this._-8X[_local2]); }; if (_local3 == 0){ } else { this._-GU({id:_local2, count:_local3, properties:this._-7e[_local2].properties}); }; }; _-7N(READY, {}); } private function _-Ir(_arg1:Object=null):void{ this._-8X = null; } public static function _-7N(_arg1:String, _arg2:Object):void{ _-3v._-7N(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _-3v.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _-3v.addEventListener(_arg1, _arg2); } } }//package mochi.as3
Section 181
//_-Ci (mochi.as3._-Ci) package mochi.as3 { import flash.display.*; import flash.text.*; public class _-Ci { private static var boardID:String; public static var _-E7:Object; public static var _-4N:Object; public static function _-0c(_arg1:Object=null):void{ var n:Number; var options = _arg1; if (options != null){ delete options.clip; _-6L._-AC(); _-6L._-6U(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; } else { if ((options.score is _-5T)){ options.score = options.score.value; }; }; n = Number(options.score); if (isNaN(n)){ trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'")); } else { if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){ trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite")); } else { if (Math.floor(n) != n){ trace((("WARNING: Submitted score '" + options.score) + "' will be truncated")); }; options.score = n; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (_-6L.clip != null){ if ((_-6L.clip is MovieClip)){ _-6L.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; }; } else { options = {}; if ((_-6L.clip is MovieClip)){ _-6L.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; if (options.onClose != null){ _-4N = options.onClose; } else { _-4N = function ():void{ if ((_-6L.clip is MovieClip)){ _-6L.clip.play(); } else { trace("Warning: Container is not a MovieClip, cannot call default onClose."); }; }; }; if (options.onError != null){ _-E7 = options.onError; } else { _-E7 = null; }; if (options.boardID == null){ if (_-Ci.boardID != null){ options.boardID = _-Ci.boardID; }; }; _-6L._-0q(options.boardID, true); trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal"); _-6L.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function _-7j():void{ _-6L.send("scores_closeLeaderboard"); } public static function _-90(_arg1:Object, _arg2:Object=null):void{ _-6L.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function _-3z(_arg1:Object, _arg2:Object=null):void{ _-6L.send("scores_requestList", null, _arg1, _arg2); } public static function _-2s(_arg1:Object):Object{ var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; var _local2:Object = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } public static function _-Kt(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ _arg1 = Number(_arg1); if (isNaN(_arg1)){ trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'")); } else { if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){ trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite")); } else { if (Math.floor(_arg1) != _arg1){ trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated")); }; _arg1 = Number(_arg1); }; }; _-6L.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (((((_arg1) && ((_arg1.error == true)))) && (_-E7))){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; _-E7(_arg1.errorCode); _-6L._-Gs(); return; }; _-4N(); _-6L._-Gs(); } public static function _-Dz(_arg1:String):void{ _-6L._-0q(_arg1, true); _-Ci.boardID = _arg1; _-6L.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi.as3
Section 182
//_-LH (mochi.as3._-LH) package mochi.as3 { public class _-LH { public static const _-Iw:String = "StoreHide"; public static const _-A9:String = "NoUser"; public static const IO_ERROR:String = "IOError"; public static const _-Ig:String = "ItemNew"; public static const _-E0:String = "ItemOwned"; public static const package:String = "StoreItems"; public static const ERROR:String = "Error"; public static const _-Bi:String = "StoreShow"; public static var _inventory:_-Af; public static function _-7N(_arg1:String, _arg2:Object):void{ _-57._-7N(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _-57.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _-57.addEventListener(_arg1, _arg2); } public static function _-Iq():void{ _-6L.send("coins_getStoreItems"); } public static function get _-F-():_-Af{ return (_inventory); } public static function _-1I(_arg1:Object=null):void{ _-6L._-6U(); _-6L.send("coins_showStore", {options:_arg1}, null, null); } public static function _-P(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showItem call must pass an Object with an item key"); return; }; _-6L._-6U(); _-6L.send("coins_showItem", {options:_arg1}, null, null); } public static function _-DA():String{ return (_-6L._-DA()); } public static function _-9V(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showVideo call must pass an Object with an item key"); return; }; _-6L._-6U(); _-6L.send("coins_showVideo", {options:_arg1}, null, null); } _-57.addEventListener(_-57._-FU, function (_arg1:Object):void{ _inventory = new _-Af(); }); _-57.addEventListener(_-57._-Cz, function (_arg1:Object):void{ _inventory = null; }); } }//package mochi.as3
Section 183
//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.2.0.4537"; 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 184
//ByteArrayAsset (mx.core.ByteArrayAsset) package mx.core { import flash.utils.*; public class ByteArrayAsset extends ByteArray implements IFlexAsset { mx_internal static const VERSION:String = "3.2.0.4537"; } }//package mx.core
Section 185
//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.2.0.4537"; 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 186
//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.2.0.4537"; 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 187
//FlexLoader (mx.core.FlexLoader) package mx.core { import flash.display.*; import mx.utils.*; public class FlexLoader extends Loader { mx_internal static const VERSION:String = "3.2.0.4537"; public function FlexLoader(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 188
//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.2.0.4537"; 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 189
//FlexShape (mx.core.FlexShape) package mx.core { import flash.display.*; import mx.utils.*; public class FlexShape extends Shape { mx_internal static const VERSION:String = "3.2.0.4537"; public function FlexShape(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 190
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.2.0.4537"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 191
//FlexVersion (mx.core.FlexVersion) package mx.core { import mx.resources.*; public class FlexVersion { public static const VERSION_2_0_1:uint = 33554433; public static const CURRENT_VERSION:uint = 50331648; public static const VERSION_3_0:uint = 50331648; public static const VERSION_2_0:uint = 33554432; public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"; public static const VERSION_ALREADY_SET:String = "versionAlreadySet"; mx_internal static const VERSION:String = "3.2.0.4537"; private static var compatibilityVersionChanged:Boolean = false; private static var _compatibilityErrorFunction:Function; private static var _compatibilityVersion:uint = 50331648; private static var compatibilityVersionRead:Boolean = false; mx_internal static function changeCompatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function set compatibilityVersion(_arg1:uint):void{ var _local2:String; if (_arg1 == _compatibilityVersion){ return; }; if (compatibilityVersionChanged){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET); }; if (compatibilityVersionRead){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ); }; _compatibilityVersion = _arg1; compatibilityVersionChanged = true; } public static function get compatibilityVersion():uint{ compatibilityVersionRead = true; return (_compatibilityVersion); } public static function set compatibilityErrorFunction(_arg1:Function):void{ _compatibilityErrorFunction = _arg1; } public static function set compatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function get compatibilityErrorFunction():Function{ return (_compatibilityErrorFunction); } public static function get compatibilityVersionString():String{ var _local1:uint = ((compatibilityVersion >> 24) & 0xFF); var _local2:uint = ((compatibilityVersion >> 16) & 0xFF); var _local3:uint = (compatibilityVersion & 0xFFFF); return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString())); } } }//package mx.core
Section 192
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.2.0.4537"; } }//package mx.core
Section 193
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 194
//IButton (mx.core.IButton) package mx.core { public interface IButton extends IUIComponent { function get emphasized():Boolean; function set emphasized(_arg1:Boolean):void; function callLater(_arg1:Function, _arg2:Array=null):void; } }//package mx.core
Section 195
//IChildList (mx.core.IChildList) package mx.core { import flash.display.*; import flash.geom.*; public interface IChildList { function get numChildren():int; function removeChild(_arg1:DisplayObject):DisplayObject; function getChildByName(_arg1:String):DisplayObject; function removeChildAt(_arg1:int):DisplayObject; function getChildIndex(_arg1:DisplayObject):int; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function getObjectsUnderPoint(_arg1:Point):Array; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function getChildAt(_arg1:int):DisplayObject; function addChild(_arg1:DisplayObject):DisplayObject; function contains(_arg1:DisplayObject):Boolean; } }//package mx.core
Section 196
//IContainer (mx.core.IContainer) package mx.core { import flash.display.*; import flash.text.*; import flash.geom.*; import mx.managers.*; import flash.media.*; public interface IContainer extends IUIComponent { function set hitArea(_arg1:Sprite):void; function swapChildrenAt(_arg1:int, _arg2:int):void; function getChildByName(_arg1:String):DisplayObject; function get doubleClickEnabled():Boolean; function get graphics():Graphics; function get useHandCursor():Boolean; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function set mouseChildren(_arg1:Boolean):void; function set creatingContentPane(_arg1:Boolean):void; function get textSnapshot():TextSnapshot; function getChildIndex(_arg1:DisplayObject):int; function set doubleClickEnabled(_arg1:Boolean):void; function getObjectsUnderPoint(_arg1:Point):Array; function get creatingContentPane():Boolean; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function get soundTransform():SoundTransform; function set useHandCursor(_arg1:Boolean):void; function get numChildren():int; function contains(_arg1:DisplayObject):Boolean; function get verticalScrollPosition():Number; function set defaultButton(_arg1:IFlexDisplayObject):void; function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void; function set horizontalScrollPosition(_arg1:Number):void; function get focusManager():IFocusManager; function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void; function set mouseEnabled(_arg1:Boolean):void; function getChildAt(_arg1:int):DisplayObject; function set soundTransform(_arg1:SoundTransform):void; function get tabChildren():Boolean; function get tabIndex():int; function set focusRect(_arg1:Object):void; function get hitArea():Sprite; function get mouseChildren():Boolean; function removeChildAt(_arg1:int):DisplayObject; function get defaultButton():IFlexDisplayObject; function stopDrag():void; function set tabEnabled(_arg1:Boolean):void; function get horizontalScrollPosition():Number; function get focusRect():Object; function get viewMetrics():EdgeMetrics; function set verticalScrollPosition(_arg1:Number):void; function get dropTarget():DisplayObject; function get mouseEnabled():Boolean; function set tabChildren(_arg1:Boolean):void; function set buttonMode(_arg1:Boolean):void; function get tabEnabled():Boolean; function get buttonMode():Boolean; function removeChild(_arg1:DisplayObject):DisplayObject; function set tabIndex(_arg1:int):void; function addChild(_arg1:DisplayObject):DisplayObject; function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean; } }//package mx.core
Section 197
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 198
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.display.*; import flash.events.*; 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 199
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { public interface IFlexModuleFactory { function create(... _args):Object; function info():Object; } }//package mx.core
Section 200
//IInvalidating (mx.core.IInvalidating) package mx.core { public interface IInvalidating { function validateNow():void; function invalidateSize():void; function invalidateDisplayList():void; function invalidateProperties():void; } }//package mx.core
Section 201
//IProgrammaticSkin (mx.core.IProgrammaticSkin) package mx.core { public interface IProgrammaticSkin { function validateNow():void; function validateDisplayList():void; } }//package mx.core
Section 202
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 203
//IRectangularBorder (mx.core.IRectangularBorder) package mx.core { import flash.geom.*; public interface IRectangularBorder extends IBorder { function get backgroundImageBounds():Rectangle; function get hasBackgroundImage():Boolean; function set backgroundImageBounds(_arg1:Rectangle):void; function layoutBackgroundImage():void; } }//package mx.core
Section 204
//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 205
//ISWFBridgeGroup (mx.core.ISWFBridgeGroup) package mx.core { import flash.events.*; public interface ISWFBridgeGroup { function getChildBridgeProvider(_arg1:IEventDispatcher):ISWFBridgeProvider; function removeChildBridge(_arg1:IEventDispatcher):void; function get parentBridge():IEventDispatcher; function addChildBridge(_arg1:IEventDispatcher, _arg2:ISWFBridgeProvider):void; function set parentBridge(_arg1:IEventDispatcher):void; function containsBridge(_arg1:IEventDispatcher):Boolean; function getChildBridges():Array; } }//package mx.core
Section 206
//ISWFBridgeProvider (mx.core.ISWFBridgeProvider) package mx.core { import flash.events.*; public interface ISWFBridgeProvider { function get childAllowsParent():Boolean; function get swfBridge():IEventDispatcher; function get parentAllowsChild():Boolean; } }//package mx.core
Section 207
//IUIComponent (mx.core.IUIComponent) package mx.core { import flash.display.*; import mx.managers.*; public interface IUIComponent extends IFlexDisplayObject { function set focusPane(_arg1:Sprite):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function set isPopUp(_arg1:Boolean):void; function get explicitMinHeight():Number; function get percentWidth():Number; function get isPopUp():Boolean; function get owner():DisplayObjectContainer; function get percentHeight():Number; function get baselinePosition():Number; function owns(_arg1:DisplayObject):Boolean; function initialize():void; function get maxWidth():Number; function get minWidth():Number; function getExplicitOrMeasuredWidth():Number; function get explicitMaxWidth():Number; function get explicitMaxHeight():Number; function set percentHeight(_arg1:Number):void; function get minHeight():Number; function set percentWidth(_arg1:Number):void; function get document():Object; function get focusPane():Sprite; function getExplicitOrMeasuredHeight():Number; function set tweeningProperties(_arg1:Array):void; function set explicitWidth(_arg1:Number):void; function set measuredMinHeight(_arg1:Number):void; function get explicitMinWidth():Number; function get tweeningProperties():Array; function get maxHeight():Number; function set owner(_arg1:DisplayObjectContainer):void; function set includeInLayout(_arg1:Boolean):void; function setVisible(_arg1:Boolean, _arg2:Boolean=false):void; function parentChanged(_arg1:DisplayObjectContainer):void; function get explicitWidth():Number; function get measuredMinHeight():Number; function set measuredMinWidth(_arg1:Number):void; function set explicitHeight(_arg1:Number):void; function get includeInLayout():Boolean; function get measuredMinWidth():Number; function get explicitHeight():Number; function set systemManager(_arg1:ISystemManager):void; function set document(_arg1:Object):void; function get systemManager():ISystemManager; } }//package mx.core
Section 208
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.2.0.4537"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } 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 209
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset) package mx.core { import flash.display.*; import flash.events.*; import flash.system.*; import flash.utils.*; 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 requestedHeight:Number; private var requestedWidth:Number; mx_internal static const VERSION:String = "3.2.0.4537"; 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){ requestedWidth = _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(requestedWidth)){ loader.width = requestedWidth; }; if (!isNaN(requestedHeight)){ loader.height = requestedHeight; }; dispatchEvent(_arg1); } override public function set height(_arg1:Number):void{ if (!initialized){ requestedHeight = _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 210
//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 211
//Singleton (mx.core.Singleton) package mx.core { public class Singleton { mx_internal static const VERSION:String = "3.2.0.4537"; private static var classMap:Object = {}; public static function registerClass(_arg1:String, _arg2:Class):void{ var _local3:Class = classMap[_arg1]; if (!_local3){ classMap[_arg1] = _arg2; }; } public static function getClass(_arg1:String):Class{ return (classMap[_arg1]); } public static function getInstance(_arg1:String):Object{ var _local2:Class = classMap[_arg1]; if (!_local2){ throw (new Error((("No class registered for interface '" + _arg1) + "'."))); }; return (_local2["getInstance"]()); } } }//package mx.core
Section 212
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.2.0.4537"; } }//package mx.core
Section 213
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.2.0.4537"; public function SpriteAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } 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 214
//UIComponentGlobals (mx.core.UIComponentGlobals) package mx.core { import flash.display.*; import flash.geom.*; import mx.managers.*; public class UIComponentGlobals { mx_internal static var callLaterSuspendCount:int = 0; mx_internal static var layoutManager:ILayoutManager; mx_internal static var nextFocusObject:InteractiveObject; mx_internal static var designTime:Boolean = false; mx_internal static var tempMatrix:Matrix = new Matrix(); mx_internal static var callLaterDispatcherCount:int = 0; private static var _catchCallLaterExceptions:Boolean = false; public static function set catchCallLaterExceptions(_arg1:Boolean):void{ _catchCallLaterExceptions = _arg1; } public static function get designMode():Boolean{ return (designTime); } public static function set designMode(_arg1:Boolean):void{ designTime = _arg1; } public static function get catchCallLaterExceptions():Boolean{ return (_catchCallLaterExceptions); } } }//package mx.core
Section 215
//ModuleEvent (mx.events.ModuleEvent) package mx.events { import flash.events.*; import mx.modules.*; public class ModuleEvent extends ProgressEvent { public var errorText:String; private var _module:IModuleInfo; public static const READY:String = "ready"; public static const ERROR:String = "error"; public static const PROGRESS:String = "progress"; mx_internal static const VERSION:String = "3.2.0.4537"; public static const SETUP:String = "setup"; public static const UNLOAD:String = "unload"; public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; this._module = _arg7; } public function get module():IModuleInfo{ if (_module){ return (_module); }; return ((target as IModuleInfo)); } override public function clone():Event{ return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module)); } } }//package mx.events
Section 216
//ResourceEvent (mx.events.ResourceEvent) package mx.events { import flash.events.*; public class ResourceEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.2.0.4537"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 217
//StyleEvent (mx.events.StyleEvent) package mx.events { import flash.events.*; public class StyleEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.2.0.4537"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 218
//RectangularDropShadow (mx.graphics.RectangularDropShadow) package mx.graphics { import flash.display.*; import mx.core.*; import flash.geom.*; import mx.utils.*; import flash.filters.*; public class RectangularDropShadow { private var leftShadow:BitmapData; private var _tlRadius:Number;// = 0 private var _trRadius:Number;// = 0 private var _angle:Number;// = 45 private var topShadow:BitmapData; private var _distance:Number;// = 4 private var rightShadow:BitmapData; private var _alpha:Number;// = 0.4 private var shadow:BitmapData; private var _brRadius:Number;// = 0 private var _blRadius:Number;// = 0 private var _color:int;// = 0 private var bottomShadow:BitmapData; private var changed:Boolean;// = true mx_internal static const VERSION:String = "3.2.0.4537"; public function get blRadius():Number{ return (_blRadius); } public function set brRadius(_arg1:Number):void{ if (_brRadius != _arg1){ _brRadius = _arg1; changed = true; }; } public function set color(_arg1:int):void{ if (_color != _arg1){ _color = _arg1; changed = true; }; } public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{ var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; if (changed){ createShadowBitmaps(); changed = false; }; _arg4 = Math.ceil(_arg4); _arg5 = Math.ceil(_arg5); var _local6:int = (leftShadow) ? leftShadow.width : 0; var _local7:int = (rightShadow) ? rightShadow.width : 0; var _local8:int = (topShadow) ? topShadow.height : 0; var _local9:int = (bottomShadow) ? bottomShadow.height : 0; var _local10:int = (_local6 + _local7); var _local11:int = (_local8 + _local9); var _local12:Number = ((_arg5 + _local11) / 2); var _local13:Number = ((_arg4 + _local10) / 2); var _local14:Matrix = new Matrix(); if (((leftShadow) || (topShadow))){ _local15 = Math.min((tlRadius + _local10), _local13); _local16 = Math.min((tlRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16); _arg1.endFill(); }; if (((rightShadow) || (topShadow))){ _local17 = Math.min((trRadius + _local10), _local13); _local18 = Math.min((trRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18); _arg1.endFill(); }; if (((leftShadow) || (bottomShadow))){ _local19 = Math.min((blRadius + _local10), _local13); _local20 = Math.min((blRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20); _arg1.endFill(); }; if (((rightShadow) || (bottomShadow))){ _local21 = Math.min((brRadius + _local10), _local13); _local22 = Math.min((brRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22); _arg1.endFill(); }; if (leftShadow){ _local14.tx = (_arg2 - _local6); _local14.ty = 0; _arg1.beginBitmapFill(leftShadow, _local14); _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20)); _arg1.endFill(); }; if (rightShadow){ _local14.tx = (_arg2 + _arg4); _local14.ty = 0; _arg1.beginBitmapFill(rightShadow, _local14); _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22)); _arg1.endFill(); }; if (topShadow){ _local14.tx = 0; _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(topShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8); _arg1.endFill(); }; if (bottomShadow){ _local14.tx = 0; _local14.ty = (_arg3 + _arg5); _arg1.beginBitmapFill(bottomShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9); _arg1.endFill(); }; } public function get brRadius():Number{ return (_brRadius); } public function get angle():Number{ return (_angle); } private function createShadowBitmaps():void{ var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius)); var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius)); if ((((_local1 < 0)) || ((_local2 < 0)))){ return; }; var _local3:Shape = new FlexShape(); var _local4:Graphics = _local3.graphics; _local4.beginFill(0xFFFFFF); GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius); _local4.endFill(); var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0); _local5.draw(_local3, new Matrix()); var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha); _local6.knockout = true; var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2); var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6); var _local9:Number = (_local7.left - _local8.left); var _local10:Number = (_local8.right - _local7.right); var _local11:Number = (_local7.top - _local8.top); var _local12:Number = (_local8.bottom - _local7.bottom); shadow = new BitmapData(_local8.width, _local8.height); shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6); var _local13:Point = new Point(0, 0); var _local14:Rectangle = new Rectangle(); if (_local9 > 0){ _local14.x = 0; _local14.y = ((tlRadius + _local11) + _local12); _local14.width = _local9; _local14.height = 1; leftShadow = new BitmapData(_local9, 1); leftShadow.copyPixels(shadow, _local14, _local13); } else { leftShadow = null; }; if (_local10 > 0){ _local14.x = (shadow.width - _local10); _local14.y = ((trRadius + _local11) + _local12); _local14.width = _local10; _local14.height = 1; rightShadow = new BitmapData(_local10, 1); rightShadow.copyPixels(shadow, _local14, _local13); } else { rightShadow = null; }; if (_local11 > 0){ _local14.x = ((tlRadius + _local9) + _local10); _local14.y = 0; _local14.width = 1; _local14.height = _local11; topShadow = new BitmapData(1, _local11); topShadow.copyPixels(shadow, _local14, _local13); } else { topShadow = null; }; if (_local12 > 0){ _local14.x = ((blRadius + _local9) + _local10); _local14.y = (shadow.height - _local12); _local14.width = 1; _local14.height = _local12; bottomShadow = new BitmapData(1, _local12); bottomShadow.copyPixels(shadow, _local14, _local13); } else { bottomShadow = null; }; } public function get alpha():Number{ return (_alpha); } public function get color():int{ return (_color); } public function set angle(_arg1:Number):void{ if (_angle != _arg1){ _angle = _arg1; changed = true; }; } public function set trRadius(_arg1:Number):void{ if (_trRadius != _arg1){ _trRadius = _arg1; changed = true; }; } public function set tlRadius(_arg1:Number):void{ if (_tlRadius != _arg1){ _tlRadius = _arg1; changed = true; }; } public function get trRadius():Number{ return (_trRadius); } public function set distance(_arg1:Number):void{ if (_distance != _arg1){ _distance = _arg1; changed = true; }; } public function get distance():Number{ return (_distance); } public function get tlRadius():Number{ return (_tlRadius); } public function set alpha(_arg1:Number):void{ if (_alpha != _arg1){ _alpha = _arg1; changed = true; }; } public function set blRadius(_arg1:Number):void{ if (_blRadius != _arg1){ _blRadius = _arg1; changed = true; }; } } }//package mx.graphics
Section 219
//IFocusManager (mx.managers.IFocusManager) package mx.managers { import flash.display.*; import mx.core.*; import flash.events.*; public interface IFocusManager { function get focusPane():Sprite; function getFocus():IFocusManagerComponent; function deactivate():void; function set defaultButton(_arg1:IButton):void; function set focusPane(_arg1:Sprite):void; function set showFocusIndicator(_arg1:Boolean):void; function moveFocus(_arg1:String, _arg2:DisplayObject=null):void; function addSWFBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function removeSWFBridge(_arg1:IEventDispatcher):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent; function get nextTabIndex():int; function get defaultButton():IButton; function get showFocusIndicator():Boolean; function setFocus(_arg1:IFocusManagerComponent):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent; } }//package mx.managers
Section 220
//IFocusManagerComponent (mx.managers.IFocusManagerComponent) package mx.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package mx.managers
Section 221
//IFocusManagerContainer (mx.managers.IFocusManagerContainer) package mx.managers { import flash.display.*; import flash.events.*; public interface IFocusManagerContainer extends IEventDispatcher { function set focusManager(_arg1:IFocusManager):void; function get focusManager():IFocusManager; function get systemManager():ISystemManager; function contains(_arg1:DisplayObject):Boolean; } }//package mx.managers
Section 222
//ILayoutManager (mx.managers.ILayoutManager) package mx.managers { import flash.events.*; public interface ILayoutManager extends IEventDispatcher { function validateNow():void; function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void; function isInvalid():Boolean; function invalidateDisplayList(_arg1:ILayoutManagerClient):void; function set usePhasedInstantiation(_arg1:Boolean):void; function invalidateSize(_arg1:ILayoutManagerClient):void; function get usePhasedInstantiation():Boolean; function invalidateProperties(_arg1:ILayoutManagerClient):void; } }//package mx.managers
Section 223
//ILayoutManagerClient (mx.managers.ILayoutManagerClient) package mx.managers { import flash.events.*; public interface ILayoutManagerClient extends IEventDispatcher { function get updateCompletePendingFlag():Boolean; function set updateCompletePendingFlag(_arg1:Boolean):void; function set initialized(_arg1:Boolean):void; function validateProperties():void; function validateDisplayList():void; function get nestLevel():int; function get initialized():Boolean; function get processedDescriptors():Boolean; function validateSize(_arg1:Boolean=false):void; function set nestLevel(_arg1:int):void; function set processedDescriptors(_arg1:Boolean):void; } }//package mx.managers
Section 224
//ISystemManager (mx.managers.ISystemManager) package mx.managers { import flash.display.*; import mx.core.*; import flash.events.*; import flash.text.*; import flash.geom.*; public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory { function set focusPane(_arg1:Sprite):void; function get toolTipChildren():IChildList; function useSWFBridge():Boolean; function isFontFaceEmbedded(_arg1:TextFormat):Boolean; function deployMouseShields(_arg1:Boolean):void; function get rawChildren():IChildList; function get topLevelSystemManager():ISystemManager; function dispatchEventFromSWFBridges(_arg1:Event, _arg2:IEventDispatcher=null, _arg3:Boolean=false, _arg4:Boolean=false):void; function getSandboxRoot():DisplayObject; function get swfBridgeGroup():ISWFBridgeGroup; function removeFocusManager(_arg1:IFocusManagerContainer):void; function addChildToSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function get document():Object; function get focusPane():Sprite; function get loaderInfo():LoaderInfo; function addChildBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function getTopLevelRoot():DisplayObject; function removeChildBridge(_arg1:IEventDispatcher):void; function isDisplayObjectInABridgedApplication(_arg1:DisplayObject):Boolean; function get popUpChildren():IChildList; function get screen():Rectangle; function removeChildFromSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function getDefinitionByName(_arg1:String):Object; function activate(_arg1:IFocusManagerContainer):void; function deactivate(_arg1:IFocusManagerContainer):void; function get cursorChildren():IChildList; function set document(_arg1:Object):void; function get embeddedFontList():Object; function set numModalWindows(_arg1:int):void; function isTopLevel():Boolean; function isTopLevelRoot():Boolean; function get numModalWindows():int; function addFocusManager(_arg1:IFocusManagerContainer):void; function get stage():Stage; function getVisibleApplicationRect(_arg1:Rectangle=null):Rectangle; } }//package mx.managers
Section 225
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var changingListenersInOtherSystemManagers:Boolean; public static var bootstrapLoaderInfoURL:String; public static var showMouseCursor:Boolean; } }//package mx.managers
Section 226
//IModuleInfo (mx.modules.IModuleInfo) package mx.modules { import mx.core.*; import flash.events.*; import flash.system.*; import flash.utils.*; public interface IModuleInfo extends IEventDispatcher { function get ready():Boolean; function get loaded():Boolean; function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void; function release():void; function get error():Boolean; function get data():Object; function publish(_arg1:IFlexModuleFactory):void; function get factory():IFlexModuleFactory; function set data(_arg1:Object):void; function get url():String; function get setup():Boolean; function unload():void; } }//package mx.modules
Section 227
//ModuleManager (mx.modules.ModuleManager) package mx.modules { import mx.core.*; public class ModuleManager { mx_internal static const VERSION:String = "3.2.0.4537"; public static function getModule(_arg1:String):IModuleInfo{ return (getSingleton().getModule(_arg1)); } private static function getSingleton():Object{ if (!ModuleManagerGlobals.managerSingleton){ ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl(); }; return (ModuleManagerGlobals.managerSingleton); } public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ return (getSingleton().getAssociatedFactory(_arg1)); } } }//package mx.modules import flash.display.*; import mx.core.*; import flash.events.*; import mx.events.*; import flash.system.*; import flash.net.*; import flash.utils.*; class ModuleInfoProxy extends EventDispatcher implements IModuleInfo { private var _data:Object; private var info:ModuleInfo; private var referenced:Boolean;// = false private function ModuleInfoProxy(_arg1:ModuleInfo){ this.info = _arg1; _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true); } public function get loaded():Boolean{ return (info.loaded); } public function release():void{ if (referenced){ info.removeReference(); referenced = false; }; } public function get error():Boolean{ return (info.error); } public function get factory():IFlexModuleFactory{ return (info.factory); } public function publish(_arg1:IFlexModuleFactory):void{ info.publish(_arg1); } public function set data(_arg1:Object):void{ _data = _arg1; } public function get ready():Boolean{ return (info.ready); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ var _local4:ModuleEvent; info.resurrect(); if (!referenced){ info.addReference(); referenced = true; }; if (info.error){ dispatchEvent(new ModuleEvent(ModuleEvent.ERROR)); } else { if (info.loaded){ if (info.setup){ dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); if (info.ready){ _local4 = new ModuleEvent(ModuleEvent.PROGRESS); _local4.bytesLoaded = info.size; _local4.bytesTotal = info.size; dispatchEvent(_local4); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); }; }; } else { info.load(_arg1, _arg2, _arg3); }; }; } private function moduleEventHandler(_arg1:ModuleEvent):void{ dispatchEvent(_arg1); } public function get url():String{ return (info.url); } public function get data():Object{ return (_data); } public function get setup():Boolean{ return (info.setup); } public function unload():void{ info.unload(); info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler); info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler); info.removeEventListener(ModuleEvent.READY, moduleEventHandler); info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler); info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler); } } class ModuleManagerImpl extends EventDispatcher { private var moduleList:Object; private function ModuleManagerImpl(){ moduleList = {}; super(); } public function getModule(_arg1:String):IModuleInfo{ var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo); if (!_local2){ _local2 = new ModuleInfo(_arg1); moduleList[_arg1] = _local2; }; return (new ModuleInfoProxy(_local2)); } public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ var m:Object; var info:ModuleInfo; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for each (m in moduleList) { info = (m as ModuleInfo); if (!info.ready){ } else { domain = info.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return (info.factory); }; } catch(error:Error) { }; }; }; return (null); } } class ModuleInfo extends EventDispatcher { private var _error:Boolean;// = false private var loader:Loader; private var factoryInfo:FactoryInfo; private var limbo:Dictionary; private var _loaded:Boolean;// = false private var _ready:Boolean;// = false private var numReferences:int;// = 0 private var _url:String; private var _setup:Boolean;// = false private function ModuleInfo(_arg1:String){ _url = _arg1; } private function clearLoader():void{ if (loader){ if (loader.contentLoaderInfo){ loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); }; try { if (loader.content){ loader.content.removeEventListener("ready", readyHandler); loader.content.removeEventListener("error", moduleErrorHandler); }; } catch(error:Error) { }; if (_loaded){ try { loader.close(); } catch(error:Error) { }; }; try { loader.unload(); } catch(error:Error) { }; loader = null; }; } public function get size():int{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0); } public function get loaded():Boolean{ return ((limbo) ? false : _loaded); } public function release():void{ if (((_ready) && (!(limbo)))){ limbo = new Dictionary(true); limbo[factoryInfo] = 1; factoryInfo = null; } else { unload(); }; } public function get error():Boolean{ return ((limbo) ? false : _error); } public function get factory():IFlexModuleFactory{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null); } public function completeHandler(_arg1:Event):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; dispatchEvent(_local2); } public function publish(_arg1:IFlexModuleFactory):void{ if (factoryInfo){ return; }; if (_url.indexOf("published://") != 0){ return; }; factoryInfo = new FactoryInfo(); factoryInfo.factory = _arg1; _loaded = true; _setup = true; _ready = true; _error = false; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS)); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function initHandler(_arg1:Event):void{ var moduleEvent:ModuleEvent; var event = _arg1; factoryInfo = new FactoryInfo(); try { factoryInfo.factory = (loader.content as IFlexModuleFactory); } catch(error:Error) { }; if (!factoryInfo.factory){ moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable); moduleEvent.bytesLoaded = 0; moduleEvent.bytesTotal = 0; moduleEvent.errorText = "SWF is not a loadable module"; dispatchEvent(moduleEvent); return; }; loader.content.addEventListener("ready", readyHandler); loader.content.addEventListener("error", moduleErrorHandler); try { factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain; } catch(error:Error) { }; _setup = true; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); } public function resurrect():void{ var _local1:Object; if (((!(factoryInfo)) && (limbo))){ for (_local1 in limbo) { factoryInfo = (_local1 as FactoryInfo); break; }; limbo = null; }; if (!factoryInfo){ if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; loader = null; _loaded = false; _setup = false; _ready = false; _error = false; }; } public function errorHandler(_arg1:ErrorEvent):void{ _error = true; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = 0; _local2.bytesTotal = 0; _local2.errorText = _arg1.text; dispatchEvent(_local2); } public function get ready():Boolean{ return ((limbo) ? false : _ready); } private function loadBytes(_arg1:ApplicationDomain, _arg2:ByteArray):void{ var _local3:LoaderContext = new LoaderContext(); _local3.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local3)){ _local3["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.loadBytes(_arg2, _local3); } public function removeReference():void{ numReferences--; if (numReferences == 0){ release(); }; } public function addReference():void{ numReferences++; } public function progressHandler(_arg1:ProgressEvent):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ if (_loaded){ return; }; _loaded = true; limbo = null; if (_arg3){ loadBytes(_arg1, _arg3); return; }; if (_url.indexOf("published://") == 0){ return; }; var _local4:URLRequest = new URLRequest(_url); var _local5:LoaderContext = new LoaderContext(); _local5.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); _local5.securityDomain = _arg2; if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){ _local5.securityDomain = SecurityDomain.currentDomain; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load(_local4, _local5); } public function get url():String{ return (_url); } public function get applicationDomain():ApplicationDomain{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null); } public function moduleErrorHandler(_arg1:Event):void{ var _local2:ModuleEvent; _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); if ((_arg1 is ModuleEvent)){ _local2 = ModuleEvent(_arg1); } else { _local2 = new ModuleEvent(ModuleEvent.ERROR); }; dispatchEvent(_local2); } public function readyHandler(_arg1:Event):void{ _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function get setup():Boolean{ return ((limbo) ? false : _setup); } public function unload():void{ clearLoader(); if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; limbo = null; factoryInfo = null; _loaded = false; _setup = false; _ready = false; _error = false; } } class FactoryInfo { public var bytesTotal:int;// = 0 public var factory:IFlexModuleFactory; public var applicationDomain:ApplicationDomain; private function FactoryInfo(){ } }
Section 228
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 229
//IResourceBundle (mx.resources.IResourceBundle) package mx.resources { public interface IResourceBundle { function get content():Object; function get locale():String; function get bundleName():String; } }//package mx.resources
Section 230
//IResourceManager (mx.resources.IResourceManager) package mx.resources { import flash.events.*; import flash.system.*; public interface IResourceManager extends IEventDispatcher { function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean; function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class; function getLocales():Array; function removeResourceBundlesForLocale(_arg1:String):void; function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle; function get localeChain():Array; function getInt(_arg1:String, _arg2:String, _arg3:String=null):int; function update():void; function set localeChain(_arg1:Array):void; function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint; function addResourceBundle(_arg1:IResourceBundle):void; function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array; function getBundleNamesForLocale(_arg1:String):Array; function removeResourceBundle(_arg1:String, _arg2:String):void; function getObject(_arg1:String, _arg2:String, _arg3:String=null); function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String; function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void; function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void; function getPreferredLocaleChain():Array; function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle; function initializeLocaleChain(_arg1:Array):void; function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number; } }//package mx.resources
Section 231
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 232
//LocaleSorter (mx.resources.LocaleSorter) package mx.resources { public class LocaleSorter { mx_internal static const VERSION:String = "3.2.0.4537"; private static function normalizeLocale(_arg1:String):String{ return (_arg1.toLowerCase().replace(/-/g, "_")); } public static function sortLocalesByPreference(_arg1:Array, _arg2:Array, _arg3:String=null, _arg4:Boolean=false):Array{ var result:Array; var hasLocale:Object; var i:int; var j:int; var k:int; var l:int; var locale:String; var plocale:LocaleID; var appLocales = _arg1; var systemPreferences = _arg2; var ultimateFallbackLocale = _arg3; var addAll = _arg4; var promote:Function = function (_arg1:String):void{ if (typeof(hasLocale[_arg1]) != "undefined"){ result.push(appLocales[hasLocale[_arg1]]); delete hasLocale[_arg1]; }; }; result = []; hasLocale = {}; var locales:Array = trimAndNormalize(appLocales); var preferenceLocales:Array = trimAndNormalize(systemPreferences); addUltimateFallbackLocale(preferenceLocales, ultimateFallbackLocale); j = 0; while (j < locales.length) { hasLocale[locales[j]] = j; j = (j + 1); }; i = 0; l = preferenceLocales.length; while (i < l) { plocale = LocaleID.fromString(preferenceLocales[i]); promote(preferenceLocales[i]); promote(plocale.toString()); while (plocale.transformToParent()) { promote(plocale.toString()); }; plocale = LocaleID.fromString(preferenceLocales[i]); j = 0; while (j < l) { locale = preferenceLocales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; j = 0; k = locales.length; while (j < k) { locale = locales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; i = (i + 1); }; if (addAll){ j = 0; k = locales.length; while (j < k) { promote(locales[j]); j = (j + 1); }; }; return (result); } private static function addUltimateFallbackLocale(_arg1:Array, _arg2:String):void{ var _local3:String; if (((!((_arg2 == null))) && (!((_arg2 == ""))))){ _local3 = normalizeLocale(_arg2); if (_arg1.indexOf(_local3) == -1){ _arg1.push(_local3); }; }; } private static function trimAndNormalize(_arg1:Array):Array{ var _local2:Array = []; var _local3:int; while (_local3 < _arg1.length) { _local2.push(normalizeLocale(_arg1[_local3])); _local3++; }; return (_local2); } } }//package mx.resources class LocaleID { private var privateLangs:Boolean;// = false private var script:String;// = "" private var variants:Array; private var privates:Array; private var extensions:Object; private var lang:String;// = "" private var region:String;// = "" private var extended_langs:Array; public static const STATE_PRIMARY_LANGUAGE:int = 0; public static const STATE_REGION:int = 3; public static const STATE_EXTENDED_LANGUAGES:int = 1; public static const STATE_EXTENSIONS:int = 5; public static const STATE_SCRIPT:int = 2; public static const STATE_VARIANTS:int = 4; public static const STATE_PRIVATES:int = 6; private function LocaleID(){ extended_langs = []; variants = []; extensions = {}; privates = []; super(); } public function equals(_arg1:LocaleID):Boolean{ return ((toString() == _arg1.toString())); } public function canonicalize():void{ var _local1:String; for (_local1 in extensions) { if (extensions.hasOwnProperty(_local1)){ if (extensions[_local1].length == 0){ delete extensions[_local1]; } else { extensions[_local1] = extensions[_local1].sort(); }; }; }; extended_langs = extended_langs.sort(); variants = variants.sort(); privates = privates.sort(); if (script == ""){ script = LocaleRegistry.getScriptByLang(lang); }; if ((((script == "")) && (!((region == ""))))){ script = LocaleRegistry.getScriptByLangAndRegion(lang, region); }; if ((((region == "")) && (!((script == ""))))){ region = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); }; } public function toString():String{ var _local2:String; var _local1:Array = [lang]; Array.prototype.push.apply(_local1, extended_langs); if (script != ""){ _local1.push(script); }; if (region != ""){ _local1.push(region); }; Array.prototype.push.apply(_local1, variants); for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1.push(_local2); Array.prototype.push.apply(_local1, extensions[_local2]); }; }; if (privates.length > 0){ _local1.push("x"); Array.prototype.push.apply(_local1, privates); }; return (_local1.join("_")); } public function isSiblingOf(_arg1:LocaleID):Boolean{ return ((((lang == _arg1.lang)) && ((script == _arg1.script)))); } public function transformToParent():Boolean{ var _local2:String; var _local3:Array; var _local4:String; if (privates.length > 0){ privates.splice((privates.length - 1), 1); return (true); }; var _local1:String; for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1 = _local2; }; }; if (_local1){ _local3 = extensions[_local1]; if (_local3.length == 1){ delete extensions[_local1]; return (true); }; _local3.splice((_local3.length - 1), 1); return (true); }; if (variants.length > 0){ variants.splice((variants.length - 1), 1); return (true); }; if (script != ""){ if (LocaleRegistry.getScriptByLang(lang) != ""){ script = ""; return (true); }; if (region == ""){ _local4 = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); if (_local4 != ""){ region = _local4; script = ""; return (true); }; }; }; if (region != ""){ if (!(((script == "")) && ((LocaleRegistry.getScriptByLang(lang) == "")))){ region = ""; return (true); }; }; if (extended_langs.length > 0){ extended_langs.splice((extended_langs.length - 1), 1); return (true); }; return (false); } public static function fromString(_arg1:String):LocaleID{ var _local5:Array; var _local8:String; var _local9:int; var _local10:String; var _local2:LocaleID = new (LocaleID); var _local3:int = STATE_PRIMARY_LANGUAGE; var _local4:Array = _arg1.replace(/-/g, "_").split("_"); var _local6:int; var _local7:int = _local4.length; while (_local6 < _local7) { _local8 = _local4[_local6].toLowerCase(); if (_local3 == STATE_PRIMARY_LANGUAGE){ if (_local8 == "x"){ _local2.privateLangs = true; } else { if (_local8 == "i"){ _local2.lang = (_local2.lang + "i-"); } else { _local2.lang = (_local2.lang + _local8); _local3 = STATE_EXTENDED_LANGUAGES; }; }; } else { _local9 = _local8.length; if (_local9 == 0){ } else { _local10 = _local8.charAt(0).toLowerCase(); if ((((_local3 <= STATE_EXTENDED_LANGUAGES)) && ((_local9 == 3)))){ _local2.extended_langs.push(_local8); if (_local2.extended_langs.length == 3){ _local3 = STATE_SCRIPT; }; } else { if ((((_local3 <= STATE_SCRIPT)) && ((_local9 == 4)))){ _local2.script = _local8; _local3 = STATE_REGION; } else { if ((((_local3 <= STATE_REGION)) && ((((_local9 == 2)) || ((_local9 == 3)))))){ _local2.region = _local8; _local3 = STATE_VARIANTS; } else { if ((((_local3 <= STATE_VARIANTS)) && ((((((((_local10 >= "a")) && ((_local10 <= "z")))) && ((_local9 >= 5)))) || ((((((_local10 >= "0")) && ((_local10 <= "9")))) && ((_local9 >= 4)))))))){ _local2.variants.push(_local8); _local3 = STATE_VARIANTS; } else { if ((((_local3 < STATE_PRIVATES)) && ((_local9 == 1)))){ if (_local8 == "x"){ _local3 = STATE_PRIVATES; _local5 = _local2.privates; } else { _local3 = STATE_EXTENSIONS; _local5 = ((_local2.extensions[_local8]) || ([])); _local2.extensions[_local8] = _local5; }; } else { if (_local3 >= STATE_EXTENSIONS){ _local5.push(_local8); }; }; }; }; }; }; }; }; _local6++; }; _local2.canonicalize(); return (_local2); } } class LocaleRegistry { private static const SCRIPT_ID_BY_LANG:Object = {ab:5, af:1, am:2, ar:3, as:4, ay:1, be:5, bg:5, bn:4, bs:1, ca:1, ch:1, cs:1, cy:1, da:1, de:1, dv:6, dz:7, el:8, en:1, eo:1, es:1, et:1, eu:1, fa:3, fi:1, fj:1, fo:1, fr:1, frr:1, fy:1, ga:1, gl:1, gn:1, gu:9, gv:1, he:10, hi:11, hr:1, ht:1, hu:1, hy:12, id:1, in:1, is:1, it:1, iw:10, ja:13, ka:14, kk:5, kl:1, km:15, kn:16, ko:17, la:1, lb:1, ln:1, lo:18, lt:1, lv:1, mg:1, mh:1, mk:5, ml:19, mo:1, mr:11, ms:1, mt:1, my:20, na:1, nb:1, nd:1, ne:11, nl:1, nn:1, no:1, nr:1, ny:1, om:1, or:21, pa:22, pl:1, ps:3, pt:1, qu:1, rn:1, ro:1, ru:5, rw:1, sg:1, si:23, sk:1, sl:1, sm:1, so:1, sq:1, ss:1, st:1, sv:1, sw:1, ta:24, te:25, th:26, ti:2, tl:1, tn:1, to:1, tr:1, ts:1, uk:5, ur:3, ve:1, vi:1, wo:1, xh:1, yi:10, zu:1, cpe:1, dsb:1, frs:1, gsw:1, hsb:1, kok:11, mai:11, men:1, nds:1, niu:1, nqo:27, nso:1, son:1, tem:1, tkl:1, tmh:1, tpi:1, tvl:1, zbl:28}; private static const SCRIPTS:Array = ["", "latn", "ethi", "arab", "beng", "cyrl", "thaa", "tibt", "grek", "gujr", "hebr", "deva", "armn", "jpan", "geor", "khmr", "knda", "kore", "laoo", "mlym", "mymr", "orya", "guru", "sinh", "taml", "telu", "thai", "nkoo", "blis", "hans", "hant", "mong", "syrc"]; private static const DEFAULT_REGION_BY_LANG_AND_SCRIPT:Object = {bg:{5:"bg"}, ca:{1:"es"}, zh:{30:"tw", 29:"cn"}, cs:{1:"cz"}, da:{1:"dk"}, de:{1:"de"}, el:{8:"gr"}, en:{1:"us"}, es:{1:"es"}, fi:{1:"fi"}, fr:{1:"fr"}, he:{10:"il"}, hu:{1:"hu"}, is:{1:"is"}, it:{1:"it"}, ja:{13:"jp"}, ko:{17:"kr"}, nl:{1:"nl"}, nb:{1:"no"}, pl:{1:"pl"}, pt:{1:"br"}, ro:{1:"ro"}, ru:{5:"ru"}, hr:{1:"hr"}, sk:{1:"sk"}, sq:{1:"al"}, sv:{1:"se"}, th:{26:"th"}, tr:{1:"tr"}, ur:{3:"pk"}, id:{1:"id"}, uk:{5:"ua"}, be:{5:"by"}, sl:{1:"si"}, et:{1:"ee"}, lv:{1:"lv"}, lt:{1:"lt"}, fa:{3:"ir"}, vi:{1:"vn"}, hy:{12:"am"}, az:{1:"az", 5:"az"}, eu:{1:"es"}, mk:{5:"mk"}, af:{1:"za"}, ka:{14:"ge"}, fo:{1:"fo"}, hi:{11:"in"}, ms:{1:"my"}, kk:{5:"kz"}, ky:{5:"kg"}, sw:{1:"ke"}, uz:{1:"uz", 5:"uz"}, tt:{5:"ru"}, pa:{22:"in"}, gu:{9:"in"}, ta:{24:"in"}, te:{25:"in"}, kn:{16:"in"}, mr:{11:"in"}, sa:{11:"in"}, mn:{5:"mn"}, gl:{1:"es"}, kok:{11:"in"}, syr:{32:"sy"}, dv:{6:"mv"}, nn:{1:"no"}, sr:{1:"cs", 5:"cs"}, cy:{1:"gb"}, mi:{1:"nz"}, mt:{1:"mt"}, quz:{1:"bo"}, tn:{1:"za"}, xh:{1:"za"}, zu:{1:"za"}, nso:{1:"za"}, se:{1:"no"}, smj:{1:"no"}, sma:{1:"no"}, sms:{1:"fi"}, smn:{1:"fi"}, bs:{1:"ba"}}; private static const SCRIPT_BY_ID:Object = {latn:1, ethi:2, arab:3, beng:4, cyrl:5, thaa:6, tibt:7, grek:8, gujr:9, hebr:10, deva:11, armn:12, jpan:13, geor:14, khmr:15, knda:16, kore:17, laoo:18, mlym:19, mymr:20, orya:21, guru:22, sinh:23, taml:24, telu:25, thai:26, nkoo:27, blis:28, hans:29, hant:30, mong:31, syrc:32}; private static const SCRIPT_ID_BY_LANG_AND_REGION:Object = {zh:{cn:29, sg:29, tw:30, hk:30, mo:30}, mn:{cn:31, sg:5}, pa:{pk:3, in:22}, ha:{gh:1, ne:1}}; private function LocaleRegistry(){ } public static function getScriptByLangAndRegion(_arg1:String, _arg2:String):String{ var _local3:Object = SCRIPT_ID_BY_LANG_AND_REGION[_arg1]; if (_local3 == null){ return (""); }; var _local4:Object = _local3[_arg2]; if (_local4 == null){ return (""); }; return (SCRIPTS[int(_local4)].toLowerCase()); } public static function getScriptByLang(_arg1:String):String{ var _local2:Object = SCRIPT_ID_BY_LANG[_arg1]; if (_local2 == null){ return (""); }; return (SCRIPTS[int(_local2)].toLowerCase()); } public static function getDefaultRegionForLangAndScript(_arg1:String, _arg2:String):String{ var _local3:Object = DEFAULT_REGION_BY_LANG_AND_SCRIPT[_arg1]; var _local4:Object = SCRIPT_BY_ID[_arg2]; if ((((_local3 == null)) || ((_local4 == null)))){ return (""); }; return (((_local3[int(_local4)]) || (""))); } }
Section 233
//ResourceBundle (mx.resources.ResourceBundle) package mx.resources { import mx.core.*; import flash.system.*; import mx.utils.*; public class ResourceBundle implements IResourceBundle { mx_internal var _locale:String; private var _content:Object; mx_internal var _bundleName:String; mx_internal static const VERSION:String = "3.2.0.4537"; mx_internal static var backupApplicationDomain:ApplicationDomain; mx_internal static var locale:String; public function ResourceBundle(_arg1:String=null, _arg2:String=null){ _content = {}; super(); mx_internal::_locale = _arg1; mx_internal::_bundleName = _arg2; _content = getContent(); } protected function getContent():Object{ return ({}); } public function getString(_arg1:String):String{ return (String(_getObject(_arg1))); } public function get content():Object{ return (_content); } public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{ var _local3:String = _getObject(_arg1).toLowerCase(); if (_local3 == "false"){ return (false); }; if (_local3 == "true"){ return (true); }; return (_arg2); } public function getStringArray(_arg1:String):Array{ var _local2:Array = _getObject(_arg1).split(","); var _local3:int = _local2.length; var _local4:int; while (_local4 < _local3) { _local2[_local4] = StringUtil.trim(_local2[_local4]); _local4++; }; return (_local2); } public function getObject(_arg1:String):Object{ return (_getObject(_arg1)); } private function _getObject(_arg1:String):Object{ var _local2:Object = content[_arg1]; if (!_local2){ throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName))); }; return (_local2); } public function get locale():String{ return (mx_internal::_locale); } public function get bundleName():String{ return (mx_internal::_bundleName); } public function getNumber(_arg1:String):Number{ return (Number(_getObject(_arg1))); } private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{ var _local3:Class; if (_arg2.hasDefinition(_arg1)){ _local3 = (_arg2.getDefinition(_arg1) as Class); }; return (_local3); } public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{ var _local3:String; var _local4:Class; var _local5:Object; var _local6:ResourceBundle; if (!_arg2){ _arg2 = ApplicationDomain.currentDomain; }; _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties"); _local4 = getClassByName(_local3, _arg2); if (!_local4){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, _arg2); }; if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, _arg2); }; if (((!(_local4)) && (mx_internal::backupApplicationDomain))){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); }; }; if (_local4){ _local5 = new (_local4); if ((_local5 is ResourceBundle)){ _local6 = ResourceBundle(_local5); return (_local6); }; }; throw (new Error(("Could not find resource bundle " + _arg1))); } } }//package mx.resources
Section 234
//ResourceManager (mx.resources.ResourceManager) package mx.resources { import mx.core.*; public class ResourceManager { mx_internal static const VERSION:String = "3.2.0.4537"; private static var implClassDependency:ResourceManagerImpl; private static var instance:IResourceManager; public static function getInstance():IResourceManager{ if (!instance){ try { instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager")); } catch(e:Error) { instance = new ResourceManagerImpl(); }; }; return (instance); } } }//package mx.resources
Section 235
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import mx.core.*; import flash.events.*; import mx.events.*; import flash.system.*; import flash.utils.*; import mx.utils.*; import mx.modules.*; public class ResourceManagerImpl extends EventDispatcher implements IResourceManager { private var resourceModules:Object; private var initializedForNonFrameworkApp:Boolean;// = false private var localeMap:Object; private var _localeChain:Array; mx_internal static const VERSION:String = "3.2.0.4537"; private static var instance:IResourceManager; public function ResourceManagerImpl(){ localeMap = {}; resourceModules = {}; super(); } public function get localeChain():Array{ return (_localeChain); } public function set localeChain(_arg1:Array):void{ _localeChain = _arg1; update(); } public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; var _local6:Array = String(_local5).split(","); var _local7:int = _local6.length; var _local8:int; while (_local8 < _local7) { _local6[_local8] = StringUtil.trim(_local6[_local8]); _local8++; }; return (_local6); } mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{ var _local4:String; var _local5:String = _arg3; var _local6:int = _arg3.indexOf(":"); if (_local6 != -1){ _local4 = _arg3.substring(0, _local6); _local5 = _arg3.substring((_local6 + 1)); }; if (getResourceBundle(_arg2, _arg3)){ return; }; var _local7 = (((_arg2 + "$") + _local5) + "_properties"); if (_local4 != null){ _local7 = ((_local4 + ".") + _local7); }; var _local8:Class; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; if (!_local8){ _local7 = _arg3; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ _local7 = (_arg3 + "_properties"); if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'."))); }; var _local9:ResourceBundle = ResourceBundle(new (_local8)); _local9.mx_internal::_locale = _arg2; _local9.mx_internal::_bundleName = _arg3; addResourceBundle(_local9); } public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{ var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4); if (!_local5){ return (null); }; var _local6:String = String(_local5.content[_arg2]); if (_arg3){ _local6 = StringUtil.substitute(_local6, _arg3); }; return (_local6); } public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var moduleInfo:IModuleInfo; var resourceEventDispatcher:ResourceEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var updateFlag = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; moduleInfo = ModuleManager.getModule(url); resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:* = _arg1.module.factory.create(); resourceModules[_arg1.module.url].resourceModule = _local2; if (updateFlag){ update(); }; }; moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:ResourceEvent; var _local2:String = ("Unable to load resource module from " + url); if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){ _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; resourceEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); moduleInfo.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (resourceEventDispatcher); } public function getLocales():Array{ var _local2:String; var _local1:Array = []; for (_local2 in localeMap) { _local1.push(_local2); }; return (_local1); } public function removeResourceBundlesForLocale(_arg1:String):void{ delete localeMap[_arg1]; } public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{ var _local3:Object = localeMap[_arg1]; if (!_local3){ return (null); }; return (_local3[_arg2]); } private function dumpResourceModule(_arg1):void{ var _local2:ResourceBundle; var _local3:String; for each (_local2 in _arg1.resourceBundles) { trace(_local2.locale, _local2.bundleName); for (_local3 in _local2.content) { }; }; } public function addResourceBundle(_arg1:IResourceBundle):void{ var _local2:String = _arg1.locale; var _local3:String = _arg1.bundleName; if (!localeMap[_local2]){ localeMap[_local2] = {}; }; localeMap[_local2][_local3] = _arg1; } public function getObject(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (undefined); }; return (_local4.content[_arg2]); } public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (int(_local5)); } private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{ supportNonFrameworkApps(); return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2)); } private function supportNonFrameworkApps():void{ if (initializedForNonFrameworkApp){ return; }; initializedForNonFrameworkApp = true; if (getLocales().length > 0){ return; }; var _local1:ApplicationDomain = ApplicationDomain.currentDomain; if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){ return; }; var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo")); var _local3:Array = _local2.compiledLocales; var _local4:Array = _local2.compiledResourceBundleNames; installCompiledResourceBundles(_local1, _local3, _local4); localeChain = _local3; } public function getBundleNamesForLocale(_arg1:String):Array{ var _local3:String; var _local2:Array = []; for (_local3 in localeMap[_arg1]) { _local2.push(_local3); }; return (_local2); } public function getPreferredLocaleChain():Array{ return (LocaleSorter.sortLocalesByPreference(getLocales(), getSystemPreferredLocales(), null, true)); } public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (NaN); }; var _local5:* = _local4.content[_arg2]; return (Number(_local5)); } public function update():void{ dispatchEvent(new Event(Event.CHANGE)); } public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; return ((_local5 as Class)); } public function removeResourceBundle(_arg1:String, _arg2:String):void{ delete localeMap[_arg1][_arg2]; if (getBundleNamesForLocale(_arg1).length == 0){ delete localeMap[_arg1]; }; } public function initializeLocaleChain(_arg1:Array):void{ localeChain = LocaleSorter.sortLocalesByPreference(_arg1, getSystemPreferredLocales(), null, true); } public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{ var _local5:String; var _local6:Object; var _local7:ResourceBundle; if (!_localeChain){ return (null); }; var _local3:int = _localeChain.length; var _local4:int; while (_local4 < _local3) { _local5 = localeChain[_local4]; _local6 = localeMap[_local5]; if (!_local6){ } else { _local7 = _local6[_arg1]; if (!_local7){ } else { if ((_arg2 in _local7.content)){ return (_local7); }; }; }; _local4++; }; return (null); } public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (uint(_local5)); } private function getSystemPreferredLocales():Array{ var _local1:Array; if (Capabilities["languages"]){ _local1 = Capabilities["languages"]; } else { _local1 = [Capabilities.language]; }; return (_local1); } public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{ var _local7:String; var _local8:int; var _local9:String; var _local4:int = (_arg2) ? _arg2.length : 0; var _local5:int = (_arg3) ? _arg3.length : 0; var _local6:int; while (_local6 < _local4) { _local7 = _arg2[_local6]; _local8 = 0; while (_local8 < _local5) { _local9 = _arg3[_local8]; mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9); _local8++; }; _local6++; }; } public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (false); }; var _local5:* = _local4.content[_arg2]; return ((String(_local5).toLowerCase() == "true")); } public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{ throw (new Error("unloadResourceModule() is not yet implemented.")); } public static function getInstance():IResourceManager{ if (!instance){ instance = new (ResourceManagerImpl); }; return (instance); } } }//package mx.resources import flash.events.*; import mx.events.*; import mx.modules.*; class ResourceModuleInfo { public var resourceModule:IResourceModule; public var errorHandler:Function; public var readyHandler:Function; public var moduleInfo:IModuleInfo; private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.moduleInfo = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } } class ResourceEventDispatcher extends EventDispatcher { private function ResourceEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } }
Section 236
//HaloBorder (mx.skins.halo.HaloBorder) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.styles.*; import mx.skins.*; import mx.utils.*; import mx.graphics.*; public class HaloBorder extends RectangularBorder { mx_internal var radiusObj:Object; mx_internal var backgroundHole:Object; mx_internal var radius:Number; mx_internal var bRoundedCorners:Boolean; mx_internal var backgroundColor:Object; private var dropShadow:RectangularDropShadow; protected var _borderMetrics:EdgeMetrics; mx_internal var backgroundAlphaName:String; mx_internal static const VERSION:String = "3.2.0.4537"; private static var BORDER_WIDTHS:Object = {none:0, solid:1, inset:2, outset:2, alert:3, dropdown:2, menuBorder:1, comboNonEdit:2}; public function HaloBorder(){ BORDER_WIDTHS["default"] = 3; } override public function styleChanged(_arg1:String):void{ if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){ _borderMetrics = null; }; invalidateDisplayList(); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ if (((isNaN(_arg1)) || (isNaN(_arg2)))){ return; }; super.updateDisplayList(_arg1, _arg2); backgroundColor = getBackgroundColor(); bRoundedCorners = false; backgroundAlphaName = "backgroundAlpha"; backgroundHole = null; radius = 0; radiusObj = null; drawBorder(_arg1, _arg2); drawBackground(_arg1, _arg2); } mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{ var _local5:Number; var _local6:uint; var _local7:uint; var _local8:String; var _local9:Number; var _local10:uint; var _local11:Boolean; var _local12:uint; var _local13:Array; var _local14:Array; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:uint; var _local19:Boolean; var _local20:Object; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Object; var _local27:Number; var _local28:Number; var _local29:IContainer; var _local30:EdgeMetrics; var _local31:Boolean; var _local32:Number; var _local33:Array; var _local34:uint; var _local35:Boolean; var _local36:Number; var _local3:String = getStyle("borderStyle"); var _local4:Array = getStyle("highlightAlphas"); var _local21:Boolean; var _local26:Graphics = graphics; _local26.clear(); if (_local3){ switch (_local3){ case "none": break; case "inset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, 25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25)); break; case "outset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, -25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25)); break; case "alert": case "default": if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _local27 = getStyle("backgroundAlpha"); _local5 = getStyle("borderAlpha"); backgroundAlphaName = "borderAlpha"; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local28 = (bRoundedCorners) ? radius : 0; drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28); if (!bRoundedCorners){ radiusObj = {}; }; _local29 = (parent as IContainer); if (_local29){ _local30 = _local29.viewMetrics; backgroundHole = {x:_local30.left, y:_local30.top, w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)), h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)), r:0}; if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){ if (_local27 != _local5){ drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0); }; _local26.beginFill(Number(backgroundColor), _local27); _local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h); _local26.endFill(); }; }; backgroundColor = getStyle("borderColor"); }; break; case "dropdown": _local12 = getStyle("dropdownBorderColor"); drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, 5068126, 1); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); if (!isNaN(_local12)){ drawRoundRect(0, 0, (_arg1 + 1), _arg2, {tl:4, tr:0, br:0, bl:4}, _local12, 0.5); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); }; backgroundColor = null; break; case "menuBorder": _local7 = getStyle("borderColor"); drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1); drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0); break; case "comboNonEdit": break; case "controlBar": if ((((_arg1 == 0)) || ((_arg2 == 0)))){ backgroundColor = null; break; }; _local14 = getStyle("footerColors"); _local31 = !((_local14 == null)); _local32 = getStyle("borderAlpha"); if (_local31){ _local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32); _local26.moveTo(0, 0); _local26.lineTo(_arg1, 0); _local26.lineStyle(0, 0, 0); if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){ radius = IStyleClient(parent.parent).getStyle("cornerRadius"); _local32 = IStyleClient(parent.parent).getStyle("borderAlpha"); }; if (isNaN(radius)){ radius = 0; }; if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){ radius = 0; }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {tl:0, tr:0, bl:(radius - 1), br:(radius - 1)}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; }; backgroundColor = null; break; case "applicationControlBar": _local13 = getStyle("fillColors"); _local5 = getStyle("backgroundAlpha"); _local4 = getStyle("highlightAlphas"); _local33 = getStyle("fillAlphas"); _local11 = getStyle("docked"); _local34 = uint(backgroundColor); radius = getStyle("cornerRadius"); if (!radius){ radius = 0; }; drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius); if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {tl:radius, tr:radius, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1))); drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {x:0, y:2, w:_arg1, h:(_arg2 - 2), r:{tl:radius, tr:radius, bl:0, br:0}}); backgroundColor = null; break; default: _local7 = getStyle("borderColor"); _local9 = getStyle("borderThickness"); _local8 = getStyle("borderSides"); _local35 = true; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local36 = Math.max((radius - _local9), 0); _local20 = {x:_local9, y:_local9, w:(_arg1 - (_local9 * 2)), h:(_arg2 - (_local9 * 2)), r:_local36}; if (!bRoundedCorners){ radiusObj = {tl:radius, tr:radius, bl:0, br:0}; _local20.r = {tl:_local36, tr:_local36, bl:0, br:0}; }; if (_local8 != "left top right bottom"){ _local20.r = {tl:_local36, tr:_local36, bl:(bRoundedCorners) ? _local36 : 0, br:(bRoundedCorners) ? _local36 : 0}; radiusObj = {tl:radius, tr:radius, bl:(bRoundedCorners) ? radius : 0, br:(bRoundedCorners) ? radius : 0}; _local8 = _local8.toLowerCase(); if (_local8.indexOf("left") == -1){ _local20.x = 0; _local20.w = (_local20.w + _local9); _local20.r.tl = 0; _local20.r.bl = 0; radiusObj.tl = 0; radiusObj.bl = 0; _local35 = false; }; if (_local8.indexOf("top") == -1){ _local20.y = 0; _local20.h = (_local20.h + _local9); _local20.r.tl = 0; _local20.r.tr = 0; radiusObj.tl = 0; radiusObj.tr = 0; _local35 = false; }; if (_local8.indexOf("right") == -1){ _local20.w = (_local20.w + _local9); _local20.r.tr = 0; _local20.r.br = 0; radiusObj.tr = 0; radiusObj.br = 0; _local35 = false; }; if (_local8.indexOf("bottom") == -1){ _local20.h = (_local20.h + _local9); _local20.r.bl = 0; _local20.r.br = 0; radiusObj.bl = 0; radiusObj.br = 0; _local35 = false; }; }; if ((((radius == 0)) && (_local35))){ drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0); _local26.beginFill(_local7); _local26.drawRect(0, 0, _arg1, _arg2); _local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9))); _local26.endFill(); } else { if (radiusObj){ drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl); drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20); radiusObj.tl = Math.max((radius - _local9), 0); radiusObj.tr = Math.max((radius - _local9), 0); radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; } else { drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius); drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20); radius = Math.max((getStyle("cornerRadius") - _local9), 0); }; }; }; }; } mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{ var _local4:Number; var _local5:Number; var _local6:EdgeMetrics; var _local7:Graphics; var _local8:Number; var _local9:Number; var _local10:Array; var _local11:Number; if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){ _local4 = Number(backgroundColor); _local5 = 1; _local6 = getBackgroundColorMetrics(); _local7 = graphics; if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){ _local5 = 0; _local4 = 0xFFFFFF; } else { _local5 = getStyle(backgroundAlphaName); }; if (((!((radius == 0))) || (backgroundHole))){ _local8 = _local6.bottom; if (radiusObj){ _local9 = (bRoundedCorners) ? radius : 0; radiusObj = {tl:radius, tr:radius, bl:_local9, br:_local9}; drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); } else { drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); }; } else { _local7.beginFill(_local4, _local5); _local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top)); _local7.endFill(); }; }; var _local3:String = getStyle("borderStyle"); if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){ _local10 = getStyle("highlightAlphas"); _local11 = (_local10) ? _local10[0] : 0.3; drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local11, null, GradientType.LINEAR, null, {x:0, y:1, w:_arg1, h:(_arg2 - 1), r:{tl:radius, tr:radius, bl:0, br:0}}); }; } mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{ var _local11:Number; var _local12:Boolean; if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){ return; }; var _local9:Number = getStyle("shadowDistance"); var _local10:String = getStyle("shadowDirection"); if (getStyle("borderStyle") == "applicationControlBar"){ _local12 = getStyle("docked"); _local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10); _local9 = Math.abs(_local9); } else { _local11 = getDropShadowAngle(_local9, _local10); _local9 = (Math.abs(_local9) + 2); }; if (!dropShadow){ dropShadow = new RectangularDropShadow(); }; dropShadow.distance = _local9; dropShadow.angle = _local11; dropShadow.color = getStyle("dropShadowColor"); dropShadow.alpha = 0.4; dropShadow.tlRadius = _arg5; dropShadow.trRadius = _arg6; dropShadow.blRadius = _arg8; dropShadow.brRadius = _arg7; dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4); } mx_internal function getBackgroundColor():Object{ var _local2:Object; var _local1:IUIComponent = (parent as IUIComponent); if (((_local1) && (!(_local1.enabled)))){ _local2 = getStyle("backgroundDisabledColor"); if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){ return (_local2); }; }; return (getStyle("backgroundColor")); } mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:Number = width; var _local8:Number = height; drawDropShadow(0, 0, width, height, 0, 0, 0, 0); var _local9:Graphics = graphics; _local9.beginFill(_arg1); _local9.drawRect(0, 0, _local7, _local8); _local9.drawRect(1, 0, (_local7 - 2), _local8); _local9.endFill(); _local9.beginFill(_arg2); _local9.drawRect(1, 0, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg3); _local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg4); _local9.drawRect(1, 1, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg5); _local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg6); _local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4)); _local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4)); _local9.endFill(); } mx_internal function getBackgroundColorMetrics():EdgeMetrics{ return (borderMetrics); } mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{ if (_arg2 == "left"){ return (((_arg1 >= 0)) ? 135 : 225); } else { if (_arg2 == "right"){ return (((_arg1 >= 0)) ? 45 : 315); } else { }; }; return (!NULL!); } override public function get borderMetrics():EdgeMetrics{ var _local1:Number; var _local3:String; if (_borderMetrics){ return (_borderMetrics); }; var _local2:String = getStyle("borderStyle"); if ((((_local2 == "default")) || ((_local2 == "alert")))){ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _borderMetrics = new EdgeMetrics(0, 0, 0, 0); } else { return (EdgeMetrics.EMPTY); }; } else { if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){ _borderMetrics = new EdgeMetrics(1, 1, 1, 1); } else { if (_local2 == "solid"){ _local1 = getStyle("borderThickness"); if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); _local3 = getStyle("borderSides"); if (_local3 != "left top right bottom"){ if (_local3.indexOf("left") == -1){ _borderMetrics.left = 0; }; if (_local3.indexOf("top") == -1){ _borderMetrics.top = 0; }; if (_local3.indexOf("right") == -1){ _borderMetrics.right = 0; }; if (_local3.indexOf("bottom") == -1){ _borderMetrics.bottom = 0; }; }; } else { _local1 = BORDER_WIDTHS[_local2]; if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); }; }; }; return (_borderMetrics); } } }//package mx.skins.halo
Section 237
//HaloFocusRect (mx.skins.halo.HaloFocusRect) package mx.skins.halo { import flash.display.*; import mx.styles.*; import mx.skins.*; import mx.utils.*; public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient { private var _focusColor:Number; mx_internal static const VERSION:String = "3.2.0.4537"; public function get inheritingStyles():Object{ return (styleName.inheritingStyles); } public function set inheritingStyles(_arg1:Object):void{ } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ } public function registerEffects(_arg1:Array):void{ } public function regenerateStyleCache(_arg1:Boolean):void{ } public function get styleDeclaration():CSSStyleDeclaration{ return (CSSStyleDeclaration(styleName)); } public function getClassStyleDeclarations():Array{ return ([]); } public function get className():String{ return ("HaloFocusRect"); } public function clearStyle(_arg1:String):void{ if (_arg1 == "focusColor"){ _focusColor = NaN; }; } public function setStyle(_arg1:String, _arg2):void{ if (_arg1 == "focusColor"){ _focusColor = _arg2; }; } public function set nonInheritingStyles(_arg1:Object):void{ } public function get nonInheritingStyles():Object{ return (styleName.nonInheritingStyles); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; super.updateDisplayList(_arg1, _arg2); var _local3:String = getStyle("focusBlendMode"); var _local4:Number = getStyle("focusAlpha"); var _local5:Number = getStyle("focusColor"); var _local6:Number = getStyle("cornerRadius"); var _local7:Number = getStyle("focusThickness"); var _local8:String = getStyle("focusRoundedCorners"); var _local9:Number = getStyle("themeColor"); var _local10:Number = _local5; if (isNaN(_local10)){ _local10 = _local9; }; var _local11:Graphics = graphics; _local11.clear(); blendMode = _local3; if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){ _local12 = 0; _local13 = 0; _local14 = 0; _local15 = 0; _local16 = (_local6 + _local7); if (_local8.indexOf("tl") >= 0){ _local12 = _local16; }; if (_local8.indexOf("tr") >= 0){ _local14 = _local16; }; if (_local8.indexOf("bl") >= 0){ _local13 = _local16; }; if (_local8.indexOf("br") >= 0){ _local15 = _local16; }; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); _local16 = (_local6 + (_local7 / 2)); _local12 = (_local12) ? _local16 : 0; _local14 = (_local14) ? _local16 : 0; _local13 = (_local13) ? _local16 : 0; _local15 = (_local15) ? _local16 : 0; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); } else { _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2); _local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2); _local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); }; } override public function getStyle(_arg1:String){ return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1)); } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ } } }//package mx.skins.halo
Section 238
//Border (mx.skins.Border) package mx.skins { import mx.core.*; public class Border extends ProgrammaticSkin implements IBorder { mx_internal static const VERSION:String = "3.2.0.4537"; public function get borderMetrics():EdgeMetrics{ return (EdgeMetrics.EMPTY); } } }//package mx.skins
Section 239
//ProgrammaticSkin (mx.skins.ProgrammaticSkin) package mx.skins { import flash.display.*; import mx.core.*; import mx.styles.*; import flash.geom.*; import mx.managers.*; import mx.utils.*; public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin { private var _initialized:Boolean;// = false private var _height:Number; private var invalidateDisplayListFlag:Boolean;// = false private var _styleName:IStyleClient; private var _nestLevel:int;// = 0 private var _processedDescriptors:Boolean;// = false private var _updateCompletePendingFlag:Boolean;// = true private var _width:Number; mx_internal static const VERSION:String = "3.2.0.4537"; private static var tempMatrix:Matrix = new Matrix(); public function ProgrammaticSkin(){ _width = measuredWidth; _height = measuredHeight; } public function getStyle(_arg1:String){ return ((_styleName) ? _styleName.getStyle(_arg1) : null); } protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ } public function get nestLevel():int{ return (_nestLevel); } public function set nestLevel(_arg1:int):void{ _nestLevel = _arg1; invalidateDisplayList(); } override public function get height():Number{ return (_height); } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90)); } public function validateSize(_arg1:Boolean=false):void{ } public function invalidateDisplayList():void{ if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){ invalidateDisplayListFlag = true; UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0)); } override public function set height(_arg1:Number):void{ _height = _arg1; invalidateDisplayList(); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; } public function validateDisplayList():void{ invalidateDisplayListFlag = false; updateDisplayList(width, height); } public function get measuredWidth():Number{ return (0); } override public function set width(_arg1:Number):void{ _width = _arg1; invalidateDisplayList(); } public function get measuredHeight():Number{ return (0); } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; } protected function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Matrix=null, _arg9:String="linear", _arg10:Array=null, _arg11:Object=null):void{ var _local13:Number; var _local14:Array; var _local15:Object; var _local12:Graphics = graphics; if ((((_arg3 == 0)) || ((_arg4 == 0)))){ return; }; if (_arg6 !== null){ if ((_arg6 is uint)){ _local12.beginFill(uint(_arg6), Number(_arg7)); } else { if ((_arg6 is Array)){ _local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7]; if (!_arg10){ _arg10 = [0, 0xFF]; }; _local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8); }; }; }; if (!_arg5){ _local12.drawRect(_arg1, _arg2, _arg3, _arg4); } else { if ((_arg5 is Number)){ _local13 = (Number(_arg5) * 2); _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br); }; }; if (_arg11){ _local15 = _arg11.r; if ((_local15 is Number)){ _local13 = (Number(_local15) * 2); _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br); }; }; if (_arg6 !== null){ _local12.endFill(); }; } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } public function set styleName(_arg1:Object):void{ if (_styleName != _arg1){ _styleName = (_arg1 as IStyleClient); invalidateDisplayList(); }; } public function setActualSize(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_width != _arg1){ _width = _arg1; _local3 = true; }; if (_height != _arg2){ _height = _arg2; _local3 = true; }; if (_local3){ invalidateDisplayList(); }; } public function styleChanged(_arg1:String):void{ invalidateDisplayList(); } override public function get width():Number{ return (_width); } public function invalidateProperties():void{ } public function get initialized():Boolean{ return (_initialized); } protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{ tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2); return (tempMatrix); } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get styleName():Object{ return (_styleName); } public function validateNow():void{ if (invalidateDisplayListFlag){ validateDisplayList(); }; } public function invalidateSize():void{ } public function validateProperties():void{ } } }//package mx.skins
Section 240
//RectangularBorder (mx.skins.RectangularBorder) package mx.skins { import flash.display.*; import mx.core.*; import flash.events.*; import mx.styles.*; import mx.resources.*; import flash.geom.*; import flash.system.*; import flash.net.*; import flash.utils.*; public class RectangularBorder extends Border implements IRectangularBorder { private var backgroundImage:DisplayObject; private var backgroundImageHeight:Number; private var _backgroundImageBounds:Rectangle; private var backgroundImageStyle:Object; private var backgroundImageWidth:Number; private var resourceManager:IResourceManager; mx_internal static const VERSION:String = "3.2.0.4537"; public function RectangularBorder(){ resourceManager = ResourceManager.getInstance(); super(); addEventListener(Event.REMOVED, removedHandler); } public function layoutBackgroundImage():void{ var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; var _local14:Number; var _local15:Graphics; var _local1:DisplayObject = parent; var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics; var _local3 = !((getStyle("backgroundAttachment") == "fixed")); if (_backgroundImageBounds){ _local4 = _backgroundImageBounds.width; _local5 = _backgroundImageBounds.height; } else { _local4 = ((width - _local2.left) - _local2.right); _local5 = ((height - _local2.top) - _local2.bottom); }; var _local6:Number = getBackgroundSize(); if (isNaN(_local6)){ _local7 = 1; _local8 = 1; } else { _local14 = (_local6 * 0.01); _local7 = ((_local14 * _local4) / backgroundImageWidth); _local8 = ((_local14 * _local5) / backgroundImageHeight); }; backgroundImage.scaleX = _local7; backgroundImage.scaleY = _local8; var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7)))); var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8)))); backgroundImage.x = _local2.left; backgroundImage.y = _local2.top; var _local11:Shape = Shape(backgroundImage.mask); _local11.x = _local2.left; _local11.y = _local2.top; if (((_local3) && ((_local1 is IContainer)))){ _local9 = (_local9 - IContainer(_local1).horizontalScrollPosition); _local10 = (_local10 - IContainer(_local1).verticalScrollPosition); }; backgroundImage.alpha = getStyle("backgroundAlpha"); backgroundImage.x = (backgroundImage.x + _local9); backgroundImage.y = (backgroundImage.y + _local10); var _local12:Number = ((width - _local2.left) - _local2.right); var _local13:Number = ((height - _local2.top) - _local2.bottom); if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){ _local15 = _local11.graphics; _local15.clear(); _local15.beginFill(0xFFFFFF); _local15.drawRect(0, 0, _local12, _local13); _local15.endFill(); }; } public function set backgroundImageBounds(_arg1:Rectangle):void{ _backgroundImageBounds = _arg1; invalidateDisplayList(); } private function getBackgroundSize():Number{ var _local3:int; var _local1:Number = NaN; var _local2:Object = getStyle("backgroundSize"); if (((_local2) && ((_local2 is String)))){ _local3 = _local2.indexOf("%"); if (_local3 != -1){ _local1 = Number(_local2.substr(0, _local3)); }; }; return (_local1); } private function removedHandler(_arg1:Event):void{ var _local2:IChildList; if (backgroundImage){ _local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); _local2.removeChild(backgroundImage.mask); _local2.removeChild(backgroundImage); backgroundImage = null; }; } private function initBackgroundImage(_arg1:DisplayObject):void{ backgroundImage = _arg1; if ((_arg1 is Loader)){ backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width; backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height; } else { backgroundImageWidth = backgroundImage.width; backgroundImageHeight = backgroundImage.height; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleName = styleName; }; }; var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); var _local3:Shape = new FlexShape(); _local3.name = "backgroundMask"; _local3.x = 0; _local3.y = 0; _local2.addChild(_local3); var _local4:int = _local2.getChildIndex(this); _local2.addChildAt(backgroundImage, (_local4 + 1)); backgroundImage.mask = _local3; } public function get backgroundImageBounds():Rectangle{ return (_backgroundImageBounds); } public function get hasBackgroundImage():Boolean{ return (!((backgroundImage == null))); } private function completeEventHandler(_arg1:Event):void{ if (!parent){ return; }; var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); layoutBackgroundImage(); dispatchEvent(_arg1.clone()); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var message:String; var unscaledWidth = _arg1; var unscaledHeight = _arg2; if (!parent){ return; }; var newStyle:Object = getStyle("backgroundImage"); if (newStyle != backgroundImageStyle){ removedHandler(null); backgroundImageStyle = newStyle; if (((newStyle) && ((newStyle as Class)))){ cls = Class(newStyle); initBackgroundImage(new (cls)); } else { if (((newStyle) && ((newStyle is String)))){ try { cls = Class(getDefinitionByName(String(newStyle))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new FlexLoader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler); loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(newStyle)), loaderContext); }; } else { if (newStyle){ message = resourceManager.getString("skins", "notLoaded", [newStyle]); throw (new Error(message)); }; }; }; }; if (backgroundImage){ layoutBackgroundImage(); }; } private function errorEventHandler(_arg1:Event):void{ } } }//package mx.skins
Section 241
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration) package mx.styles { import flash.display.*; import mx.core.*; import flash.events.*; import mx.managers.*; import flash.utils.*; public class CSSStyleDeclaration extends EventDispatcher { mx_internal var effects:Array; protected var overrides:Object; public var defaultFactory:Function; public var factory:Function; mx_internal var selectorRefCount:int;// = 0 private var styleManager:IStyleManager2; private var clones:Dictionary; mx_internal static const VERSION:String = "3.2.0.4537"; private static const NOT_A_COLOR:uint = 4294967295; private static const FILTERMAP_PROP:String = "__reserved__filterMap"; public function CSSStyleDeclaration(_arg1:String=null){ clones = new Dictionary(true); super(); if (_arg1){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); styleManager.setStyleDeclaration(_arg1, this, false); }; } mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{ var p:String; var emptyObjectFactory:Function; var filteredChain:Object; var filterObjectFactory:Function; var i:String; var chain = _arg1; var target = _arg2; var filterMap = _arg3; var nodeAddedToChain:Boolean; var originalChain:Object = chain; if (filterMap){ chain = {}; }; if (defaultFactory != null){ defaultFactory.prototype = chain; chain = new defaultFactory(); nodeAddedToChain = true; }; if (factory != null){ factory.prototype = chain; chain = new factory(); nodeAddedToChain = true; }; if (overrides){ if ((((defaultFactory == null)) && ((factory == null)))){ emptyObjectFactory = function ():void{ }; emptyObjectFactory.prototype = chain; chain = new (emptyObjectFactory); nodeAddedToChain = true; }; for (p in overrides) { if (overrides[p] === undefined){ delete chain[p]; } else { chain[p] = overrides[p]; }; }; }; if (filterMap){ if (nodeAddedToChain){ filteredChain = {}; filterObjectFactory = function ():void{ }; filterObjectFactory.prototype = originalChain; filteredChain = new (filterObjectFactory); for (i in chain) { if (filterMap[i] != null){ filteredChain[filterMap[i]] = chain[i]; }; }; chain = filteredChain; chain[FILTERMAP_PROP] = filterMap; } else { chain = originalChain; }; }; if (nodeAddedToChain){ clones[chain] = 1; }; return (chain); } public function getStyle(_arg1:String){ var _local2:*; var _local3:*; if (overrides){ if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){ return (undefined); }; _local3 = overrides[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (factory != null){ factory.prototype = {}; _local2 = new factory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (defaultFactory != null){ defaultFactory.prototype = {}; _local2 = new defaultFactory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; return (undefined); } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function setStyle(_arg1:String, _arg2):void{ var _local7:int; var _local8:Object; var _local3:Object = getStyle(_arg1); var _local4:Boolean; if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){ _local4 = true; }; if (_arg2 !== undefined){ setStyle(_arg1, _arg2); } else { if (_arg2 == _local3){ return; }; setStyle(_arg1, _arg2); }; var _local5:Array = SystemManagerGlobals.topLevelSystemManagers; var _local6:int = _local5.length; if (_local4){ _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.regenerateStyleCache(true); _local7++; }; }; _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.notifyStyleChangeInChildren(_arg1, true); _local7++; }; } private function clearStyleAttr(_arg1:String):void{ var _local2:*; if (!overrides){ overrides = {}; }; overrides[_arg1] = undefined; for (_local2 in clones) { delete _local2[_arg1]; }; } mx_internal function createProtoChainRoot():Object{ var _local1:Object = {}; if (defaultFactory != null){ defaultFactory.prototype = _local1; _local1 = new defaultFactory(); }; if (factory != null){ factory.prototype = _local1; _local1 = new factory(); }; clones[_local1] = 1; return (_local1); } mx_internal function clearOverride(_arg1:String):void{ if (((overrides) && (overrides[_arg1]))){ delete overrides[_arg1]; }; } mx_internal function setStyle(_arg1:String, _arg2):void{ var _local3:Object; var _local4:*; var _local5:Number; var _local6:Object; if (_arg2 === undefined){ clearStyleAttr(_arg1); return; }; if ((_arg2 is String)){ if (!styleManager){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); }; _local5 = styleManager.getColorName(_arg2); if (_local5 != NOT_A_COLOR){ _arg2 = _local5; }; }; if (defaultFactory != null){ _local3 = new defaultFactory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if (factory != null){ _local3 = new factory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if ((((defaultFactory == null)) && ((factory == null)))){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; }; for (_local4 in clones) { _local6 = _local4[FILTERMAP_PROP]; if (_local6){ if (_local6[_arg1] != null){ _local4[_local6[_arg1]] = _arg2; }; } else { _local4[_arg1] = _arg2; }; }; } } }//package mx.styles
Section 242
//ISimpleStyleClient (mx.styles.ISimpleStyleClient) package mx.styles { public interface ISimpleStyleClient { function set styleName(_arg1:Object):void; function styleChanged(_arg1:String):void; function get styleName():Object; } }//package mx.styles
Section 243
//IStyleClient (mx.styles.IStyleClient) package mx.styles { public interface IStyleClient extends ISimpleStyleClient { function regenerateStyleCache(_arg1:Boolean):void; function get className():String; function clearStyle(_arg1:String):void; function getClassStyleDeclarations():Array; function get inheritingStyles():Object; function set nonInheritingStyles(_arg1:Object):void; function setStyle(_arg1:String, _arg2):void; function get styleDeclaration():CSSStyleDeclaration; function set styleDeclaration(_arg1:CSSStyleDeclaration):void; function get nonInheritingStyles():Object; function set inheritingStyles(_arg1:Object):void; function getStyle(_arg1:String); function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void; function registerEffects(_arg1:Array):void; } }//package mx.styles
Section 244
//IStyleManager (mx.styles.IStyleManager) package mx.styles { import flash.events.*; public interface IStyleManager { function isColorName(_arg1:String):Boolean; function registerParentDisplayListInvalidatingStyle(_arg1:String):void; function registerInheritingStyle(_arg1:String):void; function set stylesRoot(_arg1:Object):void; function get typeSelectorCache():Object; function styleDeclarationsChanged():void; function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void; function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean; function isSizeInvalidatingStyle(_arg1:String):Boolean; function get inheritingStyles():Object; function isValidStyleValue(_arg1):Boolean; function isParentSizeInvalidatingStyle(_arg1:String):Boolean; function getColorName(_arg1:Object):uint; function set typeSelectorCache(_arg1:Object):void; function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void; function getColorNames(_arg1:Array):void; function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher; function isInheritingStyle(_arg1:String):Boolean; function set inheritingStyles(_arg1:Object):void; function get stylesRoot():Object; function initProtoChainRoots():void; function registerColorName(_arg1:String, _arg2:uint):void; function registerParentSizeInvalidatingStyle(_arg1:String):void; function registerSizeInvalidatingStyle(_arg1:String):void; function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void; function isInheritingTextFormatStyle(_arg1:String):Boolean; function getStyleDeclaration(_arg1:String):CSSStyleDeclaration; } }//package mx.styles
Section 245
//IStyleManager2 (mx.styles.IStyleManager2) package mx.styles { import flash.events.*; import flash.system.*; public interface IStyleManager2 extends IStyleManager { function get selectors():Array; function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; } }//package mx.styles
Section 246
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 247
//StyleManager (mx.styles.StyleManager) package mx.styles { import mx.core.*; import flash.events.*; import flash.system.*; public class StyleManager { mx_internal static const VERSION:String = "3.2.0.4537"; public static const NOT_A_COLOR:uint = 4294967295; private static var _impl:IStyleManager2; private static var implClassDependency:StyleManagerImpl; public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentSizeInvalidatingStyle(_arg1)); } public static function registerInheritingStyle(_arg1:String):void{ impl.registerInheritingStyle(_arg1); } mx_internal static function set stylesRoot(_arg1:Object):void{ impl.stylesRoot = _arg1; } mx_internal static function get inheritingStyles():Object{ return (impl.inheritingStyles); } mx_internal static function styleDeclarationsChanged():void{ impl.styleDeclarationsChanged(); } public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ impl.setStyleDeclaration(_arg1, _arg2, _arg3); } public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ impl.registerParentDisplayListInvalidatingStyle(_arg1); } mx_internal static function get typeSelectorCache():Object{ return (impl.typeSelectorCache); } mx_internal static function set inheritingStyles(_arg1:Object):void{ impl.inheritingStyles = _arg1; } public static function isColorName(_arg1:String):Boolean{ return (impl.isColorName(_arg1)); } public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentDisplayListInvalidatingStyle(_arg1)); } public static function isSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isSizeInvalidatingStyle(_arg1)); } public static function getColorName(_arg1:Object):uint{ return (impl.getColorName(_arg1)); } mx_internal static function set typeSelectorCache(_arg1:Object):void{ impl.typeSelectorCache = _arg1; } public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ impl.unloadStyleDeclarations(_arg1, _arg2); } public static function getColorNames(_arg1:Array):void{ impl.getColorNames(_arg1); } public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{ return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5)); } private static function get impl():IStyleManager2{ if (!_impl){ _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2")); }; return (_impl); } public static function isValidStyleValue(_arg1):Boolean{ return (impl.isValidStyleValue(_arg1)); } mx_internal static function get stylesRoot():Object{ return (impl.stylesRoot); } public static function isInheritingStyle(_arg1:String):Boolean{ return (impl.isInheritingStyle(_arg1)); } mx_internal static function initProtoChainRoots():void{ impl.initProtoChainRoots(); } public static function registerParentSizeInvalidatingStyle(_arg1:String):void{ impl.registerParentSizeInvalidatingStyle(_arg1); } public static function get selectors():Array{ return (impl.selectors); } public static function registerSizeInvalidatingStyle(_arg1:String):void{ impl.registerSizeInvalidatingStyle(_arg1); } public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ impl.clearStyleDeclaration(_arg1, _arg2); } public static function registerColorName(_arg1:String, _arg2:uint):void{ impl.registerColorName(_arg1, _arg2); } public static function isInheritingTextFormatStyle(_arg1:String):Boolean{ return (impl.isInheritingTextFormatStyle(_arg1)); } public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ return (impl.getStyleDeclaration(_arg1)); } } }//package mx.styles
Section 248
//StyleManagerImpl (mx.styles.StyleManagerImpl) package mx.styles { import mx.core.*; import flash.events.*; import mx.events.*; import mx.resources.*; import flash.system.*; import mx.managers.*; import flash.utils.*; import mx.modules.*; public class StyleManagerImpl implements IStyleManager2 { private var _stylesRoot:Object; private var _selectors:Object; private var styleModules:Object; private var _inheritingStyles:Object; private var resourceManager:IResourceManager; private var _typeSelectorCache:Object; mx_internal static const VERSION:String = "3.2.0.4537"; private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193}; private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true}; private static var instance:IStyleManager2; private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true}; public function StyleManagerImpl(){ _selectors = {}; styleModules = {}; resourceManager = ResourceManager.getInstance(); _inheritingStyles = {}; _typeSelectorCache = {}; super(); } public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ _arg2.selectorRefCount++; _selectors[_arg1] = _arg2; typeSelectorCache = {}; if (_arg3){ styleDeclarationsChanged(); }; } public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ parentDisplayListInvalidatingStyles[_arg1] = true; } public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ var _local2:int; if (_arg1.charAt(0) != "."){ _local2 = _arg1.lastIndexOf("."); if (_local2 != -1){ _arg1 = _arg1.substr((_local2 + 1)); }; }; return (_selectors[_arg1]); } public function set typeSelectorCache(_arg1:Object):void{ _typeSelectorCache = _arg1; } public function isColorName(_arg1:String):Boolean{ return (!((colorNames[_arg1.toLowerCase()] === undefined))); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getColorNames(_arg1:Array):void{ var _local4:uint; if (!_arg1){ return; }; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){ _local4 = getColorName(_arg1[_local3]); if (_local4 != StyleManager.NOT_A_COLOR){ _arg1[_local3] = _local4; }; }; _local3++; }; } public function isInheritingTextFormatStyle(_arg1:String):Boolean{ return ((inheritingTextFormatStyles[_arg1] == true)); } public function registerParentSizeInvalidatingStyle(_arg1:String):void{ parentSizeInvalidatingStyles[_arg1] = true; } public function registerColorName(_arg1:String, _arg2:uint):void{ colorNames[_arg1.toLowerCase()] = _arg2; } public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return ((parentSizeInvalidatingStyles[_arg1] == true)); } public function registerInheritingStyle(_arg1:String):void{ inheritingStyles[_arg1] = true; } public function set stylesRoot(_arg1:Object):void{ _stylesRoot = _arg1; } public function get typeSelectorCache():Object{ return (_typeSelectorCache); } public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return ((parentDisplayListInvalidatingStyles[_arg1] == true)); } public function isSizeInvalidatingStyle(_arg1:String):Boolean{ return ((sizeInvalidatingStyles[_arg1] == true)); } public function styleDeclarationsChanged():void{ var _local4:Object; var _local1:Array = SystemManagerGlobals.topLevelSystemManagers; var _local2:int = _local1.length; var _local3:int; while (_local3 < _local2) { _local4 = _local1[_local3]; _local4.regenerateStyleCache(true); _local4.notifyStyleChangeInChildren(null, true); _local3++; }; } public function isValidStyleValue(_arg1):Boolean{ return (!((_arg1 === undefined))); } public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{ return (loadStyleDeclarations2(_arg1, _arg2)); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ var _local4:IModuleInfo; var _local3:StyleModuleInfo = styleModules[_arg1]; if (_local3){ _local3.styleModule.unload(); _local4 = _local3.module; _local4.unload(); _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler); _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler); styleModules[_arg1] = null; }; if (_arg2){ styleDeclarationsChanged(); }; } public function getColorName(_arg1:Object):uint{ var _local2:Number; var _local3:*; if ((_arg1 is String)){ if (_arg1.charAt(0) == "#"){ _local2 = Number(("0x" + _arg1.slice(1))); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){ _local2 = Number(_arg1); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; _local3 = colorNames[_arg1.toLowerCase()]; if (_local3 === undefined){ return (StyleManager.NOT_A_COLOR); }; return (uint(_local3)); }; return (uint(_arg1)); } public function isInheritingStyle(_arg1:String):Boolean{ return ((inheritingStyles[_arg1] == true)); } public function get stylesRoot():Object{ return (_stylesRoot); } public function initProtoChainRoots():void{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ delete _inheritingStyles["textDecoration"]; delete _inheritingStyles["leading"]; }; if (!stylesRoot){ stylesRoot = _selectors["global"].addStyleToProtoChain({}, null); }; } public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var module:IModuleInfo; var styleEventDispatcher:StyleEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var update = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; module = ModuleManager.getModule(url); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create()); styleModules[_arg1.module.url].styleModule = _local2; if (update){ styleDeclarationsChanged(); }; }; module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); styleEventDispatcher = new StyleEventDispatcher(module); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:StyleEvent; var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]); if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){ _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; styleEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); module.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (styleEventDispatcher); } public function registerSizeInvalidatingStyle(_arg1:String):void{ sizeInvalidatingStyles[_arg1] = true; } public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1); if (((_local3) && ((_local3.selectorRefCount > 0)))){ _local3.selectorRefCount--; }; delete _selectors[_arg1]; if (_arg2){ styleDeclarationsChanged(); }; } public function get selectors():Array{ var _local2:String; var _local1:Array = []; for (_local2 in _selectors) { _local1.push(_local2); }; return (_local1); } public static function getInstance():IStyleManager2{ if (!instance){ instance = new (StyleManagerImpl); }; return (instance); } } }//package mx.styles import flash.events.*; import mx.events.*; import mx.modules.*; class StyleEventDispatcher extends EventDispatcher { private function StyleEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } } class StyleModuleInfo { public var errorHandler:Function; public var readyHandler:Function; public var module:IModuleInfo; public var styleModule:IStyleModule; private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.module = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } }
Section 249
//ColorUtil (mx.utils.ColorUtil) package mx.utils { public class ColorUtil { mx_internal static const VERSION:String = "3.2.0.4537"; public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{ var _local3:Number; var _local4:Number; var _local5:Number; if (_arg2 == 0){ return (_arg1); }; if (_arg2 < 0){ _arg2 = ((100 + _arg2) / 100); _local3 = (((_arg1 >> 16) & 0xFF) * _arg2); _local4 = (((_arg1 >> 8) & 0xFF) * _arg2); _local5 = ((_arg1 & 0xFF) * _arg2); } else { _arg2 = (_arg2 / 100); _local3 = ((_arg1 >> 16) & 0xFF); _local4 = ((_arg1 >> 8) & 0xFF); _local5 = (_arg1 & 0xFF); _local3 = (_local3 + ((0xFF - _local3) * _arg2)); _local4 = (_local4 + ((0xFF - _local4) * _arg2)); _local5 = (_local5 + ((0xFF - _local5) * _arg2)); _local3 = Math.min(_local3, 0xFF); _local4 = Math.min(_local4, 0xFF); _local5 = Math.min(_local5, 0xFF); }; return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{ var _local3:Number = ((_arg1 >> 16) & 0xFF); var _local4:Number = ((_arg1 >> 8) & 0xFF); var _local5:Number = (_arg1 & 0xFF); var _local6:Number = ((_arg2 >> 16) & 0xFF); var _local7:Number = ((_arg2 >> 8) & 0xFF); var _local8:Number = (_arg2 & 0xFF); return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF))); } public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{ var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0); var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0); var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0); return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } } }//package mx.utils
Section 250
//GraphicsUtil (mx.utils.GraphicsUtil) package mx.utils { import flash.display.*; public class GraphicsUtil { mx_internal static const VERSION:String = "3.2.0.4537"; public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:Number = (_arg2 + _arg4); var _local11:Number = (_arg3 + _arg5); var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2); _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12; _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12; _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12; _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12; var _local13:Number = (_arg9 * 0.292893218813453); var _local14:Number = (_arg9 * 0.585786437626905); _arg1.moveTo(_local10, (_local11 - _arg9)); _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13)); _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11); _local13 = (_arg8 * 0.292893218813453); _local14 = (_arg8 * 0.585786437626905); _arg1.lineTo((_arg2 + _arg8), _local11); _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13)); _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8)); _local13 = (_arg6 * 0.292893218813453); _local14 = (_arg6 * 0.585786437626905); _arg1.lineTo(_arg2, (_arg3 + _arg6)); _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13)); _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3); _local13 = (_arg7 * 0.292893218813453); _local14 = (_arg7 * 0.585786437626905); _arg1.lineTo((_local10 - _arg7), _arg3); _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13)); _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7)); _arg1.lineTo(_local10, (_local11 - _arg9)); } } }//package mx.utils
Section 251
//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.2.0.4537"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var result:String; var o:DisplayObject; var s:String; var indices:Array; var displayObject = _arg1; try { o = displayObject; while (o != null) { if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){ break; }; s = o.name; if ((o is IRepeaterClient)){ indices = IRepeaterClient(o).instanceIndices; if (indices){ s = (s + (("[" + indices.join("][")) + "]")); }; }; result = ((result == null)) ? s : ((s + ".") + result); o = o.parent; }; } catch(e:SecurityError) { }; return (result); } 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 252
//StringUtil (mx.utils.StringUtil) package mx.utils { public class StringUtil { mx_internal static const VERSION:String = "3.2.0.4537"; public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; while (isWhitespace(_arg1.charAt(_local2))) { _local2++; }; var _local3:int = (_arg1.length - 1); while (isWhitespace(_arg1.charAt(_local3))) { _local3--; }; if (_local3 >= _local2){ return (_arg1.slice(_local2, (_local3 + 1))); }; return (""); } public static function isWhitespace(_arg1:String):Boolean{ switch (_arg1){ case " ": case "\t": case "\r": case "\n": case "\f": return (true); default: return (false); }; } public static function substitute(_arg1:String, ... _args):String{ var _local4:Array; if (_arg1 == null){ return (""); }; var _local3:uint = _args.length; if ((((_local3 == 1)) && ((_args[0] is Array)))){ _local4 = (_args[0] as Array); _local3 = _local4.length; } else { _local4 = _args; }; var _local5:int; while (_local5 < _local3) { _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]); _local5++; }; return (_arg1); } public static function trimArrayElements(_arg1:String, _arg2:String):String{ var _local3:Array; var _local4:int; var _local5:int; if (((!((_arg1 == ""))) && (!((_arg1 == null))))){ _local3 = _arg1.split(_arg2); _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local3[_local5] = StringUtil.trim(_local3[_local5]); _local5++; }; if (_local4 > 0){ _arg1 = _local3.join(_arg2); }; }; return (_arg1); } } }//package mx.utils
Section 253
//_-3T (test._-3T) package test { import _-BU.*; import flash.display.*; import _-Cb.*; import flash.geom.*; public class _-3T extends Bitmap { public var is_possible_remove:Boolean; public var info_contour:Boolean; public var _-KM:int; public var coll2_sensor:Boolean; public var _-5A:Number; public var info_tile:Class; public var info_gradient:Boolean; public var coll2_sensor_angle:_-7Q; public var magic_shift:_-7Q; public var collision_group:int; public var info_colour:uint; public function _-3T(_arg1:Class, _arg2:_-0l, _arg3:Number, _arg4:Boolean=false, _arg5:Number=2, _arg6:uint=0, _arg7:Boolean=true, _arg8:Boolean=false){ var _local9:BitmapData; var _local11:int; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local20:_-7Q; var _local25:int; var _local26:int; var _local29:Matrix; var _local30:Sprite; this.info_tile = _arg1; this.info_colour = _arg6; this.info_gradient = _arg7; this.info_contour = _arg4; this.magic_shift = this.extends(_arg2, _arg3); var _local10:int = _arg2.vertexCount; _local12 = _arg2.vertices[0].x; _local13 = _arg2.vertices[0].y; _local14 = _arg2.vertices[0].x; _local15 = _arg2.vertices[0].y; _local11 = 1; while (_local11 < _local10) { if (_arg2.vertices[_local11].x < _local12){ _local12 = _arg2.vertices[_local11].x; }; if (_arg2.vertices[_local11].x > _local14){ _local14 = _arg2.vertices[_local11].x; }; if (_arg2.vertices[_local11].y < _local13){ _local13 = _arg2.vertices[_local11].y; }; if (_arg2.vertices[_local11].y > _local15){ _local15 = _arg2.vertices[_local11].y; }; _local11++; }; _local16 = (_local14 - _local12); if (_local16 < 0){ _local16 = -(_local16); }; _local17 = (_local15 - _local13); if (_local17 < 0){ _local17 = -(_local17); }; _local9 = new BitmapData(Math.ceil((_local16 * _arg3)), Math.ceil((_local17 * _arg3)), true, 0); var _local18:Sprite = new Sprite(); _local18.graphics.clear(); _local18.graphics.beginFill(0xFF00, 1); var _local19:Number = 5; _local11 = (_local10 - 1); _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); _local18.graphics.moveTo(_local20.x, _local20.y); _local11 = 0; while (_local11 < _local10) { if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); }; _local18.graphics.curveTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3), _local20.x, _local20.y); if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); }; _local18.graphics.lineTo(_local20.x, _local20.y); _local11++; }; _local18.graphics.endFill(); _local9.draw(_local18); _local18 = null; var _local21:int = Math.ceil(Math.sqrt(((_local9.width * _local9.width) + (_local9.height * _local9.height)))); if (_local21 > 2880){ _local21 = 2880; }; _local18 = new Sprite(); var _local22:DisplayObject = new (_arg1); var _local23:int = ((_local21 / _local22.width) + 1); var _local24:int = ((_local21 / _local22.height) + 1); var _local27:Sprite = new Sprite(); this._-Ch(_local27, _local21, _arg6); if (!_arg8){ _local27.rotation = 0; _local29 = _local27.transform.matrix; _local29.tx = -((_local21 / 2)); _local29.ty = -((_local21 / 2)); _local29.rotate((this._-5A + (Math.PI / 4))); _local29.tx = (_local29.tx + (_local9.width / 2)); _local29.ty = (_local29.ty + (_local9.height / 2)); _local27.transform.matrix = _local29; }; _local18.addChild(_local27); if (_arg4){ _local30 = new Sprite(); _local18.addChild(_local30); _local30.graphics.lineStyle(5, 51); _local11 = (_local10 - 1); _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); _local30.graphics.moveTo(_local20.x, _local20.y); _local11 = 0; while (_local11 < _local10) { if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), _local19); }; _local30.graphics.curveTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3), _local20.x, _local20.y); if (_local11 != (_local10 - 1)){ _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[(_local11 + 1)].x - _local12) * _arg3), ((_arg2.vertices[(_local11 + 1)].y - _local13) * _arg3)), _local19); } else { _local20 = this._-8s(new _-7Q(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)), new _-7Q(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)), _local19); }; _local30.graphics.lineTo(_local20.x, _local20.y); _local11++; }; }; var _local28:BitmapData = new BitmapData(_local9.width, _local9.height, true, 0); _local28.draw(_local18); _local18 = null; _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.RED, BitmapDataChannel.RED); _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.GREEN, BitmapDataChannel.GREEN); _local9.copyChannel(_local28, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.BLUE, BitmapDataChannel.BLUE); _local28 = null; super(_local9, "auto", true); } public function _-8s(_arg1:_-7Q, _arg2:_-7Q, _arg3:Number):_-7Q{ var _local4:_-7Q = _arg2.Copy(); _local4._-I4(_arg1); var _local5:Number = _local4._-8u(); if (_local5 > _arg3){ _local4.Multiply((_arg3 / _local5)); } else { _local4.Multiply((1 / _local5)); }; var _local6:_-7Q = _arg2.Copy(); _local6._-I4(_local4); return (_local6); } public function _-Ch(_arg1:Sprite, _arg2:int, _arg3:int):void{ var _local6:int; var _local4 = 2; var _local5 = 15; var _local7:int = (_arg2 / (_local4 + _local5)); _arg1.graphics.lineStyle(0, 0); _arg1.graphics.beginFill(0xFFFFFF); _arg1.graphics.drawRect(0, 0, _arg2, _arg2); _arg1.graphics.endFill(); _arg1.graphics.beginFill(_arg3, 0.55); _arg1.graphics.drawRect(0, 0, _arg2, _arg2); _arg1.graphics.endFill(); _arg1.graphics.lineStyle(_local4, 0, 0.55); _local6 = 0; while (_local6 < _local7) { _arg1.graphics.moveTo((_local6 * (_local4 + _local5)), 0); _arg1.graphics.lineTo((_local6 * (_local4 + _local5)), _arg2); _local6++; }; } protected function extends(_arg1:_-0l, _arg2:Number):_-7Q{ var _local4:int; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local13:Number; var _local3:int = _arg1.vertexCount; var _local9:_-7Q = _arg1.vertices[0].Copy(); this._-KM = 0; _local9._-I4(_arg1.vertices[1]); var _local10:Number = _local9._-8u(); _local5 = _arg1.vertices[0].x; _local6 = _arg1.vertices[0].y; _local7 = _arg1.vertices[0].x; _local8 = _arg1.vertices[0].y; _local4 = 1; while (_local4 < _local3) { if (_arg1.vertices[_local4].x < _local5){ _local5 = _arg1.vertices[_local4].x; }; if (_arg1.vertices[_local4].x > _local7){ _local7 = _arg1.vertices[_local4].x; }; if (_arg1.vertices[_local4].y < _local6){ _local6 = _arg1.vertices[_local4].y; }; if (_arg1.vertices[_local4].y > _local8){ _local8 = _arg1.vertices[_local4].y; }; _local9 = _arg1.vertices[_local4].Copy(); if (_local4 != (_local3 - 1)){ _local9._-I4(_arg1.vertices[(_local4 + 1)]); } else { _local9._-I4(_arg1.vertices[0]); }; _local13 = _local9._-8u(); if (_local13 > _local10){ _local10 = _local13; this._-KM = _local4; }; _local4++; }; if (this._-KM != (_local3 - 1)){ this._-5A = Math.atan2((-(_arg1.vertices[this._-KM].y) + _arg1.vertices[(this._-KM + 1)].y), (_arg1.vertices[(this._-KM + 1)].x - _arg1.vertices[this._-KM].x)); } else { this._-5A = Math.atan2((-(_arg1.vertices[this._-KM].y) + _arg1.vertices[0].y), (_arg1.vertices[0].x - _arg1.vertices[this._-KM].x)); }; var _local11:_-7Q = new _-7Q(((_local7 - _local5) / 2), ((_local8 - _local6) / 2)); var _local12:_-7Q = new _-7Q(_local5, _local6); _local12.Add(_local11); _local12.Multiply(_arg2); return (_local12); } } }//package test
Section 254
//_-8h (test._-8h) package test { import _-BU.*; import game.*; import Box2D.Collision.*; import flash.display.*; import _-80.*; import _-Cb.*; import flash.geom.*; import flash.filters.*; public class _-8h { protected var _-i:_-2r; public var _-De:_-5f; public var _-LB:Sprite; public var _-1g:_-GP; public function _-8h(_arg1:_-2r){ this._-i = _arg1; this._-1g = new _-GP(); } protected function _-GW(_arg1:DisplayObject):void{ var _local2:_-7Q = new _-7Q(0, 0); var _local3:Number = 0; _arg1.rotation = 0; var _local4:Matrix = _arg1.transform.matrix; _local4.tx = -((_arg1.width / 2)); _local4.ty = -((_arg1.height / 2)); _local4.rotate(_local3); var _local5:_-HS = new _-HS(_local3); var _local6:_-7Q = _-8Q._-08(_local5, (_arg1 as _-3T).magic_shift); _local4.tx = (_local4.tx + ((_local2.x * 30) + _local6.x)); _local4.ty = (_local4.ty + ((_local2.y * 30) + _local6.y)); _arg1.transform.matrix = _local4; } public function _-4r():void{ var _local3:int; var _local5:_-2b; var _local1:Array = new Array(); var _local2 = 64; _local3 = this._-i._-7b(this._-1g, _local1, _local2, false, null); var _local4:int; for (;_local4 < _local3;_local4++) { if (_local1[_local4].GetType() != _-EB._-Ay){ //unresolved if } else { _local5 = _local1[_local4].GetBody(); if (_local5.m_userData == null){ } else { if (!_local5.m_userData.is_possible_remove){ } else { if (_local5.m_userData.collision_group == 0){ this._-2f(_local1[_local4]); } else { if (_local5.m_userData.collision_group == 1){ this._-0N(_local1[_local4]); continue; }; }; }; }; }; }; } public function _-36():void{ var _local3:int; var _local5:_-2b; var _local6:Array; var _local7:int; var _local8:Number; var _local9:Number; var _local10:_-7D; var _local11:_-2b; var _local12:_-2b; var _local1:Array = new Array(); var _local2 = 64; _local3 = this._-i._-7b(this._-1g, _local1, _local2, false, null); var _local4:int; while (_local4 < _local3) { if (_local1[_local4].GetType() != _-EB._-Ay){ //unresolved if } else { _local5 = _local1[_local4].GetBody(); if (_local5.m_userData == null){ } else { if (_local5.m_userData.collision_group != 0){ } else { if (!_local5.m_userData.is_possible_remove){ } else { _local6 = new Array(2); _local6[0] = new _-0l(); _local6[1] = new _-0l(); _local6[0].density = 5; _local6[1].density = 5; if (_local1[_local4].GetType() == _-EB._-9l){ _local7 = this._-EO(_local1[_local4], this._-1g, _local6); } else { _local7 = this._-A4(_local1[_local4], this._-1g, _local6); }; if (_local7 == 0){ _local8 = this._-9(_local6[0]); if (_local8 <= 0.1){ } else { _local9 = this._-9(_local6[1]); if (_local9 <= 0.1){ } else { _local10 = new _-7D(); _local10.userData = new _-3T(_local5.m_userData.info_tile, _local6[1], 30, _local5.m_userData.info_contour, 5, _local5.m_userData.info_colour, _local5.m_userData.info_gradient); if (_local9 > _local8){ this._-LB.addChild(_local10.userData); _local10.userData.x = -100; _local10.userData.y = -100; _local10.userData.is_possible_remove = true; _local11 = this._-i._-DL(_local10); _local11._-G(_local6[1]); _local11._-4u(); _local11._-Lw(_local5._-JJ()); _local11._-3d(_local5._-8d()); } else { this._-GW(_local10.userData); this._-De._-2C(_local10.userData, 100); }; _local10 = new _-7D(); _local10.userData = new _-3T(_local5.m_userData.info_tile, _local6[0], 30, _local5.m_userData.info_contour, 5, _local5.m_userData.info_colour, _local5.m_userData.info_gradient); if (_local9 < _local8){ this._-LB.addChild(_local10.userData); _local10.userData.x = -100; _local10.userData.y = -100; _local10.userData.is_possible_remove = true; _local12 = this._-i._-DL(_local10); _local12._-G(_local6[0]); _local12._-4u(); _local12._-Lw(_local5._-JJ()); _local12._-3d(_local5._-8d()); } else { this._-GW(_local10.userData); this._-De._-2C(_local10.userData, 100); }; this._-LB.removeChild(_local5.m_userData); _local5.m_userData = null; this._-i._-6-(_local5); }; }; }; }; }; }; }; _local4++; }; } protected function _-1H(_arg1:DisplayObject):void{ var _local2:DropShadowFilter = new DropShadowFilter(); _local2.color = 0; _local2.blurY = 4; _local2.blurX = 4; _local2.angle = 45; _local2.alpha = 0.5; _local2.distance = 4; var _local3:Array = new Array(_local2); _arg1.filters = _local3; } protected function _-A4(_arg1:_-8P, _arg2, _arg3:Array):int{ if (_arg1 == null){ return (-1); }; if (_arg3 == null){ return (-1); }; var _local4:Array = [1]; var _local5:Array = [0]; var _local6 = 3; var _local7 = 3; var _local8:_-2b = _arg1.GetBody(); var _local9:_-2w = _local8._-3t(); if (_arg1._-Aa(_local9, _local4, _local5, _arg2, 1) != _-EB. case){ return (-1); }; _local6 = _local5[0]; var _local10:_-7Q = _arg2.p1.Copy(); _local10.Multiply((1 - _local4[0])); var _local11:_-7Q = _arg2.p2.Copy(); _local11.Multiply(_local4[0]); _local10.Add(_local11); var _local12:_-GP = new _-GP(); _local12.p1 = _arg2.p2; _local12.p2 = _arg2.p1; if (_arg1._-Aa(_local9, _local4, _local5, _local12, 1) != _-EB. case){ return (-1); }; _local7 = _local5[0]; var _local13:_-7Q = _local12.p1.Copy(); _local13.Multiply((1 - _local4[0])); _local11 = _local12.p2.Copy(); _local11.Multiply(_local4[0]); _local13.Add(_local11); if (_local6 == _local7){ return (-1); }; var _local14:Array = _arg1._-4l(); var _local15:int = (_local6 + 1); var _local16:int = _arg1._-8N(); if (_local15 == _local16){ _local15 = 0; }; _arg3[0].vertices[0] = _local10.Copy(); _arg3[0].vertexCount = 1; while (true) { _arg3[0].vertices[_arg3[0].vertexCount] = _-8Q._-3p(_arg1.m_body.m_xf, _local14[_local15]); _arg3[0].vertexCount++; if (_local15 == _local7){ break; }; _local15++; if (_local15 == _local16){ _local15 = 0; }; }; _arg3[0].vertices[_arg3[0].vertexCount] = _local13.Copy(); _arg3[0].vertexCount++; _local15 = (_local7 + 1); if (_local15 == _local16){ _local15 = 0; }; _arg3[1].vertices[0] = _local13.Copy(); _arg3[1].vertexCount = 1; while (true) { _arg3[1].vertices[_arg3[1].vertexCount] = _-8Q._-3p(_arg1.m_body.m_xf, _local14[_local15]); _arg3[1].vertexCount++; if (_local15 == _local6){ break; }; _local15++; if (_local15 == _local16){ _local15 = 0; }; }; _arg3[1].vertices[_arg3[1].vertexCount] = _local10.Copy(); _arg3[1].vertexCount++; return (0); } protected function _-2f(_arg1):void{ var _local3:_-2b; var _local5:int; var _local9:int; var _local10:_-2b; var _local11:_-2b; var _local2 = 250; _local3 = _arg1.GetBody(); var _local4:Array = new Array(2); _local4[0] = new _-0l(); _local4[1] = new _-0l(); _local4[0].density = 5; _local4[1].density = 5; if (_arg1.GetType() == _-EB._-9l){ _local5 = this._-EO(_arg1, this._-1g, _local4); } else { _local5 = this._-A4(_arg1, this._-1g, _local4); }; if (_local5 != 0){ return; }; var _local6:Number = this._-9(_local4[0]); if (_local6 <= 0.1){ return; }; var _local7:Number = this._-9(_local4[1]); if (_local7 <= 0.1){ return; }; var _local8:_-7D = new _-7D(); if (_local7 > _local6){ _local9 = 0; } else { _local9 = _local3.m_userData.info_colour; }; _local8.userData = new _-3T(_local3.m_userData.info_tile, _local4[1], 30, _local3.m_userData.info_contour, 5, _local9, _local3.m_userData.info_gradient); if (_local7 > _local6){ this._-LB.addChild(_local8.userData); this._-1H(_local8.userData); _local8.userData.x = -100; _local8.userData.y = -100; _local8.userData.is_possible_remove = false; _local10 = this._-i._-DL(_local8); _local10._-G(_local4[1]); _local10._-4u(); _local10._-Lw(_local3._-JJ()); _local10._-3d(_local3._-8d()); } else { this._-GW(_local8.userData); this._-De._-2C(_local8.userData, _local2); }; _local8 = new _-7D(); if (_local7 < _local6){ _local9 = 0; } else { _local9 = _local3.m_userData.info_colour; }; _local8.userData = new _-3T(_local3.m_userData.info_tile, _local4[0], 30, _local3.m_userData.info_contour, 5, _local9, _local3.m_userData.info_gradient); if (_local7 < _local6){ this._-LB.addChild(_local8.userData); this._-1H(_local8.userData); _local8.userData.x = -100; _local8.userData.y = -100; _local8.userData.is_possible_remove = false; _local11 = this._-i._-DL(_local8); _local11._-G(_local4[0]); _local11._-4u(); _local11._-Lw(_local3._-JJ()); _local11._-3d(_local3._-8d()); } else { this._-GW(_local8.userData); this._-De._-2C(_local8.userData, _local2); }; this._-LB.removeChild(_local3.m_userData); _local3.m_userData = null; this._-i._-6-(_local3); } protected function _-EO(_arg1:_-Jt, _arg2, _arg3:Array):int{ var _local16:Number; var _local17:Number; var _local18:int; var _local21:_-7Q; if (_arg1 == null){ return (-1); }; if (_arg3 == null){ return (-1); }; var _local4:Array = [1]; var _local5:_-7Q = new _-7Q(); var _local6:_-2b = _arg1.GetBody(); var _local7:_-2w = _local6._-3t(); if (_arg1.TestSegment(_local7, _local4, _local5, _arg2, 1) != _-EB. case){ return (-1); }; var _local8:_-7Q = _arg2.p1.Copy(); _local8.Multiply((1 - _local4[0])); var _local9:_-7Q = _arg2.p2.Copy(); _local9.Multiply(_local4[0]); _local8.Add(_local9); var _local10:_-GP = new _-GP(); _local10.p1 = _arg2.p2; _local10.p2 = _arg2.p1; if (_arg1.TestSegment(_local7, _local4, _local5, _local10, 1) != _-EB. case){ return (-1); }; var _local11:_-7Q = _local10.p1.Copy(); _local11.Multiply((1 - _local4[0])); _local9 = _local10.p2.Copy(); _local9.Multiply(_local4[0]); _local11.Add(_local9); var _local12:_-7Q = _-8Q._-3p(_arg1.m_body.m_xf, _arg1._-Ac); var _local13:Number = _arg1._-9y; var _local14:Number = Math.atan2((-(_local12.y) + _local8.y), (_local8.x - _local12.x)); var _local15:Number = Math.atan2((-(_local12.y) + _local11.y), (_local11.x - _local12.x)); if (_local14 < 0){ _local14 = ((Math.PI * 2) + _local14); }; if (_local15 < 0){ _local15 = ((Math.PI * 2) + _local15); }; if (_local14 > _local15){ _local17 = _local14; _local16 = _local15; } else { _local17 = _local15; _local16 = _local14; }; var _local19:Number = (_local17 - _local16); var _local20:int = Math.floor(((_local19 * 8) / Math.PI)); if (_local20 < 3){ _local20 = 3; }; _local19 = (_local19 / _local20); _arg3[0].vertexCount = 0; _local20++; _local18 = 0; while (_local18 < _local20) { _local21 = new _-7Q((Math.cos((_local16 + (_local18 * _local19))) * _local13), (Math.sin((_local16 + (_local18 * _local19))) * _local13)); _local21.Add(_local12); _arg3[0].vertices[_arg3[0].vertexCount] = _local21; _arg3[0].vertexCount++; _local18++; }; _local19 = ((Math.PI * 2) - (_local17 - _local16)); _local20 = Math.floor(((_local19 * 8) / Math.PI)); if (_local20 < 3){ _local20 = 3; }; _local19 = (_local19 / _local20); _arg3[1].vertexCount = 0; _local20++; _local18 = 0; while (_local18 < _local20) { _local21 = new _-7Q((Math.cos((_local17 + (_local18 * _local19))) * _local13), (Math.sin((_local17 + (_local18 * _local19))) * _local13)); _local21.Add(_local12); _arg3[1].vertices[_arg3[1].vertexCount] = _local21; _arg3[1].vertexCount++; _local18++; }; return (0); } public function _-0f():void{ var _local3:int; var _local5:_-2b; var _local6:Array; var _local7:int; var _local8:Number; var _local9:Number; var _local10:_-7D; var _local11:_-2b; var _local12:_-2b; var _local1:Array = new Array(); var _local2 = 64; _local3 = this._-i._-7b(this._-1g, _local1, _local2, false, null); var _local4:int; while (_local4 < _local3) { if (_local1[_local4].GetType() != _-EB._-Ay){ //unresolved if } else { _local5 = _local1[_local4].GetBody(); if (_local5.m_userData == null){ } else { if ((_local5.m_userData as _-3T).collision_group != 0){ } else { if (!(_local5.m_userData as _-3T).is_possible_remove){ } else { _local6 = new Array(2); _local6[0] = new _-0l(); _local6[1] = new _-0l(); _local6[0].density = 5; _local6[1].density = 5; if (_local1[_local4].GetType() == _-EB._-9l){ _local7 = this._-EO(_local1[_local4], this._-1g, _local6); } else { _local7 = this._-A4(_local1[_local4], this._-1g, _local6); }; if (_local7 == 0){ _local8 = this._-9(_local6[0]); if (_local8 <= 0.1){ } else { _local9 = this._-9(_local6[1]); if (_local9 <= 0.1){ } else { _local10 = new _-7D(); _local10.userData = new _-3T((_local5.m_userData as _-3T).info_tile, _local6[1], 30, (_local5.m_userData as _-3T).info_contour, 5, (_local5.m_userData as _-3T).info_colour, (_local5.m_userData as _-3T).info_gradient); this._-LB.addChild(_local10.userData); _local10.userData.x = -100; _local10.userData.y = -100; _local10.userData.is_possible_remove = true; _local11 = this._-i._-DL(_local10); _local11._-G(_local6[1]); _local11._-4u(); _local11._-Lw(_local5._-JJ()); _local11._-3d(_local5._-8d()); _local10 = new _-7D(); _local10.userData = new _-3T((_local5.m_userData as _-3T).info_tile, _local6[0], 30, (_local5.m_userData as _-3T).info_contour, 5, (_local5.m_userData as _-3T).info_colour, (_local5.m_userData as _-3T).info_gradient); this._-LB.addChild(_local10.userData); _local10.userData.x = -100; _local10.userData.y = -100; _local10.userData.is_possible_remove = true; _local12 = this._-i._-DL(_local10); _local12._-G(_local6[0]); _local12._-4u(); _local12._-Lw(_local5._-JJ()); _local12._-3d(_local5._-8d()); this._-LB.removeChild(_local5.m_userData); _local5.m_userData = null; this._-i._-6-(_local5); }; }; }; }; }; }; }; _local4++; }; } protected function _-9(_arg1:_-0l):Number{ var _local2:int; var _local3:int; var _local4:int = _arg1.vertexCount; var _local5:Number = 0; _local2 = 0; while (_local2 < _local4) { _local3 = ((_local2 + 1) % _local4); _local5 = ((_local5 + (_arg1.vertices[_local2].x * _arg1.vertices[_local3].y)) - (_arg1.vertices[_local3].x * _arg1.vertices[_local2].y)); _local2++; }; return ((_local5 / 2)); } protected function _-0N(_arg1):void{ var _local2:_-2b; var _local4:int; var _local8:_-2b; var _local9:_-2b; _local2 = _arg1.GetBody(); var _local3:Array = new Array(2); _local3[0] = new _-0l(); _local3[1] = new _-0l(); _local3[0].density = 5; _local3[1].density = 5; if (_arg1.GetType() == _-EB._-9l){ _local4 = this._-EO(_arg1, this._-1g, _local3); } else { _local4 = this._-A4(_arg1, this._-1g, _local3); }; if (_local4 != 0){ return; }; var _local5:Number = this._-9(_local3[0]); if (_local5 <= 0.1){ return; }; var _local6:Number = this._-9(_local3[1]); if (_local6 <= 0.1){ return; }; var _local7:_-7D = new _-7D(); _local7.userData = new _-3T((_local2.m_userData as _-3T).info_tile, _local3[1], 30, (_local2.m_userData as _-3T).info_contour, 5, (_local2.m_userData as _-3T).info_colour, (_local2.m_userData as _-3T).info_gradient); this._-1H(_local7.userData); this._-LB.addChild(_local7.userData); _local7.userData.x = -100; _local7.userData.y = -100; _local7.userData.is_possible_remove = true; _local8 = this._-i._-DL(_local7); _local8._-G(_local3[1]); _local8._-4u(); _local8._-Lw(_local2._-JJ()); _local8._-3d(_local2._-8d()); _local7 = new _-7D(); _local7.userData = new _-3T((_local2.m_userData as _-3T).info_tile, _local3[0], 30, (_local2.m_userData as _-3T).info_contour, 5, (_local2.m_userData as _-3T).info_colour, (_local2.m_userData as _-3T).info_gradient); this._-1H(_local7.userData); this._-LB.addChild(_local7.userData); _local7.userData.x = -100; _local7.userData.y = -100; _local7.userData.is_possible_remove = true; _local9 = this._-i._-DL(_local7); _local9._-G(_local3[0]); _local9._-4u(); _local9._-Lw(_local2._-JJ()); _local9._-3d(_local2._-8d()); this._-LB.removeChild(_local2.m_userData); _local2.m_userData = null; this._-i._-6-(_local2); } } }//package test
Section 255
//_activeButtonStyleStyle (_activeButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 256
//_activeTabStyleStyle (_activeTabStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeTabStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeTabStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 257
//_alertButtonStyleStyle (_alertButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _alertButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".alertButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 734012; }; }; } } }//package
Section 258
//_comboDropdownStyle (_comboDropdownStyle) package { import mx.core.*; import mx.styles.*; public class _comboDropdownStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboDropdown", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.shadowDirection = "center"; this.fontWeight = "normal"; this.dropShadowEnabled = true; this.leading = 0; this.backgroundColor = 0xFFFFFF; this.shadowDistance = 1; this.cornerRadius = 0; this.borderThickness = 0; this.paddingLeft = 5; this.paddingRight = 5; }; }; } } }//package
Section 259
//_dataGridStylesStyle (_dataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _dataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 260
//_dateFieldPopupStyle (_dateFieldPopupStyle) package { import mx.core.*; import mx.styles.*; public class _dateFieldPopupStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dateFieldPopup", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.borderThickness = 0; }; }; } } }//package
Section 261
//_errorTipStyle (_errorTipStyle) package { import mx.core.*; import mx.styles.*; public class _errorTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".errorTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.borderStyle = "errorTipRight"; this.paddingTop = 4; this.borderColor = 13510953; this.color = 0xFFFFFF; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 262
//_globalStyle (_globalStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _globalStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("global", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fillColor = 0xFFFFFF; this.kerning = false; this.iconColor = 0x111111; this.textRollOverColor = 2831164; this.horizontalAlign = "left"; this.shadowCapColor = 14015965; this.backgroundAlpha = 1; this.filled = true; this.textDecoration = "none"; this.roundedBottomCorners = true; this.fontThickness = 0; this.focusBlendMode = "normal"; this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE]; this.horizontalGap = 8; this.borderCapColor = 9542041; this.buttonColor = 7305079; this.indentation = 17; this.selectionDisabledColor = 0xDDDDDD; this.closeDuration = 250; this.embedFonts = false; this.paddingTop = 0; this.letterSpacing = 0; this.focusAlpha = 0.4; this.bevel = true; this.fontSize = 10; this.shadowColor = 0xEEEEEE; this.borderAlpha = 1; this.paddingLeft = 0; this.fontWeight = "normal"; this.indicatorGap = 14; this.focusSkin = HaloFocusRect; this.dropShadowEnabled = false; this.leading = 2; this.borderSkin = HaloBorder; this.fontSharpness = 0; this.modalTransparencyDuration = 100; this.borderThickness = 1; this.backgroundSize = "auto"; this.borderStyle = "inset"; this.borderColor = 12040892; this.fontAntiAliasType = "advanced"; this.errorColor = 0xFF0000; this.shadowDistance = 2; this.horizontalGridLineColor = 0xF7F7F7; this.stroked = false; this.modalTransparencyColor = 0xDDDDDD; this.cornerRadius = 0; this.verticalAlign = "top"; this.textIndent = 0; this.fillAlphas = [0.6, 0.4, 0.75, 0.65]; this.verticalGridLineColor = 14015965; this.themeColor = 40447; this.version = "3.0.0"; this.shadowDirection = "center"; this.modalTransparency = 0.5; this.repeatInterval = 35; this.openDuration = 250; this.textAlign = "left"; this.fontFamily = "Verdana"; this.textSelectedColor = 2831164; this.paddingBottom = 0; this.strokeWidth = 1; this.fontGridFitType = "pixel"; this.horizontalGridLines = false; this.useRollOver = true; this.verticalGridLines = true; this.repeatDelay = 500; this.fontStyle = "normal"; this.dropShadowColor = 0; this.focusThickness = 2; this.verticalGap = 6; this.disabledColor = 11187123; this.paddingRight = 0; this.focusRoundedCorners = "tl tr bl br"; this.borderSides = "left top right bottom"; this.disabledIconColor = 0x999999; this.modalTransparencyBlur = 3; this.color = 734012; this.selectionDuration = 250; this.highlightAlphas = [0.3, 0]; }; }; } } }//package
Section 263
//_headerDateTextStyle (_headerDateTextStyle) package { import mx.core.*; import mx.styles.*; public class _headerDateTextStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDateText", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 264
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle) package { import mx.core.*; import mx.styles.*; public class _headerDragProxyStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 265
//_linkButtonStyleStyle (_linkButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _linkButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".linkButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 2; }; }; } } }//package
Section 266
//_opaquePanelStyle (_opaquePanelStyle) package { import mx.core.*; import mx.styles.*; public class _opaquePanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".opaquePanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderColor = 0xFFFFFF; this.backgroundColor = 0xFFFFFF; this.headerColors = [0xE7E7E7, 0xD9D9D9]; this.footerColors = [0xE7E7E7, 0xC7C7C7]; this.borderAlpha = 1; }; }; } } }//package
Section 267
//_plainStyle (_plainStyle) package { import mx.core.*; import mx.styles.*; public class _plainStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".plain", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 0; this.backgroundColor = 0xFFFFFF; this.backgroundImage = ""; this.horizontalAlign = "left"; this.paddingLeft = 0; this.paddingBottom = 0; this.paddingRight = 0; }; }; } } }//package
Section 268
//_popUpMenuStyle (_popUpMenuStyle) package { import mx.core.*; import mx.styles.*; public class _popUpMenuStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".popUpMenu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "normal"; this.textAlign = "left"; }; }; } } }//package
Section 269
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle) package { import mx.core.*; import mx.styles.*; public class _richTextEditorTextAreaStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 270
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle) package { import mx.core.*; import mx.styles.*; public class _swatchPanelTextFieldStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "inset"; this.borderColor = 14015965; this.highlightColor = 12897484; this.backgroundColor = 0xFFFFFF; this.shadowCapColor = 14015965; this.shadowColor = 14015965; this.paddingLeft = 5; this.buttonColor = 7305079; this.borderCapColor = 9542041; this.paddingRight = 5; }; }; } } }//package
Section 271
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaHScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 272
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaVScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 273
//_todayStyleStyle (_todayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _todayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".todayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0xFFFFFF; this.textAlign = "center"; }; }; } } }//package
Section 274
//_weekDayStyleStyle (_weekDayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _weekDayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".weekDayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 275
//_windowStatusStyle (_windowStatusStyle) package { import mx.core.*; import mx.styles.*; public class _windowStatusStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStatus", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0x666666; }; }; } } }//package
Section 276
//_windowStylesStyle (_windowStylesStyle) package { import mx.core.*; import mx.styles.*; public class _windowStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 277
//en_US$core_properties (en_US$core_properties) package { import mx.resources.*; public class en_US$core_properties extends ResourceBundle { public function en_US$core_properties(){ super("en_US", "core"); } override protected function getContent():Object{ var _local1:Object = {multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).", truncationIndicator:"...", notExecuting:"Repeater is not executing.", versionAlreadyRead:"Compatibility version has already been read.", multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).", viewSource:"View Source", badFile:"File does not exist.", stateUndefined:"Undefined state '{0}'.", versionAlreadySet:"Compatibility version has already been set."}; return (_local1); } } }//package
Section 278
//en_US$skins_properties (en_US$skins_properties) package { import mx.resources.*; public class en_US$skins_properties extends ResourceBundle { public function en_US$skins_properties(){ super("en_US", "skins"); } override protected function getContent():Object{ var _local1:Object = {notLoaded:"Unable to load '{0}'."}; return (_local1); } } }//package
Section 279
//en_US$styles_properties (en_US$styles_properties) package { import mx.resources.*; public class en_US$styles_properties extends ResourceBundle { public function en_US$styles_properties(){ super("en_US", "styles"); } override protected function getContent():Object{ var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."}; return (_local1); } } }//package
Section 280
//Main (Main) package { import game.*; import flash.display.*; import flash.events.*; import flash.geom.*; import flash.net.*; public class Main extends Sprite { protected var _-7J:_-84; protected var _-23:Sprite; protected var _-Ht:_-4s; protected var _-CO:Number; private var _-0n:Class; protected var _-8l:MovieClip; public function Main(){ this._-0n = native; super(); if (stage){ this._-6b(null); } else { addEventListener(Event.ADDED_TO_STAGE, this._-6b); }; } public function _-Lp():void{ var _local1:Matrix = new Matrix(); _local1.createGradientBox(0x0400, 0x0300, (Math.PI / 2), 0, 0); this.graphics.beginGradientFill(GradientType.LINEAR, [0xFFFFFF, 0], [0.9, 0.1], [0, 0xFF], _local1); this.graphics.drawRect(0, 0, 0x0400, 0x0300); this.graphics.endFill(); } public function each (_arg1:Event=null):void{ stage.scaleMode = StageScaleMode.NO_SCALE; removeEventListener(Event.ADDED_TO_STAGE, this.each ); this._-7J = new _-84(); addChild(this._-7J); } public function _-CM():void{ this.graphics.beginFill(0xFFFFFF); this.graphics.drawRect(0, 0, 800, 600); this.graphics.endFill(); } protected function _-4C():void{ trace("worked"); this._-8l.stop(); removeChild(this._-8l); this._-8l = null; this.each (); } protected function _-6E(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.addictinggames.com/"); navigateToURL(_local2, "_blank"); } protected function _-6b(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, this._-6b); this._-8l = new this._-0n(); this._-8l.addEventListener(MouseEvent.CLICK, this._-6E); this._-8l.addFrameScript(133, this._-4C); trace(this._-8l.totalFrames); trace(this._-8l.numChildren); trace(this._-8l.getChildAt(0)); trace(this._-8l.width, this._-8l.height); this._-8l.scaleX = 1.2; this._-8l.scaleY = this._-8l.scaleX; addChild(this._-8l); } public function _-5Q():void{ var _local1:DisplayObject = new this._-0n(); _local1.x = 240; _local1.y = 240; addChild(_local1); this.graphics.lineStyle(5, 0xFF0000); this.graphics.moveTo(240, 240); this.graphics.lineTo(300, 240); this.graphics.moveTo(240, 240); this.graphics.lineTo(240, 300); } protected function try(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } public function _-Fq():void{ var _local3:int; var _local1 = 8; this.graphics.lineStyle(1, 0xAAAAAA, 0.25); var _local2:int = (0x0400 / _local1); _local3 = 0; while (_local3 < _local2) { this.graphics.moveTo((_local3 * _local1), 0); this.graphics.lineTo((_local3 * _local1), 0x0300); _local3++; }; _local2 = (0x0300 / _local1); _local3 = 0; while (_local3 < _local2) { this.graphics.moveTo(0, (_local3 * _local1)); this.graphics.lineTo(0x0400, (_local3 * _local1)); _local3++; }; } } }//package
Section 281
//native (native) package { import mx.core.*; public class native extends MovieClipAsset { } }//package

Library Items

Symbol 1 Bitmap {_-83._-k}
Symbol 2 GraphicUsed by:151 154
Symbol 3 BitmapUsed by:14 29
Symbol 4 BitmapUsed by:14
Symbol 5 BitmapUsed by:14
Symbol 6 BitmapUsed by:14 29
Symbol 7 BitmapUsed by:14
Symbol 8 BitmapUsed by:14
Symbol 9 BitmapUsed by:14
Symbol 10 BitmapUsed by:14
Symbol 11 BitmapUsed by:14
Symbol 12 BitmapUsed by:14
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:12 11 10 9 8 7 6 5 4 3 13Used by:15
Symbol 15 MovieClipUses:14Used by:154
Symbol 16 BitmapUsed by:29
Symbol 17 BitmapUsed by:29
Symbol 18 BitmapUsed by:29
Symbol 19 BitmapUsed by:29
Symbol 20 BitmapUsed by:29
Symbol 21 BitmapUsed by:29
Symbol 22 BitmapUsed by:29
Symbol 23 BitmapUsed by:29
Symbol 24 BitmapUsed by:29
Symbol 25 BitmapUsed by:29
Symbol 26 BitmapUsed by:29
Symbol 27 BitmapUsed by:29
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:27 26 25 24 23 22 3 21 20 19 18 17 16 6 28Used by:30
Symbol 30 MovieClipUses:29Used by:154
Symbol 31 BitmapUsed by:45
Symbol 32 BitmapUsed by:45
Symbol 33 BitmapUsed by:45
Symbol 34 BitmapUsed by:45
Symbol 35 BitmapUsed by:45
Symbol 36 BitmapUsed by:45
Symbol 37 BitmapUsed by:45
Symbol 38 BitmapUsed by:45
Symbol 39 BitmapUsed by:45
Symbol 40 BitmapUsed by:45
Symbol 41 BitmapUsed by:45
Symbol 42 BitmapUsed by:45
Symbol 43 BitmapUsed by:45
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:43 42 41 40 39 38 37 36 35 34 33 32 31 44Used by:46
Symbol 46 MovieClipUses:45Used by:154
Symbol 47 BitmapUsed by:61
Symbol 48 BitmapUsed by:61
Symbol 49 BitmapUsed by:61
Symbol 50 BitmapUsed by:61
Symbol 51 BitmapUsed by:61
Symbol 52 BitmapUsed by:61
Symbol 53 BitmapUsed by:61
Symbol 54 BitmapUsed by:61
Symbol 55 BitmapUsed by:61
Symbol 56 BitmapUsed by:61
Symbol 57 BitmapUsed by:61
Symbol 58 BitmapUsed by:61
Symbol 59 BitmapUsed by:61
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:59 58 57 56 55 54 53 52 51 50 49 48 47 60Used by:62
Symbol 62 MovieClipUses:61Used by:154
Symbol 63 BitmapUsed by:82
Symbol 64 BitmapUsed by:82
Symbol 65 BitmapUsed by:82
Symbol 66 BitmapUsed by:82
Symbol 67 BitmapUsed by:82
Symbol 68 BitmapUsed by:82
Symbol 69 BitmapUsed by:82
Symbol 70 BitmapUsed by:82
Symbol 71 BitmapUsed by:82
Symbol 72 BitmapUsed by:82
Symbol 73 BitmapUsed by:82
Symbol 74 BitmapUsed by:82
Symbol 75 BitmapUsed by:82
Symbol 76 BitmapUsed by:82
Symbol 77 BitmapUsed by:82
Symbol 78 BitmapUsed by:82
Symbol 79 BitmapUsed by:82
Symbol 80 BitmapUsed by:82
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 81Used by:83
Symbol 83 MovieClipUses:82Used by:154
Symbol 84 BitmapUsed by:99
Symbol 85 BitmapUsed by:99
Symbol 86 BitmapUsed by:99
Symbol 87 BitmapUsed by:99
Symbol 88 BitmapUsed by:99
Symbol 89 BitmapUsed by:99
Symbol 90 BitmapUsed by:99
Symbol 91 BitmapUsed by:99
Symbol 92 BitmapUsed by:99
Symbol 93 BitmapUsed by:99
Symbol 94 BitmapUsed by:99
Symbol 95 BitmapUsed by:99
Symbol 96 BitmapUsed by:99
Symbol 97 BitmapUsed by:99
Symbol 98 BitmapUsed by:99
Symbol 99 GraphicUses:97 96 95 94 93 92 91 90 89 88 87 86 85 84 98Used by:100
Symbol 100 MovieClipUses:99Used by:154
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:152 154
Symbol 103 GraphicUsed by:105
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:103 104Used by:152 154
Symbol 106 SoundUsed by:154
Symbol 107 SoundUsed by:154
Symbol 108 GraphicUsed by:110
Symbol 109 GraphicUsed by:110 121
Symbol 110 MovieClipUses:108 109Used by:152 154
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:111Used by:154
Symbol 113 SoundUsed by:154
Symbol 114 GraphicUsed by:116
Symbol 115 GraphicUsed by:116
Symbol 116 MovieClipUses:114 115Used by:152 154
Symbol 117 GraphicUsed by:119
Symbol 118 GraphicUsed by:119
Symbol 119 MovieClipUses:117 118Used by:152 154
Symbol 120 GraphicUsed by:121
Symbol 121 MovieClipUses:120 109Used by:152 154
Symbol 122 GraphicUsed by:124
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:122 123Used by:152 154
Symbol 125 SoundUsed by:154
Symbol 126 GraphicUsed by:128
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:126 127Used by:152 154
Symbol 129 SoundUsed by:154
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:154
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClipUses:132Used by:147
Symbol 134 GraphicUsed by:136
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:134 135Used by:147
Symbol 137 GraphicUsed by:139
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:137 138Used by:147
Symbol 140 GraphicUsed by:142
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:140 141Used by:147
Symbol 143 GraphicUsed by:145
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClipUses:143 144Used by:147
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:133 136 139 142 145 146Used by:152 154
Symbol 148 SoundUsed by:154
Symbol 149 SoundUsed by:154
Symbol 150 SoundUsed by:154
Symbol 151 MovieClipUses:2Used by:154
Symbol 152 MovieClipUses:128 124 121 119 116 110 105 102 147Used by:154
Symbol 153 SoundUsed by:154
Symbol 154 MovieClip {native} [intro]Uses:2 15 30 46 62 83 100 102 105 106 107 110 112 113 116 119 121 124 125 128 129 131 147 148 149 150 151 152 153
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:159
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:159
Symbol 159 MovieClip {game._-BR} [ball_title]Uses:156 158
Symbol 160 GraphicUsed by:161
Symbol 161 MovieClipUses:160Used by:162
Symbol 162 MovieClip {game._-Gb} [fb1]Uses:161
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClipUses:163Used by:165
Symbol 165 MovieClipUses:164Used by:166
Symbol 166 MovieClip {game._-6y} [tw2]Uses:165
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:167Used by:169
Symbol 169 MovieClipUses:168Used by:170
Symbol 170 MovieClipUses:169Used by:171
Symbol 171 MovieClip {game._-Ey} [tw3]Uses:170
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:172Used by:174
Symbol 174 MovieClipUses:173Used by:175
Symbol 175 MovieClipUses:174Used by:176
Symbol 176 MovieClip {game._-BY} [fb3]Uses:175
Symbol 177 Sound {game.soundManager_Sound1} [game.soundManager_Sound1]
Symbol 178 GraphicUsed by:181
Symbol 179 GraphicUsed by:180
Symbol 180 MovieClipUses:179Used by:181
Symbol 181 MovieClip {game._-Bw} [sky]Uses:178 180
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClipUses:182Used by:184
Symbol 184 MovieClip {game._-3P} [help_res_buttons]Uses:183
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClip {game._-2z} [back4]Uses:185
Symbol 187 GraphicUsed by:188
Symbol 188 MovieClipUses:187Used by:189
Symbol 189 MovieClip {game._-V} [logo_back]Uses:188
Symbol 190 GraphicUsed by:200
Symbol 191 GraphicUsed by:197
Symbol 192 GraphicUsed by:193
Symbol 193 MovieClipUses:192Used by:195
Symbol 194 GraphicUsed by:195
Symbol 195 MovieClipUses:193 194Used by:197 223
Symbol 196 GraphicUsed by:197
Symbol 197 MovieClipUses:191 195 196Used by:200
Symbol 198 FontUsed by:199
Symbol 199 TextUses:198Used by:200
Symbol 200 MovieClipUses:190 197 199Used by:201
Symbol 201 MovieClip {game._-0p} [completed]Uses:200
Symbol 202 GraphicUsed by:205
Symbol 203 FontUsed by:204
Symbol 204 TextUses:203Used by:205
Symbol 205 MovieClipUses:202 204Used by:206
Symbol 206 MovieClip {game._-JE} [completed2]Uses:205
Symbol 207 FontUsed by:208
Symbol 208 TextUses:207Used by:209
Symbol 209 MovieClip {game._-2K} [select_level]Uses:208
Symbol 210 GraphicUsed by:213
Symbol 211 GraphicUsed by:213
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClipUses:210 211 212Used by:216 219
Symbol 214 FontUsed by:215 218
Symbol 215 TextUses:214Used by:216
Symbol 216 MovieClipUses:213 215Used by:217
Symbol 217 MovieClip {game._-JB} [back11]Uses:216
Symbol 218 TextUses:214Used by:219
Symbol 219 MovieClipUses:213 218Used by:220
Symbol 220 MovieClip {game._-Hm} [back22]Uses:219
Symbol 221 GraphicUsed by:223
Symbol 222 GraphicUsed by:223
Symbol 223 MovieClip {game._-s} [pizdec]Uses:221 195 222
Symbol 224 GraphicUsed by:225
Symbol 225 MovieClip {game._-2e} [tile]Uses:224
Symbol 226 GraphicUsed by:227
Symbol 227 MovieClip {game.if} [Cow]Uses:226
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClip {game._-2N} [cloud1]Uses:228
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClip {game._-DZ} [cloud2]Uses:230
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClipUses:232Used by:234
Symbol 234 MovieClip {game._-BC} [cloud3]Uses:233
Symbol 235 MovieClip {game._-JY}
Symbol 236 Bitmap {game._-Hd}
Symbol 237 Bitmap {game._-2u}
Symbol 238 Bitmap {game._-K1}
Symbol 239 BinaryData {game._-Dj}
Symbol 240 BinaryData {game._-C2}
Symbol 241 Bitmap {game._-Fl}
Symbol 242 Bitmap {game._-LA}
Symbol 243 Bitmap {game._-6S}
Symbol 244 Bitmap {game._-L6}
Symbol 245 Bitmap {game._-Bp}
Symbol 246 Bitmap {game._-Gq}
Symbol 247 Bitmap {game._-KH}
Symbol 248 Bitmap {game._-5H}
Symbol 249 Bitmap {game._-6N}
Symbol 250 Bitmap {game._-5S}
Symbol 251 Bitmap {game._-1s}
Symbol 252 Bitmap {game._-JO}
Symbol 253 Bitmap {game._-CF}
Symbol 254 Bitmap {game._-a}
Symbol 255 Bitmap {game._-0S}
Symbol 256 Bitmap {game._-E}
Symbol 257 Bitmap {game._-9e}
Symbol 258 Bitmap {game._-v}
Symbol 259 Bitmap {game._-9x}
Symbol 260 Bitmap {game._-88}
Symbol 261 Font {game.mainMenu_FontClass1}
Symbol 262 Bitmap {game._-4B}
Symbol 263 Bitmap {game._-Gw}
Symbol 264 Bitmap {game._-81}
Symbol 265 Bitmap {game._-EP}
Symbol 266 BinaryData {game._-JA}
Symbol 267 Bitmap {game._-9S}
Symbol 268 Bitmap {game._-0v}
Symbol 269 Bitmap {game._-78}
Symbol 270 Bitmap {game._-Ar}
Symbol 271 BinaryData {game._-BX}
Symbol 272 Bitmap {game.in}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1459 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 2Symbol 154 as "intro"
ExportAssets (56)Timeline Frame 2Symbol 159 as "ball_title"
ExportAssets (56)Timeline Frame 2Symbol 162 as "fb1"
ExportAssets (56)Timeline Frame 2Symbol 166 as "tw2"
ExportAssets (56)Timeline Frame 2Symbol 171 as "tw3"
ExportAssets (56)Timeline Frame 2Symbol 176 as "fb3"
ExportAssets (56)Timeline Frame 2Symbol 177 as "game.soundManager_Sound1"
ExportAssets (56)Timeline Frame 2Symbol 181 as "sky"
ExportAssets (56)Timeline Frame 2Symbol 184 as "help_res_buttons"
ExportAssets (56)Timeline Frame 2Symbol 186 as "back4"
ExportAssets (56)Timeline Frame 2Symbol 189 as "logo_back"
ExportAssets (56)Timeline Frame 2Symbol 201 as "completed"
ExportAssets (56)Timeline Frame 2Symbol 206 as "completed2"
ExportAssets (56)Timeline Frame 2Symbol 209 as "select_level"
ExportAssets (56)Timeline Frame 2Symbol 217 as "back11"
ExportAssets (56)Timeline Frame 2Symbol 220 as "back22"
ExportAssets (56)Timeline Frame 2Symbol 223 as "pizdec"
ExportAssets (56)Timeline Frame 2Symbol 225 as "tile"
ExportAssets (56)Timeline Frame 2Symbol 227 as "Cow"
ExportAssets (56)Timeline Frame 2Symbol 229 as "cloud1"
ExportAssets (56)Timeline Frame 2Symbol 231 as "cloud2"
ExportAssets (56)Timeline Frame 2Symbol 234 as "cloud3"
Tag 0x0FF (255)Timeline Frame 11 bytes "."
SerialNumber (41)Timeline Frame 1

Labels

"preloader_preloaderCPMStar4v4"Frame 1
"Main"Frame 2




http://swfchan.com/25/122182/info.shtml
Created: 4/3 -2019 02:10:14 Last modified: 4/3 -2019 02:10:14 Server time: 07/05 -2024 15:46:11