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

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

colliderixN.swf

This is the info page for
Flash #82705

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


Text
CONTINUE

CONTINUE

completed

not complete

select a level:

back

back

ActionScript [AS3]

Section 1
//_-1i (_-._-1i) package _- { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-Cd.*; public class _-1i { public var _-Ci:int; public var _-0n:Array; public var _-AE; public var _-1O:_-DV; public function _-1i(_arg1:_-DV, _arg2:Array, _arg3:int, _arg4){ var _local5:_-8z; var _local6:int; var _local7:_-CE; var _local8:_-JY; var _local10:_-7S; var _local11:_-7S; 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:_-38; var _local24:Number; var _local25:Number; var _local26:_-5a; var _local27:uint; var _local28:_-Ic; var _local29:_-Kn; 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; _-1O = new _-DV(); _-0n = new Array(); super(); _-1O._-3J = _arg1._-3J; _-1O._-Fp = _arg1._-Fp; _-1O._-2h = _arg1._-2h; _-AE = _arg4; _-Ci = 0; _local6 = 0; while (_local6 < _arg3) { _local5 = _arg2[_local6]; _-Ci = (_-Ci + _local5._-7D); _local6++; }; _local6 = 0; while (_local6 < _-Ci) { _-0n[_local6] = new _-5a(); _local6++; }; var _local9:int; _local6 = 0; while (_local6 < _arg3) { _local5 = _arg2[_local6]; _local10 = _local5._-Fx.m_body; _local11 = _local5._-Es.m_body; _local12 = _local5._-7D; _local13 = _local5.GetManifolds(); _local14 = _local5._-GB; _local15 = _local5._-Jd; _local16 = _local10._-FD.x; _local17 = _local10._-FD.y; _local18 = _local11._-FD.x; _local19 = _local11._-FD.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 = _-0n[_local9]; _local26._-7h = _local10; _local26._-C = _local11; _local26._-c = _local23; _local26.normal.x = _local24; _local26.normal.y = _local25; _local26._-Cp = _local23._-Cp; _local26._-4T = _local14; _local26._-Gq = _local15; _local27 = 0; while (_local27 < _local26._-Cp) { _local28 = _local23.points[_local27]; _local29 = _local26.points[_local27]; _local29._-Ih = _local28._-Ih; _local29._-F3 = _local28._-F3; _local29._-HW = _local28._-HW; _local29._-7p = 0; _local29._-6-._-DC(_local28._-A2); _local29._-Fj._-DC(_local28._-0A); _local8 = _local10.m_xf.R; _local32 = (_local28._-A2.x - _local10.m_sweep.localCenter.x); _local33 = (_local28._-A2.y - _local10.m_sweep.localCenter.y); _local30 = ((_local8._-0t.x * _local32) + (_local8._-8Z.x * _local33)); _local33 = ((_local8._-0t.y * _local32) + (_local8._-8Z.y * _local33)); _local32 = _local30; _local29._-Hl.Set(_local32, _local33); _local8 = _local11.m_xf.R; _local34 = (_local28._-0A.x - _local11.m_sweep.localCenter.x); _local35 = (_local28._-0A.y - _local11.m_sweep.localCenter.y); _local30 = ((_local8._-0t.x * _local34) + (_local8._-8Z.x * _local35)); _local35 = ((_local8._-0t.y * _local34) + (_local8._-8Z.y * _local35)); _local34 = _local30; _local29._-Ba.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._-HO + _local11._-HO); _local40 = (_local40 + ((_local10.for * (_local36 - (_local38 * _local38))) + (_local11.for * (_local37 - (_local39 * _local39))))); _local29._-2V = (1 / _local40); _local41 = ((_local10.m_mass * _local10._-HO) + (_local11.m_mass * _local11._-HO)); _local41 = (_local41 + (((_local10.m_mass * _local10.for) * (_local36 - (_local38 * _local38))) + ((_local11.m_mass * _local11.for) * (_local37 - (_local39 * _local39))))); _local29._-69 = (1 / _local41); _local42 = _local25; _local43 = -(_local24); _local44 = ((_local32 * _local42) + (_local33 * _local43)); _local45 = ((_local34 * _local42) + (_local35 * _local43)); _local46 = (_local10._-HO + _local11._-HO); _local46 = (_local46 + ((_local10.for * (_local36 - (_local44 * _local44))) + (_local11.for * (_local37 - (_local45 * _local45))))); _local29._-K = (1 / _local46); _local29._-AH = 0; if (_local29._-HW > 0){ _local29._-AH = (-60 * _local29._-HW); }; _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 < -(_-Dm._-G0)){ _local29._-AH = (_local29._-AH + (-(_local26._-Gq) * _local47)); }; _local27++; }; _local9++; _local22++; }; _local6++; }; } public function InitVelocityConstraints(_arg1:_-DV):void{ var _local2:_-CE; var _local3:_-CE; var _local4:_-JY; var _local6:_-5a; var _local7:_-7S; var _local8:_-7S; 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:_-Kn; var _local21:Number; var _local22:Number; var _local23:_-Kn; var _local5:int; while (_local5 < _-Ci) { _local6 = _-0n[_local5]; _local7 = _local6._-7h; _local8 = _local6._-C; _local9 = _local7._-HO; _local10 = _local7.for; _local11 = _local8._-HO; _local12 = _local8.for; _local13 = _local6.normal.x; _local14 = _local6.normal.y; _local15 = _local14; _local16 = -(_local13); if (_arg1._-CW){ _local19 = _local6._-Cp; _local18 = 0; while (_local18 < _local19) { _local20 = _local6.points[_local18]; _local6.points[_local18]._-Ih = (_local20._-Ih * _arg1._-w); _local20._-F3 = (_local20._-F3 * _arg1._-w); _local21 = ((_local20._-Ih * _local13) + (_local20._-F3 * _local15)); _local22 = ((_local20._-Ih * _local14) + (_local20._-F3 * _local16)); _local7.m_angularVelocity = (_local7.m_angularVelocity - (_local10 * ((_local20._-Hl.x * _local22) - (_local20._-Hl.y * _local21)))); _local7._-FD.x = (_local7._-FD.x - (_local9 * _local21)); _local7._-FD.y = (_local7._-FD.y - (_local9 * _local22)); _local8.m_angularVelocity = (_local8.m_angularVelocity + (_local12 * ((_local20._-Ba.x * _local22) - (_local20._-Ba.y * _local21)))); _local8._-FD.x = (_local8._-FD.x + (_local11 * _local21)); _local8._-FD.y = (_local8._-FD.y + (_local11 * _local22)); _local18++; }; } else { _local19 = _local6._-Cp; _local18 = 0; while (_local18 < _local19) { _local23 = _local6.points[_local18]; _local23._-Ih = 0; _local23._-F3 = 0; _local18++; }; }; _local5++; }; } public function SolvePositionConstraints(_arg1:Number):Boolean{ var _local3:_-JY; var _local4:_-CE; var _local6:_-5a; var _local7:_-7S; var _local8:_-7S; var _local9:_-CE; var _local10:Number; var _local11:_-CE; 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:_-Kn; 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 < _-Ci) { _local6 = _-0n[_local5]; _local7 = _local6._-7h; _local8 = _local6._-C; _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._-HO); _local14 = (_local7.m_mass * _local7.for); _local15 = (_local8.m_mass * _local8._-HO); _local16 = (_local8.m_mass * _local8.for); _local17 = _local6.normal.x; _local18 = _local6.normal.y; _local19 = _local6._-Cp; _local20 = 0; while (_local20 < _local19) { _local21 = _local6.points[_local20]; _local3 = _local7.m_xf.R; _local4 = _local7.m_sweep.localCenter; _local22 = (_local21._-6-.x - _local4.x); _local23 = (_local21._-6-.y - _local4.y); _local26 = ((_local3._-0t.x * _local22) + (_local3._-8Z.x * _local23)); _local23 = ((_local3._-0t.y * _local22) + (_local3._-8Z.y * _local23)); _local22 = _local26; _local3 = _local8.m_xf.R; _local4 = _local8.m_sweep.localCenter; _local24 = (_local21._-Fj.x - _local4.x); _local25 = (_local21._-Fj.y - _local4.y); _local26 = ((_local3._-0t.x * _local24) + (_local3._-8Z.x * _local25)); _local25 = ((_local3._-0t.y * _local24) + (_local3._-8Z.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._-HW); _local2 = _-Fk._-Ga(_local2, _local33); _local34 = (_arg1 * _-Fk._-1F((_local33 + _-Dm._-Fq), -(_-Dm._-4U), 0)); _local35 = (-(_local21._-69) * _local34); _local36 = _local21._-7p; _local21._-7p = _-Fk._-3u((_local36 + _local35), 0); _local35 = (_local21._-7p - _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._-Gw(); _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._-Gw(); _local20++; }; _local5++; }; return ((_local2 >= (-1.5 * _-Dm._-Fq))); } public function SolveVelocityConstraints():void{ var _local1:int; var _local2:_-Kn; 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:_-JY; var _local18:_-CE; var _local20:_-5a; var _local21:_-7S; var _local22:_-7S; var _local23:Number; var _local24:Number; var _local25:_-CE; var _local26:_-CE; 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 < _-Ci) { _local20 = _-0n[_local19]; _local21 = _local20._-7h; _local22 = _local20._-C; _local23 = _local21.m_angularVelocity; _local24 = _local22.m_angularVelocity; _local25 = _local21._-FD; _local26 = _local22._-FD; _local27 = _local21._-HO; _local28 = _local21.for; _local29 = _local22._-HO; _local30 = _local22.for; _local31 = _local20.normal.x; _local32 = _local20.normal.y; _local33 = _local32; _local34 = -(_local31); _local35 = _local20._-4T; _local37 = _local20._-Cp; _local1 = 0; while (_local1 < _local37) { _local2 = _local20.points[_local1]; _local7 = (((_local26.x + (-(_local24) * _local2._-Ba.y)) - _local25.x) - (-(_local23) * _local2._-Hl.y)); _local8 = (((_local26.y + (_local24 * _local2._-Ba.x)) - _local25.y) - (_local23 * _local2._-Hl.x)); _local9 = ((_local7 * _local31) + (_local8 * _local32)); _local11 = (-(_local2._-2V) * (_local9 - _local2._-AH)); _local10 = ((_local7 * _local33) + (_local8 * _local34)); _local12 = (_local2._-K * -(_local10)); _local13 = _-Fk._-3u((_local2._-Ih + _local11), 0); _local11 = (_local13 - _local2._-Ih); _local38 = (_local35 * _local2._-Ih); _local14 = _-Fk._-1F((_local2._-F3 + _local12), -(_local38), _local38); _local12 = (_local14 - _local2._-F3); _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._-Hl.x * _local16) - (_local2._-Hl.y * _local15)))); _local26.x = (_local26.x + (_local29 * _local15)); _local26.y = (_local26.y + (_local29 * _local16)); _local24 = (_local24 + (_local30 * ((_local2._-Ba.x * _local16) - (_local2._-Ba.y * _local15)))); _local2._-Ih = _local13; _local2._-F3 = _local14; _local1++; }; _local21.m_angularVelocity = _local23; _local22.m_angularVelocity = _local24; _local19++; }; } public function _-DK():void{ var _local2:_-5a; var _local3:_-38; var _local4:int; var _local5:_-Ic; var _local6:_-Kn; var _local1:int; while (_local1 < _-Ci) { _local2 = _-0n[_local1]; _local3 = _local2._-c; _local4 = 0; while (_local4 < _local2._-Cp) { _local5 = _local3.points[_local4]; _local6 = _local2.points[_local4]; _local5._-Ih = _local6._-Ih; _local5._-F3 = _local6._-F3; _local4++; }; _local1++; }; } } }//package _-
Section 2
//_-2g (_-._-2g) package _- { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-Cd.*; import _-5v.*; public class _-2g extends _-8z { private var _-JZ:Array; private var _-8b:_-38; public var _-2v:_-38; private static const _-6w:_-5b = new _-5b(); public function _-2g(_arg1:_-Ai, _arg2:_-Ai):void{ _-8b = new _-38(); _-JZ = [new _-38()]; super(_arg1, _arg2); _-2v = _-JZ[0]; _-2v._-Cp = 0; } override public function Evaluate(_arg1:_-Ie):void{ var _local2:_-CE; var _local3:_-CE; var _local4:_-Ic; var _local7:_-5b; var _local8:int; var _local10:_-Ic; var _local11:Boolean; var _local12:uint; var _local13:int; var _local5:_-7S = _-Fx.m_body; var _local6:_-7S = _-Es.m_body; _-8b.Set(_-2v); _-An._-KT(_-2v, (_-Fx as _-Au), _local5.m_xf, (_-Es as _-Au), _local6.m_xf); var _local9:Array = [false, false]; _local7 = _-6w; _local7.shape1 = _-Fx; _local7.shape2 = _-Es; _local7._-4T = _-GB; _local7._-Gq = _-Jd; if (_-2v._-Cp > 0){ _local8 = 0; while (_local8 < _-2v._-Cp) { _local10 = _-2v.points[_local8]; _local10._-Ih = 0; _local10._-F3 = 0; _local11 = false; _local12 = _local10.id._-9J; _local13 = 0; while (_local13 < _-8b._-Cp) { if (_local9[_local13] == true){ } else { _local4 = _-8b.points[_local13]; if (_local4.id._-9J == _local12){ _local9[_local13] = true; _local10._-Ih = _local4._-Ih; _local10._-F3 = _local4._-F3; _local11 = true; if (_arg1 != null){ _local7.position = _local5.GetWorldPoint(_local10._-A2); _local2 = _local5._-0b(_local10._-A2); _local3 = _local6._-0b(_local10._-0A); _local7._-4g.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-DC(_-2v.normal); _local7._-HW = _local10._-HW; _local7.id.key = _local12; _arg1._-AK(_local7); }; break; }; }; _local13++; }; if ((((_local11 == false)) && (!((_arg1 == null))))){ _local7.position = _local5.GetWorldPoint(_local10._-A2); _local2 = _local5._-0b(_local10._-A2); _local3 = _local6._-0b(_local10._-0A); _local7._-4g.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-DC(_-2v.normal); _local7._-HW = _local10._-HW; _local7.id.key = _local12; _arg1.Add(_local7); }; _local8++; }; _-7D = 1; } else { _-7D = 0; }; if (_arg1 == null){ return; }; _local8 = 0; while (_local8 < _-8b._-Cp) { if (_local9[_local8]){ } else { _local4 = _-8b.points[_local8]; _local7.position = _local5.GetWorldPoint(_local4._-A2); _local2 = _local5._-0b(_local4._-A2); _local3 = _local6._-0b(_local4._-0A); _local7._-4g.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-DC(_-8b.normal); _local7._-HW = _local4._-HW; _local7.id.key = _local4.id._-9J; _arg1._-3T(_local7); }; _local8++; }; } override public function GetManifolds():Array{ return (_-JZ); } public static function _-D5(_arg1:_-8z, _arg2):void{ } public static function _-HA(_arg1:_-Ai, _arg2:_-Ai, _arg3):_-8z{ return (new _-2g(_arg1, _arg2)); } } }//package _-
Section 3
//_-5a (_-._-5a) package _- { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-Cd.*; public class _-5a { public var points:Array; public var normal:_-CE; public var _-Gq:Number; public var _-7h:_-7S; public var _-c:_-38; public var _-C:_-7S; public var _-4T:Number; public var _-Cp:int; public function _-5a(){ normal = new _-CE(); super(); points = new Array(_-Dm._-HQ); var _local1:int; while (_local1 < _-Dm._-HQ) { points[_local1] = new _-Kn(); _local1++; }; } } }//package _-
Section 4
//_-8z (_-._-8z) package _- { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-Cd.*; import _-5v.*; public class _-8z { public var _-Fx:_-Ai; public var _-Es:_-Ai; public var _-8C:_-8z; public var _-Id:Number; public var _-Fv:_-8z; public var _-GB:Number; public var _-7D:int; public var _-FB:_-Jw; public var _-8V:_-Jw; public var _-Jd:Number; public var _-5o:uint; public static var _-CQ:uint = 8; public static var _-9n:uint = 1; public static var _-36:uint = 2; public static var _-1m:uint = 4; public static var _-2y:Array; public static var _-0m:Boolean = false; public function _-8z(_arg1:_-Ai=null, _arg2:_-Ai=null){ _-FB = new _-Jw(); _-8V = new _-Jw(); super(); _-5o = 0; if (((!(_arg1)) || (!(_arg2)))){ _-Fx = null; _-Es = null; return; }; if (((_arg1._-Kg()) || (_arg2._-Kg()))){ _-5o = (_-5o | _-9n); }; _-Fx = _arg1; _-Es = _arg2; _-7D = 0; _-GB = Math.sqrt((_-Fx._-GB * _-Es._-GB)); _-Jd = _-Fk._-3u(_-Fx._-Jd, _-Es._-Jd); _-8C = null; _-Fv = null; _-FB._-EM = null; _-FB._-I1 = null; _-FB.next = null; _-FB._-73 = null; _-8V._-EM = null; _-8V._-I1 = null; _-8V.next = null; _-8V._-73 = null; } public function _-Jg():Boolean{ return (((_-5o & _-9n) == 0)); } public function _-DH():_-Ai{ return (_-Fx); } public function _-8d():_-Ai{ return (_-Es); } public function _-GG():_-8z{ return (_-Fv); } public function _-8r():int{ return (_-7D); } public function GetManifolds():Array{ return (null); } public function _-0V(_arg1:_-Ie):void{ var _local2:int = _-7D; Evaluate(_arg1); var _local3:int = _-7D; var _local4:_-7S = _-Fx.m_body; var _local5:_-7S = _-Es.m_body; if ((((_local3 == 0)) && ((_local2 > 0)))){ _local4.WakeUp(); _local5.WakeUp(); }; if (((((((_local4.IsStatic()) || (_local4._-Kf()))) || (_local5.IsStatic()))) || (_local5._-Kf()))){ _-5o = (_-5o & ~(_-36)); } else { _-5o = (_-5o | _-36); }; } public function Evaluate(_arg1:_-Ie):void{ } public static function _-Hw():void{ var _local2:int; _-2y = new Array(_-Ai._-C7); var _local1:int; while (_local1 < _-Ai._-C7) { _-2y[_local1] = new Array(_-Ai._-C7); _local2 = 0; while (_local2 < _-Ai._-C7) { _-2y[_local1][_local2] = new _-I(); _local2++; }; _local1++; }; _-4V(_-FO._-HA, _-FO._-D5, _-Ai._-3X, _-Ai._-3X); _-4V(var._-HA, var._-D5, _-Ai._-HH, _-Ai._-3X); _-4V(_-2g._-HA, _-2g._-D5, _-Ai._-HH, _-Ai._-HH); } public static function _-D5(_arg1:_-8z, _arg2):void{ if (_arg1._-7D > 0){ _arg1._-Fx.m_body.WakeUp(); _arg1._-Es.m_body.WakeUp(); }; var _local3:int = _arg1._-Fx.m_type; var _local4:int = _arg1._-Es.m_type; var _local5:_-I = _-2y[_local3][_local4]; var _local6:Function = _local5.destroyFcn; _local6(_arg1, _arg2); } public static function _-4V(_arg1:Function, _arg2:Function, _arg3:int, _arg4:int):void{ _-2y[_arg3][_arg4].createFcn = _arg1; _-2y[_arg3][_arg4].destroyFcn = _arg2; _-2y[_arg3][_arg4].primary = true; if (_arg3 != _arg4){ _-2y[_arg4][_arg3].createFcn = _arg1; _-2y[_arg4][_arg3].destroyFcn = _arg2; _-2y[_arg4][_arg3].primary = false; }; } public static function _-HA(_arg1:_-Ai, _arg2:_-Ai, _arg3):_-8z{ var _local8:_-8z; var _local9:int; var _local10:_-38; if (_-0m == false){ _-Hw(); _-0m = true; }; var _local4:int = _arg1.m_type; var _local5:int = _arg2.m_type; var _local6:_-I = _-2y[_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._-7D) { _local10 = _local8.GetManifolds()[_local9]; _local8.GetManifolds()[_local9].normal = _local10.normal._-1g(); _local9++; }; return (_local8); } else { }; return (!NULL!); } } }//package _-
Section 5
//_-B1 (_-._-B1) package _- { import _-Cd.*; public class _-B1 extends _-8z { override public function Evaluate(_arg1:_-Ie):void{ } override public function GetManifolds():Array{ return (null); } } }//package _-
Section 6
//_-FO (_-._-FO) package _- { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-Cd.*; import _-5v.*; public class _-FO extends _-8z { private var _-JZ:Array; public var _-2v:_-38; private var _-8b:_-38; private static const _-6w:_-5b = new _-5b(); public function _-FO(_arg1:_-Ai, _arg2:_-Ai){ _-JZ = [new _-38()]; _-8b = new _-38(); super(_arg1, _arg2); _-2v = _-JZ[0]; _-2v._-Cp = 0; var _local3:_-Ic = _-2v.points[0]; _local3._-Ih = 0; _local3._-F3 = 0; } override public function Evaluate(_arg1:_-Ie):void{ var _local2:_-CE; var _local3:_-CE; var _local4:_-Ic; var _local8:_-Ic; var _local5:_-7S = _-Fx.m_body; var _local6:_-7S = _-Es.m_body; _-8b.Set(_-2v); _-An._-HY(_-2v, (_-Fx as _-62), _local5.m_xf, (_-Es as _-62), _local6.m_xf); var _local7:_-5b = _-6w; _local7.shape1 = _-Fx; _local7.shape2 = _-Es; _local7._-4T = _-GB; _local7._-Gq = _-Jd; if (_-2v._-Cp > 0){ _-7D = 1; _local8 = _-2v.points[0]; if (_-8b._-Cp == 0){ _local8._-Ih = 0; _local8._-F3 = 0; if (_arg1){ _local7.position = _local5.GetWorldPoint(_local8._-A2); _local2 = _local5._-0b(_local8._-A2); _local3 = _local6._-0b(_local8._-0A); _local7._-4g.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-DC(_-2v.normal); _local7._-HW = _local8._-HW; _local7.id.key = _local8.id._-9J; _arg1.Add(_local7); }; } else { _local4 = _-8b.points[0]; _local8._-Ih = _local4._-Ih; _local8._-F3 = _local4._-F3; if (_arg1){ _local7.position = _local5.GetWorldPoint(_local8._-A2); _local2 = _local5._-0b(_local8._-A2); _local3 = _local6._-0b(_local8._-0A); _local7._-4g.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-DC(_-2v.normal); _local7._-HW = _local8._-HW; _local7.id.key = _local8.id._-9J; _arg1._-AK(_local7); }; }; } else { _-7D = 0; if ((((_-8b._-Cp > 0)) && (_arg1))){ _local4 = _-8b.points[0]; _local7.position = _local5.GetWorldPoint(_local4._-A2); _local2 = _local5._-0b(_local4._-A2); _local3 = _local6._-0b(_local4._-0A); _local7._-4g.Set((_local3.x - _local2.x), (_local3.y - _local2.y)); _local7.normal._-DC(_-8b.normal); _local7._-HW = _local4._-HW; _local7.id.key = _local4.id._-9J; _arg1._-3T(_local7); }; }; } override public function GetManifolds():Array{ return (_-JZ); } public static function _-D5(_arg1:_-8z, _arg2):void{ } public static function _-HA(_arg1:_-Ai, _arg2:_-Ai, _arg3):_-8z{ return (new _-FO(_arg1, _arg2)); } } }//package _-
Section 7
//_-I (_-._-I) package _- { public class _-I { public var primary:Boolean; public var createFcn:Function; public var destroyFcn:Function; } }//package _-
Section 8
//_-Jw (_-._-Jw) package _- { import _-Cd.*; public class _-Jw { public var _-73:_-7S; public var _-I1:_-Jw; public var _-EM:_-8z; public var next:_-Jw; } }//package _-
Section 9
//_-KH (_-._-KH) package _- { import _-9S.*; import Box2D.Collision.*; import _-5v.*; public class _-KH { public var position:_-CE; public var shape1:_-Ai; public var shape2:_-Ai; public var _-Ih:Number; public var normal:_-CE; public var _-F3:Number; public var id:_-Dt; public function _-KH(){ position = new _-CE(); normal = new _-CE(); id = new _-Dt(); super(); } } }//package _-
Section 10
//_-Kn (_-._-Kn) package _- { import _-9S.*; public class _-Kn { public var _-Ba:_-CE; public var _-HW:Number; public var _-7p:Number; public var _-Ih:Number; public var _-K:Number; public var _-69:Number; public var _-F3:Number; public var _-6-:_-CE; public var _-Fj:_-CE; public var _-2V:Number; public var _-AH:Number; public var _-Hl:_-CE; public function _-Kn(){ _-6- = new _-CE(); _-Fj = new _-CE(); _-Hl = new _-CE(); _-Ba = new _-CE(); super(); } } }//package _-
Section 11
//var (_-.var) package _- { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-Cd.*; import _-5v.*; public class var extends _-8z { private var _-JZ:Array; public var _-2v:_-38; private var _-8b:_-38; private static const _-6w:_-5b = new _-5b(); public function var(_arg1:_-Ai, _arg2:_-Ai){ _-JZ = [new _-38()]; _-8b = new _-38(); super(_arg1, _arg2); _-2v = _-JZ[0]; _-Dm._-7i((_-Fx.m_type == _-Ai._-HH)); _-Dm._-7i((_-Es.m_type == _-Ai._-3X)); _-2v._-Cp = 0; var _local3:_-Ic = _-2v.points[0]; _local3._-Ih = 0; _local3._-F3 = 0; } override public function Evaluate(_arg1:_-Ie):void{ var _local2:int; var _local3:_-CE; var _local4:_-CE; var _local5:_-Ic; var _local10:_-Ic; var _local11:Boolean; var _local12:uint; var _local13:int; var _local6:_-7S = _-Fx.m_body; var _local7:_-7S = _-Es.m_body; _-8b.Set(_-2v); _-An._-10(_-2v, (_-Fx as _-Au), _local6.m_xf, (_-Es as _-62), _local7.m_xf); var _local8:Array = [false, false]; var _local9:_-5b = _-6w; _local9.shape1 = _-Fx; _local9.shape2 = _-Es; _local9._-4T = _-GB; _local9._-Gq = _-Jd; if (_-2v._-Cp > 0){ _local2 = 0; while (_local2 < _-2v._-Cp) { _local10 = _-2v.points[_local2]; _local10._-Ih = 0; _local10._-F3 = 0; _local11 = false; _local12 = _local10.id._-9J; _local13 = 0; while (_local13 < _-8b._-Cp) { if (_local8[_local13] == true){ } else { _local5 = _-8b.points[_local13]; if (_local5.id._-9J == _local12){ _local8[_local13] = true; _local10._-Ih = _local5._-Ih; _local10._-F3 = _local5._-F3; _local11 = true; if (_arg1 != null){ _local9.position = _local6.GetWorldPoint(_local10._-A2); _local3 = _local6._-0b(_local10._-A2); _local4 = _local7._-0b(_local10._-0A); _local9._-4g.Set((_local4.x - _local3.x), (_local4.y - _local3.y)); _local9.normal._-DC(_-2v.normal); _local9._-HW = _local10._-HW; _local9.id.key = _local12; _arg1._-AK(_local9); }; break; }; }; _local13++; }; if ((((_local11 == false)) && (!((_arg1 == null))))){ _local9.position = _local6.GetWorldPoint(_local10._-A2); _local3 = _local6._-0b(_local10._-A2); _local4 = _local7._-0b(_local10._-0A); _local9._-4g.Set((_local4.x - _local3.x), (_local4.y - _local3.y)); _local9.normal._-DC(_-2v.normal); _local9._-HW = _local10._-HW; _local9.id.key = _local12; _arg1.Add(_local9); }; _local2++; }; _-7D = 1; } else { _-7D = 0; }; if (_arg1 == null){ return; }; _local2 = 0; while (_local2 < _-8b._-Cp) { if (_local8[_local2]){ } else { _local5 = _-8b.points[_local2]; _local9.position = _local6.GetWorldPoint(_local5._-A2); _local3 = _local6._-0b(_local5._-A2); _local4 = _local7._-0b(_local5._-0A); _local9._-4g.Set((_local4.x - _local3.x), (_local4.y - _local3.y)); _local9.normal._-DC(_-8b.normal); _local9._-HW = _local5._-HW; _local9.id.key = _local5.id._-9J; _arg1._-3T(_local9); }; _local2++; }; } override public function GetManifolds():Array{ return (_-JZ); } public static function _-D5(_arg1:_-8z, _arg2):void{ } public static function _-HA(_arg1:_-Ai, _arg2:_-Ai, _arg3):_-8z{ return (new var(_arg1, _arg2)); } } }//package _-
Section 12
//_-62 (_-5v._-62) package _-5v { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-Cd.*; public class _-62 extends _-Ai { public var _-Dz:_-CE; public var _-9c:Number; public function _-62(_arg1:_-EZ){ _-Dz = new _-CE(); super(_arg1); var _local2:_-Kt = (_arg1 as _-Kt); m_type = _-3X; _-Dz._-DC(_local2._-7G); _-9c = _local2.radius; } override public function TestSegment(_arg1:_-IR, _arg2:Array, _arg3:_-CE, _arg4:_-ET, _arg5:Number):int{ var _local10:Number; var _local6:_-JY = _arg1.R; var _local7:Number = (_arg1.position.x + ((_local6._-0t.x * _-Dz.x) + (_local6._-8Z.x * _-Dz.y))); var _local8:Number = (_arg1.position.y + ((_local6._-0t.y * _-Dz.x) + (_local6._-8Z.y * _-Dz.y))); var _local9:Number = (_arg4.p1.x - _local7); _local10 = (_arg4.p1.y - _local8); var _local11:Number = (((_local9 * _local9) + (_local10 * _local10)) - (_-9c * _-9c)); if (_local11 < 0){ _arg2[0] = 0; return (_-78); }; 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 (_-CL); }; 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._-9l(); return (_-8D); }; return (_-CL); } public function _-EY():_-CE{ return (_-Dz); } public function _-CN():Number{ return (_-9c); } override public function ComputeSweptAABB(_arg1:_-1S, _arg2:_-IR, _arg3:_-IR):void{ var _local4:_-JY; _local4 = _arg2.R; var _local5:Number = (_arg2.position.x + ((_local4._-0t.x * _-Dz.x) + (_local4._-8Z.x * _-Dz.y))); var _local6:Number = (_arg2.position.y + ((_local4._-0t.y * _-Dz.x) + (_local4._-8Z.y * _-Dz.y))); _local4 = _arg3.R; var _local7:Number = (_arg3.position.x + ((_local4._-0t.x * _-Dz.x) + (_local4._-8Z.x * _-Dz.y))); var _local8:Number = (_arg3.position.y + ((_local4._-0t.y * _-Dz.x) + (_local4._-8Z.y * _-Dz.y))); _arg1._-Fu.Set((((_local5 < _local7)) ? _local5 : _local7 - _-9c), (((_local6 < _local8)) ? _local6 : _local8 - _-9c)); _arg1._-1I.Set((((_local5 > _local7)) ? _local5 : _local7 + _-9c), (((_local6 > _local8)) ? _local6 : _local8 + _-9c)); } override public function ComputeMass(_arg1:_-Dx):void{ _arg1.super = (((_-Bz * _-Dm._-3N) * _-9c) * _-9c); _arg1.center._-DC(_-Dz); _arg1._-3M = (_arg1.super * (((0.5 * _-9c) * _-9c) + ((_-Dz.x * _-Dz.x) + (_-Dz.y * _-Dz.y)))); } override public function UpdateSweepRadius(_arg1:_-CE):void{ var _local2:Number = (_-Dz.x - _arg1.x); var _local3:Number = (_-Dz.y - _arg1.y); _local2 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _-Eq = ((_local2 + _-9c) - _-Dm._-6o); } override public function ComputeAABB(_arg1:_-1S, _arg2:_-IR):void{ var _local3:_-JY = _arg2.R; var _local4:Number = (_arg2.position.x + ((_local3._-0t.x * _-Dz.x) + (_local3._-8Z.x * _-Dz.y))); var _local5:Number = (_arg2.position.y + ((_local3._-0t.y * _-Dz.x) + (_local3._-8Z.y * _-Dz.y))); _arg1._-Fu.Set((_local4 - _-9c), (_local5 - _-9c)); _arg1._-1I.Set((_local4 + _-9c), (_local5 + _-9c)); } override public function TestPoint(_arg1:_-IR, _arg2:_-CE):Boolean{ var _local3:_-JY = _arg1.R; var _local4:Number = (_arg1.position.x + ((_local3._-0t.x * _-Dz.x) + (_local3._-8Z.x * _-Dz.y))); var _local5:Number = (_arg1.position.y + ((_local3._-0t.y * _-Dz.x) + (_local3._-8Z.y * _-Dz.y))); _local4 = (_arg2.x - _local4); _local5 = (_arg2.y - _local5); return ((((_local4 * _local4) + (_local5 * _local5)) <= (_-9c * _-9c))); } } }//package _-5v
Section 13
//_-Ai (_-5v._-Ai) package _-5v { import _-9S.*; import Box2D.Collision.*; import _-Cd.*; public class _-Ai { public var _-Fv:_-Ai; public var m_type:int; public var _-Eq:Number; public var _-Bz:Number; public var _-6Q:_-Jy; public var _-GB:Number; public var m_isSensor:Boolean; public var _-Jd:Number; public var m_userData; public var _-6k:uint; public var m_body:_-7S; public static const _-HH:int = 1; public static const _-8D:int = 1; public static const _-CL:int = 0; public static const _-8E:int = -1; public static const _-3X:int = 0; public static const _-C7:int = 2; public static const _-78:int = -1; private static var _-B:_-1S = new _-1S(); private static var _-7m:_-1S = new _-1S(); private static var _-9q:_-1S = new _-1S(); public function _-Ai(_arg1:_-EZ){ m_userData = _arg1.userData; _-GB = _arg1._-4T; _-Jd = _arg1._-Gq; _-Bz = _arg1.density; m_body = null; _-Eq = 0; _-Fv = null; _-6k = _-B9._-IO; _-6Q = _arg1._-H-.Copy(); m_isSensor = _arg1._-E-; } public function _-Aq(_arg1):void{ m_userData = _arg1; } public function _-30():Number{ return (_-Eq); } public function _-GG():_-Ai{ return (_-Fv); } public function ComputeSweptAABB(_arg1:_-1S, _arg2:_-IR, _arg3:_-IR):void{ } public function GetType():int{ return (m_type); } public function _-Dk():Number{ return (_-Jd); } public function _-7X():Number{ return (_-GB); } public function _-5e():_-Jy{ return (_-6Q.Copy()); } public function TestSegment(_arg1:_-IR, _arg2:Array, _arg3:_-CE, _arg4:_-ET, _arg5:Number):int{ return (_-CL); } public function _-DP(_arg1:_-0s, _arg2:_-IR):void{ if (_-6k == _-B9._-IO){ return; }; _arg1._-Jp(_-6k); var _local3:_-1S = _-B; ComputeAABB(_local3, _arg2); var _local4:Boolean = _arg1._-FG(_local3); if (_local4){ _-6k = _arg1._-F6(_local3, this); } else { _-6k = _-B9._-IO; }; } public function _-EP(_arg1:_-Jy):void{ _-6Q = _arg1.Copy(); } public function _-CZ(){ return (m_userData); } public function _-Br(_arg1:_-0s, _arg2:_-IR, _arg3:_-IR):Boolean{ if (_-6k == _-B9._-IO){ return (false); }; var _local4:_-1S = _-7m; ComputeSweptAABB(_local4, _arg2, _arg3); if (_arg1._-FG(_local4)){ _arg1._-1n(_-6k, _local4); return (true); }; return (false); } public function ComputeMass(_arg1:_-Dx):void{ } public function _-Kg():Boolean{ return (m_isSensor); } public function _-Jp(_arg1:_-0s):void{ if (_-6k != _-B9._-IO){ _arg1._-Jp(_-6k); _-6k = _-B9._-IO; }; } public function UpdateSweepRadius(_arg1:_-CE):void{ } public function ComputeAABB(_arg1:_-1S, _arg2:_-IR):void{ } public function GetBody():_-7S{ return (m_body); } public function _-F6(_arg1:_-0s, _arg2:_-IR):void{ var _local3:_-1S = _-9q; ComputeAABB(_local3, _arg2); var _local4:Boolean = _arg1._-FG(_local3); if (_local4){ _-6k = _arg1._-F6(_local3, this); } else { _-6k = _-B9._-IO; }; } public function TestPoint(_arg1:_-IR, _arg2:_-CE):Boolean{ return (false); } public static function _-D5(_arg1:_-Ai, _arg2):void{ } public static function _-HA(_arg1:_-EZ, _arg2):_-Ai{ switch (_arg1.type){ case _-3X: return (new _-62(_arg1)); case _-HH: return (new _-Au(_arg1)); default: return (null); }; } } }//package _-5v
Section 14
//_-Au (_-5v._-Au) package _-5v { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-Cd.*; public class _-Au extends _-Ai { public var _-q:Array; public var _-Hs:Array; private var _-CS:_-CE; public var _-9b:_-CE; public var _-9Y:Array; public var _-GV:_-ER; public var while:int; private static var _-C5:_-JY = new _-JY(); private static var _-5k:_-1S = new _-1S(); private static var _-98:_-1S = new _-1S(); public function _-Au(_arg1:_-EZ){ 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; _-CS = new _-CE(); _-GV = new _-ER(); _-Hs = new Array(_-Dm._-C4); _-9Y = new Array(_-Dm._-C4); _-q = new Array(_-Dm._-C4); super(_arg1); m_type = _-HH; var _local2:_-Bp = (_arg1 as _-Bp); while = _local2.vertexCount; var _local4:int = _local3; var _local5:int = _local3; _local3 = 0; while (_local3 < while) { _-Hs[_local3] = _local2.vertices[_local3].Copy(); _local3++; }; _local3 = 0; while (_local3 < while) { _local4 = _local3; _local5 = (((_local3 + 1) < while)) ? (_local3 + 1) : 0; _local6 = (_-Hs[_local5].x - _-Hs[_local4].x); _local7 = (_-Hs[_local5].y - _-Hs[_local4].y); _local8 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7))); _-9Y[_local3] = new _-CE((_local7 / _local8), (-(_local6) / _local8)); _local3++; }; _-9b = _-FQ(_local2.vertices, _local2.vertexCount); _-3I(_-GV, _-Hs, while); _local3 = 0; while (_local3 < while) { _local4 = (((_local3 - 1) >= 0)) ? (_local3 - 1) : (while - 1); _local5 = _local3; _local9 = _-9Y[_local4].x; _local10 = _-9Y[_local4].y; _local11 = _-9Y[_local5].x; _local12 = _-9Y[_local5].y; _local13 = (_-Hs[_local3].x - _-9b.x); _local14 = (_-Hs[_local3].y - _-9b.y); _local15 = (((_local9 * _local13) + (_local10 * _local14)) - _-Dm._-6o); _local16 = (((_local11 * _local13) + (_local12 * _local14)) - _-Dm._-6o); _local17 = (1 / ((_local9 * _local12) - (_local10 * _local11))); _-q[_local3] = new _-CE(((_local17 * ((_local12 * _local15) - (_local10 * _local16))) + _-9b.x), ((_local17 * ((_local9 * _local16) - (_local11 * _local15))) + _-9b.y)); _local3++; }; } override public function ComputeSweptAABB(_arg1:_-1S, _arg2:_-IR, _arg3:_-IR):void{ var _local4:_-1S = _-5k; var _local5:_-1S = _-98; ComputeAABB(_local4, _arg2); ComputeAABB(_local5, _arg3); _arg1._-Fu.Set(((_local4._-Fu.x < _local5._-Fu.x)) ? _local4._-Fu.x : _local5._-Fu.x, ((_local4._-Fu.y < _local5._-Fu.y)) ? _local4._-Fu.y : _local5._-Fu.y); _arg1._-1I.Set(((_local4._-1I.x > _local5._-1I.x)) ? _local4._-1I.x : _local5._-1I.x, ((_local4._-1I.y > _local5._-1I.y)) ? _local4._-1I.y : _local5._-1I.y); } public function _-4l():Array{ return (_-Hs); } public function _-Kk():Array{ return (_-q); } public function _-5J():_-CE{ return (_-9b); } public function _-Z():_-ER{ return (_-GV); } public function GetFirstVertex(_arg1:_-IR):_-CE{ return (_-Fk._-7(_arg1, _-q[0])); } public function _-Ka(_arg1:_-IR):_-CE{ return (_-Fk._-7(_arg1, _-9b)); } override public function TestSegment(_arg1:_-IR, _arg2:Array, _arg3:_-CE, _arg4:_-ET, _arg5:Number):int{ var _local8:Number; var _local9:Number; var _local10:_-JY; var _local11:_-CE; 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._-0t.x) + (_local9 * _local10._-0t.y)); var _local13:Number = ((_local8 * _local10._-8Z.x) + (_local9 * _local10._-8Z.y)); _local8 = (_arg4.p2.x - _arg1.position.x); _local9 = (_arg4.p2.y - _arg1.position.y); _local10 = _arg1.R; var _local14:Number = ((_local8 * _local10._-0t.x) + (_local9 * _local10._-0t.y)); var _local15:Number = ((_local8 * _local10._-8Z.x) + (_local9 * _local10._-8Z.y)); var _local16:Number = (_local14 - _local12); var _local17:Number = (_local15 - _local13); var _local18 = -1; var _local19:int; while (_local19 < while) { _local11 = _-Hs[_local19]; _local8 = (_local11.x - _local12); _local9 = (_local11.y - _local13); _local11 = _-9Y[_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 (_-CL); }; _local19++; }; if (_local18 >= 0){ _arg2[0] = _local6; _local10 = _arg1.R; _local11 = _-9Y[_local18]; _arg3.x = ((_local10._-0t.x * _local11.x) + (_local10._-8Z.x * _local11.y)); _arg3.y = ((_local10._-0t.y * _local11.x) + (_local10._-8Z.y * _local11.y)); return (_-8D); }; _arg2[0] = 0; return (_-78); } override public function ComputeMass(_arg1:_-Dx):void{ var _local10:_-CE; var _local11:_-CE; 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 < while) { _local10 = _-Hs[_local9]; _local11 = (((_local9 + 1) < while)) ? _-Hs[int((_local9 + 1))] : _-Hs[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.super = (_-Bz * _local4); _local2 = (_local2 * (1 / _local4)); _local3 = (_local3 * (1 / _local4)); _arg1.center.Set(_local2, _local3); _arg1._-3M = (_-Bz * _local5); } public function _-4N():Array{ return (_-9Y); } public function Support(_arg1:_-IR, _arg2:Number, _arg3:Number):_-CE{ var _local4:_-CE; var _local5:_-JY; var _local11:Number; _local5 = _arg1.R; var _local6:Number = ((_arg2 * _local5._-0t.x) + (_arg3 * _local5._-0t.y)); var _local7:Number = ((_arg2 * _local5._-8Z.x) + (_arg3 * _local5._-8Z.y)); var _local8:int; _local4 = _-q[0]; var _local9:Number = ((_local4.x * _local6) + (_local4.y * _local7)); var _local10 = 1; while (_local10 < while) { _local4 = _-q[_local10]; _local11 = ((_local4.x * _local6) + (_local4.y * _local7)); if (_local11 > _local9){ _local8 = _local10; _local9 = _local11; }; _local10++; }; _local5 = _arg1.R; _local4 = _-q[_local8]; _-CS.x = (_arg1.position.x + ((_local5._-0t.x * _local4.x) + (_local5._-8Z.x * _local4.y))); _-CS.y = (_arg1.position.y + ((_local5._-0t.y * _local4.x) + (_local5._-8Z.y * _local4.y))); return (_-CS); } public function _-HZ(_arg1:_-IR, _arg2:Array, _arg3:Array, _arg4:_-ET, _arg5:Number):int{ var _local8:Number; var _local9:Number; var _local10:_-JY; var _local11:_-CE; 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._-0t.x) + (_local9 * _local10._-0t.y)); var _local13:Number = ((_local8 * _local10._-8Z.x) + (_local9 * _local10._-8Z.y)); _local8 = (_arg4.p2.x - _arg1.position.x); _local9 = (_arg4.p2.y - _arg1.position.y); _local10 = _arg1.R; var _local14:Number = ((_local8 * _local10._-0t.x) + (_local9 * _local10._-0t.y)); var _local15:Number = ((_local8 * _local10._-8Z.x) + (_local9 * _local10._-8Z.y)); var _local16:Number = (_local14 - _local12); var _local17:Number = (_local15 - _local13); var _local18 = -1; var _local19:int; while (_local19 < while) { _local11 = _-Hs[_local19]; _local8 = (_local11.x - _local12); _local9 = (_local11.y - _local13); _local11 = _-9Y[_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 (_-CL); }; _local19++; }; if (_local18 >= 0){ _arg2[0] = _local6; _arg3[0] = _local18; return (_-8D); }; _arg2[0] = 0; return (_-78); } public function _-66():int{ return (while); } override public function ComputeAABB(_arg1:_-1S, _arg2:_-IR):void{ var _local3:_-JY; var _local4:_-CE; var _local5:_-JY = _-C5; _local3 = _arg2.R; _local4 = _-GV.R._-0t; _local5._-0t.x = ((_local3._-0t.x * _local4.x) + (_local3._-8Z.x * _local4.y)); _local5._-0t.y = ((_local3._-0t.y * _local4.x) + (_local3._-8Z.y * _local4.y)); _local4 = _-GV.R._-8Z; _local5._-8Z.x = ((_local3._-0t.x * _local4.x) + (_local3._-8Z.x * _local4.y)); _local5._-8Z.y = ((_local3._-0t.y * _local4.x) + (_local3._-8Z.y * _local4.y)); _local5._-3y(); var _local6:_-JY = _local5; _local4 = _-GV._-o; var _local7:Number = ((_local6._-0t.x * _local4.x) + (_local6._-8Z.x * _local4.y)); var _local8:Number = ((_local6._-0t.y * _local4.x) + (_local6._-8Z.y * _local4.y)); _local3 = _arg2.R; _local4 = _-GV.center; var _local9:Number = (_arg2.position.x + ((_local3._-0t.x * _local4.x) + (_local3._-8Z.x * _local4.y))); var _local10:Number = (_arg2.position.y + ((_local3._-0t.y * _local4.x) + (_local3._-8Z.y * _local4.y))); _arg1._-Fu.Set((_local9 - _local7), (_local10 - _local8)); _arg1._-1I.Set((_local9 + _local7), (_local10 + _local8)); } override public function UpdateSweepRadius(_arg1:_-CE):void{ var _local2:_-CE; var _local4:Number; var _local5:Number; _-Eq = 0; var _local3:int; while (_local3 < while) { _local2 = _-q[_local3]; _local4 = (_local2.x - _arg1.x); _local5 = (_local2.y - _arg1.y); _local4 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); if (_local4 > _-Eq){ _-Eq = _local4; }; _local3++; }; } override public function TestPoint(_arg1:_-IR, _arg2:_-CE):Boolean{ var _local3:_-CE; var _local10:Number; var _local4:_-JY = _arg1.R; var _local5:Number = (_arg2.x - _arg1.position.x); var _local6:Number = (_arg2.y - _arg1.position.y); var _local7:Number = ((_local5 * _local4._-0t.x) + (_local6 * _local4._-0t.y)); var _local8:Number = ((_local5 * _local4._-8Z.x) + (_local6 * _local4._-8Z.y)); var _local9:int; while (_local9 < while) { _local3 = _-Hs[_local9]; _local5 = (_local7 - _local3.x); _local6 = (_local8 - _local3.y); _local3 = _-9Y[_local9]; _local10 = ((_local3.x * _local5) + (_local3.y * _local6)); if (_local10 > 0){ return (false); }; _local9++; }; return (true); } public static function _-FQ(_arg1:Array, _arg2:int):_-CE{ var _local3:_-CE; var _local7:Number; var _local9:_-CE; var _local10:_-CE; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; _local3 = new _-CE(); 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 _-3I(_arg1:_-ER, _arg2:Array, _arg3:int):void{ var _local4:int; var _local7:_-CE; 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:_-JY; var _local5:Array = new Array((_-Dm._-C4 + 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._-0t.x = _local8; _arg1.R._-0t.y = _local9; _arg1.R._-8Z.x = _local11; _arg1.R._-8Z.y = _local12; _local23 = (0.5 * (_local13 + _local15)); _local24 = (0.5 * (_local14 + _local16)); _local25 = _arg1.R; _arg1.center.x = (_local7.x + ((_local25._-0t.x * _local23) + (_local25._-8Z.x * _local24))); _arg1.center.y = (_local7.y + ((_local25._-0t.y * _local23) + (_local25._-8Z.y * _local24))); _arg1._-o.x = (0.5 * (_local15 - _local13)); _arg1._-o.y = (0.5 * (_local16 - _local14)); }; _local4++; }; } } }//package _-5v
Section 15
//_-Bp (_-5v._-Bp) package _-5v { import _-9S.*; import _-9f.*; public class _-Bp extends _-EZ { public var vertices:Array; public var vertexCount:int; private static var _-EW:_-JY = new _-JY(); public function _-Bp(){ vertices = new Array(_-Dm._-C4); super(); type = _-Ai._-HH; vertexCount = 0; var _local1:int; while (_local1 < _-Dm._-C4) { vertices[_local1] = new _-CE(); _local1++; }; } public function _-Kb(_arg1:Number, _arg2:Number, _arg3:_-CE=null, _arg4:Number=0):void{ var _local5:_-CE; var _local6:_-JY; var _local7:int; vertexCount = 4; vertices[0].Set(-(_arg1), -(_arg2)); vertices[1].Set(_arg1, -(_arg2)); vertices[2].Set(_arg1, _arg2); vertices[3].Set(-(_arg1), _arg2); if (_arg3){ _local5 = _arg3; _local6 = _-EW; _local6.Set(_arg4); _local7 = 0; while (_local7 < vertexCount) { _arg3 = vertices[_local7]; _arg1 = (_local5.x + ((_local6._-0t.x * _arg3.x) + (_local6._-8Z.x * _arg3.y))); _arg3.y = (_local5.y + ((_local6._-0t.y * _arg3.x) + (_local6._-8Z.y * _arg3.y))); _arg3.x = _arg1; _local7++; }; }; } public function _-At(_arg1:Number, _arg2:Number):void{ vertexCount = 4; vertices[0].Set(-(_arg1), -(_arg2)); vertices[1].Set(_arg1, -(_arg2)); vertices[2].Set(_arg1, _arg2); vertices[3].Set(-(_arg1), _arg2); } } }//package _-5v
Section 16
//_-Dx (_-5v._-Dx) package _-5v { import _-9S.*; public class _-Dx { public var super:Number;// = 0 public var center:_-CE; public var _-3M:Number;// = 0 public function _-Dx(){ center = new _-CE(0, 0); super(); } } }//package _-5v
Section 17
//_-EZ (_-5v._-EZ) package _-5v { public class _-EZ { public var _-4T:Number;// = 0.2 public var _-E-:Boolean;// = false public var density:Number;// = 0 public var _-Gq:Number;// = 0 public var userData;// = null public var _-H-:_-Jy; public var type:int; public function _-EZ(){ type = _-Ai._-8E; _-H- = new _-Jy(); super(); } } }//package _-5v
Section 18
//_-Jy (_-5v._-Jy) package _-5v { public class _-Jy { public var _-8-:uint;// = 0xFFFF public var _-29:int;// = 0 public var _-g:uint;// = 1 public function Copy():_-Jy{ var _local1:_-Jy = new _-Jy(); _local1._-g = _-g; _local1._-8- = _-8-; _local1._-29 = _-29; return (_local1); } } }//package _-5v
Section 19
//_-Kt (_-5v._-Kt) package _-5v { import _-9S.*; public class _-Kt extends _-EZ { public var radius:Number; public var _-7G:_-CE; public function _-Kt(){ _-7G = new _-CE(0, 0); super(); type = _-Ai._-3X; radius = 1; } } }//package _-5v
Section 20
//_-0q (_-8A._-0q) package _-8A { import flash.display.*; import game.*; import flash.events.*; import flash.utils.*; public class _-0q extends MovieClip { protected var _-E9:Number; protected var sprite:_-6; protected var _-Im:_-7o; public function _-0q(){ stop(); stage.scaleMode = StageScaleMode.NO_SCALE; sprite = new _-6(_-1B); addChild(sprite); sprite.x = 320; sprite.y = 240; var _local1:Date = new Date(); _-E9 = _local1.getTime(); addEventListener(Event.ENTER_FRAME, _-1u); _-Im = new _-7o(); addChild(_-Im); } private function _-8c():void{ sprite._-F1(); } public function _-1u(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); if ((((framesLoaded == totalFrames)) && (((_local3 - _-E9) > 3000)))){ removeEventListener(Event.ENTER_FRAME, _-1u); nextFrame(); _-8c(); }; } private function _-1B(_arg1:MouseEvent):void{ var _local2:Class = Class(getDefinitionByName("Main")); var _local3:DisplayObject = new (_local2); parent.addChild(_local3); removeChild(_-Im); parent.addChild(_-Im); sprite._-47(); removeChild(sprite); sprite = null; parent.removeChild(this); } public function _-9H(_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); } } }//package _-8A
Section 21
//_-Dm (_-9f._-Dm) package _-9f { import _-9S.*; public class _-Dm { public static const include:Number = 0.0111111111111111; public static const _-EK:Number = 0.01; public static const _-8P:Number = 0.0349065850398866; public static const _-Fq:Number = 0.005; public static const _-3N:Number = 3.14159265358979; public static const _-2e:int = 0x0200; public static const _-1l:Number = 62500; public static const _-C4:int = 8; public static const _-G0:Number = 1; public static const _-4y:Number = 0.2; public static const import:int = 4096; public static const _-0r:int = 32; public static const _-b:Number = 0.5; public static const _-HQ:int = 2; public static const _-HB:Number = 250; public static const _-Cg:Number = 0.139626340159546; public static const _-G9:int = 0xFFFF; public static const _-1w:Number = 200; public static const _-4U:Number = 0.2; public static const _-6o:Number = 0.04; public static const _-8I:Number = 40000; public static function _-7i(_arg1:Boolean):void{ var _local2:_-CE; if (!_arg1){ _local2.x++; }; } } }//package _-9f
Section 22
//_-KD (_-9f._-KD) package _-9f { import _-9S.*; public class _-KD { private var _-0C:uint;// = 0 private var null :uint;// = 0 private var _-Hk:uint;// = 0 public function _-KD(_arg1:Number, _arg2:Number, _arg3:Number){ _-0C = uint((0xFF * _-Fk._-1F(_arg1, 0, 1))); null = uint((0xFF * _-Fk._-1F(_arg2, 0, 1))); _-Hk = uint((0xFF * _-Fk._-1F(_arg3, 0, 1))); } public function Set(_arg1:Number, _arg2:Number, _arg3:Number):void{ _-0C = uint((0xFF * _-Fk._-1F(_arg1, 0, 1))); null = uint((0xFF * _-Fk._-1F(_arg2, 0, 1))); _-Hk = uint((0xFF * _-Fk._-1F(_arg3, 0, 1))); } public function set b(_arg1:Number):void{ _-Hk = uint((0xFF * _-Fk._-1F(_arg1, 0, 1))); } public function get color():uint{ return (((_-0C | (null << 8)) | (_-Hk << 16))); } public function set r(_arg1:Number):void{ _-0C = uint((0xFF * _-Fk._-1F(_arg1, 0, 1))); } public function set g(_arg1:Number):void{ null = uint((0xFF * _-Fk._-1F(_arg1, 0, 1))); } } }//package _-9f
Section 23
//_-Cb (_-9S._-Cb) package _-9S { public class _-Cb { public var localCenter:_-CE; public var a:Number; public var c:_-CE; public var a0:Number; public var c0:_-CE; public var _-6B:Number; public function _-Cb(){ localCenter = new _-CE(); c0 = new _-CE(); c = new _-CE(); super(); } public function _-K0(_arg1:Number):void{ var _local2:Number; if ((((_-6B < _arg1)) && (((1 - _-6B) > Number.MIN_VALUE)))){ _local2 = ((_arg1 - _-6B) / (1 - _-6B)); c0.x = (((1 - _local2) * c0.x) + (_local2 * c.x)); c0.y = (((1 - _local2) * c0.y) + (_local2 * c.y)); a0 = (((1 - _local2) * a0) + (_local2 * a)); _-6B = _arg1; }; } public function _-GN(_arg1:_-IR, _arg2:Number):void{ var _local4:Number; var _local5:Number; if ((1 - _-6B) > Number.MIN_VALUE){ _local4 = ((_arg2 - _-6B) / (1 - _-6B)); _arg1.position.x = (((1 - _local4) * c0.x) + (_local4 * c.x)); _arg1.position.y = (((1 - _local4) * c0.y) + (_local4 * c.y)); _local5 = (((1 - _local4) * a0) + (_local4 * a)); _arg1.R.Set(_local5); } else { _arg1.position._-DC(c); _arg1.R.Set(a); }; var _local3:_-JY = _arg1.R; _arg1.position.x = (_arg1.position.x - ((_local3._-0t.x * localCenter.x) + (_local3._-8Z.x * localCenter.y))); _arg1.position.y = (_arg1.position.y - ((_local3._-0t.y * localCenter.x) + (_local3._-8Z.y * localCenter.y))); } } }//package _-9S
Section 24
//_-CE (_-9S._-CE) package _-9S { public class _-CE { public var y:Number; public var x:Number; public function _-CE(_arg1:Number=0, _arg2:Number=0):void{ x = _arg1; y = _arg2; } public function Add(_arg1:_-CE):void{ x = (x + _arg1.x); y = (y + _arg1.y); } public function Set(_arg1:Number=0, _arg2:Number=0):void{ x = _arg1; y = _arg2; } public function Multiply(_arg1:Number):void{ x = (x * _arg1); y = (y * _arg1); } public function class():Number{ return (Math.sqrt(((x * x) + (y * y)))); } public function _-6G():Number{ return (((x * x) + (y * y))); } public function _-KN(_arg1:_-JY):void{ var _local2:Number = x; x = ((_arg1._-0t.x * _local2) + (_arg1._-8Z.x * y)); y = ((_arg1._-0t.y * _local2) + (_arg1._-8Z.y * y)); } public function _-6W():void{ x = 0; y = 0; } public function final(_arg1:_-CE):void{ x = ((x < _arg1.x)) ? x : _arg1.x; y = ((y < _arg1.y)) ? y : _arg1.y; } public function _-9l():Number{ var _local1:Number = Math.sqrt(((x * x) + (y * y))); if (_local1 < Number.MIN_VALUE){ return (0); }; var _local2:Number = (1 / _local1); x = (x * _local2); y = (y * _local2); return (_local1); } public function _-8W(_arg1:Number):void{ var _local2:Number = x; x = (_arg1 * y); y = (-(_arg1) * _local2); } public function _-2c(_arg1:_-CE):void{ x = ((x > _arg1.x)) ? x : _arg1.x; y = ((y > _arg1.y)) ? y : _arg1.y; } public function _-DC(_arg1:_-CE):void{ x = _arg1.x; y = _arg1.y; } public function _-1g():_-CE{ return (new _-CE(-(x), -(y))); } public function _-6e(_arg1:Number):void{ var _local2:Number = x; x = (-(_arg1) * y); y = (_arg1 * _local2); } public function _-3y():void{ if (x < 0){ x = -(x); }; if (y < 0){ y = -(y); }; } public function _-6K(_arg1:_-CE):void{ x = (x - _arg1.x); y = (y - _arg1.y); } public function Copy():_-CE{ return (new _-CE(x, y)); } public function _-6x(_arg1:_-JY):void{ var _local2:Number = _-Fk._-3s(this, _arg1._-0t); y = _-Fk._-3s(this, _arg1._-8Z); x = _local2; } public function use():Boolean{ return (((_-Fk.return(x)) && (_-Fk.return(y)))); } public static function _-JD(_arg1:Number, _arg2:Number):_-CE{ return (new _-CE(_arg1, _arg2)); } } }//package _-9S
Section 25
//_-Fk (_-9S._-Fk) package _-9S { public class _-Fk { public static const _-BL:_-JY = new _-JY(0, new _-CE(1, 0), new _-CE(0, 1)); public static const _-8w:_-IR = new _-IR(_-Is, _-BL); public static const _-Is:_-CE = new _-CE(0, 0); public static function _-EF(_arg1:_-CE, _arg2:Number):_-CE{ var _local3:_-CE = new _-CE((_arg2 * _arg1.y), (-(_arg2) * _arg1.x)); return (_local3); } public static function _-DM(_arg1:_-CE, _arg2:_-CE):_-CE{ var _local3:_-CE = new _-CE((_arg1.x + _arg2.x), (_arg1.y + _arg2.y)); return (_local3); } public static function return(_arg1:Number):Boolean{ return (isFinite(_arg1)); } public static function _-9E(_arg1:_-CE, _arg2:_-CE):_-CE{ var _local3:_-CE = new _-CE(_-Ga(_arg1.x, _arg2.x), _-Ga(_arg1.y, _arg2.y)); return (_local3); } public static function _-7(_arg1:_-IR, _arg2:_-CE):_-CE{ var _local3:_-CE; _local3 = _-6N(_arg1.R, _arg2); _local3.x = (_local3.x + _arg1.position.x); _local3.y = (_local3.y + _arg1.position.y); return (_local3); } public static function _-Kc(_arg1:_-CE, _arg2:_-CE):Number{ var _local3:Number = (_arg1.x - _arg2.x); var _local4:Number = (_arg1.y - _arg2.y); return (((_local3 * _local3) + (_local4 * _local4))); } public static function _-6p(_arg1:Array, _arg2:Array):void{ var _local3:* = _arg1[0]; _arg1[0] = _arg2[0]; _arg2[0] = _local3; } public static function _-0w(_arg1:_-JY):_-JY{ var _local2:_-JY = new _-JY(0, _-4R(_arg1._-0t), _-4R(_arg1._-8Z)); return (_local2); } public static function _-JS(_arg1:_-CE, _arg2:_-CE):_-CE{ var _local3:_-CE = new _-CE((_arg1.x - _arg2.x), (_arg1.y - _arg2.y)); return (_local3); } public static function _-Ge(_arg1:_-IR, _arg2:_-CE):_-CE{ var _local3:_-CE; var _local4:Number; _local3 = _-JS(_arg2, _arg1.position); _local4 = ((_local3.x * _arg1.R._-0t.x) + (_local3.y * _arg1.R._-0t.y)); _local3.y = ((_local3.x * _arg1.R._-8Z.x) + (_local3.y * _arg1.R._-8Z.y)); _local3.x = _local4; return (_local3); } public static function _-H9(_arg1:Number):Number{ return (((_arg1 > 0)) ? _arg1 : -(_arg1)); } public static function _-1F(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return (_-3u(_arg2, _-Ga(_arg1, _arg3))); } public static function _-4R(_arg1:_-CE):_-CE{ var _local2:_-CE = new _-CE(_-H9(_arg1.x), _-H9(_arg1.y)); return (_local2); } public static function _-GE(_arg1:Number, _arg2:_-CE):_-CE{ var _local3:_-CE = new _-CE((_arg1 * _arg2.x), (_arg1 * _arg2.y)); return (_local3); } public static function _-BZ(_arg1:_-CE, _arg2:_-CE):Number{ return (((_arg1.x * _arg2.y) - (_arg1.y * _arg2.x))); } public static function _-3s(_arg1:_-CE, _arg2:_-CE):Number{ return (((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y))); } public static function _-II(_arg1:Number, _arg2:_-CE):_-CE{ var _local3:_-CE = new _-CE((-(_arg1) * _arg2.y), (_arg1 * _arg2.x)); return (_local3); } public static function _-Bv(_arg1:_-JY, _arg2:_-JY):_-JY{ var _local3:_-JY = new _-JY(0, _-DM(_arg1._-0t, _arg2._-0t), _-DM(_arg1._-8Z, _arg2._-8Z)); return (_local3); } public static function _-D-(_arg1:_-CE, _arg2:_-CE):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 _-Ig(_arg1:_-JY, _arg2:_-JY):_-JY{ var _local3:_-CE = new _-CE(_-3s(_arg1._-0t, _arg2._-0t), _-3s(_arg1._-8Z, _arg2._-0t)); var _local4:_-CE = new _-CE(_-3s(_arg1._-0t, _arg2._-8Z), _-3s(_arg1._-8Z, _arg2._-8Z)); var _local5:_-JY = new _-JY(0, _local3, _local4); return (_local5); } public static function _-22(_arg1:_-CE, _arg2:_-CE):_-CE{ var _local3:_-CE = new _-CE(_-3u(_arg1.x, _arg2.x), _-3u(_arg1.y, _arg2.y)); return (_local3); } public static function _-4A(_arg1:uint):Boolean{ var _local2:Boolean = (((_arg1 > 0)) && (((_arg1 & (_arg1 - 1)) == 0))); return (_local2); } public static function _-6Z(_arg1:_-CE, _arg2:_-CE, _arg3:_-CE):_-CE{ return (_-22(_arg2, _-9E(_arg1, _arg3))); } public static function _-Ht(_arg1:Number, _arg2:Number):Number{ var _local3:Number = Math.random(); _local3 = (((_arg2 - _arg1) * _local3) + _arg1); return (_local3); } public static function _-AO(_arg1:_-JY, _arg2:_-CE):_-CE{ var _local3:_-CE = new _-CE(_-3s(_arg2, _arg1._-0t), _-3s(_arg2, _arg1._-8Z)); return (_local3); } public static function _-Ga(_arg1:Number, _arg2:Number):Number{ return (((_arg1 < _arg2)) ? _arg1 : _arg2); } public static function _-8U():Number{ return (((Math.random() * 2) - 1)); } public static function _-4Y(_arg1:_-JY, _arg2:_-JY):_-JY{ var _local3:_-JY = new _-JY(0, _-6N(_arg1, _arg2._-0t), _-6N(_arg1, _arg2._-8Z)); return (_local3); } public static function _-Ij(_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 _-3u(_arg1:Number, _arg2:Number):Number{ return (((_arg1 > _arg2)) ? _arg1 : _arg2); } public static function _-6N(_arg1:_-JY, _arg2:_-CE):_-CE{ var _local3:_-CE = new _-CE(((_arg1._-0t.x * _arg2.x) + (_arg1._-8Z.x * _arg2.y)), ((_arg1._-0t.y * _arg2.x) + (_arg1._-8Z.y * _arg2.y))); return (_local3); } } }//package _-9S
Section 26
//_-IR (_-9S._-IR) package _-9S { public class _-IR { public var position:_-CE; public var R:_-JY; public function _-IR(_arg1:_-CE=null, _arg2:_-JY=null):void{ position = new _-CE(); R = new _-JY(); super(); if (_arg1){ position._-DC(_arg1); R._-FL(_arg2); }; } public function _-5r(_arg1:_-CE, _arg2:_-JY):void{ position._-DC(_arg1); R._-FL(_arg2); } public function Set(_arg1:_-IR):void{ position._-DC(_arg1.position); R._-FL(_arg1.R); } public function _-Jf():void{ position._-6W(); R._-Jf(); } } }//package _-9S
Section 27
//_-JY (_-9S._-JY) package _-9S { public class _-JY { public var _-0t:_-CE; public var _-8Z:_-CE; public function _-JY(_arg1:Number=0, _arg2:_-CE=null, _arg3:_-CE=null){ var _local4:Number; var _local5:Number; _-0t = new _-CE(); _-8Z = new _-CE(); super(); if (((!((_arg2 == null))) && (!((_arg3 == null))))){ _-0t._-DC(_arg2); _-8Z._-DC(_arg3); } else { _local4 = Math.cos(_arg1); _local5 = Math.sin(_arg1); _-0t.x = _local4; _-8Z.x = -(_local5); _-0t.y = _local5; _-8Z.y = _local4; }; } public function _-Jf():void{ _-0t.x = 1; _-8Z.x = 0; _-0t.y = 0; _-8Z.y = 1; } public function _-1(_arg1:_-CE, _arg2:_-CE):void{ _-0t._-DC(_arg1); _-8Z._-DC(_arg2); } public function Set(_arg1:Number):void{ var _local2:Number; _local2 = Math.cos(_arg1); var _local3:Number = Math.sin(_arg1); _-0t.x = _local2; _-8Z.x = -(_local3); _-0t.y = _local3; _-8Z.y = _local2; } public function _-6W():void{ _-0t.x = 0; _-8Z.x = 0; _-0t.y = 0; _-8Z.y = 0; } public function _-FL(_arg1:_-JY):void{ _-0t._-DC(_arg1._-0t); _-8Z._-DC(_arg1._-8Z); } public function _-CH(_arg1:_-JY):void{ _-0t.x = (_-0t.x + _arg1._-0t.x); _-0t.y = (_-0t.y + _arg1._-0t.y); _-8Z.x = (_-8Z.x + _arg1._-8Z.x); _-8Z.y = (_-8Z.y + _arg1._-8Z.y); } public function _-3y():void{ _-0t._-3y(); _-8Z._-3y(); } public function Copy():_-JY{ return (new _-JY(0, _-0t, _-8Z)); } public function _-JN(_arg1:_-JY):_-JY{ var _local2:Number; var _local4:Number; var _local6:Number; _local2 = _-0t.x; var _local3:Number = _-8Z.x; _local4 = _-0t.y; var _local5:Number = _-8Z.y; _local6 = ((_local2 * _local5) - (_local3 * _local4)); _local6 = (1 / _local6); _arg1._-0t.x = (_local6 * _local5); _arg1._-8Z.x = (-(_local6) * _local3); _arg1._-0t.y = (-(_local6) * _local4); _arg1._-8Z.y = (_local6 * _local2); return (_arg1); } public function GetAngle():Number{ return (Math.atan2(_-0t.y, _-0t.x)); } public function _-DB(_arg1:_-CE, _arg2:Number, _arg3:Number):_-CE{ var _local4:Number = _-0t.x; var _local5:Number = _-8Z.x; var _local6:Number = _-0t.y; var _local7:Number = _-8Z.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 _-9S
Section 28
//_-1V (_-Cd._-1V) package _-Cd { import _-5v.*; public class _-1V { public static var _-2G:_-1V = new (_-1V); ; public function _-2a(_arg1:_-Ai, _arg2:_-Ai):Boolean{ var _local3:_-Jy = _arg1._-5e(); var _local4:_-Jy = _arg2._-5e(); if ((((_local3._-29 == _local4._-29)) && (!((_local3._-29 == 0))))){ return ((_local3._-29 > 0)); }; var _local5:Boolean = ((!(((_local3._-8- & _local4._-g) == 0))) && (!(((_local3._-g & _local4._-8-) == 0)))); return (_local5); } public function _-3n(_arg1, _arg2:_-Ai):Boolean{ if (!_arg1){ return (true); }; return (_-2a((_arg1 as _-Ai), _arg2)); } } }//package _-Cd
Section 29
//_-2H (_-Cd._-2H) package _-Cd { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import flash.display.*; import _-5v.*; import _-.*; public class _-2H { public var _-J5:Number;// = 1 public var _-56:Number;// = 1 public var _-a:Number;// = 1 public var _-7u:uint; public var _-6L:Number;// = 1 public var _-2o:Number;// = 1 public var _-5X:Sprite; public static var _-Da:uint = 4; public static var _-7b:uint = 1; public static var _-7d:uint = 64; public static var _-8n:uint = 8; public static var const:uint = 16; public static var _-E1:uint = 32; public static var _-Ak:uint = 2; public function _-2H(){ _-7u = 0; } public function _-AQ(_arg1:uint):void{ _-7u = (_-7u & ~(_arg1)); } public function _-IS(_arg1:uint):void{ _-7u = _arg1; } public function _-Hz(_arg1:uint):void{ _-7u = (_-7u | _arg1); } public function _-0l(_arg1:_-CE, _arg2:_-CE, _arg3:_-KD):void{ _-5X.graphics.lineStyle(_-6L, _arg3.color, _-a); _-5X.graphics.moveTo((_arg1.x * _-2o), (_arg1.y * _-2o)); _-5X.graphics.lineTo((_arg2.x * _-2o), (_arg2.y * _-2o)); } public function _-1s(_arg1:Array, _arg2:int, _arg3:_-KD):void{ _-5X.graphics.lineStyle(_-6L, _arg3.color, _-a); _-5X.graphics.moveTo((_arg1[0].x * _-2o), (_arg1[0].y * _-2o)); _-5X.graphics.beginFill(_arg3.color, _-56); var _local4 = 1; while (_local4 < _arg2) { _-5X.graphics.lineTo((_arg1[_local4].x * _-2o), (_arg1[_local4].y * _-2o)); _local4++; }; _-5X.graphics.lineTo((_arg1[0].x * _-2o), (_arg1[0].y * _-2o)); _-5X.graphics.endFill(); } public function if(_arg1:_-CE, _arg2:Number, _arg3:_-KD):void{ _-5X.graphics.lineStyle(_-6L, _arg3.color, _-a); _-5X.graphics.drawCircle((_arg1.x * _-2o), (_arg1.y * _-2o), (_arg2 * _-2o)); } public function do(_arg1:Array, _arg2:int, _arg3:_-KD):void{ _-5X.graphics.lineStyle(_-6L, _arg3.color, _-a); _-5X.graphics.moveTo((_arg1[0].x * _-2o), (_arg1[0].y * _-2o)); var _local4 = 1; while (_local4 < _arg2) { _-5X.graphics.lineTo((_arg1[_local4].x * _-2o), (_arg1[_local4].y * _-2o)); _local4++; }; _-5X.graphics.lineTo((_arg1[0].x * _-2o), (_arg1[0].y * _-2o)); } public function _-Iz(_arg1:_-CE, _arg2:Number, _arg3:_-CE, _arg4:_-KD):void{ _-5X.graphics.lineStyle(_-6L, _arg4.color, _-a); _-5X.graphics.moveTo(0, 0); _-5X.graphics.beginFill(_arg4.color, _-56); _-5X.graphics.drawCircle((_arg1.x * _-2o), (_arg1.y * _-2o), (_arg2 * _-2o)); _-5X.graphics.endFill(); _-5X.graphics.moveTo((_arg1.x * _-2o), (_arg1.y * _-2o)); _-5X.graphics.lineTo(((_arg1.x + (_arg3.x * _arg2)) * _-2o), ((_arg1.y + (_arg3.y * _arg2)) * _-2o)); } public function _-CX():uint{ return (_-7u); } public function _-92(_arg1:_-IR):void{ _-5X.graphics.lineStyle(_-6L, 0xFF0000, _-a); _-5X.graphics.moveTo((_arg1.position.x * _-2o), (_arg1.position.y * _-2o)); _-5X.graphics.lineTo(((_arg1.position.x + (_-J5 * _arg1.R._-0t.x)) * _-2o), ((_arg1.position.y + (_-J5 * _arg1.R._-0t.y)) * _-2o)); _-5X.graphics.lineStyle(_-6L, 0xFF00, _-a); _-5X.graphics.moveTo((_arg1.position.x * _-2o), (_arg1.position.y * _-2o)); _-5X.graphics.lineTo(((_arg1.position.x + (_-J5 * _arg1.R._-8Z.x)) * _-2o), ((_arg1.position.y + (_-J5 * _arg1.R._-8Z.y)) * _-2o)); } } }//package _-Cd
Section 30
//_-35 (_-Cd._-35) package _-Cd { import _-5v.*; import _-Gm.*; public class _-35 { public function _-7C(_arg1:_-Ai):void{ } public function _-AC(_arg1:_-2S):void{ } } }//package _-Cd
Section 31
//_-3i (_-Cd._-3i) package _-Cd { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-.*; import _-Gm.*; public class _-3i { public var true:_-Ie; public var _-Ia:int; public var _-9e:int; public var try:Array; public var _-HT:Array; public var _-Eg:int; public var _-D2:int; public var _-0y:Array; public var _-ES:int; public var _-J4:int; public var _-AE; public var _-3S:int; private static var _-9Q:_-KH = new _-KH(); public function _-3i(_arg1:int, _arg2:int, _arg3:int, _arg4, _arg5:_-Ie){ var _local6:int; super(); _-9e = _arg1; _-ES = _arg2; _-Eg = _arg3; _-3S = 0; _-D2 = 0; _-J4 = 0; _-AE = _arg4; true = _arg5; try = new Array(_arg1); _local6 = 0; while (_local6 < _arg1) { try[_local6] = null; _local6++; }; _-0y = new Array(_arg2); _local6 = 0; while (_local6 < _arg2) { _-0y[_local6] = null; _local6++; }; _-HT = new Array(_arg3); _local6 = 0; while (_local6 < _arg3) { _-HT[_local6] = null; _local6++; }; _-Ia = 0; } public function _-4M(_arg1:_-7S):void{ var _local2 = _-3S++; try[_local2] = _arg1; } public function _-3Q(_arg1:_-2S):void{ var _local2 = _-J4++; _-HT[_local2] = _arg1; } public function _-2I(_arg1:Array):void{ var _local2:_-JY; var _local3:_-CE; var _local5:_-8z; var _local6:_-5a; var _local7:_-KH; var _local8:_-7S; var _local9:int; var _local10:Array; var _local11:int; var _local12:_-38; var _local13:int; var _local14:_-Ic; var _local15:_-Kn; if (true == null){ return; }; var _local4:int; while (_local4 < _-D2) { _local5 = _-0y[_local4]; _local6 = _arg1[_local4]; _local7 = _-9Q; _local7.shape1 = _local5._-Fx; _local7.shape2 = _local5._-Es; _local8 = _local7.shape1.m_body; _local9 = _local5._-7D; _local10 = _local5.GetManifolds(); _local11 = 0; while (_local11 < _local9) { _local12 = _local10[_local11]; _local7.normal._-DC(_local12.normal); _local13 = 0; while (_local13 < _local12._-Cp) { _local14 = _local12.points[_local13]; _local15 = _local6.points[_local13]; _local7.position = _local8.GetWorldPoint(_local14._-A2); _local7._-Ih = _local15._-Ih; _local7._-F3 = _local15._-F3; _local7.id.key = _local14.id.key; true._-7U(_local7); _local13++; }; _local11++; }; _local4++; }; } public function _-64(_arg1:_-8z):void{ var _local2 = _-D2++; _-0y[_local2] = _arg1; } public function _-DB(_arg1:_-DV, _arg2:_-CE, _arg3:Boolean, _arg4:Boolean):void{ var _local5:int; var _local6:_-7S; var _local7:_-2S; 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 < _-3S) { _local6 = try[_local5]; if (_local6.IsStatic()){ } else { _local6._-FD.x = (_local6._-FD.x + (_arg1._-3J * (_arg2.x + (_local6._-HO * _local6._-6F.x)))); _local6._-FD.y = (_local6._-FD.y + (_arg1._-3J * (_arg2.y + (_local6._-HO * _local6._-6F.y)))); _local6.m_angularVelocity = (_local6.m_angularVelocity + ((_arg1._-3J * _local6.for) * _local6._-Ar)); _local6._-6F._-6W(); _local6._-Ar = 0; _local6._-FD.Multiply(_-Fk._-1F((1 - (_arg1._-3J * _local6._-Ea)), 0, 1)); _local6.m_angularVelocity = (_local6.m_angularVelocity * _-Fk._-1F((1 - (_arg1._-3J * _local6._-K5)), 0, 1)); if (_local6._-FD._-6G() > _-Dm._-8I){ _local6._-FD._-9l(); _local6._-FD.x = (_local6._-FD.x * _-Dm._-1w); _local6._-FD.y = (_local6._-FD.y * _-Dm._-1w); }; if ((_local6.m_angularVelocity * _local6.m_angularVelocity) > _-Dm._-1l){ if (_local6.m_angularVelocity < 0){ _local6.m_angularVelocity = -(_-Dm._-HB); } else { _local6.m_angularVelocity = _-Dm._-HB; }; }; }; _local5++; }; var _local8:_-1i = new _-1i(_arg1, _-0y, _-D2, _-AE); _local8.InitVelocityConstraints(_arg1); _local5 = 0; while (_local5 < _-J4) { _local7 = _-HT[_local5]; _local7.InitVelocityConstraints(_arg1); _local5++; }; _local5 = 0; while (_local5 < _arg1._-2h) { _local8.SolveVelocityConstraints(); _local9 = 0; while (_local9 < _-J4) { _local7 = _-HT[_local9]; _local7.SolveVelocityConstraints(_arg1); _local9++; }; _local5++; }; _local8._-DK(); _local5 = 0; while (_local5 < _-3S) { _local6 = try[_local5]; if (_local6.IsStatic()){ } else { _local6.m_sweep.c0._-DC(_local6.m_sweep.c); _local6.m_sweep.a0 = _local6.m_sweep.a; _local6.m_sweep.c.x = (_local6.m_sweep.c.x + (_arg1._-3J * _local6._-FD.x)); _local6.m_sweep.c.y = (_local6.m_sweep.c.y + (_arg1._-3J * _local6._-FD.y)); _local6.m_sweep.a = (_local6.m_sweep.a + (_arg1._-3J * _local6.m_angularVelocity)); _local6._-Gw(); }; _local5++; }; if (_arg3){ _local5 = 0; while (_local5 < _-J4) { _local7 = _-HT[_local5]; _local7._-CK(); _local5++; }; _-Ia = 0; while (_-Ia < _arg1._-2h) { _local10 = _local8.SolvePositionConstraints(_-Dm._-4y); _local11 = true; _local5 = 0; while (_local5 < _-J4) { _local7 = _-HT[_local5]; _local12 = _local7.SolvePositionConstraints(); _local11 = ((_local11) && (_local12)); _local5++; }; if (((_local10) && (_local11))){ break; }; _-Ia++; }; }; _-2I(_local8._-0n); if (_arg4){ _local13 = Number.MAX_VALUE; _local14 = (_-Dm._-EK * _-Dm._-EK); _local15 = (_-Dm.include * _-Dm.include); _local5 = 0; while (_local5 < _-3S) { _local6 = try[_local5]; if (_local6._-HO == 0){ } else { if ((_local6._-5o & _-7S._-0h) == 0){ _local6._-HC = 0; _local13 = 0; }; if (((((((_local6._-5o & _-7S._-0h) == 0)) || (((_local6.m_angularVelocity * _local6.m_angularVelocity) > _local15)))) || ((_-Fk._-3s(_local6._-FD, _local6._-FD) > _local14)))){ _local6._-HC = 0; _local13 = 0; } else { _local6._-HC = (_local6._-HC + _arg1._-3J); _local13 = _-Fk._-Ga(_local13, _local6._-HC); }; }; _local5++; }; if (_local13 >= _-Dm._-b){ _local5 = 0; while (_local5 < _-3S) { _local6 = try[_local5]; try[_local5]._-5o = (_local6._-5o | _-7S._-AA); _local6._-FD._-6W(); _local6.m_angularVelocity = 0; _local5++; }; }; }; } public function _-Jo():void{ _-3S = 0; _-D2 = 0; _-J4 = 0; } public function _-Jk(_arg1:_-DV):void{ var _local2:int; var _local5:_-7S; var _local6:Boolean; var _local3:_-1i = new _-1i(_arg1, _-0y, _-D2, _-AE); _local2 = 0; while (_local2 < _arg1._-2h) { _local3.SolveVelocityConstraints(); _local2++; }; _local2 = 0; while (_local2 < _-3S) { _local5 = try[_local2]; if (_local5.IsStatic()){ } else { _local5.m_sweep.c0._-DC(_local5.m_sweep.c); _local5.m_sweep.a0 = _local5.m_sweep.a; _local5.m_sweep.c.x = (_local5.m_sweep.c.x + (_arg1._-3J * _local5._-FD.x)); _local5.m_sweep.c.y = (_local5.m_sweep.c.y + (_arg1._-3J * _local5._-FD.y)); _local5.m_sweep.a = (_local5.m_sweep.a + (_arg1._-3J * _local5.m_angularVelocity)); _local5._-Gw(); }; _local2++; }; var _local4:Number = 0.75; _local2 = 0; while (_local2 < _arg1._-2h) { _local6 = _local3.SolvePositionConstraints(_local4); if (_local6){ break; }; _local2++; }; _-2I(_local3._-0n); } } }//package _-Cd
Section 32
//_-7S (_-Cd._-7S) package _-Cd { import _-9S.*; import _-5v.*; import _-.*; import _-Gm.*; public class _-7S { public var _-Fv:_-7S; public var m_xf:_-IR; public var _-Hm:_-Jw; public var m_angularVelocity:Number; public var _-M:_-Ai; public var _-6F:_-CE; public var m_mass:Number; public var m_sweep:_-Cb; public var _-Ar:Number; public var m_userData; public var _-5o:uint; public var m_world:_-Hp; public var _-8C:_-7S; public var _-HO:Number; public var m_type:int; public var _-Ea:Number; public var _-1r:int; public var _-K5:Number; public var for:Number; public var _-FD:_-CE; public var _-HC:Number; public var _-DO:_-Cy; public var _-Jx:Number; public static var _-6c:uint = 64; public static var true:uint = 2; public static var _-Aa:uint = 3; public static var _-AA:uint = 8; private static var _-FT:_-Dx = new _-Dx(); public static var _-Dh:uint = 32; public static var _-A:uint = 1; public static var _-1m:uint = 4; public static var _-0h:uint = 16; private static var _-Ix:_-IR = new _-IR(); public static var _-AV:uint = 2; public function _-7S(_arg1:_-D3, _arg2:_-Hp){ m_xf = new _-IR(); m_sweep = new _-Cb(); _-FD = new _-CE(); _-6F = new _-CE(); super(); _-5o = 0; if (_arg1._-Hv){ _-5o = (_-5o | _-Dh); }; if (_arg1.for ){ _-5o = (_-5o | _-6c); }; if (_arg1._-6J){ _-5o = (_-5o | _-0h); }; if (_arg1._-BQ){ _-5o = (_-5o | _-AA); }; m_world = _arg2; m_xf.position._-DC(_arg1.position); m_xf.R.Set(_arg1.angle); m_sweep.localCenter._-DC(_arg1._-G.center); m_sweep._-6B = 1; m_sweep.a0 = (m_sweep.a = _arg1.angle); var _local3:_-JY = m_xf.R; var _local4:_-CE = m_sweep.localCenter; m_sweep.c.x = ((_local3._-0t.x * _local4.x) + (_local3._-8Z.x * _local4.y)); m_sweep.c.y = ((_local3._-0t.y * _local4.x) + (_local3._-8Z.y * _local4.y)); m_sweep.c.x = (m_sweep.c.x + m_xf.position.x); m_sweep.c.y = (m_sweep.c.y + m_xf.position.y); m_sweep.c0._-DC(m_sweep.c); _-DO = null; _-Hm = null; _-8C = null; _-Fv = null; _-Ea = _arg1._-Aw; _-K5 = _arg1._-9M; _-6F.Set(0, 0); _-Ar = 0; _-FD._-6W(); m_angularVelocity = 0; _-HC = 0; _-HO = 0; _-Jx = 0; for = 0; m_mass = _arg1._-G.super; if (m_mass > 0){ _-HO = (1 / m_mass); }; if ((_-5o & _-7S._-6c) == 0){ _-Jx = _arg1._-G._-3M; }; if (_-Jx > 0){ for = (1 / _-Jx); }; if ((((_-HO == 0)) && ((for == 0)))){ m_type = _-A; } else { m_type = _-AV; }; m_userData = _arg1.userData; _-M = null; _-1r = 0; } public function _-0W(_arg1:_-CE):_-CE{ return (new _-CE((_-FD.x + (m_angularVelocity * (_arg1.y - m_sweep.c.y))), (_-FD.x - (m_angularVelocity * (_arg1.x - m_sweep.c.x))))); } public function _-GF(_arg1:_-CE):void{ _-FD._-DC(_arg1); } public function WakeUp():void{ _-5o = (_-5o & ~(_-AA)); _-HC = 0; } public function _-D7():_-CE{ return (m_sweep.localCenter); } public function _-IM(_arg1:Number):void{ if (IsSleeping()){ WakeUp(); }; _-Ar = (_-Ar + _arg1); } public function _-8G():Boolean{ return (((_-5o & true) == true)); } public function _-BS():Boolean{ return ((m_type == _-AV)); } public function _-Jc():_-CE{ return (_-FD); } public function _-Gw():void{ m_xf.R.Set(m_sweep.a); var _local1:_-JY = m_xf.R; var _local2:_-CE = m_sweep.localCenter; m_xf.position.x = (m_sweep.c.x - ((_local1._-0t.x * _local2.x) + (_local1._-8Z.x * _local2.y))); m_xf.position.y = (m_sweep.c.y - ((_local1._-0t.y * _local2.x) + (_local1._-8Z.y * _local2.y))); } public function _-BN():Number{ return (_-Jx); } public function IsSleeping():Boolean{ return (((_-5o & _-AA) == _-AA)); } public function _-5O():void{ var _local1:_-Ai; if (m_world._-Cz == true){ return; }; m_mass = 0; _-HO = 0; _-Jx = 0; for = 0; var _local2:Number = 0; var _local3:Number = 0; var _local4:_-Dx = _-FT; _local1 = _-M; while (_local1) { _local1.ComputeMass(_local4); m_mass = (m_mass + _local4.super); _local2 = (_local2 + (_local4.super * _local4.center.x)); _local3 = (_local3 + (_local4.super * _local4.center.y)); _-Jx = (_-Jx + _local4._-3M); _local1 = _local1._-Fv; }; if (m_mass > 0){ _-HO = (1 / m_mass); _local2 = (_local2 * _-HO); _local3 = (_local3 * _-HO); }; if ((((_-Jx > 0)) && (((_-5o & _-6c) == 0)))){ _-Jx = (_-Jx - (m_mass * ((_local2 * _local2) + (_local3 * _local3)))); for = (1 / _-Jx); } else { _-Jx = 0; for = 0; }; m_sweep.localCenter.Set(_local2, _local3); var _local5:_-JY = m_xf.R; var _local6:_-CE = m_sweep.localCenter; m_sweep.c.x = ((_local5._-0t.x * _local6.x) + (_local5._-8Z.x * _local6.y)); m_sweep.c.y = ((_local5._-0t.y * _local6.x) + (_local5._-8Z.y * _local6.y)); m_sweep.c.x = (m_sweep.c.x + m_xf.position.x); m_sweep.c.y = (m_sweep.c.y + m_xf.position.y); m_sweep.c0._-DC(m_sweep.c); _local1 = _-M; while (_local1) { _local1.UpdateSweepRadius(m_sweep.localCenter); _local1 = _local1._-Fv; }; var _local7:int = m_type; if ((((_-HO == 0)) && ((for == 0)))){ m_type = _-A; } else { m_type = _-AV; }; if (_local7 != m_type){ _local1 = _-M; while (_local1) { _local1._-DP(m_world._-Hh, m_xf); _local1 = _local1._-Fv; }; }; } public function _-KB():void{ _-5o = (_-5o | _-AA); _-HC = 0; _-FD._-6W(); m_angularVelocity = 0; _-6F._-6W(); _-Ar = 0; } public function _-18():_-Cy{ return (_-DO); } public function _-2d(_arg1:_-CE, _arg2:Number):Boolean{ var _local3:_-Ai; var _local7:Boolean; if (m_world._-Cz == true){ return (true); }; if (_-8G()){ return (false); }; m_xf.R.Set(_arg2); m_xf.position._-DC(_arg1); var _local4:_-JY = m_xf.R; var _local5:_-CE = m_sweep.localCenter; m_sweep.c.x = ((_local4._-0t.x * _local5.x) + (_local4._-8Z.x * _local5.y)); m_sweep.c.y = ((_local4._-0t.y * _local5.x) + (_local4._-8Z.y * _local5.y)); m_sweep.c.x = (m_sweep.c.x + m_xf.position.x); m_sweep.c.y = (m_sweep.c.y + m_xf.position.y); m_sweep.c0._-DC(m_sweep.c); m_sweep.a0 = (m_sweep.a = _arg2); var _local6:Boolean; _local3 = _-M; while (_local3) { _local7 = _local3._-Br(m_world._-Hh, m_xf, m_xf); if (_local7 == false){ _local6 = true; break; }; _local3 = _local3._-Fv; }; if (_local6 == true){ _-5o = (_-5o | true); _-FD._-6W(); m_angularVelocity = 0; _local3 = _-M; while (_local3) { _local3._-Jp(m_world._-Hh); _local3 = _local3._-Fv; }; return (false); }; m_world._-Hh._-FN(); return (true); } public function GetLocalPoint(_arg1:_-CE):_-CE{ return (_-Fk._-Ge(m_xf, _arg1)); } public function _-KS(_arg1:_-CE, _arg2:_-CE):void{ if (IsSleeping()){ WakeUp(); }; _-6F.x = (_-6F.x + _arg1.x); _-6F.y = (_-6F.y + _arg1.y); _-Ar = (_-Ar + (((_arg2.x - m_sweep.c.x) * _arg1.y) - ((_arg2.y - m_sweep.c.y) * _arg1.x))); } public function _-JI():Boolean{ var _local4:_-Ai; var _local1:_-IR = _-Ix; _local1.R.Set(m_sweep.a0); var _local2:_-JY = _local1.R; var _local3:_-CE = m_sweep.localCenter; _local1.position.x = (m_sweep.c0.x - ((_local2._-0t.x * _local3.x) + (_local2._-8Z.x * _local3.y))); _local1.position.y = (m_sweep.c0.y - ((_local2._-0t.y * _local3.x) + (_local2._-8Z.y * _local3.y))); var _local5:Boolean; _local4 = _-M; while (_local4) { _local5 = _local4._-Br(m_world._-Hh, _local1, m_xf); if (_local5 == false){ break; }; _local4 = _local4._-Fv; }; if (_local5 == false){ _-5o = (_-5o | true); _-FD._-6W(); m_angularVelocity = 0; _local4 = _-M; while (_local4) { _local4._-Jp(m_world._-Hh); _local4 = _local4._-Fv; }; return (false); }; return (true); } public function GetAngle():Number{ return (m_sweep.a); } public function _-GN():_-IR{ return (m_xf); } public function _-0b(_arg1:_-CE):_-CE{ var _local2:_-JY = m_xf.R; var _local3:_-CE = new _-CE(((_local2._-0t.x * _arg1.x) + (_local2._-8Z.x * _arg1.y)), ((_local2._-0t.y * _arg1.x) + (_local2._-8Z.y * _arg1.y))); _local3.x = (_local3.x + m_xf.position.x); _local3.y = (_local3.y + m_xf.position.y); return (new _-CE((_-FD.x + (m_angularVelocity * (_local3.y - m_sweep.c.y))), (_-FD.x - (m_angularVelocity * (_local3.x - m_sweep.c.x))))); } public function _-GG():_-7S{ return (_-Fv); } public function _-5G():Number{ return (m_mass); } public function _-6I(_arg1:_-CE, _arg2:_-CE):void{ if (IsSleeping()){ WakeUp(); }; _-FD.x = (_-FD.x + (_-HO * _arg1.x)); _-FD.y = (_-FD.y + (_-HO * _arg1.y)); m_angularVelocity = (m_angularVelocity + (for * (((_arg2.x - m_sweep.c.x) * _arg1.y) - ((_arg2.y - m_sweep.c.y) * _arg1.x)))); } public function _-E6():Number{ return (m_angularVelocity); } public function _-5c(_arg1:Number):void{ m_angularVelocity = _arg1; } public function _-7z(_arg1:_-Dx):void{ var _local2:_-Ai; var _local4:_-CE; if (m_world._-Cz == true){ return; }; _-HO = 0; _-Jx = 0; for = 0; m_mass = _arg1.super; if (m_mass > 0){ _-HO = (1 / m_mass); }; if ((_-5o & _-7S._-6c) == 0){ _-Jx = _arg1._-3M; }; if (_-Jx > 0){ for = (1 / _-Jx); }; m_sweep.localCenter._-DC(_arg1.center); var _local3:_-JY = m_xf.R; _local4 = m_sweep.localCenter; m_sweep.c.x = ((_local3._-0t.x * _local4.x) + (_local3._-8Z.x * _local4.y)); m_sweep.c.y = ((_local3._-0t.y * _local4.x) + (_local3._-8Z.y * _local4.y)); m_sweep.c.x = (m_sweep.c.x + m_xf.position.x); m_sweep.c.y = (m_sweep.c.y + m_xf.position.y); m_sweep.c0._-DC(m_sweep.c); _local2 = _-M; while (_local2) { _local2.UpdateSweepRadius(m_sweep.localCenter); _local2 = _local2._-Fv; }; var _local5:int = m_type; if ((((_-HO == 0)) && ((for == 0)))){ m_type = _-A; } else { m_type = _-AV; }; if (_local5 != m_type){ _local2 = _-M; while (_local2) { _local2._-DP(m_world._-Hh, m_xf); _local2 = _local2._-Fv; }; }; } public function IsStatic():Boolean{ return ((m_type == _-A)); } public function _-H(_arg1:_-CE):_-CE{ return (_-Fk._-6N(m_xf.R, _arg1)); } public function _-4O():_-Ai{ return (_-M); } public function _-K0(_arg1:Number):void{ m_sweep._-K0(_arg1); m_sweep.c._-DC(m_sweep.c0); m_sweep.a = m_sweep.a0; _-Gw(); } public function _-2E(_arg1:Boolean):void{ if (_arg1){ _-5o = (_-5o | _-Dh); } else { _-5o = (_-5o & ~(_-Dh)); }; } public function _-Ep(_arg1:_-EZ):_-Ai{ if (m_world._-Cz == true){ return (null); }; var _local2:_-Ai = _-Ai._-HA(_arg1, m_world._-DI); _local2._-Fv = _-M; _-M = _local2; _-1r++; _local2.m_body = this; _local2._-F6(m_world._-Hh, m_xf); _local2.UpdateSweepRadius(m_sweep.localCenter); return (_local2); } public function _-J9(_arg1:_-7S):Boolean{ var _local2:_-Cy = _-DO; while (_local2) { if (_local2._-73 == _arg1){ return ((_local2._-BK._-6X == false)); }; _local2 = _local2.next; }; return (false); } public function _-8l(_arg1:_-Ai):void{ if (m_world._-Cz == true){ return; }; _arg1._-Jp(m_world._-Hh); var _local2:_-Ai = _-M; var _local3:Boolean; while (_local2 != null) { if (_local2 == _arg1){ _local2 = _arg1._-Fv; _local3 = true; break; }; _local2 = _local2._-Fv; }; _arg1.m_body = null; _arg1._-Fv = null; _-1r--; _-Ai._-D5(_arg1, m_world._-DI); } public function _-CZ(){ return (m_userData); } public function _-Kf():Boolean{ return (((_-5o & _-Dh) == _-Dh)); } public function _-En():_-CE{ return (m_sweep.c); } public function _-Dd(_arg1:Boolean):void{ if (_arg1){ _-5o = (_-5o | _-0h); } else { _-5o = (_-5o & ~(_-0h)); WakeUp(); }; } public function _-Aq(_arg1):void{ m_userData = _arg1; } public function GetLocalVector(_arg1:_-CE):_-CE{ return (_-Fk._-AO(m_xf.R, _arg1)); } public function GetWorldPoint(_arg1:_-CE):_-CE{ var _local2:_-JY = m_xf.R; var _local3:_-CE = new _-CE(((_local2._-0t.x * _arg1.x) + (_local2._-8Z.x * _arg1.y)), ((_local2._-0t.y * _arg1.x) + (_local2._-8Z.y * _arg1.y))); _local3.x = (_local3.x + m_xf.position.x); _local3.y = (_local3.y + m_xf.position.y); return (_local3); } public function _-2P():_-Hp{ return (m_world); } public function _-FA():_-CE{ return (m_xf.position); } } }//package _-Cd
Section 33
//_-D3 (_-Cd._-D3) package _-Cd { import _-9S.*; import _-5v.*; public class _-D3 { public var _-9M:Number; public var angle:Number; public var _-BQ:Boolean; public var position:_-CE; public var _-Hv:Boolean; public var _-6J:Boolean; public var userData; public var for :Boolean; public var _-Aw:Number; public var _-G:_-Dx; public function _-D3(){ _-G = new _-Dx(); position = new _-CE(); super(); _-G.center._-6W(); _-G.super = 0; _-G._-3M = 0; userData = null; position.Set(0, 0); angle = 0; _-Aw = 0; _-9M = 0; _-6J = true; _-BQ = false; for = false; _-Hv = false; } } }//package _-Cd
Section 34
//_-DV (_-Cd._-DV) package _-Cd { public class _-DV { public var _-CW:Boolean; public var _-A6:Boolean; public var _-3J:Number; public var _-2h:int; public var _-w:Number; public var _-Fp:Number; } }//package _-Cd
Section 35
//_-Hp (_-Cd._-Hp) package _-Cd { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-5v.*; import _-.*; import _-Gm.*; public class _-Hp { public var _-GK:Number; public var _-GL:_-It; public var _-Hm:_-8z; public var _-DI; public var _-C-:_-Ie; public var _-1Q:_-ET; public var _-Hh:_-0s; public var _-3-:_-35; public var _-J4:int; public var _-Cz:Boolean; public var _-3S:int; public var _-3b; public var implements:Boolean; public var _-Ia:int; public var m_groundBody:_-7S; public var _-D2:int; public var _-Ex:_-CE; public var _-JE:_-1V; public var _-8e:_-7S; public var _-G4:_-2H; public var _-If; public var _-DO:_-2S; public var _-49:_-CE; public var _-0F:_-JX; private static var _-Bh:_-KD = new _-KD(0.5, 0.8, 0.8); public static var _-9T:Boolean; public static var _-3D:Boolean; private static var _-CU:_-KD = new _-KD(0.9, 0.6, 0.6); public static var _-2U:Boolean; private static var _-EU:_-IR = new _-IR(); public function _-Hp(_arg1:_-1S, _arg2:_-CE, _arg3:Boolean){ _-Ex = new _-CE(); _-0F = new _-JX(); super(); _-3- = null; _-GL = null; _-JE = _-1V._-2G; _-C- = null; _-G4 = null; _-8e = null; _-Hm = null; _-DO = null; _-3S = 0; _-D2 = 0; _-J4 = 0; _-2U = true; _-3D = true; _-9T = true; implements = _arg3; _-49 = _arg2; _-Cz = false; _-GK = 0; _-0F.m_world = this; _-Hh = new _-0s(_arg1, _-0F); var _local4:_-D3 = new _-D3(); m_groundBody = _-9U(_local4); } public function _-4r(_arg1:_-2S):void{ var _local11:_-8j; var _local12:_-CE; var _local13:_-CE; var _local2:_-7S = _arg1._-1W; var _local3:_-7S = _arg1._-s; var _local4:_-IR = _local2.m_xf; var _local5:_-IR = _local3.m_xf; var _local6:_-CE = _local4.position; var _local7:_-CE = _local5.position; var _local8:_-CE = _arg1.GetAnchor1(); var _local9:_-CE = _arg1.GetAnchor2(); var _local10:_-KD = _-Bh; switch (_arg1.m_type){ case _-2S._-Hu: _-G4._-0l(_local8, _local9, _local10); break; case _-2S._-Az: _local11 = (_arg1 as _-8j); _local12 = _local11._-Gr(); _local13 = _local11._-AD(); _-G4._-0l(_local12, _local8, _local10); _-G4._-0l(_local13, _local9, _local10); _-G4._-0l(_local12, _local13, _local10); break; case _-2S._-Il: _-G4._-0l(_local8, _local9, _local10); break; default: if (_local2 != m_groundBody){ _-G4._-0l(_local6, _local8, _local10); }; _-G4._-0l(_local8, _local9, _local10); if (_local3 != m_groundBody){ _-G4._-0l(_local7, _local9, _local10); }; }; } public function _-F9(_arg1:_-Ai):void{ _arg1._-DP(_-Hh, _arg1.m_body.m_xf); } public function _-GU(_arg1:_-2H):void{ _-G4 = _arg1; } public function _-9o(_arg1:Boolean):void{ _-9T = _arg1; } public function _-8o():int{ return (_-Hh._-Gc); } public function _-1t():void{ var _local2:int; var _local3:_-7S; var _local4:_-Ai; var _local5:_-2S; var _local6:_-0s; var _local11:_-IR; var _local15:Boolean; var _local16:uint; var _local17:_-B9; var _local18:_-DL; var _local19:_-DL; var _local20:_-CE; var _local21:_-CE; var _local22:_-DL; var _local23:_-Au; var _local24:_-ER; var _local25:_-CE; var _local26:_-JY; var _local27:_-CE; var _local28:Number; if (_-G4 == null){ return; }; _-G4._-5X.graphics.clear(); var _local1:uint = _-G4._-CX(); var _local7:_-CE = new _-CE(); var _local8:_-CE = new _-CE(); var _local9:_-CE = new _-CE(); var _local10:_-KD = new _-KD(0, 0, 0); var _local12:_-1S = new _-1S(); var _local13:_-1S = new _-1S(); var _local14:Array = [new _-CE(), new _-CE(), new _-CE(), new _-CE()]; if ((_local1 & _-2H._-7b)){ _local15 = ((_local1 & _-2H._-Da) == _-2H._-Da); _local3 = _-8e; while (_local3) { _local11 = _local3.m_xf; _local4 = _local3._-4O(); while (_local4) { if (_local3.IsStatic()){ _-BE(_local4, _local11, new _-KD(0.5, 0.9, 0.5), _local15); } else { if (_local3.IsSleeping()){ _-BE(_local4, _local11, new _-KD(0.5, 0.5, 0.9), _local15); } else { _-BE(_local4, _local11, new _-KD(0.9, 0.9, 0.9), _local15); }; }; _local4 = _local4._-Fv; }; _local3 = _local3._-Fv; }; }; if ((_local1 & _-2H._-Ak)){ _local5 = _-DO; while (_local5) { _-4r(_local5); _local5 = _local5._-Fv; }; }; if ((_local1 & _-2H._-E1)){ _local6 = _-Hh; _local7.Set((1 / _local6._-G2.x), (1 / _local6._-G2.y)); _local10.Set(0.9, 0.9, 0.3); _local2 = 0; while (_local2 < _-B9._-2j) { _local16 = _local6._-Gn._-AY[_local2]; while (_local16 != _-B9._-7T) { _local17 = _local6._-Gn.try [_local16]; _local18 = _local6._-6V[_local17.proxyId1]; _local19 = _local6._-6V[_local17.proxyId2]; _local12._-Fu.x = (_local6._-Aj._-Fu.x + (_local7.x * _local6._-HN[0][_local18._-DD[0]].value)); _local12._-Fu.y = (_local6._-Aj._-Fu.y + (_local7.y * _local6._-HN[1][_local18._-DD[1]].value)); _local12._-1I.x = (_local6._-Aj._-Fu.x + (_local7.x * _local6._-HN[0][_local18._-5Y[0]].value)); _local12._-1I.y = (_local6._-Aj._-Fu.y + (_local7.y * _local6._-HN[1][_local18._-5Y[1]].value)); _local13._-Fu.x = (_local6._-Aj._-Fu.x + (_local7.x * _local6._-HN[0][_local19._-DD[0]].value)); _local13._-Fu.y = (_local6._-Aj._-Fu.y + (_local7.y * _local6._-HN[1][_local19._-DD[1]].value)); _local13._-1I.x = (_local6._-Aj._-Fu.x + (_local7.x * _local6._-HN[0][_local19._-5Y[0]].value)); _local13._-1I.y = (_local6._-Aj._-Fu.y + (_local7.y * _local6._-HN[1][_local19._-5Y[1]].value)); _local8.x = (0.5 * (_local12._-Fu.x + _local12._-1I.x)); _local8.y = (0.5 * (_local12._-Fu.y + _local12._-1I.y)); _local9.x = (0.5 * (_local13._-Fu.x + _local13._-1I.x)); _local9.y = (0.5 * (_local13._-Fu.y + _local13._-1I.y)); _-G4._-0l(_local8, _local9, _local10); _local16 = _local17.next; }; _local2++; }; }; if ((_local1 & _-2H._-8n)){ _local6 = _-Hh; _local20 = _local6._-Aj._-Fu; _local21 = _local6._-Aj._-1I; _local7.Set((1 / _local6._-G2.x), (1 / _local6._-G2.y)); _local10.Set(0.9, 0.3, 0.9); _local2 = 0; while (_local2 < _-Dm._-2e) { _local22 = _local6._-6V[_local2]; if (_local22.use() == false){ } else { _local12._-Fu.x = (_local20.x + (_local7.x * _local6._-HN[0][_local22._-DD[0]].value)); _local12._-Fu.y = (_local20.y + (_local7.y * _local6._-HN[1][_local22._-DD[1]].value)); _local12._-1I.x = (_local20.x + (_local7.x * _local6._-HN[0][_local22._-5Y[0]].value)); _local12._-1I.y = (_local20.y + (_local7.y * _local6._-HN[1][_local22._-5Y[1]].value)); _local14[0].Set(_local12._-Fu.x, _local12._-Fu.y); _local14[1].Set(_local12._-1I.x, _local12._-Fu.y); _local14[2].Set(_local12._-1I.x, _local12._-1I.y); _local14[3].Set(_local12._-Fu.x, _local12._-1I.y); _-G4. do(_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); _-G4. do(_local14, 4, new _-KD(0.3, 0.9, 0.9)); }; if ((_local1 & _-2H.const)){ _local10.Set(0.5, 0.3, 0.5); _local3 = _-8e; while (_local3) { _local11 = _local3.m_xf; _local4 = _local3._-4O(); while (_local4) { if (_local4.m_type != _-Ai._-HH){ } else { _local23 = (_local4 as _-Au); _local24 = _local23._-Z(); _local25 = _local24._-o; _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._-0t.x * _local27.x) + (_local26._-8Z.x * _local27.y))); _local14[_local2].y = (_local24.center.y + ((_local26._-0t.y * _local27.x) + (_local26._-8Z.y * _local27.y))); _local14[_local2].x = _local28; _local26 = _local11.R; _local28 = (_local11.position.x + ((_local26._-0t.x * _local27.x) + (_local26._-8Z.x * _local27.y))); _local14[_local2].y = (_local11.position.y + ((_local26._-0t.y * _local27.x) + (_local26._-8Z.y * _local27.y))); _local14[_local2].x = _local28; _local2++; }; _-G4. do(_local14, 4, _local10); }; _local4 = _local4._-Fv; }; _local3 = _local3._-Fv; }; }; if ((_local1 & _-2H._-7d)){ _local3 = _-8e; while (_local3) { _local11 = _-EU; _local11.R = _local3.m_xf.R; _local11.position = _local3._-En(); _-G4._-92(_local11); _local3 = _local3._-Fv; }; }; } public function _-Bj(_arg1:_-7S):void{ var _local4:_-Cy; var _local5:_-Ai; if (_-Cz == true){ return; }; var _local2:_-Cy = _arg1._-DO; while (_local2) { _local4 = _local2; _local2 = _local2.next; if (_-3-){ _-3-._-AC(_local4._-BK); }; _-4D(_local4._-BK); }; var _local3:_-Ai = _arg1._-M; while (_local3) { _local5 = _local3; _local3 = _local3._-Fv; if (_-3-){ _-3-._-7C(_local5); }; _local5._-Jp(_-Hh); _-Ai._-D5(_local5, _-DI); }; if (_arg1._-8C){ _arg1._-8C._-Fv = _arg1._-Fv; }; if (_arg1._-Fv){ _arg1._-Fv._-8C = _arg1._-8C; }; if (_arg1 == _-8e){ _-8e = _arg1._-Fv; }; _-3S--; } public function _-BE(_arg1:_-Ai, _arg2:_-IR, _arg3:_-KD, _arg4:Boolean):void{ var _local6:_-62; var _local7:_-CE; var _local8:Number; var _local9:_-CE; var _local10:int; var _local11:_-Au; var _local12:int; var _local13:Array; var _local14:Array; var _local15:Array; var _local5:_-KD = _-CU; switch (_arg1.m_type){ case _-Ai._-3X: _local6 = (_arg1 as _-62); _local7 = _-Fk._-7(_arg2, _local6._-Dz); _local8 = _local6._-9c; _local9 = _arg2.R._-0t; _-G4._-Iz(_local7, _local8, _local9, _arg3); if (_arg4){ _-G4.if(_local7, (_local8 - _-Dm._-6o), _local5); }; break; case _-Ai._-HH: _local11 = (_arg1 as _-Au); _local12 = _local11._-66(); _local13 = _local11._-4l(); _local14 = new Array(_-Dm._-C4); _local10 = 0; while (_local10 < _local12) { _local14[_local10] = _-Fk._-7(_arg2, _local13[_local10]); _local10++; }; _-G4._-1s(_local14, _local12, _arg3); if (_arg4){ _local15 = _local11._-Kk(); _local10 = 0; while (_local10 < _local12) { _local14[_local10] = _-Fk._-7(_arg2, _local15[_local10]); _local10++; }; _-G4. do(_local14, _local12, _local5); }; break; }; } public function _-HE():_-7S{ return (m_groundBody); } public function _-Cx(_arg1:_-1V):void{ _-JE = _arg1; } public function _-DB(_arg1:_-DV):void{ var _local2:_-7S; var _local9:int; var _local10:int; var _local11:_-7S; var _local12:_-Jw; var _local13:_-Cy; var _local14:Boolean; _-Ia = 0; var _local3:_-3i = new _-3i(_-3S, _-D2, _-J4, _-If, _-C-); _local2 = _-8e; while (_local2) { _local2._-5o = (_local2._-5o & ~(_-7S._-1m)); _local2 = _local2._-Fv; }; var _local4:_-8z = _-Hm; while (_local4) { _local4._-5o = (_local4._-5o & ~(_-8z._-1m)); _local4 = _local4._-Fv; }; var _local5:_-2S = _-DO; while (_local5) { _local5._-Bm = false; _local5 = _local5._-Fv; }; var _local6:int = _-3S; var _local7:Array = new Array(_local6); var _local8:_-7S = _-8e; while (_local8) { if ((_local8._-5o & ((_-7S._-1m | _-7S._-AA) | _-7S. true))){ } else { if (_local8.IsStatic()){ } else { _local3._-Jo(); _local9 = 0; var _temp1 = _local9; _local9 = (_local9 + 1); var _local15 = _temp1; _local7[_local15] = _local8; _local8._-5o = (_local8._-5o | _-7S._-1m); while (_local9 > 0) { --_local9; _local2 = _local7[_local9]; _local3._-4M(_local2); _local2._-5o = (_local2._-5o & ~(_-7S._-AA)); if (_local2.IsStatic()){ } else { _local12 = _local2._-Hm; while (_local12) { if ((_local12._-EM._-5o & (_-8z._-1m | _-8z._-9n))){ } else { if (_local12._-EM._-7D == 0){ } else { _local3._-64(_local12._-EM); _local12._-EM._-5o = (_local12._-EM._-5o | _-8z._-1m); _local11 = _local12._-73; if ((_local11._-5o & _-7S._-1m)){ } else { var _temp2 = _local9; _local9 = (_local9 + 1); var _local16 = _temp2; _local7[_local16] = _local11; _local11._-5o = (_local11._-5o | _-7S._-1m); }; }; }; _local12 = _local12.next; }; _local13 = _local2._-DO; while (_local13) { if (_local13._-BK._-Bm == true){ } else { _local3._-3Q(_local13._-BK); _local13._-BK._-Bm = true; _local11 = _local13._-73; if ((_local11._-5o & _-7S._-1m)){ } else { var _temp3 = _local9; _local9 = (_local9 + 1); _local16 = _temp3; _local7[_local16] = _local11; _local11._-5o = (_local11._-5o | _-7S._-1m); }; }; _local13 = _local13.next; }; }; }; _local3._-DB(_arg1, _-49, _-2U, implements); if (_local3._-Ia > _-Ia){ _-Ia = _local3._-Ia; }; _local10 = 0; while (_local10 < _local3._-3S) { _local2 = _local3. try[_local10]; if (_local2.IsStatic()){ _local2._-5o = (_local2._-5o & ~(_-7S._-1m)); }; _local10++; }; }; }; _local8 = _local8._-Fv; }; _local2 = _-8e; while (_local2) { if ((_local2._-5o & (_-7S._-AA | _-7S. true))){ } else { if (_local2.IsStatic()){ } else { _local14 = _local2._-JI(); if ((((_local14 == false)) && (!((_-GL == null))))){ _-GL.use (_local2); }; }; }; _local2 = _local2._-Fv; }; _-Hh._-FN(); } public function _-H0(_arg1:_-1S, _arg2:Array, _arg3:int):int{ var _local4:Array = new Array(_arg3); var _local5:int = _-Hh._-Fo(_arg1, _local4, _arg3); var _local6:int; while (_local6 < _local5) { _arg2[_local6] = _local4[_local6]; _local6++; }; return (_local5); } public function _-KG():int{ return (_-D2); } public function _-Jk(_arg1:_-DV):void{ var _local2:_-7S; var _local3:_-Ai; var _local4:_-Ai; var _local5:_-7S; var _local6:_-7S; var _local7:_-Jw; var _local11:_-8z; var _local12:_-8z; var _local13:Number; var _local14:_-7S; var _local15:int; var _local16:_-DV; var _local17:int; var _local18:Number; var _local19:Number; var _local20:_-7S; var _local21:Boolean; var _local8:_-3i = new _-3i(_-3S, _-Dm._-0r, 0, _-If, _-C-); var _local9:int = _-3S; var _local10:Array = new Array(_local9); _local2 = _-8e; while (_local2) { _local2._-5o = (_local2._-5o & ~(_-7S._-1m)); _local2.m_sweep._-6B = 0; _local2 = _local2._-Fv; }; _local11 = _-Hm; while (_local11) { _local11._-5o = (_local11._-5o & ~((_-8z._-CQ | _-8z._-1m))); _local11 = _local11._-Fv; }; while (true) { _local12 = null; _local13 = 1; _local11 = _-Hm; for (;_local11;(_local11 = _local11._-Fv)) { if ((_local11._-5o & (_-8z._-36 | _-8z._-9n))){ } else { _local18 = 1; if ((_local11._-5o & _-8z._-CQ)){ _local18 = _local11._-Id; } else { _local3 = _local11._-Fx; _local4 = _local11._-Es; _local5 = _local3.m_body; _local6 = _local4.m_body; if (((((_local5.IsStatic()) || (_local5.IsSleeping()))) && (((_local6.IsStatic()) || (_local6.IsSleeping()))))){ continue; }; _local19 = _local5.m_sweep._-6B; if (_local5.m_sweep._-6B < _local6.m_sweep._-6B){ _local19 = _local6.m_sweep._-6B; _local5.m_sweep._-K0(_local19); } else { if (_local6.m_sweep._-6B < _local5.m_sweep._-6B){ _local19 = _local5.m_sweep._-6B; _local6.m_sweep._-K0(_local19); }; }; _local18 = _-Ef._-I8(_local11._-Fx, _local5.m_sweep, _local11._-Es, _local6.m_sweep); if ((((_local18 > 0)) && ((_local18 < 1)))){ _local18 = (((1 - _local18) * _local19) + _local18); if (_local18 > 1){ _local18 = 1; }; }; _local11._-Id = _local18; _local11._-5o = (_local11._-5o | _-8z._-CQ); }; if ((((Number.MIN_VALUE < _local18)) && ((_local18 < _local13)))){ _local12 = _local11; _local13 = _local18; }; }; }; if ((((_local12 == null)) || (((1 - (100 * Number.MIN_VALUE)) < _local13)))){ break; }; _local3 = _local12._-Fx; _local4 = _local12._-Es; _local5 = _local3.m_body; _local6 = _local4.m_body; _local5._-K0(_local13); _local6._-K0(_local13); _local12._-0V(_-C-); _local12._-5o = (_local12._-5o & ~(_-8z._-CQ)); if (_local12._-7D == 0){ } else { _local14 = _local5; if (_local14.IsStatic()){ _local14 = _local6; }; _local8._-Jo(); _local15 = 0; var _temp1 = _local15; _local15 = (_local15 + 1); var _local22 = _temp1; _local10[_local22] = _local14; _local14._-5o = (_local14._-5o | _-7S._-1m); while (_local15 > 0) { --_local15; _local2 = _local10[_local15]; _local8._-4M(_local2); _local2._-5o = (_local2._-5o & ~(_-7S._-AA)); if (_local2.IsStatic()){ } else { _local7 = _local2._-Hm; while (_local7) { if (_local8._-D2 == _local8._-ES){ } else { if ((_local7._-EM._-5o & ((_-8z._-1m | _-8z._-36) | _-8z._-9n))){ } else { if (_local7._-EM._-7D == 0){ } else { _local8._-64(_local7._-EM); _local7._-EM._-5o = (_local7._-EM._-5o | _-8z._-1m); _local20 = _local7._-73; if ((_local20._-5o & _-7S._-1m)){ } else { if (_local20.IsStatic() == false){ _local20._-K0(_local13); _local20.WakeUp(); }; var _temp2 = _local15; _local15 = (_local15 + 1); var _local23 = _temp2; _local10[_local23] = _local20; _local20._-5o = (_local20._-5o | _-7S._-1m); }; }; }; }; _local7 = _local7.next; }; }; }; _local16 = new _-DV(); _local16._-3J = ((1 - _local13) * _arg1._-3J); _local16._-Fp = (1 / _local16._-3J); _local16._-2h = _arg1._-2h; _local8._-Jk(_local16); _local17 = 0; while (_local17 < _local8._-3S) { _local2 = _local8. try[_local17]; _local2._-5o = (_local2._-5o & ~(_-7S._-1m)); if ((_local2._-5o & (_-7S._-AA | _-7S. true))){ } else { if (_local2.IsStatic()){ } else { _local21 = _local2._-JI(); if ((((_local21 == false)) && (!((_-GL == null))))){ _-GL.use (_local2); }; _local7 = _local2._-Hm; while (_local7) { _local7._-EM._-5o = (_local7._-EM._-5o & ~(_-8z._-CQ)); _local7 = _local7.next; }; }; }; _local17++; }; _local17 = 0; while (_local17 < _local8._-D2) { _local11 = _local8._-0y[_local17]; _local8._-0y[_local17]._-5o = (_local11._-5o & ~((_-8z._-CQ | _-8z._-1m))); _local17++; }; _-Hh._-FN(); }; }; } public function _-18():_-2S{ return (_-DO); } public function _-5i():void{ _-Hh._-5i(); } public function _-5q(_arg1:_-CE):void{ _-49 = _arg1; } public function _-KM():int{ return (_-Hh._-Gn.each); } public function _-DZ():_-7S{ return (_-8e); } public function _-AZ(_arg1:Boolean):void{ _-3D = _arg1; } public function _-31(_arg1:Boolean):void{ _-2U = _arg1; } public function _-7Z(_arg1:catch):_-2S{ var _local3:_-7S; var _local4:_-Ai; var _local2:_-2S = _-2S._-HA(_arg1, _-DI); _local2._-8C = null; _local2._-Fv = _-DO; if (_-DO){ _-DO._-8C = _local2; }; _-DO = _local2; _-J4++; _local2._-FB._-BK = _local2; _local2._-FB._-73 = _local2._-s; _local2._-FB._-I1 = null; _local2._-FB.next = _local2._-1W._-DO; if (_local2._-1W._-DO){ _local2._-1W._-DO._-I1 = _local2._-FB; }; _local2._-1W._-DO = _local2._-FB; _local2._-8V._-BK = _local2; _local2._-8V._-73 = _local2._-1W; _local2._-8V._-I1 = null; _local2._-8V.next = _local2._-s._-DO; if (_local2._-s._-DO){ _local2._-s._-DO._-I1 = _local2._-8V; }; _local2._-s._-DO = _local2._-8V; if (_arg1._-09 == false){ _local3 = ((_arg1._-7h._-1r < _arg1._-C._-1r)) ? _arg1._-7h : _arg1._-C; _local4 = _local3._-M; while (_local4) { _local4._-DP(_-Hh, _local3.m_xf); _local4 = _local4._-Fv; }; }; return (_local2); } public function _-4D(_arg1:_-2S):void{ var _local5:_-7S; var _local6:_-Ai; var _local2:Boolean = _arg1._-6X; if (_arg1._-8C){ _arg1._-8C._-Fv = _arg1._-Fv; }; if (_arg1._-Fv){ _arg1._-Fv._-8C = _arg1._-8C; }; if (_arg1 == _-DO){ _-DO = _arg1._-Fv; }; var _local3:_-7S = _arg1._-1W; var _local4:_-7S = _arg1._-s; _local3.WakeUp(); _local4.WakeUp(); if (_arg1._-FB._-I1){ _arg1._-FB._-I1.next = _arg1._-FB.next; }; if (_arg1._-FB.next){ _arg1._-FB.next._-I1 = _arg1._-FB._-I1; }; if (_arg1._-FB == _local3._-DO){ _local3._-DO = _arg1._-FB.next; }; _arg1._-FB._-I1 = null; _arg1._-FB.next = null; if (_arg1._-8V._-I1){ _arg1._-8V._-I1.next = _arg1._-8V.next; }; if (_arg1._-8V.next){ _arg1._-8V.next._-I1 = _arg1._-8V._-I1; }; if (_arg1._-8V == _local4._-DO){ _local4._-DO = _arg1._-8V.next; }; _arg1._-8V._-I1 = null; _arg1._-8V.next = null; _-2S._-D5(_arg1, _-DI); _-J4--; if (_local2 == false){ _local5 = ((_local3._-1r < _local4._-1r)) ? _local3 : _local4; _local6 = _local5._-M; while (_local6) { _local6._-DP(_-Hh, _local5.m_xf); _local6 = _local6._-Fv; }; }; } public function _-3f(_arg1:_-Ie):void{ _-C- = _arg1; } public function _-Dj(_arg1:_-ET, _arg2:Array, _arg3:int, _arg4:Boolean, _arg5):int{ var _local7:int; var _local6:Array = new Array(_arg3); _-1Q = _arg1; _-3b = _arg5; if (_arg4){ _local7 = _-Hh._-KQ(_arg1, _local6, _arg3, _-B7); } else { _local7 = _-Hh._-KQ(_arg1, _local6, _arg3, _-Av); }; var _local8:int; while (_local8 < _local7) { _arg2[_local8] = _local6[_local8]; _local8++; }; return (_local7); } public function _-Av(_arg1:_-Ai){ if (((_-JE) && (!(_-JE._-3n(_-3b, _arg1))))){ return (-1); }; var _local2:_-7S = _arg1.GetBody(); var _local3:_-IR = _local2._-GN(); var _local4:Array = [0]; if (_arg1.TestSegment(_local3, _local4, _-Ex, _-1Q, 1) != _-Ai._-8D){ return (-1); }; return (_local4[0]); } public function _-8p(_arg1:_-ET, _arg2:Array, _arg3:_-CE, _arg4:Boolean, _arg5):_-Ai{ var _local6:Array = new Array(1); var _local7:Number = _-Dj(_arg1, _local6, 1, _arg4, _arg5); if (_local7 == 0){ return (null); }; if (_local7 > 1){ trace(_local7); }; var _local8:_-Ai = _local6[0]; var _local9:_-IR = _local8.GetBody()._-GN(); _local8.TestSegment(_local9, _arg2, _arg3, _arg1, 1); return (_local8); } public function _-9U(_arg1:_-D3):_-7S{ if (_-Cz == true){ return (null); }; var _local2:_-7S = new _-7S(_arg1, this); _local2._-8C = null; _local2._-Fv = _-8e; if (_-8e){ _-8e._-8C = _local2; }; _-8e = _local2; _-3S++; return (_local2); } public function _-B7(_arg1:_-Ai){ if (((_-JE) && (!(_-JE._-3n(_-3b, _arg1))))){ return (-1); }; var _local2:_-7S = _arg1.GetBody(); var _local3:_-IR = _local2._-GN(); var _local4:Array = [0]; if (_arg1.TestSegment(_local3, _local4, _-Ex, _-1Q, 1) == _-Ai._-CL){ return (-1); }; return (_local4[0]); } public function _-5N(_arg1:_-It):void{ _-GL = _arg1; } public function _-HD(_arg1:_-35):void{ _-3- = _arg1; } public function _-GQ(_arg1:Number, _arg2:int):void{ _-Cz = true; var _local3:_-DV = new _-DV(); _local3._-3J = _arg1; _local3._-2h = _arg2; if (_arg1 > 0){ _local3._-Fp = (1 / _arg1); } else { _local3._-Fp = 0; }; _local3._-w = (_-GK * _arg1); _local3._-A6 = _-2U; _local3._-CW = _-3D; _-0F._-HF(); if (_local3._-3J > 0){ _-DB(_local3); }; if (((_-9T) && ((_local3._-3J > 0)))){ _-Jk(_local3); }; _-1t(); _-GK = _local3._-Fp; _-Cz = false; } public function _-DE():int{ return (_-3S); } public function package():int{ return (_-J4); } } }//package _-Cd
Section 36
//_-Ie (_-Cd._-Ie) package _-Cd { import Box2D.Collision.*; import _-.*; public class _-Ie { public function Add(_arg1:_-5b):void{ } public function _-3T(_arg1:_-5b):void{ } public function _-AK(_arg1:_-5b):void{ } public function _-7U(_arg1:_-KH):void{ } } }//package _-Cd
Section 37
//_-It (_-Cd._-It) package _-Cd { public class _-It { public function use (_arg1:_-7S):void{ } } }//package _-Cd
Section 38
//_-JX (_-Cd._-JX) package _-Cd { import _-9S.*; import Box2D.Collision.*; import _-9f.*; import _-5v.*; import _-.*; public class _-JX extends _-5Z { public var m_world:_-Hp; public var _-Gg:Boolean; public var _-8g:_-B1; private static const _-6w:_-5b = new _-5b(); public function _-JX(){ _-8g = new _-B1(); super(); m_world = null; _-Gg = false; } override public function PairRemoved(_arg1, _arg2, _arg3):void{ if (_arg3 == null){ return; }; var _local4:_-8z = (_arg3 as _-8z); if (_local4 == _-8g){ return; }; _-D5(_local4); } public function _-D5(_arg1:_-8z):void{ var _local7:_-7S; var _local8:_-7S; var _local9:Array; var _local10:_-5b; var _local11:int; var _local12:_-38; var _local13:int; var _local14:_-Ic; var _local15:_-CE; var _local16:_-CE; var _local2:_-Ai = _arg1._-Fx; var _local3:_-Ai = _arg1._-Es; var _local4:int = _arg1._-7D; if ((((_local4 > 0)) && (m_world._-C-))){ _local7 = _local2.m_body; _local8 = _local3.m_body; _local9 = _arg1.GetManifolds(); _local10 = _-6w; _local10.shape1 = _arg1._-Fx; _local10.shape2 = _arg1._-Fx; _local10._-4T = _arg1._-GB; _local10._-Gq = _arg1._-Jd; _local11 = 0; while (_local11 < _local4) { _local12 = _local9[_local11]; _local10.normal._-DC(_local12.normal); _local13 = 0; while (_local13 < _local12._-Cp) { _local14 = _local12.points[_local13]; _local10.position = _local7.GetWorldPoint(_local14._-A2); _local15 = _local7._-0b(_local14._-A2); _local16 = _local8._-0b(_local14._-0A); _local10._-4g.Set((_local16.x - _local15.x), (_local16.y - _local15.y)); _local10._-HW = _local14._-HW; _local10.id.key = _local14.id._-9J; m_world._-C-._-3T(_local10); _local13++; }; _local11++; }; }; if (_arg1._-8C){ _arg1._-8C._-Fv = _arg1._-Fv; }; if (_arg1._-Fv){ _arg1._-Fv._-8C = _arg1._-8C; }; if (_arg1 == m_world._-Hm){ m_world._-Hm = _arg1._-Fv; }; var _local5:_-7S = _local2.m_body; var _local6:_-7S = _local3.m_body; if (_arg1._-FB._-I1){ _arg1._-FB._-I1.next = _arg1._-FB.next; }; if (_arg1._-FB.next){ _arg1._-FB.next._-I1 = _arg1._-FB._-I1; }; if (_arg1._-FB == _local5._-Hm){ _local5._-Hm = _arg1._-FB.next; }; if (_arg1._-8V._-I1){ _arg1._-8V._-I1.next = _arg1._-8V.next; }; if (_arg1._-8V.next){ _arg1._-8V.next._-I1 = _arg1._-8V._-I1; }; if (_arg1._-8V == _local6._-Hm){ _local6._-Hm = _arg1._-8V.next; }; _-8z._-D5(_arg1, m_world._-DI); m_world._-D2--; } override public function PairAdded(_arg1, _arg2){ var _local5:_-7S; var _local3:_-Ai = (_arg1 as _-Ai); var _local4:_-Ai = (_arg2 as _-Ai); _local5 = _local3.m_body; var _local6:_-7S = _local4.m_body; if (((_local5.IsStatic()) && (_local6.IsStatic()))){ return (_-8g); }; if (_local3.m_body == _local4.m_body){ return (_-8g); }; if (_local6._-J9(_local5)){ return (_-8g); }; if (((!((m_world._-JE == null))) && ((m_world._-JE._-2a(_local3, _local4) == false)))){ return (_-8g); }; var _local7:_-8z = _-8z._-HA(_local3, _local4, m_world._-DI); if (_local7 == null){ return (_-8g); }; _local3 = _local7._-Fx; _local4 = _local7._-Es; _local5 = _local3.m_body; _local6 = _local4.m_body; _local7._-8C = null; _local7._-Fv = m_world._-Hm; if (m_world._-Hm != null){ m_world._-Hm._-8C = _local7; }; m_world._-Hm = _local7; _local7._-FB._-EM = _local7; _local7._-FB._-73 = _local6; _local7._-FB._-I1 = null; _local7._-FB.next = _local5._-Hm; if (_local5._-Hm != null){ _local5._-Hm._-I1 = _local7._-FB; }; _local5._-Hm = _local7._-FB; _local7._-8V._-EM = _local7; _local7._-8V._-73 = _local5; _local7._-8V._-I1 = null; _local7._-8V.next = _local6._-Hm; if (_local6._-Hm != null){ _local6._-Hm._-I1 = _local7._-8V; }; _local6._-Hm = _local7._-8V; m_world._-D2++; return (_local7); } public function _-HF():void{ var _local2:_-7S; var _local3:_-7S; var _local1:_-8z = m_world._-Hm; while (_local1) { _local2 = _local1._-Fx.m_body; _local3 = _local1._-Es.m_body; if (((_local2.IsSleeping()) && (_local3.IsSleeping()))){ } else { _local1._-0V(m_world._-C-); }; _local1 = _local1._-Fv; }; } } }//package _-Cd
Section 39
//_-2S (_-Gm._-2S) package _-Gm { import _-9S.*; import _-Cd.*; public class _-2S { public var _-Bm:Boolean; public var _-1W:_-7S; public var _-8C:_-2S; public var _-Fv:_-2S; public var m_type:int; public var _-6X:Boolean; public var _-FB:_-Cy; public var _-8V:_-Cy; public var _-Ej:Number; public var m_userData; public var _-s:_-7S; public static const _-Ah:int = 0; public static const _-77:int = 0; public static const _-Hj:int = 2; public static const _-2C:int = 1; public static const if:int = 6; public static const e_revoluteJoint:int = 1; public static const _-m:int = 3; public static const _-Hu:int = 3; public static const _-Az:int = 4; public static const _-45:int = 2; public static const _-Il:int = 5; public function _-2S(_arg1:catch){ _-FB = new _-Cy(); _-8V = new _-Cy(); super(); m_type = _arg1.type; _-8C = null; _-Fv = null; _-1W = _arg1._-7h; _-s = _arg1._-C; _-6X = _arg1._-09; _-Bm = false; m_userData = _arg1.userData; } public function _-1H():_-7S{ return (_-s); } public function GetAnchor1():_-CE{ return (null); } public function GetAnchor2():_-CE{ return (null); } public function _-GG():_-2S{ return (_-Fv); } public function GetType():int{ return (m_type); } public function InitVelocityConstraints(_arg1:_-DV):void{ } public function GetReactionTorque():Number{ return (0); } public function _-CZ(){ return (m_userData); } public function GetReactionForce():_-CE{ return (null); } public function SolvePositionConstraints():Boolean{ return (false); } public function _-Aq(_arg1):void{ m_userData = _arg1; } public function _-0O():_-7S{ return (_-1W); } public function SolveVelocityConstraints(_arg1:_-DV):void{ } public function _-CK():void{ } public static function _-D5(_arg1:_-2S, _arg2):void{ } public static function _-HA(_arg1:catch, _arg2):_-2S{ var _local3:_-2S; switch (_arg1.type){ case _-Hu: _local3 = new _-KY((_arg1 as _-Ct)); break; case _-Il: _local3 = new _-55((_arg1 as _-3K)); break; case _-45: _local3 = new _-3q((_arg1 as _-h)); break; case e_revoluteJoint: _local3 = new _-7A((_arg1 as _-GC)); break; case _-Az: _local3 = new _-8j((_arg1 as with)); break; case if: _local3 = new _-3p((_arg1 as _-K9)); break; default: break; }; return (_local3); } } }//package _-Gm
Section 40
//_-3K (_-Gm._-3K) package _-Gm { import _-9S.*; public class _-3K extends catch { public var _-H7:Number; public var target:_-CE; public var _-J7:Number; public var _-4P:Number; public var _-GW:Number; public function _-3K(){ target = new _-CE(); super(); type = _-2S._-Il; _-J7 = 0; _-GW = 5; _-4P = 0.7; _-H7 = (1 / 60); } } }//package _-Gm
Section 41
//_-3p (_-Gm._-3p) package _-Gm { import _-9S.*; import _-9f.*; import _-Cd.*; public class _-3p extends _-2S { public var _-IJ:_-7S; public var _-J1:_-CE; public var _-61:_-CE; public var _-4:_-CE; public var _-7P:_-CE; public var _-IQ:Number; public var _-7F:_-7A; public var _-6F:Number; public var m_mass:Number; public var _-AM:_-3q; public var _-KA:_-7S; public var _-3P:_-7A; public var _-Bw:_-3q; public var _-IC:Number; public var _-2i:_-7w; public function _-3p(_arg1:_-K9){ var _local4:Number; var _local5:Number; _-J1 = new _-CE(); _-61 = new _-CE(); _-4 = new _-CE(); _-7P = new _-CE(); _-2i = new _-7w(); super(_arg1); var _local2:int = _arg1._-2u.m_type; var _local3:int = _arg1._-4p.m_type; _-3P = null; _-Bw = null; _-7F = null; _-AM = null; _-KA = _arg1._-2u._-1W; _-1W = _arg1._-2u._-s; if (_local2 == _-2S.e_revoluteJoint){ _-3P = (_arg1._-2u as _-7A); _-J1._-DC(_-3P._-4); _-4._-DC(_-3P._-7P); _local4 = _-3P._-CR(); } else { _-Bw = (_arg1._-2u as _-3q); _-J1._-DC(_-Bw._-4); _-4._-DC(_-Bw._-7P); _local4 = _-Bw._-GH(); }; _-IJ = _arg1._-4p._-1W; _-s = _arg1._-4p._-s; if (_local3 == _-2S.e_revoluteJoint){ _-7F = (_arg1._-4p as _-7A); _-61._-DC(_-7F._-4); _-7P._-DC(_-7F._-7P); _local5 = _-7F._-CR(); } else { _-AM = (_arg1._-4p as _-3q); _-61._-DC(_-AM._-4); _-7P._-DC(_-AM._-7P); _local5 = _-AM._-GH(); }; _-IQ = _arg1._-F7; _-IC = (_local4 + (_-IQ * _local5)); _-6F = 0; } override public function GetAnchor1():_-CE{ return (_-1W.GetWorldPoint(_-4)); } override public function GetAnchor2():_-CE{ return (_-s.GetWorldPoint(_-7P)); } override public function InitVelocityConstraints(_arg1:_-DV):void{ var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:_-JY; var _local11:_-CE; var _local12:Number; var _local13:Number; var _local15:Number; var _local2:_-7S = _-KA; var _local3:_-7S = _-IJ; var _local4:_-7S = _-1W; var _local5:_-7S = _-s; var _local14:Number = 0; _-2i._-6W(); if (_-3P){ _-2i._-4c = -1; _local14 = (_local14 + _local4.for); } else { _local10 = _local2.m_xf.R; _local11 = _-Bw._-BR; _local6 = ((_local10._-0t.x * _local11.x) + (_local10._-8Z.x * _local11.y)); _local7 = ((_local10._-0t.y * _local11.x) + (_local10._-8Z.y * _local11.y)); _local10 = _local4.m_xf.R; _local8 = (_-4.x - _local4.m_sweep.localCenter.x); _local9 = (_-4.y - _local4.m_sweep.localCenter.y); _local13 = ((_local10._-0t.x * _local8) + (_local10._-8Z.x * _local9)); _local9 = ((_local10._-0t.y * _local8) + (_local10._-8Z.y * _local9)); _local8 = _local13; _local12 = ((_local8 * _local7) - (_local9 * _local6)); _-2i._-p.Set(-(_local6), -(_local7)); _-2i._-4c = -(_local12); _local14 = (_local14 + (_local4._-HO + ((_local4.for * _local12) * _local12))); }; if (_-7F){ _-2i._-08 = -(_-IQ); _local14 = (_local14 + ((_-IQ * _-IQ) * _local5.for)); } else { _local10 = _local3.m_xf.R; _local11 = _-AM._-BR; _local6 = ((_local10._-0t.x * _local11.x) + (_local10._-8Z.x * _local11.y)); _local7 = ((_local10._-0t.y * _local11.x) + (_local10._-8Z.y * _local11.y)); _local10 = _local5.m_xf.R; _local8 = (_-7P.x - _local5.m_sweep.localCenter.x); _local9 = (_-7P.y - _local5.m_sweep.localCenter.y); _local13 = ((_local10._-0t.x * _local8) + (_local10._-8Z.x * _local9)); _local9 = ((_local10._-0t.y * _local8) + (_local10._-8Z.y * _local9)); _local8 = _local13; _local12 = ((_local8 * _local7) - (_local9 * _local6)); _-2i._-CF.Set((-(_-IQ) * _local6), (-(_-IQ) * _local7)); _-2i._-08 = (-(_-IQ) * _local12); _local14 = (_local14 + ((_-IQ * _-IQ) * (_local5._-HO + ((_local5.for * _local12) * _local12)))); }; m_mass = (1 / _local14); if (_arg1._-CW){ _local15 = (_arg1._-3J * _-6F); _local4._-FD.x = (_local4._-FD.x + ((_local4._-HO * _local15) * _-2i._-p.x)); _local4._-FD.y = (_local4._-FD.y + ((_local4._-HO * _local15) * _-2i._-p.y)); _local4.m_angularVelocity = (_local4.m_angularVelocity + ((_local4.for * _local15) * _-2i._-4c)); _local5._-FD.x = (_local5._-FD.x + ((_local5._-HO * _local15) * _-2i._-CF.x)); _local5._-FD.y = (_local5._-FD.y + ((_local5._-HO * _local15) * _-2i._-CF.y)); _local5.m_angularVelocity = (_local5.m_angularVelocity + ((_local5.for * _local15) * _-2i._-08)); } else { _-6F = 0; }; } override public function GetReactionTorque():Number{ var _local1:_-JY = _-s.m_xf.R; var _local2:Number = (_-4.x - _-s.m_sweep.localCenter.x); var _local3:Number = (_-4.y - _-s.m_sweep.localCenter.y); var _local4:Number = ((_local1._-0t.x * _local2) + (_local1._-8Z.x * _local3)); _local3 = ((_local1._-0t.y * _local2) + (_local1._-8Z.y * _local3)); _local2 = _local4; _local4 = ((_-6F * _-2i._-08) - ((_local2 * (_-6F * _-2i._-CF.y)) - (_local3 * (_-6F * _-2i._-CF.x)))); return (_local4); } override public function GetReactionForce():_-CE{ var _local1:_-CE = new _-CE((_-6F * _-2i._-CF.x), (_-6F * _-2i._-CF.y)); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local4:Number; var _local5:Number; var _local1:Number = 0; var _local2:_-7S = _-1W; var _local3:_-7S = _-s; if (_-3P){ _local4 = _-3P._-CR(); } else { _local4 = _-Bw._-GH(); }; if (_-7F){ _local5 = _-7F._-CR(); } else { _local5 = _-AM._-GH(); }; var _local6:Number = (_-IC - (_local4 + (_-IQ * _local5))); var _local7:Number = (-(m_mass) * _local6); _local2.m_sweep.c.x = (_local2.m_sweep.c.x + ((_local2._-HO * _local7) * _-2i._-p.x)); _local2.m_sweep.c.y = (_local2.m_sweep.c.y + ((_local2._-HO * _local7) * _-2i._-p.y)); _local2.m_sweep.a = (_local2.m_sweep.a + ((_local2.for * _local7) * _-2i._-4c)); _local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local3._-HO * _local7) * _-2i._-CF.x)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local3._-HO * _local7) * _-2i._-CF.y)); _local3.m_sweep.a = (_local3.m_sweep.a + ((_local3.for * _local7) * _-2i._-08)); _local2._-Gw(); _local3._-Gw(); return ((_local1 < _-Dm._-Fq)); } public function _-L():Number{ return (_-IQ); } override public function SolveVelocityConstraints(_arg1:_-DV):void{ var _local2:_-7S = _-1W; var _local3:_-7S = _-s; var _local4:Number = _-2i._-0e(_local2._-FD, _local2.m_angularVelocity, _local3._-FD, _local3.m_angularVelocity); var _local5:Number = ((-(_arg1._-Fp) * m_mass) * _local4); _-6F = (_-6F + _local5); var _local6:Number = (_arg1._-3J * _local5); _local2._-FD.x = (_local2._-FD.x + ((_local2._-HO * _local6) * _-2i._-p.x)); _local2._-FD.y = (_local2._-FD.y + ((_local2._-HO * _local6) * _-2i._-p.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local2.for * _local6) * _-2i._-4c)); _local3._-FD.x = (_local3._-FD.x + ((_local3._-HO * _local6) * _-2i._-CF.x)); _local3._-FD.y = (_local3._-FD.y + ((_local3._-HO * _local6) * _-2i._-CF.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3.for * _local6) * _-2i._-08)); } } }//package _-Gm
Section 42
//_-3q (_-Gm._-3q) package _-Gm { import _-9S.*; import _-9f.*; import _-Cd.*; public class _-3q extends _-2S { public var _-Ab:Number; public var _-4J:Number; public var _-BR:_-CE; public var in:Number; public var _-Ar:Number; public var _-9R:Number; public var _-Gv:Boolean; public var _-5M:Number; public var _-Bl:Number; public var _-58:_-CE; public var _-6F:Number; public var _-GI:Number; public var _-70:Number; public var _-4:_-CE; public var _-7P:_-CE; public var _-Ag:int; public var _-2l:Number; public var _-AG:_-7w; public var _-IB:Number; public var _-Hb:Number; public var _-54:Boolean; public var _-0x:_-7w; public function _-3q(_arg1:_-h){ var _local2:_-JY; var _local3:Number; var _local4:Number; _-4 = new _-CE(); _-7P = new _-CE(); _-BR = new _-CE(); _-58 = new _-CE(); _-0x = new _-7w(); _-AG = new _-7w(); super(_arg1); _-4._-DC(_arg1._-6-); _-7P._-DC(_arg1._-Fj); _-BR._-DC(_arg1._-DX); _-58.x = -(_-BR.y); _-58.y = _-BR.x; in = _arg1._-6P; _-0x._-6W(); _-2l = 0; _-6F = 0; _-5M = 0; _-Ar = 0; _-AG._-6W(); _-GI = 0; _-9R = 0; _-Ab = 0; _-IB = 0; _-4J = _arg1._-DG; _-70 = _arg1._-K1; _-Bl = _arg1._-GZ; _-Hb = _arg1._-6E; _-Gv = _arg1._-9z; _-54 = _arg1._-Ez; } override public function SolveVelocityConstraints(_arg1:_-DV):void{ var _local6:Number; var _local8:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local2:_-7S = _-1W; var _local3:_-7S = _-s; var _local4:Number = _local2._-HO; var _local5:Number = _local3._-HO; _local6 = _local2.for; var _local7:Number = _local3.for; var _local9:Number = _-0x._-0e(_local2._-FD, _local2.m_angularVelocity, _local3._-FD, _local3.m_angularVelocity); var _local10:Number = ((-(_arg1._-Fp) * _-2l) * _local9); _-6F = (_-6F + _local10); var _local11:Number = (_arg1._-3J * _local10); _local2._-FD.x = (_local2._-FD.x + ((_local4 * _local11) * _-0x._-p.x)); _local2._-FD.y = (_local2._-FD.y + ((_local4 * _local11) * _-0x._-p.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * _-0x._-4c)); _local3._-FD.x = (_local3._-FD.x + ((_local5 * _local11) * _-0x._-CF.x)); _local3._-FD.y = (_local3._-FD.y + ((_local5 * _local11) * _-0x._-CF.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * _-0x._-08)); var _local12:Number = (_local3.m_angularVelocity - _local2.m_angularVelocity); var _local13:Number = ((-(_arg1._-Fp) * _-5M) * _local12); _-Ar = (_-Ar + _local13); var _local14:Number = (_arg1._-3J * _local13); _local2.m_angularVelocity = (_local2.m_angularVelocity - (_local6 * _local14)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local7 * _local14)); if (((_-54) && (!((_-Ag == _-m))))){ _local15 = (_-AG._-0e(_local2._-FD, _local2.m_angularVelocity, _local3._-FD, _local3.m_angularVelocity) - _-Hb); _local16 = ((-(_arg1._-Fp) * _-GI) * _local15); _local17 = _-9R; _-9R = _-Fk._-1F((_-9R + _local16), -(_-Bl), _-Bl); _local16 = (_-9R - _local17); _local11 = (_arg1._-3J * _local16); _local2._-FD.x = (_local2._-FD.x + ((_local4 * _local11) * _-AG._-p.x)); _local2._-FD.y = (_local2._-FD.y + ((_local4 * _local11) * _-AG._-p.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * _-AG._-4c)); _local3._-FD.x = (_local3._-FD.x + ((_local5 * _local11) * _-AG._-CF.x)); _local3._-FD.y = (_local3._-FD.y + ((_local5 * _local11) * _-AG._-CF.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * _-AG._-08)); }; if (((_-Gv) && (!((_-Ag == _-77))))){ _local18 = _-AG._-0e(_local2._-FD, _local2.m_angularVelocity, _local3._-FD, _local3.m_angularVelocity); _local19 = ((-(_arg1._-Fp) * _-GI) * _local18); if (_-Ag == _-m){ _-Ab = (_-Ab + _local19); } else { if (_-Ag == _-2C){ _local8 = _-Ab; _-Ab = _-Fk._-3u((_-Ab + _local19), 0); _local19 = (_-Ab - _local8); } else { if (_-Ag == _-Hj){ _local8 = _-Ab; _-Ab = _-Fk._-Ga((_-Ab + _local19), 0); _local19 = (_-Ab - _local8); }; }; }; _local11 = (_arg1._-3J * _local19); _local2._-FD.x = (_local2._-FD.x + ((_local4 * _local11) * _-AG._-p.x)); _local2._-FD.y = (_local2._-FD.y + ((_local4 * _local11) * _-AG._-p.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity + ((_local6 * _local11) * _-AG._-4c)); _local3._-FD.x = (_local3._-FD.x + ((_local5 * _local11) * _-AG._-CF.x)); _local3._-FD.y = (_local3._-FD.y + ((_local5 * _local11) * _-AG._-CF.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local7 * _local11) * _-AG._-08)); }; } override public function GetAnchor1():_-CE{ return (_-1W.GetWorldPoint(_-4)); } override public function GetAnchor2():_-CE{ return (_-s.GetWorldPoint(_-7P)); } public function _-7j():Number{ return (_-70); } public function _-IY():Number{ return (_-4J); } public function _-Dc(_arg1:Boolean):void{ _-54 = _arg1; } public function _-GH():Number{ var _local3:_-JY; var _local1:_-7S = _-1W; var _local2:_-7S = _-s; var _local4:_-CE = _local1.GetWorldPoint(_-4); var _local5:_-CE = _local2.GetWorldPoint(_-7P); var _local6:Number = (_local5.x - _local4.x); var _local7:Number = (_local5.y - _local4.y); var _local8:_-CE = _local1._-H(_-BR); var _local9:Number = ((_local8.x * _local6) + (_local8.y * _local7)); return (_local9); } public function _-3U():Number{ return (_-Hb); } override public function GetReactionForce():_-CE{ var _local1:_-JY = _-1W.m_xf.R; var _local2:Number = (_-Ab * ((_local1._-0t.x * _-BR.x) + (_local1._-8Z.x * _-BR.y))); var _local3:Number = (_-Ab * ((_local1._-0t.y * _-BR.x) + (_local1._-8Z.y * _-BR.y))); var _local4:Number = (_-6F * ((_local1._-0t.x * _-58.x) + (_local1._-8Z.x * _-58.y))); var _local5:Number = (_-6F * ((_local1._-0t.y * _-58.x) + (_local1._-8Z.y * _-58.y))); return (new _-CE(((_-Ab * _local2) + (_-6F * _local4)), ((_-Ab * _local3) + (_-6F * _local5)))); } override public function SolvePositionConstraints():Boolean{ var _local1:Number; var _local2:Number; var _local9:_-JY; var _local10:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local3:_-7S = _-1W; var _local4:_-7S = _-s; var _local5:Number = _local3._-HO; var _local6:Number = _local4._-HO; var _local7:Number = _local3.for; var _local8:Number = _local4.for; _local9 = _local3.m_xf.R; var _local11:Number = (_-4.x - _local3.m_sweep.localCenter.x); var _local12:Number = (_-4.y - _local3.m_sweep.localCenter.y); _local10 = ((_local9._-0t.x * _local11) + (_local9._-8Z.x * _local12)); _local12 = ((_local9._-0t.y * _local11) + (_local9._-8Z.y * _local12)); _local11 = _local10; _local9 = _local4.m_xf.R; var _local13:Number = (_-7P.x - _local4.m_sweep.localCenter.x); var _local14:Number = (_-7P.y - _local4.m_sweep.localCenter.y); _local10 = ((_local9._-0t.x * _local13) + (_local9._-8Z.x * _local14)); _local14 = ((_local9._-0t.y * _local13) + (_local9._-8Z.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._-0t.x * _-58.x) + (_local9._-8Z.x * _-58.y)); var _local22:Number = ((_local9._-0t.y * _-58.x) + (_local9._-8Z.y * _-58.y)); var _local23:Number = ((_local21 * _local19) + (_local22 * _local20)); _local23 = _-Fk._-1F(_local23, -(_-Dm._-4U), _-Dm._-4U); var _local24:Number = (-(_-2l) * _local23); _local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local5 * _local24) * _-0x._-p.x)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local5 * _local24) * _-0x._-p.y)); _local3.m_sweep.a = (_local3.m_sweep.a + ((_local7 * _local24) * _-0x._-4c)); _local4.m_sweep.c.x = (_local4.m_sweep.c.x + ((_local6 * _local24) * _-0x._-CF.x)); _local4.m_sweep.c.y = (_local4.m_sweep.c.y + ((_local6 * _local24) * _-0x._-CF.y)); _local4.m_sweep.a = (_local4.m_sweep.a + ((_local8 * _local24) * _-0x._-08)); var _local25:Number = _-Fk._-H9(_local23); var _local26:Number = ((_local4.m_sweep.a - _local3.m_sweep.a) - in); _local26 = _-Fk._-1F(_local26, -(_-Dm._-Cg), _-Dm._-Cg); var _local27:Number = (-(_-5M) * _local26); _local3.m_sweep.a = (_local3.m_sweep.a - (_local3.for * _local27)); _local4.m_sweep.a = (_local4.m_sweep.a + (_local4.for * _local27)); _local3._-Gw(); _local4._-Gw(); var _local28:Number = _-Fk._-H9(_local26); if (((_-Gv) && (!((_-Ag == _-77))))){ _local9 = _local3.m_xf.R; _local11 = (_-4.x - _local3.m_sweep.localCenter.x); _local12 = (_-4.y - _local3.m_sweep.localCenter.y); _local10 = ((_local9._-0t.x * _local11) + (_local9._-8Z.x * _local12)); _local12 = ((_local9._-0t.y * _local11) + (_local9._-8Z.y * _local12)); _local11 = _local10; _local9 = _local4.m_xf.R; _local13 = (_-7P.x - _local4.m_sweep.localCenter.x); _local14 = (_-7P.y - _local4.m_sweep.localCenter.y); _local10 = ((_local9._-0t.x * _local13) + (_local9._-8Z.x * _local14)); _local14 = ((_local9._-0t.y * _local13) + (_local9._-8Z.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._-0t.x * _-BR.x) + (_local9._-8Z.x * _-BR.y)); _local30 = ((_local9._-0t.y * _-BR.x) + (_local9._-8Z.y * _-BR.y)); _local31 = ((_local29 * _local19) + (_local30 * _local20)); _local32 = 0; if (_-Ag == _-m){ _local1 = _-Fk._-1F(_local31, -(_-Dm._-4U), _-Dm._-4U); _local32 = (-(_-GI) * _local1); _local25 = _-Fk._-3u(_local25, _-Fk._-H9(_local26)); } else { if (_-Ag == _-2C){ _local1 = (_local31 - _-4J); _local25 = _-Fk._-3u(_local25, -(_local1)); _local1 = _-Fk._-1F((_local1 + _-Dm._-Fq), -(_-Dm._-4U), 0); _local32 = (-(_-GI) * _local1); _local2 = _-IB; _-IB = _-Fk._-3u((_-IB + _local32), 0); _local32 = (_-IB - _local2); } else { if (_-Ag == _-Hj){ _local1 = (_local31 - _-70); _local25 = _-Fk._-3u(_local25, _local1); _local1 = _-Fk._-1F((_local1 - _-Dm._-Fq), 0, _-Dm._-4U); _local32 = (-(_-GI) * _local1); _local2 = _-IB; _-IB = _-Fk._-Ga((_-IB + _local32), 0); _local32 = (_-IB - _local2); }; }; }; _local3.m_sweep.c.x = (_local3.m_sweep.c.x + ((_local5 * _local32) * _-AG._-p.x)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y + ((_local5 * _local32) * _-AG._-p.y)); _local3.m_sweep.a = (_local3.m_sweep.a + ((_local7 * _local32) * _-AG._-4c)); _local4.m_sweep.c.x = (_local4.m_sweep.c.x + ((_local6 * _local32) * _-AG._-CF.x)); _local4.m_sweep.c.y = (_local4.m_sweep.c.y + ((_local6 * _local32) * _-AG._-CF.y)); _local4.m_sweep.a = (_local4.m_sweep.a + ((_local8 * _local32) * _-AG._-08)); _local3._-Gw(); _local4._-Gw(); }; return ((((_local25 <= _-Dm._-Fq)) && ((_local28 <= _-Dm._-8P)))); } public function _-JU(_arg1:Number):void{ _-Hb = _arg1; } public function _-DU():Number{ var _local3:_-JY; var _local1:_-7S = _-1W; var _local2:_-7S = _-s; _local3 = _local1.m_xf.R; var _local4:Number = (_-4.x - _local1.m_sweep.localCenter.x); var _local5:Number = (_-4.y - _local1.m_sweep.localCenter.y); var _local6:Number = ((_local3._-0t.x * _local4) + (_local3._-8Z.x * _local5)); _local5 = ((_local3._-0t.y * _local4) + (_local3._-8Z.y * _local5)); _local4 = _local6; _local3 = _local2.m_xf.R; var _local7:Number = (_-7P.x - _local2.m_sweep.localCenter.x); var _local8:Number = (_-7P.y - _local2.m_sweep.localCenter.y); _local6 = ((_local3._-0t.x * _local7) + (_local3._-8Z.x * _local8)); _local8 = ((_local3._-0t.y * _local7) + (_local3._-8Z.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:_-CE = _local1._-H(_-BR); var _local16:_-CE = _local1._-FD; var _local17:_-CE = _local2._-FD; 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:_-DV):void{ var _local4:_-JY; 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:_-7S = _-1W; var _local3:_-7S = _-s; _local4 = _local2.m_xf.R; var _local6:Number = (_-4.x - _local2.m_sweep.localCenter.x); var _local7:Number = (_-4.y - _local2.m_sweep.localCenter.y); _local5 = ((_local4._-0t.x * _local6) + (_local4._-8Z.x * _local7)); _local7 = ((_local4._-0t.y * _local6) + (_local4._-8Z.y * _local7)); _local6 = _local5; _local4 = _local3.m_xf.R; var _local8:Number = (_-7P.x - _local3.m_sweep.localCenter.x); var _local9:Number = (_-7P.y - _local3.m_sweep.localCenter.y); _local5 = ((_local4._-0t.x * _local8) + (_local4._-8Z.x * _local9)); _local9 = ((_local4._-0t.y * _local8) + (_local4._-8Z.y * _local9)); _local8 = _local5; var _local10:Number = _local2._-HO; var _local11:Number = _local3._-HO; var _local12:Number = _local2.for; var _local13:Number = _local3.for; _local4 = _local2.m_xf.R; var _local14:Number = ((_local4._-0t.x * _-58.x) + (_local4._-8Z.x * _-58.y)); var _local15:Number = ((_local4._-0t.y * _-58.x) + (_local4._-8Z.y * _-58.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); _-0x._-p.x = -(_local14); _-0x._-p.y = -(_local15); _-0x._-CF.x = _local14; _-0x._-CF.y = _local15; _-0x._-4c = -(((_local16 * _local15) - (_local17 * _local14))); _-0x._-08 = ((_local8 * _local15) - (_local9 * _local14)); _-2l = (((_local10 + ((_local12 * _-0x._-4c) * _-0x._-4c)) + _local11) + ((_local13 * _-0x._-08) * _-0x._-08)); _-2l = (1 / _-2l); _-5M = (_local12 + _local13); if (_-5M > Number.MIN_VALUE){ _-5M = (1 / _-5M); }; if (((_-Gv) || (_-54))){ _local4 = _local2.m_xf.R; _local18 = ((_local4._-0t.x * _-BR.x) + (_local4._-8Z.x * _-BR.y)); _local19 = ((_local4._-0t.y * _-BR.x) + (_local4._-8Z.y * _-BR.y)); _-AG._-p.x = -(_local18); _-AG._-p.y = -(_local19); _-AG._-CF.x = _local18; _-AG._-CF.y = _local19; _-AG._-4c = -(((_local16 * _local19) - (_local17 * _local18))); _-AG._-08 = ((_local8 * _local19) - (_local9 * _local18)); _-GI = (((_local10 + ((_local12 * _-AG._-4c) * _-AG._-4c)) + _local11) + ((_local13 * _-AG._-08) * _-AG._-08)); _-GI = (1 / _-GI); if (_-Gv){ _local20 = (_local16 - _local6); _local21 = (_local17 - _local7); _local22 = ((_local18 * _local20) + (_local19 * _local21)); if (_-Fk._-H9((_-70 - _-4J)) < (2 * _-Dm._-Fq)){ _-Ag = _-m; } else { if (_local22 <= _-4J){ if (_-Ag != _-2C){ _-Ab = 0; }; _-Ag = _-2C; } else { if (_local22 >= _-70){ if (_-Ag != _-Hj){ _-Ab = 0; }; _-Ag = _-Hj; } else { _-Ag = _-77; _-Ab = 0; }; }; }; }; }; if (_-54 == false){ _-9R = 0; }; if (_-Gv == false){ _-Ab = 0; }; if (_arg1._-CW){ _local23 = (_arg1._-3J * ((_-6F * _-0x._-p.x) + ((_-9R + _-Ab) * _-AG._-p.x))); _local24 = (_arg1._-3J * ((_-6F * _-0x._-p.y) + ((_-9R + _-Ab) * _-AG._-p.y))); _local25 = (_arg1._-3J * ((_-6F * _-0x._-CF.x) + ((_-9R + _-Ab) * _-AG._-CF.x))); _local26 = (_arg1._-3J * ((_-6F * _-0x._-CF.y) + ((_-9R + _-Ab) * _-AG._-CF.y))); _local27 = (_arg1._-3J * (((_-6F * _-0x._-4c) - _-Ar) + ((_-9R + _-Ab) * _-AG._-4c))); _local28 = (_arg1._-3J * (((_-6F * _-0x._-08) + _-Ar) + ((_-9R + _-Ab) * _-AG._-08))); _local2._-FD.x = (_local2._-FD.x + (_local10 * _local23)); _local2._-FD.y = (_local2._-FD.y + (_local10 * _local24)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local12 * _local27)); _local3._-FD.x = (_local3._-FD.x + (_local11 * _local25)); _local3._-FD.y = (_local3._-FD.y + (_local11 * _local26)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local13 * _local28)); } else { _-6F = 0; _-Ar = 0; _-Ab = 0; _-9R = 0; }; _-IB = 0; } public function _-HX():Number{ return (_-9R); } public function _-6U(_arg1:Boolean):void{ _-Gv = _arg1; } public function _-Fe(_arg1:Number):void{ _-Bl = _arg1; } override public function GetReactionTorque():Number{ return (_-Ar); } public function _-8F():Boolean{ return (_-Gv); } public function _-v():Boolean{ return (_-54); } public function _-GX(_arg1:Number, _arg2:Number):void{ _-4J = _arg1; _-70 = _arg2; } } }//package _-Gm
Section 43
//_-55 (_-Gm._-55) package _-Gm { import _-9S.*; import _-9f.*; import _-Cd.*; public class _-55 extends _-2S { private var _-2m:_-JY; private var _-6y:_-JY; public var _-7O:Number; public var m_mass:_-JY; private var _-7q:_-JY; public var _-u:_-CE; public var _-G3:Number; public var _-E5:_-CE; public var _-7E:_-CE; public var _-7a:_-CE; public var _-HI:Number; public function _-55(_arg1:_-3K){ var _local3:Number; _-6y = new _-JY(); _-2m = new _-JY(); _-7q = new _-JY(); _-7a = new _-CE(); _-u = new _-CE(); _-E5 = new _-CE(); m_mass = new _-JY(); _-7E = new _-CE(); super(_arg1); _-u._-DC(_arg1.target); var _local2:Number = (_-u.x - _-s.m_xf.position.x); _local3 = (_-u.y - _-s.m_xf.position.y); var _local4:_-JY = _-s.m_xf.R; _-7a.x = ((_local2 * _local4._-0t.x) + (_local3 * _local4._-0t.y)); _-7a.y = ((_local2 * _local4._-8Z.x) + (_local3 * _local4._-8Z.y)); _-HI = _arg1._-J7; _-E5._-6W(); var _local5:Number = _-s.m_mass; var _local6:Number = ((2 * _-Dm._-3N) * _arg1._-GW); var _local7:Number = (((2 * _local5) * _arg1._-4P) * _local6); var _local8:Number = ((_arg1._-H7 * _local5) * (_local6 * _local6)); _-G3 = (1 / (_local7 + _local8)); _-7O = (_local8 / (_local7 + _local8)); } public function _-Gy(_arg1:_-CE):void{ if (_-s.IsSleeping()){ _-s.WakeUp(); }; _-u = _arg1; } override public function GetAnchor2():_-CE{ return (_-s.GetWorldPoint(_-7a)); } override public function InitVelocityConstraints(_arg1:_-DV):void{ var _local2:_-7S; var _local3:_-JY; var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; _local2 = _-s; _local3 = _local2.m_xf.R; _local4 = (_-7a.x - _local2.m_sweep.localCenter.x); _local5 = (_-7a.y - _local2.m_sweep.localCenter.y); var _local6:Number = ((_local3._-0t.x * _local4) + (_local3._-8Z.x * _local5)); _local5 = ((_local3._-0t.y * _local4) + (_local3._-8Z.y * _local5)); _local4 = _local6; _local7 = _local2._-HO; _local8 = _local2.for; _-2m._-0t.x = _local7; _-2m._-8Z.x = 0; _-2m._-0t.y = 0; _-2m._-8Z.y = _local7; _-7q._-0t.x = ((_local8 * _local5) * _local5); _-7q._-8Z.x = ((-(_local8) * _local4) * _local5); _-7q._-0t.y = ((-(_local8) * _local4) * _local5); _-7q._-8Z.y = ((_local8 * _local4) * _local4); _-6y._-FL(_-2m); _-6y._-CH(_-7q); _-6y._-0t.x = (_-6y._-0t.x + _-G3); _-6y._-8Z.y = (_-6y._-8Z.y + _-G3); _-6y._-JN(m_mass); _-7E.x = ((_local2.m_sweep.c.x + _local4) - _-u.x); _-7E.y = ((_local2.m_sweep.c.y + _local5) - _-u.y); _local2.m_angularVelocity = (_local2.m_angularVelocity * 0.98); var _local9:Number = (_arg1._-3J * _-E5.x); var _local10:Number = (_arg1._-3J * _-E5.y); _local2._-FD.x = (_local2._-FD.x + (_local7 * _local9)); _local2._-FD.y = (_local2._-FD.y + (_local7 * _local10)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local8 * ((_local4 * _local10) - (_local5 * _local9)))); } override public function GetAnchor1():_-CE{ return (_-u); } override public function GetReactionTorque():Number{ return (0); } override public function GetReactionForce():_-CE{ return (_-E5); } override public function SolvePositionConstraints():Boolean{ return (true); } override public function SolveVelocityConstraints(_arg1:_-DV):void{ var _local3:_-JY; var _local4:Number; var _local5:Number; var _local2:_-7S = _-s; _local3 = _local2.m_xf.R; var _local6:Number = (_-7a.x - _local2.m_sweep.localCenter.x); var _local7:Number = (_-7a.y - _local2.m_sweep.localCenter.y); _local4 = ((_local3._-0t.x * _local6) + (_local3._-8Z.x * _local7)); _local7 = ((_local3._-0t.y * _local6) + (_local3._-8Z.y * _local7)); _local6 = _local4; var _local8:Number = (_local2._-FD.x + (-(_local2.m_angularVelocity) * _local7)); var _local9:Number = (_local2._-FD.y + (_local2.m_angularVelocity * _local6)); _local3 = m_mass; _local4 = ((_local8 + ((_-7O * _arg1._-Fp) * _-7E.x)) + ((_-G3 * _arg1._-3J) * _-E5.x)); _local5 = ((_local9 + ((_-7O * _arg1._-Fp) * _-7E.y)) + ((_-G3 * _arg1._-3J) * _-E5.y)); var _local10:Number = (-(_arg1._-Fp) * ((_local3._-0t.x * _local4) + (_local3._-8Z.x * _local5))); var _local11:Number = (-(_arg1._-Fp) * ((_local3._-0t.y * _local4) + (_local3._-8Z.y * _local5))); var _local12:Number = _-E5.x; var _local13:Number = _-E5.y; _-E5.x = (_-E5.x + _local10); _-E5.y = (_-E5.y + _local11); var _local14:Number = _-E5.class(); if (_local14 > _-HI){ _-E5.Multiply((_-HI / _local14)); }; _local10 = (_-E5.x - _local12); _local11 = (_-E5.y - _local13); var _local15:Number = (_arg1._-3J * _local10); var _local16:Number = (_arg1._-3J * _local11); _local2._-FD.x = (_local2._-FD.x + (_local2._-HO * _local15)); _local2._-FD.y = (_local2._-FD.y + (_local2._-HO * _local16)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.for * ((_local6 * _local16) - (_local7 * _local15)))); } } }//package _-Gm
Section 44
//_-7A (_-Gm._-7A) package _-Gm { import _-9S.*; import _-9f.*; import _-Cd.*; public class _-7A extends _-2S { public var _-Ab:Number; public var _-4m:_-JY; public var _-9R:Number; public var _-Gv:Boolean; public var _-Ag:int; public var _-GI:Number; public var _-4:_-CE; public var _-7P:_-CE; private var _-2m:_-JY; private var _-7q:_-JY; private var _-D1:_-JY; private var _-6y:_-JY; public var _-JO:_-CE; public var _-54:Boolean; public var _-9r:Number; public var _-IB:Number; public var _-Hb:Number; public var _-34:Number; public var _-0P:Number; public var _-7Q:Number; public static var _-FS:_-CE = new _-CE(); public function _-7A(_arg1:_-GC){ _-6y = new _-JY(); _-2m = new _-JY(); _-7q = new _-JY(); _-D1 = new _-JY(); _-4 = new _-CE(); _-7P = new _-CE(); _-JO = new _-CE(); _-4m = new _-JY(); super(_arg1); _-4._-DC(_arg1._-6-); _-7P._-DC(_arg1._-Fj); _-9r = _arg1._-6P; _-JO.Set(0, 0); _-9R = 0; _-Ab = 0; _-IB = 0; _-0P = _arg1._-JG; _-34 = _arg1._-EI; _-7Q = _arg1._-JR; _-Hb = _arg1._-6E; _-Gv = _arg1._-9z; _-54 = _arg1._-Ez; } override public function SolveVelocityConstraints(_arg1:_-DV):void{ var _local4:_-JY; 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:_-7S = _-1W; var _local3:_-7S = _-s; _local4 = _local2.m_xf.R; var _local6:Number = (_-4.x - _local2.m_sweep.localCenter.x); var _local7:Number = (_-4.y - _local2.m_sweep.localCenter.y); _local5 = ((_local4._-0t.x * _local6) + (_local4._-8Z.x * _local7)); _local7 = ((_local4._-0t.y * _local6) + (_local4._-8Z.y * _local7)); _local6 = _local5; _local4 = _local3.m_xf.R; var _local8:Number = (_-7P.x - _local3.m_sweep.localCenter.x); var _local9:Number = (_-7P.y - _local3.m_sweep.localCenter.y); _local5 = ((_local4._-0t.x * _local8) + (_local4._-8Z.x * _local9)); _local9 = ((_local4._-0t.y * _local8) + (_local4._-8Z.y * _local9)); _local8 = _local5; var _local11:Number = (((_local3._-FD.x + (-(_local3.m_angularVelocity) * _local9)) - _local2._-FD.x) - (-(_local2.m_angularVelocity) * _local7)); var _local12:Number = (((_local3._-FD.y + (_local3.m_angularVelocity * _local8)) - _local2._-FD.y) - (_local2.m_angularVelocity * _local6)); var _local13:Number = (-(_arg1._-Fp) * ((_-4m._-0t.x * _local11) + (_-4m._-8Z.x * _local12))); var _local14:Number = (-(_arg1._-Fp) * ((_-4m._-0t.y * _local11) + (_-4m._-8Z.y * _local12))); _-JO.x = (_-JO.x + _local13); _-JO.y = (_-JO.y + _local14); var _local15:Number = (_arg1._-3J * _local13); _local16 = (_arg1._-3J * _local14); _local2._-FD.x = (_local2._-FD.x - (_local2._-HO * _local15)); _local2._-FD.y = (_local2._-FD.y - (_local2._-HO * _local16)); _local2.m_angularVelocity = (_local2.m_angularVelocity - (_local2.for * ((_local6 * _local16) - (_local7 * _local15)))); _local3._-FD.x = (_local3._-FD.x + (_local3._-HO * _local15)); _local3._-FD.y = (_local3._-FD.y + (_local3._-HO * _local16)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.for * ((_local8 * _local16) - (_local9 * _local15)))); if (((_-54) && (!((_-Ag == _-m))))){ _local17 = ((_local3.m_angularVelocity - _local2.m_angularVelocity) - _-Hb); _local18 = ((-(_arg1._-Fp) * _-GI) * _local17); _local19 = _-9R; _-9R = _-Fk._-1F((_-9R + _local18), -(_-7Q), _-7Q); _local18 = (_-9R - _local19); _local2.m_angularVelocity = (_local2.m_angularVelocity - ((_local2.for * _arg1._-3J) * _local18)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3.for * _arg1._-3J) * _local18)); }; if (((_-Gv) && (!((_-Ag == _-77))))){ _local20 = (_local3.m_angularVelocity - _local2.m_angularVelocity); _local21 = ((-(_arg1._-Fp) * _-GI) * _local20); if (_-Ag == _-m){ _-Ab = (_-Ab + _local21); } else { if (_-Ag == _-2C){ _local10 = _-Ab; _-Ab = _-Fk._-3u((_-Ab + _local21), 0); _local21 = (_-Ab - _local10); } else { if (_-Ag == _-Hj){ _local10 = _-Ab; _-Ab = _-Fk._-Ga((_-Ab + _local21), 0); _local21 = (_-Ab - _local10); }; }; }; _local2.m_angularVelocity = (_local2.m_angularVelocity - ((_local2.for * _arg1._-3J) * _local21)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_local3.for * _arg1._-3J) * _local21)); }; } override public function GetAnchor1():_-CE{ return (_-1W.GetWorldPoint(_-4)); } override public function GetAnchor2():_-CE{ return (_-s.GetWorldPoint(_-7P)); } public function _-7j():Number{ return (_-34); } public function _-IY():Number{ return (_-0P); } public function _-Dc(_arg1:Boolean):void{ _-54 = _arg1; } public function _-3U():Number{ return (_-Hb); } override public function GetReactionForce():_-CE{ return (_-JO); } override public function SolvePositionConstraints():Boolean{ var _local1:Number; var _local2:Number; var _local6:_-JY; var _local25:Number; var _local26:Number; var _local3:_-7S = _-1W; var _local4:_-7S = _-s; var _local5:Number = 0; _local6 = _local3.m_xf.R; var _local7:Number = (_-4.x - _local3.m_sweep.localCenter.x); var _local8:Number = (_-4.y - _local3.m_sweep.localCenter.y); var _local9:Number = ((_local6._-0t.x * _local7) + (_local6._-8Z.x * _local8)); _local8 = ((_local6._-0t.y * _local7) + (_local6._-8Z.y * _local8)); _local7 = _local9; _local6 = _local4.m_xf.R; var _local10:Number = (_-7P.x - _local4.m_sweep.localCenter.x); var _local11:Number = (_-7P.y - _local4.m_sweep.localCenter.y); _local9 = ((_local6._-0t.x * _local10) + (_local6._-8Z.x * _local11)); _local11 = ((_local6._-0t.y * _local10) + (_local6._-8Z.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._-HO; var _local19:Number = _local4._-HO; var _local20:Number = _local3.for; var _local21:Number = _local4.for; _-2m._-0t.x = (_local18 + _local19); _-2m._-8Z.x = 0; _-2m._-0t.y = 0; _-2m._-8Z.y = (_local18 + _local19); _-7q._-0t.x = ((_local20 * _local8) * _local8); _-7q._-8Z.x = ((-(_local20) * _local7) * _local8); _-7q._-0t.y = ((-(_local20) * _local7) * _local8); _-7q._-8Z.y = ((_local20 * _local7) * _local7); _-D1._-0t.x = ((_local21 * _local11) * _local11); _-D1._-8Z.x = ((-(_local21) * _local10) * _local11); _-D1._-0t.y = ((-(_local21) * _local10) * _local11); _-D1._-8Z.y = ((_local21 * _local10) * _local10); _-6y._-FL(_-2m); _-6y._-CH(_-7q); _-6y._-CH(_-D1); _-6y._-DB(_-FS, -(_local16), -(_local17)); var _local22:Number = _-FS.x; var _local23:Number = _-FS.y; _local3.m_sweep.c.x = (_local3.m_sweep.c.x - (_local3._-HO * _local22)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y - (_local3._-HO * _local23)); _local3.m_sweep.a = (_local3.m_sweep.a - (_local3.for * ((_local7 * _local23) - (_local8 * _local22)))); _local4.m_sweep.c.x = (_local4.m_sweep.c.x + (_local4._-HO * _local22)); _local4.m_sweep.c.y = (_local4.m_sweep.c.y + (_local4._-HO * _local23)); _local4.m_sweep.a = (_local4.m_sweep.a + (_local4.for * ((_local10 * _local23) - (_local11 * _local22)))); _local3._-Gw(); _local4._-Gw(); var _local24:Number = 0; if (((_-Gv) && (!((_-Ag == _-77))))){ _local25 = ((_local4.m_sweep.a - _local3.m_sweep.a) - _-9r); _local26 = 0; if (_-Ag == _-m){ _local2 = _-Fk._-1F(_local25, -(_-Dm._-Cg), _-Dm._-Cg); _local26 = (-(_-GI) * _local2); _local24 = _-Fk._-H9(_local2); } else { if (_-Ag == _-2C){ _local2 = (_local25 - _-0P); _local24 = _-Fk._-3u(0, -(_local2)); _local2 = _-Fk._-1F((_local2 + _-Dm._-8P), -(_-Dm._-Cg), 0); _local26 = (-(_-GI) * _local2); _local1 = _-IB; _-IB = _-Fk._-3u((_-IB + _local26), 0); _local26 = (_-IB - _local1); } else { if (_-Ag == _-Hj){ _local2 = (_local25 - _-34); _local24 = _-Fk._-3u(0, _local2); _local2 = _-Fk._-1F((_local2 - _-Dm._-8P), 0, _-Dm._-Cg); _local26 = (-(_-GI) * _local2); _local1 = _-IB; _-IB = _-Fk._-Ga((_-IB + _local26), 0); _local26 = (_-IB - _local1); }; }; }; _local3.m_sweep.a = (_local3.m_sweep.a - (_local3.for * _local26)); _local4.m_sweep.a = (_local4.m_sweep.a + (_local4.for * _local26)); _local3._-Gw(); _local4._-Gw(); }; return ((((_local5 <= _-Dm._-Fq)) && ((_local24 <= _-Dm._-8P)))); } public function _-JU(_arg1:Number):void{ _-Hb = _arg1; } public function _-DU():Number{ return ((_-s.m_angularVelocity - _-1W.m_angularVelocity)); } public function _-CM(_arg1:Number):void{ _-7Q = _arg1; } public function _-CR():Number{ return (((_-s.m_sweep.a - _-1W.m_sweep.a) - _-9r)); } public function _-Gh():Number{ return (_-9R); } override public function InitVelocityConstraints(_arg1:_-DV):void{ var _local2:_-7S; var _local3:_-7S; var _local4:_-JY; var _local5:Number; var _local7:Number; var _local14:Number; _local2 = _-1W; _local3 = _-s; _local4 = _local2.m_xf.R; var _local6:Number = (_-4.x - _local2.m_sweep.localCenter.x); _local7 = (_-4.y - _local2.m_sweep.localCenter.y); _local5 = ((_local4._-0t.x * _local6) + (_local4._-8Z.x * _local7)); _local7 = ((_local4._-0t.y * _local6) + (_local4._-8Z.y * _local7)); _local6 = _local5; _local4 = _local3.m_xf.R; var _local8:Number = (_-7P.x - _local3.m_sweep.localCenter.x); var _local9:Number = (_-7P.y - _local3.m_sweep.localCenter.y); _local5 = ((_local4._-0t.x * _local8) + (_local4._-8Z.x * _local9)); _local9 = ((_local4._-0t.y * _local8) + (_local4._-8Z.y * _local9)); _local8 = _local5; var _local10:Number = _local2._-HO; var _local11:Number = _local3._-HO; var _local12:Number = _local2.for; var _local13:Number = _local3.for; _-2m._-0t.x = (_local10 + _local11); _-2m._-8Z.x = 0; _-2m._-0t.y = 0; _-2m._-8Z.y = (_local10 + _local11); _-7q._-0t.x = ((_local12 * _local7) * _local7); _-7q._-8Z.x = ((-(_local12) * _local6) * _local7); _-7q._-0t.y = ((-(_local12) * _local6) * _local7); _-7q._-8Z.y = ((_local12 * _local6) * _local6); _-D1._-0t.x = ((_local13 * _local9) * _local9); _-D1._-8Z.x = ((-(_local13) * _local8) * _local9); _-D1._-0t.y = ((-(_local13) * _local8) * _local9); _-D1._-8Z.y = ((_local13 * _local8) * _local8); _-6y._-FL(_-2m); _-6y._-CH(_-7q); _-6y._-CH(_-D1); _-6y._-JN(_-4m); _-GI = (1 / (_local12 + _local13)); if (_-54 == false){ _-9R = 0; }; if (_-Gv){ _local14 = ((_local3.m_sweep.a - _local2.m_sweep.a) - _-9r); if (_-Fk._-H9((_-34 - _-0P)) < (2 * _-Dm._-8P)){ _-Ag = _-m; } else { if (_local14 <= _-0P){ if (_-Ag != _-2C){ _-Ab = 0; }; _-Ag = _-2C; } else { if (_local14 >= _-34){ if (_-Ag != _-Hj){ _-Ab = 0; }; _-Ag = _-Hj; } else { _-Ag = _-77; _-Ab = 0; }; }; }; } else { _-Ab = 0; }; if (_arg1._-CW){ _local2._-FD.x = (_local2._-FD.x - ((_arg1._-3J * _local10) * _-JO.x)); _local2._-FD.y = (_local2._-FD.y - ((_arg1._-3J * _local10) * _-JO.y)); _local2.m_angularVelocity = (_local2.m_angularVelocity - ((_arg1._-3J * _local12) * ((((_local6 * _-JO.y) - (_local7 * _-JO.x)) + _-9R) + _-Ab))); _local3._-FD.x = (_local3._-FD.x + ((_arg1._-3J * _local11) * _-JO.x)); _local3._-FD.y = (_local3._-FD.y + ((_arg1._-3J * _local11) * _-JO.y)); _local3.m_angularVelocity = (_local3.m_angularVelocity + ((_arg1._-3J * _local13) * ((((_local8 * _-JO.y) - (_local9 * _-JO.x)) + _-9R) + _-Ab))); } else { _-JO._-6W(); _-9R = 0; _-Ab = 0; }; _-IB = 0; } public function _-6U(_arg1:Boolean):void{ _-Gv = _arg1; } override public function GetReactionTorque():Number{ return (_-Ab); } public function _-8F():Boolean{ return (_-Gv); } public function _-v():Boolean{ return (_-54); } public function _-GX(_arg1:Number, _arg2:Number):void{ _-0P = _arg1; _-34 = _arg2; } } }//package _-Gm
Section 45
//_-7w (_-Gm._-7w) package _-Gm { import _-9S.*; public class _-7w { public var _-p:_-CE; public var _-CF:_-CE; public var _-4c:Number; public var _-08:Number; public function _-7w(){ _-p = new _-CE(); _-CF = new _-CE(); super(); } public function Set(_arg1:_-CE, _arg2:Number, _arg3:_-CE, _arg4:Number):void{ _-p._-DC(_arg1); _-4c = _arg2; _-CF._-DC(_arg3); _-08 = _arg4; } public function _-6W():void{ _-p._-6W(); _-4c = 0; _-CF._-6W(); _-08 = 0; } public function _-0e(_arg1:_-CE, _arg2:Number, _arg3:_-CE, _arg4:Number):Number{ return ((((((_-p.x * _arg1.x) + (_-p.y * _arg1.y)) + (_-4c * _arg2)) + ((_-CF.x * _arg3.x) + (_-CF.y * _arg3.y))) + (_-08 * _arg4))); } } }//package _-Gm
Section 46
//_-8j (_-Gm._-8j) package _-Gm { import _-9S.*; import _-9f.*; import _-Cd.*; public class _-8j extends _-2S { public var _-BY:int; public var _-Cs:int; public var _-3C:_-7S; public var _-8y:Number; public var _-8s:Number; public var _-G1:Number; public var _-E2:Number; public var _-6F:Number; public var _-IC:Number; public var _-JT:Number; public var _-3E:int; public var _-IQ:Number; public var _-J1:_-CE; public var _-61:_-CE; public var _-4:_-CE; public var _-7P:_-CE; public var _-9K:Number; public var _-ED:Number; public var _-4o:Number; public var _-Je:_-CE; public var _-1K:Number; public var _-1Z:Number; public var true :_-CE; public static const _-N:Number = 2; public function _-8j(_arg1:with){ var _local2:_-JY; var _local3:Number; var _local4:Number; _-J1 = new _-CE(); _-61 = new _-CE(); _-4 = new _-CE(); _-7P = new _-CE(); _-Je = new _-CE(); true = new _-CE(); super(_arg1); _-3C = _-1W.m_world.m_groundBody; _-J1.x = (_arg1._-Bx.x - _-3C.m_xf.position.x); _-J1.y = (_arg1._-Bx.y - _-3C.m_xf.position.y); _-61.x = (_arg1._-91.x - _-3C.m_xf.position.x); _-61.y = (_arg1._-91.y - _-3C.m_xf.position.y); _-4._-DC(_arg1._-6-); _-7P._-DC(_arg1._-Fj); _-IQ = _arg1._-F7; _-IC = (_arg1._-5y + (_-IQ * _arg1._-IH)); _-8s = _-Fk._-Ga(_arg1._-8S, (_-IC - (_-IQ * _-N))); _-8y = _-Fk._-Ga(_arg1._-82, ((_-IC - _-N) / _-IQ)); _-6F = 0; _-1K = 0; _-1Z = 0; } public function _-AD():_-CE{ var _local1:_-CE = _-3C.m_xf.position.Copy(); _local1.Add(_-61); return (_local1); } override public function GetAnchor1():_-CE{ return (_-1W.GetWorldPoint(_-4)); } override public function GetAnchor2():_-CE{ return (_-s.GetWorldPoint(_-7P)); } override public function GetReactionForce():_-CE{ var _local1:_-CE = true .Copy(); _local1.Multiply(_-6F); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local3:_-JY; 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:_-7S = _-1W; var _local2:_-7S = _-s; var _local4:Number = (_-3C.m_xf.position.x + _-J1.x); var _local5:Number = (_-3C.m_xf.position.y + _-J1.y); var _local6:Number = (_-3C.m_xf.position.x + _-61.x); var _local7:Number = (_-3C.m_xf.position.y + _-61.y); var _local23:Number = 0; if (_-3E == _-Hj){ _local3 = _local1.m_xf.R; _local8 = (_-4.x - _local1.m_sweep.localCenter.x); _local9 = (_-4.y - _local1.m_sweep.localCenter.y); _local22 = ((_local3._-0t.x * _local8) + (_local3._-8Z.x * _local9)); _local9 = ((_local3._-0t.y * _local8) + (_local3._-8Z.y * _local9)); _local8 = _local22; _local3 = _local2.m_xf.R; _local10 = (_-7P.x - _local2.m_sweep.localCenter.x); _local11 = (_-7P.y - _local2.m_sweep.localCenter.y); _local22 = ((_local3._-0t.x * _local10) + (_local3._-8Z.x * _local11)); _local11 = ((_local3._-0t.y * _local10) + (_local3._-8Z.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); _-Je.Set((_local12 - _local4), (_local13 - _local5)); true .Set((_local14 - _local6), (_local15 - _local7)); _local16 = _-Je.class(); _local17 = true .class(); if (_local16 > _-Dm._-Fq){ _-Je.Multiply((1 / _local16)); } else { _-Je._-6W(); }; if (_local17 > _-Dm._-Fq){ true .Multiply((1 / _local17)); } else { true ._-6W(); }; _local18 = ((_-IC - _local16) - (_-IQ * _local17)); _local23 = _-Fk._-3u(_local23, -(_local18)); _local18 = _-Fk._-1F((_local18 + _-Dm._-Fq), -(_-Dm._-4U), 0); _local19 = (-(_-4o) * _local18); _local20 = _-JT; _-JT = _-Fk._-3u(0, (_-JT + _local19)); _local19 = (_-JT - _local20); _local12 = (-(_local19) * _-Je.x); _local13 = (-(_local19) * _-Je.y); _local14 = ((-(_-IQ) * _local19) * true .x); _local15 = ((-(_-IQ) * _local19) * true .y); _local1.m_sweep.c.x = (_local1.m_sweep.c.x + (_local1._-HO * _local12)); _local1.m_sweep.c.y = (_local1.m_sweep.c.y + (_local1._-HO * _local13)); _local1.m_sweep.a = (_local1.m_sweep.a + (_local1.for * ((_local8 * _local13) - (_local9 * _local12)))); _local2.m_sweep.c.x = (_local2.m_sweep.c.x + (_local2._-HO * _local14)); _local2.m_sweep.c.y = (_local2.m_sweep.c.y + (_local2._-HO * _local15)); _local2.m_sweep.a = (_local2.m_sweep.a + (_local2.for * ((_local10 * _local15) - (_local11 * _local14)))); _local1._-Gw(); _local2._-Gw(); }; if (_-BY == _-Hj){ _local3 = _local1.m_xf.R; _local8 = (_-4.x - _local1.m_sweep.localCenter.x); _local9 = (_-4.y - _local1.m_sweep.localCenter.y); _local22 = ((_local3._-0t.x * _local8) + (_local3._-8Z.x * _local9)); _local9 = ((_local3._-0t.y * _local8) + (_local3._-8Z.y * _local9)); _local8 = _local22; _local12 = (_local1.m_sweep.c.x + _local8); _local13 = (_local1.m_sweep.c.y + _local9); _-Je.Set((_local12 - _local4), (_local13 - _local5)); _local16 = _-Je.class(); if (_local16 > _-Dm._-Fq){ _-Je.x = (_-Je.x * (1 / _local16)); _-Je.y = (_-Je.y * (1 / _local16)); } else { _-Je._-6W(); }; _local18 = (_-8s - _local16); _local23 = _-Fk._-3u(_local23, -(_local18)); _local18 = _-Fk._-1F((_local18 + _-Dm._-Fq), -(_-Dm._-4U), 0); _local19 = (-(_-9K) * _local18); _local21 = _-G1; _-G1 = _-Fk._-3u(0, (_-G1 + _local19)); _local19 = (_-G1 - _local21); _local12 = (-(_local19) * _-Je.x); _local13 = (-(_local19) * _-Je.y); _local1.m_sweep.c.x = (_local1.m_sweep.c.x + (_local1._-HO * _local12)); _local1.m_sweep.c.y = (_local1.m_sweep.c.y + (_local1._-HO * _local13)); _local1.m_sweep.a = (_local1.m_sweep.a + (_local1.for * ((_local8 * _local13) - (_local9 * _local12)))); _local1._-Gw(); }; if (_-Cs == _-Hj){ _local3 = _local2.m_xf.R; _local10 = (_-7P.x - _local2.m_sweep.localCenter.x); _local11 = (_-7P.y - _local2.m_sweep.localCenter.y); _local22 = ((_local3._-0t.x * _local10) + (_local3._-8Z.x * _local11)); _local11 = ((_local3._-0t.y * _local10) + (_local3._-8Z.y * _local11)); _local10 = _local22; _local14 = (_local2.m_sweep.c.x + _local10); _local15 = (_local2.m_sweep.c.y + _local11); true .Set((_local14 - _local6), (_local15 - _local7)); _local17 = true .class(); if (_local17 > _-Dm._-Fq){ true .x = (true .x * (1 / _local17)); true .y = (true .y * (1 / _local17)); } else { true ._-6W(); }; _local18 = (_-8y - _local17); _local23 = _-Fk._-3u(_local23, -(_local18)); _local18 = _-Fk._-1F((_local18 + _-Dm._-Fq), -(_-Dm._-4U), 0); _local19 = (-(_-ED) * _local18); _local21 = _-E2; _-E2 = _-Fk._-3u(0, (_-E2 + _local19)); _local19 = (_-E2 - _local21); _local14 = (-(_local19) * true .x); _local15 = (-(_local19) * true .y); _local2.m_sweep.c.x = (_local2.m_sweep.c.x + (_local2._-HO * _local14)); _local2.m_sweep.c.y = (_local2.m_sweep.c.y + (_local2._-HO * _local15)); _local2.m_sweep.a = (_local2.m_sweep.a + (_local2.for * ((_local10 * _local15) - (_local11 * _local14)))); _local2._-Gw(); }; return ((_local23 < _-Dm._-Fq)); } override public function InitVelocityConstraints(_arg1:_-DV):void{ var _local4:_-JY; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local2:_-7S = _-1W; var _local3:_-7S = _-s; _local4 = _local2.m_xf.R; var _local5:Number = (_-4.x - _local2.m_sweep.localCenter.x); var _local6:Number = (_-4.y - _local2.m_sweep.localCenter.y); var _local7:Number = ((_local4._-0t.x * _local5) + (_local4._-8Z.x * _local6)); _local6 = ((_local4._-0t.y * _local5) + (_local4._-8Z.y * _local6)); _local5 = _local7; _local4 = _local3.m_xf.R; var _local8:Number = (_-7P.x - _local3.m_sweep.localCenter.x); var _local9:Number = (_-7P.y - _local3.m_sweep.localCenter.y); _local7 = ((_local4._-0t.x * _local8) + (_local4._-8Z.x * _local9)); _local9 = ((_local4._-0t.y * _local8) + (_local4._-8Z.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 = (_-3C.m_xf.position.x + _-J1.x); var _local15:Number = (_-3C.m_xf.position.y + _-J1.y); var _local16:Number = (_-3C.m_xf.position.x + _-61.x); var _local17:Number = (_-3C.m_xf.position.y + _-61.y); _-Je.Set((_local10 - _local14), (_local11 - _local15)); true .Set((_local12 - _local16), (_local13 - _local17)); var _local18:Number = _-Je.class(); var _local19:Number = true .class(); if (_local18 > _-Dm._-Fq){ _-Je.Multiply((1 / _local18)); } else { _-Je._-6W(); }; if (_local19 > _-Dm._-Fq){ true .Multiply((1 / _local19)); } else { true ._-6W(); }; var _local20:Number = ((_-IC - _local18) - (_-IQ * _local19)); if (_local20 > 0){ _-3E = _-77; _-6F = 0; } else { _-3E = _-Hj; _-JT = 0; }; if (_local18 < _-8s){ _-BY = _-77; _-1K = 0; } else { _-BY = _-Hj; _-G1 = 0; }; if (_local19 < _-8y){ _-Cs = _-77; _-1Z = 0; } else { _-Cs = _-Hj; _-E2 = 0; }; var _local21:Number = ((_local5 * _-Je.y) - (_local6 * _-Je.x)); var _local22:Number = ((_local8 * true .y) - (_local9 * true .x)); _-9K = (_local2._-HO + ((_local2.for * _local21) * _local21)); _-ED = (_local3._-HO + ((_local3.for * _local22) * _local22)); _-4o = (_-9K + ((_-IQ * _-IQ) * _-ED)); _-9K = (1 / _-9K); _-ED = (1 / _-ED); _-4o = (1 / _-4o); if (_arg1._-CW){ _local23 = ((_arg1._-3J * (-(_-6F) - _-1K)) * _-Je.x); _local24 = ((_arg1._-3J * (-(_-6F) - _-1K)) * _-Je.y); _local25 = ((_arg1._-3J * ((-(_-IQ) * _-6F) - _-1Z)) * true .x); _local26 = ((_arg1._-3J * ((-(_-IQ) * _-6F) - _-1Z)) * true .y); _local2._-FD.x = (_local2._-FD.x + (_local2._-HO * _local23)); _local2._-FD.y = (_local2._-FD.y + (_local2._-HO * _local24)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.for * ((_local5 * _local24) - (_local6 * _local23)))); _local3._-FD.x = (_local3._-FD.x + (_local3._-HO * _local25)); _local3._-FD.y = (_local3._-FD.y + (_local3._-HO * _local26)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.for * ((_local8 * _local26) - (_local9 * _local25)))); } else { _-6F = 0; _-1K = 0; _-1Z = 0; }; } override public function GetReactionTorque():Number{ return (0); } public function _-L():Number{ return (_-IQ); } override public function SolveVelocityConstraints(_arg1:_-DV):void{ var _local4:_-JY; 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:_-7S = _-1W; var _local3:_-7S = _-s; _local4 = _local2.m_xf.R; var _local5:Number = (_-4.x - _local2.m_sweep.localCenter.x); var _local6:Number = (_-4.y - _local2.m_sweep.localCenter.y); var _local7:Number = ((_local4._-0t.x * _local5) + (_local4._-8Z.x * _local6)); _local6 = ((_local4._-0t.y * _local5) + (_local4._-8Z.y * _local6)); _local5 = _local7; _local4 = _local3.m_xf.R; _local8 = (_-7P.x - _local3.m_sweep.localCenter.x); var _local9:Number = (_-7P.y - _local3.m_sweep.localCenter.y); _local7 = ((_local4._-0t.x * _local8) + (_local4._-8Z.x * _local9)); _local9 = ((_local4._-0t.y * _local8) + (_local4._-8Z.y * _local9)); _local8 = _local7; if (_-3E == _-Hj){ _local10 = (_local2._-FD.x + (-(_local2.m_angularVelocity) * _local6)); _local11 = (_local2._-FD.y + (_local2.m_angularVelocity * _local5)); _local12 = (_local3._-FD.x + (-(_local3.m_angularVelocity) * _local9)); _local13 = (_local3._-FD.y + (_local3.m_angularVelocity * _local8)); _local18 = (-(((_-Je.x * _local10) + (_-Je.y * _local11))) - (_-IQ * ((true .x * _local12) + (true .y * _local13)))); _local19 = ((-(_arg1._-Fp) * _-4o) * _local18); _local20 = _-6F; _-6F = _-Fk._-3u(0, (_-6F + _local19)); _local19 = (_-6F - _local20); _local14 = ((-(_arg1._-3J) * _local19) * _-Je.x); _local15 = ((-(_arg1._-3J) * _local19) * _-Je.y); _local16 = (((-(_arg1._-3J) * _-IQ) * _local19) * true .x); _local17 = (((-(_arg1._-3J) * _-IQ) * _local19) * true .y); _local2._-FD.x = (_local2._-FD.x + (_local2._-HO * _local14)); _local2._-FD.y = (_local2._-FD.y + (_local2._-HO * _local15)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.for * ((_local5 * _local15) - (_local6 * _local14)))); _local3._-FD.x = (_local3._-FD.x + (_local3._-HO * _local16)); _local3._-FD.y = (_local3._-FD.y + (_local3._-HO * _local17)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.for * ((_local8 * _local17) - (_local9 * _local16)))); }; if (_-BY == _-Hj){ _local10 = (_local2._-FD.x + (-(_local2.m_angularVelocity) * _local6)); _local11 = (_local2._-FD.y + (_local2.m_angularVelocity * _local5)); _local18 = -(((_-Je.x * _local10) + (_-Je.y * _local11))); _local19 = ((-(_arg1._-Fp) * _-9K) * _local18); _local20 = _-1K; _-1K = _-Fk._-3u(0, (_-1K + _local19)); _local19 = (_-1K - _local20); _local14 = ((-(_arg1._-3J) * _local19) * _-Je.x); _local15 = ((-(_arg1._-3J) * _local19) * _-Je.y); _local2._-FD.x = (_local2._-FD.x + (_local2._-HO * _local14)); _local2._-FD.y = (_local2._-FD.y + (_local2._-HO * _local15)); _local2.m_angularVelocity = (_local2.m_angularVelocity + (_local2.for * ((_local5 * _local15) - (_local6 * _local14)))); }; if (_-Cs == _-Hj){ _local12 = (_local3._-FD.x + (-(_local3.m_angularVelocity) * _local9)); _local13 = (_local3._-FD.y + (_local3.m_angularVelocity * _local8)); _local18 = -(((true .x * _local12) + (true .y * _local13))); _local19 = ((-(_arg1._-Fp) * _-ED) * _local18); _local20 = _-1Z; _-1Z = _-Fk._-3u(0, (_-1Z + _local19)); _local19 = (_-1Z - _local20); _local16 = ((-(_arg1._-3J) * _local19) * true .x); _local17 = ((-(_arg1._-3J) * _local19) * true .y); _local3._-FD.x = (_local3._-FD.x + (_local3._-HO * _local16)); _local3._-FD.y = (_local3._-FD.y + (_local3._-HO * _local17)); _local3.m_angularVelocity = (_local3.m_angularVelocity + (_local3.for * ((_local8 * _local17) - (_local9 * _local16)))); }; } public function _-K6():Number{ var _local1:_-CE = _-1W.GetWorldPoint(_-4); var _local2:Number = (_-3C.m_xf.position.x + _-J1.x); var _local3:Number = (_-3C.m_xf.position.y + _-J1.y); var _local4:Number = (_local1.x - _local2); var _local5:Number = (_local1.y - _local3); return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5)))); } public function throw():Number{ var _local1:_-CE = _-s.GetWorldPoint(_-7P); var _local2:Number = (_-3C.m_xf.position.x + _-61.x); var _local3:Number = (_-3C.m_xf.position.y + _-61.y); var _local4:Number = (_local1.x - _local2); var _local5:Number = (_local1.y - _local3); return (Math.sqrt(((_local4 * _local4) + (_local5 * _local5)))); } public function _-Gr():_-CE{ var _local1:_-CE = _-3C.m_xf.position.Copy(); _local1.Add(_-J1); return (_local1); } } }//package _-Gm
Section 47
//_-Ct (_-Gm._-Ct) package _-Gm { import _-9S.*; import _-Cd.*; public class _-Ct extends catch { public var _-6-:_-CE; public var length:Number; public var _-4P:Number; public var _-Fj:_-CE; public var _-GW:Number; public function _-Ct(){ _-6- = new _-CE(); _-Fj = new _-CE(); super(); type = _-2S._-Hu; length = 1; _-GW = 0; _-4P = 0; } public function _-5r(_arg1:_-7S, _arg2:_-7S, _arg3:_-CE, _arg4:_-CE):void{ _-7h = _arg1; _-C = _arg2; _-6-._-DC(_-7h.GetLocalPoint(_arg3)); _-Fj._-DC(_-C.GetLocalPoint(_arg4)); var _local5:Number = (_arg4.x - _arg3.x); var _local6:Number = (_arg4.y - _arg3.y); length = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _-GW = 0; _-4P = 0; } } }//package _-Gm
Section 48
//_-Cy (_-Gm._-Cy) package _-Gm { import _-Cd.*; public class _-Cy { public var _-73:_-7S; public var next:_-Cy; public var _-I1:_-Cy; public var _-BK:_-2S; } }//package _-Gm
Section 49
//_-GC (_-Gm._-GC) package _-Gm { import _-9S.*; import _-Cd.*; public class _-GC extends catch { public var _-EI:Number; public var _-Ez:Boolean; public var _-6P:Number; public var _-6E:Number; public var _-6-:_-CE; public var _-Fj:_-CE; public var _-9z:Boolean; public var _-JG:Number; public var _-JR:Number; public function _-GC(){ _-6- = new _-CE(); _-Fj = new _-CE(); super(); type = _-2S.e_revoluteJoint; _-6-.Set(0, 0); _-Fj.Set(0, 0); _-6P = 0; _-JG = 0; _-EI = 0; _-JR = 0; _-6E = 0; _-9z = false; _-Ez = false; } public function _-5r(_arg1:_-7S, _arg2:_-7S, _arg3:_-CE):void{ _-7h = _arg1; _-C = _arg2; _-6- = _-7h.GetLocalPoint(_arg3); _-Fj = _-C.GetLocalPoint(_arg3); _-6P = (_-C.GetAngle() - _-7h.GetAngle()); } } }//package _-Gm
Section 50
//_-h (_-Gm._-h) package _-Gm { import _-9S.*; import _-Cd.*; public class _-h extends catch { public var _-6E:Number; public var _-DX:_-CE; public var _-6P:Number; public var _-K1:Number; public var _-6-:_-CE; public var _-Fj:_-CE; public var _-9z:Boolean; public var _-Ez:Boolean; public var _-GZ:Number; public var _-DG:Number; public function _-h(){ _-6- = new _-CE(); _-Fj = new _-CE(); _-DX = new _-CE(); super(); type = _-2S._-45; _-DX.Set(1, 0); _-6P = 0; _-9z = false; _-DG = 0; _-K1 = 0; _-Ez = false; _-GZ = 0; _-6E = 0; } public function _-5r(_arg1:_-7S, _arg2:_-7S, _arg3:_-CE, _arg4:_-CE):void{ _-7h = _arg1; _-C = _arg2; _-6- = _-7h.GetLocalPoint(_arg3); _-Fj = _-C.GetLocalPoint(_arg3); _-DX = _-7h.GetLocalVector(_arg4); _-6P = (_-C.GetAngle() - _-7h.GetAngle()); } } }//package _-Gm
Section 51
//_-K9 (_-Gm._-K9) package _-Gm { public class _-K9 extends catch { public var _-2u:_-2S; public var _-4p:_-2S; public var _-F7:Number; public function _-K9(){ type = _-2S. if; _-2u = null; _-4p = null; _-F7 = 1; } } }//package _-Gm
Section 52
//_-KY (_-Gm._-KY) package _-Gm { import _-9S.*; import _-9f.*; import _-Cd.*; public class _-KY extends _-2S { public var _-4:_-CE; public var _-7P:_-CE; public var _-Am:Number; public var _-G3:Number; public var _-A9:_-CE; public var m_mass:Number; public var _-E5:Number; public var _-01:Number; public var _-7R:Number; public var _-3j:Number; public function _-KY(_arg1:_-Ct){ var _local2:_-JY; var _local3:Number; var _local4:Number; _-4 = new _-CE(); _-7P = new _-CE(); _-A9 = new _-CE(); super(_arg1); _-4._-DC(_arg1._-6-); _-7P._-DC(_arg1._-Fj); _-3j = _arg1.length; _-7R = _arg1._-GW; _-01 = _arg1._-4P; _-E5 = 0; _-G3 = 0; _-Am = 0; _-Ej = 0; } override public function GetAnchor1():_-CE{ return (_-1W.GetWorldPoint(_-4)); } override public function GetAnchor2():_-CE{ return (_-s.GetWorldPoint(_-7P)); } override public function InitVelocityConstraints(_arg1:_-DV):void{ var _local2:_-JY; var _local3:Number; var _local4:_-7S; var _local5:_-7S; var _local6:Number; var _local8:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; _-Ej = _arg1._-Fp; _local4 = _-1W; _local5 = _-s; _local2 = _local4.m_xf.R; _local6 = (_-4.x - _local4.m_sweep.localCenter.x); var _local7:Number = (_-4.y - _local4.m_sweep.localCenter.y); _local3 = ((_local2._-0t.x * _local6) + (_local2._-8Z.x * _local7)); _local7 = ((_local2._-0t.y * _local6) + (_local2._-8Z.y * _local7)); _local6 = _local3; _local2 = _local5.m_xf.R; _local8 = (_-7P.x - _local5.m_sweep.localCenter.x); var _local9:Number = (_-7P.y - _local5.m_sweep.localCenter.y); _local3 = ((_local2._-0t.x * _local8) + (_local2._-8Z.x * _local9)); _local9 = ((_local2._-0t.y * _local8) + (_local2._-8Z.y * _local9)); _local8 = _local3; _-A9.x = (((_local5.m_sweep.c.x + _local8) - _local4.m_sweep.c.x) - _local6); _-A9.y = (((_local5.m_sweep.c.y + _local9) - _local4.m_sweep.c.y) - _local7); var _local10:Number = Math.sqrt(((_-A9.x * _-A9.x) + (_-A9.y * _-A9.y))); if (_local10 > _-Dm._-Fq){ _-A9.Multiply((1 / _local10)); } else { _-A9._-6W(); }; var _local11:Number = ((_local6 * _-A9.y) - (_local7 * _-A9.x)); var _local12:Number = ((_local8 * _-A9.y) - (_local9 * _-A9.x)); var _local13:Number = (((_local4._-HO + ((_local4.for * _local11) * _local11)) + _local5._-HO) + ((_local5.for * _local12) * _local12)); m_mass = (1 / _local13); if (_-7R > 0){ _local14 = (_local10 - _-3j); _local15 = ((2 * Math.PI) * _-7R); _local16 = (((2 * m_mass) * _-01) * _local15); _local17 = ((m_mass * _local15) * _local15); _-G3 = (1 / (_arg1._-3J * (_local16 + (_arg1._-3J * _local17)))); _-Am = (((_local14 * _arg1._-3J) * _local17) * _-G3); m_mass = (1 / (_local13 + _-G3)); }; if (_arg1._-CW){ _-E5 = (_-E5 * _arg1._-w); _local18 = (_-E5 * _-A9.x); _local19 = (_-E5 * _-A9.y); _local4._-FD.x = (_local4._-FD.x - (_local4._-HO * _local18)); _local4._-FD.y = (_local4._-FD.y - (_local4._-HO * _local19)); _local4.m_angularVelocity = (_local4.m_angularVelocity - (_local4.for * ((_local6 * _local19) - (_local7 * _local18)))); _local5._-FD.x = (_local5._-FD.x + (_local5._-HO * _local18)); _local5._-FD.y = (_local5._-FD.y + (_local5._-HO * _local19)); _local5.m_angularVelocity = (_local5.m_angularVelocity + (_local5.for * ((_local8 * _local19) - (_local9 * _local18)))); } else { _-E5 = 0; }; } override public function GetReactionTorque():Number{ return (0); } override public function GetReactionForce():_-CE{ var _local1:_-CE = new _-CE(); _local1._-DC(_-A9); _local1.Multiply((_-Ej * _-E5)); return (_local1); } override public function SolvePositionConstraints():Boolean{ var _local1:_-JY; if (_-7R > 0){ return (true); }; var _local2:_-7S = _-1W; var _local3:_-7S = _-s; _local1 = _local2.m_xf.R; var _local4:Number = (_-4.x - _local2.m_sweep.localCenter.x); var _local5:Number = (_-4.y - _local2.m_sweep.localCenter.y); var _local6:Number = ((_local1._-0t.x * _local4) + (_local1._-8Z.x * _local5)); _local5 = ((_local1._-0t.y * _local4) + (_local1._-8Z.y * _local5)); _local4 = _local6; _local1 = _local3.m_xf.R; var _local7:Number = (_-7P.x - _local3.m_sweep.localCenter.x); var _local8:Number = (_-7P.y - _local3.m_sweep.localCenter.y); _local6 = ((_local1._-0t.x * _local7) + (_local1._-8Z.x * _local8)); _local8 = ((_local1._-0t.y * _local7) + (_local1._-8Z.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 - _-3j); _local12 = _-Fk._-1F(_local12, -(_-Dm._-4U), _-Dm._-4U); var _local13:Number = (-(m_mass) * _local12); _-A9.Set(_local9, _local10); var _local14:Number = (_local13 * _-A9.x); var _local15:Number = (_local13 * _-A9.y); _local2.m_sweep.c.x = (_local2.m_sweep.c.x - (_local2._-HO * _local14)); _local2.m_sweep.c.y = (_local2.m_sweep.c.y - (_local2._-HO * _local15)); _local2.m_sweep.a = (_local2.m_sweep.a - (_local2.for * ((_local4 * _local15) - (_local5 * _local14)))); _local3.m_sweep.c.x = (_local3.m_sweep.c.x + (_local3._-HO * _local14)); _local3.m_sweep.c.y = (_local3.m_sweep.c.y + (_local3._-HO * _local15)); _local3.m_sweep.a = (_local3.m_sweep.a + (_local3.for * ((_local7 * _local15) - (_local8 * _local14)))); _local2._-Gw(); _local3._-Gw(); return ((_-Fk._-H9(_local12) < _-Dm._-Fq)); } override public function SolveVelocityConstraints(_arg1:_-DV):void{ var _local2:_-JY; var _local3:_-7S = _-1W; var _local4:_-7S = _-s; _local2 = _local3.m_xf.R; var _local5:Number = (_-4.x - _local3.m_sweep.localCenter.x); var _local6:Number = (_-4.y - _local3.m_sweep.localCenter.y); var _local7:Number = ((_local2._-0t.x * _local5) + (_local2._-8Z.x * _local6)); _local6 = ((_local2._-0t.y * _local5) + (_local2._-8Z.y * _local6)); _local5 = _local7; _local2 = _local4.m_xf.R; var _local8:Number = (_-7P.x - _local4.m_sweep.localCenter.x); var _local9:Number = (_-7P.y - _local4.m_sweep.localCenter.y); _local7 = ((_local2._-0t.x * _local8) + (_local2._-8Z.x * _local9)); _local9 = ((_local2._-0t.y * _local8) + (_local2._-8Z.y * _local9)); _local8 = _local7; var _local10:Number = (_local3._-FD.x + (-(_local3.m_angularVelocity) * _local6)); var _local11:Number = (_local3._-FD.y + (_local3.m_angularVelocity * _local5)); var _local12:Number = (_local4._-FD.x + (-(_local4.m_angularVelocity) * _local9)); var _local13:Number = (_local4._-FD.y + (_local4.m_angularVelocity * _local8)); var _local14:Number = ((_-A9.x * (_local12 - _local10)) + (_-A9.y * (_local13 - _local11))); var _local15:Number = (-(m_mass) * ((_local14 + _-Am) + (_-G3 * _-E5))); _-E5 = (_-E5 + _local15); var _local16:Number = (_local15 * _-A9.x); var _local17:Number = (_local15 * _-A9.y); _local3._-FD.x = (_local3._-FD.x - (_local3._-HO * _local16)); _local3._-FD.y = (_local3._-FD.y - (_local3._-HO * _local17)); _local3.m_angularVelocity = (_local3.m_angularVelocity - (_local3.for * ((_local5 * _local17) - (_local6 * _local16)))); _local4._-FD.x = (_local4._-FD.x + (_local4._-HO * _local16)); _local4._-FD.y = (_local4._-FD.y + (_local4._-HO * _local17)); _local4.m_angularVelocity = (_local4.m_angularVelocity + (_local4.for * ((_local8 * _local17) - (_local9 * _local16)))); } } }//package _-Gm
Section 53
//catch (_-Gm.catch) package _-Gm { import _-Cd.*; public class catch { public var _-C:_-7S; public var type:int; public var userData; public var _-09:Boolean; public var _-7h:_-7S; public function catch(){ type = _-2S._-Ah; userData = null; _-7h = null; _-C = null; _-09 = false; } } }//package _-Gm
Section 54
//with (_-Gm.with) package _-Gm { import _-9S.*; import _-Cd.*; public class with extends catch { public var _-8S:Number; public var _-82:Number; public var _-5y:Number; public var _-6-:_-CE; public var _-Fj:_-CE; public var _-Bx:_-CE; public var _-91:_-CE; public var _-F7:Number; public var _-IH:Number; public function with(){ _-Bx = new _-CE(); _-91 = new _-CE(); _-6- = new _-CE(); _-Fj = new _-CE(); super(); type = _-2S._-Az; _-Bx.Set(-1, 1); _-91.Set(1, 1); _-6-.Set(-1, 0); _-Fj.Set(1, 0); _-5y = 0; _-8S = 0; _-IH = 0; _-82 = 0; _-F7 = 1; _-09 = true; } public function _-5r(_arg1:_-7S, _arg2:_-7S, _arg3:_-CE, _arg4:_-CE, _arg5:_-CE, _arg6:_-CE, _arg7:Number):void{ _-7h = _arg1; _-C = _arg2; _-Bx._-DC(_arg3); _-91._-DC(_arg4); _-6- = _-7h.GetLocalPoint(_arg5); _-Fj = _-C.GetLocalPoint(_arg6); var _local8:Number = (_arg5.x - _arg3.x); var _local9:Number = (_arg5.y - _arg3.y); _-5y = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); var _local10:Number = (_arg6.x - _arg4.x); var _local11:Number = (_arg6.y - _arg4.y); _-IH = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); _-F7 = _arg7; var _local12:Number = (_-5y + (_-F7 * _-IH)); _-8S = (_local12 - (_-F7 * _-8j._-N)); _-82 = ((_local12 - _-8j._-N) / _-F7); } } }//package _-Gm
Section 55
//_-F4 (_-Hd._-F4) package _-Hd { import flash.display.*; import flash.system.*; import flash.net.*; public dynamic class _-F4 extends Sprite { public static function _-25(_arg1:Sprite, _arg2:String):_-F4{ if (Security.sandboxType == "localWithFile"){ return (null); }; var _local3:_-F4 = new (_-F4); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); var _local4 = "http://core.mochibot.com/my/core.swf"; var _local5:URLVariables = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; var _local6:String = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; var _local7:URLRequest = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; var _local8:Loader = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package _-Hd
Section 56
//_-JC (_-Hd._-JC) package _-Hd { import _-9S.*; import flash.display.*; import flash.events.*; public class _-JC extends Sprite { protected var create_time:Number; protected var _-3t:_-CE; protected var radius:_-CE; protected var _-CA:int; public function _-JC(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int){ _-3t = new _-CE(_arg1, _arg2); radius = new _-CE(_arg3, _arg4); create_time = new Date().getTime(); _-CA = _arg5; this.x = _arg1; this.y = _arg2; this.cacheAsBitmap = true; this.addEventListener(Event.ENTER_FRAME, update); } protected function update(_arg1:Event):void{ var _local2:Number = new Date().getTime(); var _local3:Number = ((_local2 - create_time) / _-CA); var _local4:Number = (radius.x + ((radius.y - radius.x) * _local3)); this.x = (_-3t.x - _local4); this.y = (_-3t.y - _local4); this.graphics.clear(); this.graphics.lineStyle(8, 0); this.graphics.drawCircle(_local4, _local4, _local4); } } }//package _-Hd
Section 57
// null (Box2D.Collision. null) package Box2D.Collision { public class null { public var _-I7:Array; public var _-E4:Array; public function null(){ _-I7 = [0, 0]; _-E4 = [0, 0]; super(); } } }//package Box2D.Collision
Section 58
//_-0s (Box2D.Collision._-0s) package Box2D.Collision { import _-9S.*; import _-9f.*; public class _-0s { public var _-HN:Array; public var _-Aj:_-1S; public var _-2x:Array; public var _-O:uint; public var _-G2:_-CE; public var _-Gc:int; public var _-6V:Array; public var _-3z:int; public var _-Gn:_-F5; public var _-Hc:uint; public var _-GR:Array; public static const _-P:uint = 0xFFFF; public static const _-4I:uint = 0xFFFF; public static var _-K2:Boolean = false; public function _-0s(_arg1:_-1S, _arg2:_-5Z){ var _local3:int; var _local6:_-DL; var _local7:int; _-Gn = new _-F5(); _-6V = new Array(_-Dm.import); _-HN = new Array((2 * _-Dm._-2e)); _-2x = new Array(_-Dm._-2e); _-GR = new Array(_-Dm._-2e); _-G2 = new _-CE(); super(); _-Gn._-5r(this, _arg2); _-Aj = _arg1; _-Gc = 0; _local3 = 0; while (_local3 < _-Dm._-2e) { _-GR[_local3] = 0; _-2x[_local3] = 0; _local3++; }; _-HN = new Array(2); _local3 = 0; while (_local3 < 2) { _-HN[_local3] = new Array((2 * _-Dm._-2e)); _local7 = 0; while (_local7 < (2 * _-Dm._-2e)) { _-HN[_local3][_local7] = new _-5U(); _local7++; }; _local3++; }; var _local4:Number = (_arg1._-1I.x - _arg1._-Fu.x); var _local5:Number = (_arg1._-1I.y - _arg1._-Fu.y); _-G2.x = (_-Dm._-G9 / _local4); _-G2.y = (_-Dm._-G9 / _local5); _local3 = 0; while (_local3 < (_-Dm._-2e - 1)) { _local6 = new _-DL(); _-6V[_local3] = _local6; _local6._-Dp((_local3 + 1)); _local6._-AR = 0; _local6._-AX = _-4I; _local6.userData = null; _local3++; }; _local6 = new _-DL(); _-6V[int((_-Dm._-2e - 1))] = _local6; _local6._-Dp(_-B9._-IO); _local6._-AR = 0; _local6._-AX = _-4I; _local6.userData = null; _-O = 0; _-Hc = 1; _-3z = 0; } public function _-Fo(_arg1:_-1S, _arg2, _arg3:int):int{ var _local6:uint; var _local7:uint; var _local12:_-DL; var _local4:Array = new Array(); var _local5:Array = new Array(); _-Ko(_local4, _local5, _arg1); var _local8:Array = [_local6]; var _local9:Array = [_local7]; _-H0(_local8, _local9, _local4[0], _local5[0], _-HN[0], (2 * _-Gc), 0); _-H0(_local8, _local9, _local4[1], _local5[1], _-HN[1], (2 * _-Gc), 1); var _local10:int; var _local11:int; while ((((_local11 < _-3z)) && ((_local10 < _arg3)))) { _local12 = _-6V[_-GR[_local11]]; _arg2[_local11] = _local12.userData; _local11++; _local10++; }; _-3z = 0; _-Kh(); return (_local10); } public function _-FN():void{ _-Gn._-FN(); } public function _-Gb(_arg1:int):_-DL{ var _local2:_-DL = _-6V[_arg1]; if ((((_arg1 == _-B9._-IO)) || ((_local2.use() == false)))){ return (null); }; return (_local2); } private function _-Kh():void{ var _local1:uint; if (_-Hc == _-Dm._-G9){ _local1 = 0; while (_local1 < _-Dm._-2e) { (_-6V[_local1] as _-DL)._-AR = 0; _local1++; }; _-Hc = 1; } else { _-Hc++; }; } private function _-H0(_arg1:Array, _arg2:Array, _arg3:uint, _arg4:uint, _arg5:Array, _arg6:uint, _arg7:int):void{ var _local10:_-5U; var _local12:int; var _local13:int; var _local14:_-DL; var _local8:uint = _-B5(_arg5, _arg6, _arg3); var _local9:uint = _-B5(_arg5, _arg6, _arg4); var _local11:uint = _local8; while (_local11 < _local9) { _local10 = _arg5[_local11]; if (_local10.IsLower()){ _-5z(_local10.proxyId); }; _local11++; }; if (_local8 > 0){ _local12 = (_local8 - 1); _local10 = _arg5[_local12]; _local13 = _local10._-9P; while (_local13) { _local10 = _arg5[_local12]; if (_local10.IsLower()){ _local14 = _-6V[_local10.proxyId]; if (_local8 <= _local14._-5Y[_arg7]){ _-5z(_local10.proxyId); _local13--; }; }; _local12--; }; }; _arg1[0] = _local8; _arg2[0] = _local9; } private function _-AF(_arg1:uint, _arg2:_-DL, _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 < _-3z)) && ((_-2x[_local6] < _local5)))) { _local6++; }; var _local7:Number = _local5; var _local8:uint = _arg1; _-3z = (_-3z + 1); if (_-3z > _arg3){ _-3z = _arg3; }; while (_local6 < _-3z) { _local9 = _-2x[_local6]; _local10 = _-GR[_local6]; _-2x[_local6] = _local7; _-GR[_local6] = _local8; _local7 = _local9; _local8 = _local10; _local6++; }; } private function _-A8(_arg1:_-DL, _arg2:_-DL):Boolean{ var _local4:Array; var _local5:_-5U; var _local6:_-5U; var _local3:int; while (_local3 < 2) { _local4 = _-HN[_local3]; _local5 = _local4[_arg1._-DD[_local3]]; _local6 = _local4[_arg2._-5Y[_local3]]; if (_local5.value > _local6.value){ return (false); }; _local5 = _local4[_arg1._-5Y[_local3]]; _local6 = _local4[_arg2._-DD[_local3]]; if (_local5.value < _local6.value){ return (false); }; _local3++; }; return (true); } private function _-Ko(_arg1:Array, _arg2:Array, _arg3:_-1S):void{ var _local4:Number = _arg3._-Fu.x; var _local5:Number = _arg3._-Fu.y; _local4 = _-Fk._-Ga(_local4, _-Aj._-1I.x); _local5 = _-Fk._-Ga(_local5, _-Aj._-1I.y); _local4 = _-Fk._-3u(_local4, _-Aj._-Fu.x); _local5 = _-Fk._-3u(_local5, _-Aj._-Fu.y); var _local6:Number = _arg3._-1I.x; var _local7:Number = _arg3._-1I.y; _local6 = _-Fk._-Ga(_local6, _-Aj._-1I.x); _local7 = _-Fk._-Ga(_local7, _-Aj._-1I.y); _local6 = _-Fk._-3u(_local6, _-Aj._-Fu.x); _local7 = _-Fk._-3u(_local7, _-Aj._-Fu.y); _arg1[0] = (uint((_-G2.x * (_local4 - _-Aj._-Fu.x))) & (_-Dm._-G9 - 1)); _arg2[0] = ((uint((_-G2.x * (_local6 - _-Aj._-Fu.x))) & 0xFFFF) | 1); _arg1[1] = (uint((_-G2.y * (_local5 - _-Aj._-Fu.y))) & (_-Dm._-G9 - 1)); _arg2[1] = ((uint((_-G2.y * (_local7 - _-Aj._-Fu.y))) & 0xFFFF) | 1); } public function _-F6(_arg1:_-1S, _arg2):uint{ var _local3:uint; var _local4:_-DL; 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:_-5U; var _local20:_-5U; var _local21:_-5U; var _local22:int; var _local23:_-DL; var _local5:uint = _-O; _local4 = _-6V[_local5]; _-O = _local4._-GG(); _local4._-AX = 0; _local4.userData = _arg2; var _local6:uint = (2 * _-Gc); var _local7:Array = new Array(); var _local8:Array = new Array(); _-Ko(_local7, _local8, _arg1); var _local9:int; while (_local9 < 2) { _local11 = _-HN[_local9]; _local14 = [_local12]; _local15 = [_local13]; _-H0(_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 _-5U(); _local19 = _local16[_local17]; _local20 = _local11[int((_local13 + _local17))]; _local19.value = _local20.value; _local19.proxyId = _local20.proxyId; _local19._-9P = _local20._-9P; _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._-9P = _local20._-9P; _local17++; }; _local16 = new Array(); _local18 = (_local13 - _local12); _local17 = 0; while (_local17 < _local18) { _local16[_local17] = new _-5U(); _local19 = _local16[_local17]; _local20 = _local11[int((_local12 + _local17))]; _local19.value = _local20.value; _local19.proxyId = _local20.proxyId; _local19._-9P = _local20._-9P; _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._-9P = _local20._-9P; _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._-9P = ((_local12 == 0)) ? 0 : _local21._-9P; _local21 = _local11[int((_local13 - 1))]; _local20._-9P = _local21._-9P; _local3 = _local12; while (_local3 < _local13) { _local21 = _local11[_local3]; _local21._-9P++; _local3++; }; _local3 = _local12; while (_local3 < (_local6 + 2)) { _local19 = _local11[_local3]; _local23 = _-6V[_local19.proxyId]; if (_local19.IsLower()){ _local23._-DD[_local9] = _local3; } else { _local23._-5Y[_local9] = _local3; }; _local3++; }; _local9++; }; _-Gc++; var _local10:int; while (_local10 < _-3z) { _-Gn._-6j(_local5, _-GR[_local10]); _local10++; }; _-Gn._-FN(); _-3z = 0; _-Kh(); return (_local5); } public function _-Jp(_arg1:uint):void{ var _local2:_-5U; var _local3:_-5U; 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:_-DL; var _local4:_-DL = _-6V[_arg1]; var _local5:int = (2 * _-Gc); var _local6:int; while (_local6 < 2) { _local8 = _-HN[_local6]; _local9 = _local4._-DD[_local6]; _local10 = _local4._-5Y[_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 _-5U(); _local2 = _local13[_local14]; _local3 = _local8[int(((_local9 + 1) + _local14))]; _local2.value = _local3.value; _local2.proxyId = _local3.proxyId; _local2._-9P = _local3._-9P; _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._-9P = _local3._-9P; _local14++; }; _local13 = new Array(); _local15 = ((_local5 - _local10) - 1); _local14 = 0; while (_local14 < _local15) { _local13[_local14] = new _-5U(); _local2 = _local13[_local14]; _local3 = _local8[int(((_local10 + 1) + _local14))]; _local2.value = _local3.value; _local2.proxyId = _local3.proxyId; _local2._-9P = _local3._-9P; _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._-9P = _local3._-9P; _local14++; }; _local15 = (_local5 - 2); _local17 = _local9; while (_local17 < _local15) { _local2 = _local8[_local17]; _local19 = _-6V[_local2.proxyId]; if (_local2.IsLower()){ _local19._-DD[_local6] = _local17; } else { _local19._-5Y[_local6] = _local17; }; _local17++; }; _local15 = (_local10 - 1); _local18 = _local9; while (_local18 < _local15) { _local2 = _local8[_local18]; _local2._-9P--; _local18++; }; _-H0([0], [0], _local11, _local12, _local8, (_local5 - 2), _local6); _local6++; }; var _local7:int; while (_local7 < _-3z) { _-Gn._-2M(_arg1, _-GR[_local7]); _local7++; }; _-Gn._-FN(); _-3z = 0; _-Kh(); _local4.userData = null; _local4._-AX = _-4I; _local4._-DD[0] = _-4I; _local4._-DD[1] = _-4I; _local4._-5Y[0] = _-4I; _local4._-5Y[1] = _-4I; _local4._-Dp(_-O); _-O = _arg1; _-Gc--; } public function _-5W(_arg1: null, _arg2:_-DL):Boolean{ var _local4:Array; var _local5:_-5U; var _local3:int; while (_local3 < 2) { _local4 = _-HN[_local3]; _local5 = _local4[_arg2._-5Y[_local3]]; if (_arg1._-I7[_local3] > _local5.value){ return (false); }; _local5 = _local4[_arg2._-DD[_local3]]; if (_arg1._-E4[_local3] < _local5.value){ return (false); }; _local3++; }; return (true); } public function _-5i():void{ var _local1:_-B9; var _local2:_-DL; var _local3:_-DL; var _local4:Boolean; var _local6:_-5U; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:_-5U; var _local5:int; while (_local5 < 2) { _local6 = _-HN[_local5]; _local7 = (2 * _-Gc); _local8 = 0; _local9 = 0; while (_local9 < _local7) { _local10 = _local6[_local9]; if (_local10.IsLower() == true){ _local8++; } else { _local8--; }; _local9++; }; _local5++; }; } private function _-5z(_arg1:uint):void{ var _local2:_-DL = _-6V[_arg1]; if (_local2._-AR < _-Hc){ _local2._-AR = _-Hc; _local2._-AX = 1; } else { _local2._-AX = 2; _-GR[_-3z] = _arg1; _-3z++; }; } public function _-FG(_arg1:_-1S):Boolean{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; _local2 = _arg1._-Fu.x; _local3 = _arg1._-Fu.y; _local2 = (_local2 - _-Aj._-1I.x); _local3 = (_local3 - _-Aj._-1I.y); _local4 = _-Aj._-Fu.x; _local5 = _-Aj._-Fu.y; _local4 = (_local4 - _arg1._-1I.x); _local5 = (_local5 - _arg1._-1I.y); _local2 = _-Fk._-3u(_local2, _local4); _local3 = _-Fk._-3u(_local3, _local5); return ((_-Fk._-3u(_local2, _local3) < 0)); } public function _-KQ(_arg1:_-ET, _arg2, _arg3:int, _arg4:Function):int{ var _local15:int; var _local16:int; var _local17:uint; var _local18:_-DL; 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) * _-G2.x); var _local7:Number = ((_arg1.p2.y - _arg1.p1.y) * _-G2.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 = (_-G2.x * (_arg1.p1.x - _-Aj._-Fu.x)); var _local11:Number = (_-G2.y * (_arg1.p1.y - _-Aj._-Fu.y)); var _local12:Array = new Array(); var _local13:Array = new Array(); _local12[0] = (uint(_local10) & (_-Dm._-G9 - 1)); _local12[1] = (uint(_local11) & (_-Dm._-G9 - 1)); _local13[0] = (_local12[0] + 1); _local13[1] = (_local12[1] + 1); var _local14:Array = new Array(); var _local21:Array = [_local19]; var _local22:Array = [_local20]; _-H0(_local21, _local22, _local12[0], _local13[0], _-HN[0], (2 * _-Gc), 0); if (_local8 >= 0){ _local15 = (_local22[0] - 1); } else { _local15 = _local21[0]; }; _-H0(_local21, _local22, _local12[1], _local13[1], _-HN[1], (2 * _-Gc), 1); if (_local9 >= 0){ _local16 = (_local22[0] - 1); } else { _local16 = _local21[0]; }; if (_arg4 != null){ _local27 = 0; while (_local27 < _-3z) { _-2x[_local27] = _arg4(_-6V[_-GR[_local27]].userData); _local27++; }; _local27 = 0; while (_local27 < (_-3z - 1)) { _local28 = _-2x[_local27]; _local29 = _-2x[(_local27 + 1)]; if (((_local28)<0) ? (_local29 >= 0) : (((_local28 > _local29)) && ((_local29 >= 0)))){ _-2x[(_local27 + 1)] = _local28; _-2x[_local27] = _local29; _local30 = _-GR[(_local27 + 1)]; _-GR[(_local27 + 1)] = _-GR[_local27]; _-GR[_local27] = _local30; --_local27; if (_local27 == -1){ _local27 = 1; }; } else { _local27++; }; }; while ((((_-3z > 0)) && ((_-2x[(_-3z - 1)] < 0)))) { _-3z--; }; }; var _local23:Boolean; if ((((_local15 < 0)) || ((_local15 >= (_-Gc * 2))))){ _local23 = false; }; if ((((_local16 < 0)) || ((_local16 >= (_-Gc * 2))))){ _local23 = false; }; if (_local23){ if (_local8 != 0){ if (_local8 > 0){ _local15++; if (_local15 == (_-Gc * 2)){ _local23 = false; }; } else { --_local15; if (_local15 < 0){ _local23 = false; }; }; _local24 = ((_-HN[0][_local15].value - _local10) / _local6); }; if (_local9 != 0){ if (_local9 > 0){ _local16++; if (_local16 == (_-Gc * 2)){ _local23 = false; }; } else { --_local16; if (_local16 < 0){ _local23 = false; }; }; _local25 = ((_-HN[1][_local16].value - _local11) / _local7); }; }; while (_local23) { if ((((_local9 == 0)) || (((!((_local8 == 0))) && ((_local24 < _local25)))))){ if (_local24 > _local5){ break; }; if (((_local8 > 0)) ? _-HN[0][_local15].IsLower() : _-HN[0][_local15].IsUpper()){ _local17 = _-HN[0][_local15].proxyId; _local18 = _-6V[_local17]; if (_local9 >= 0){ if ((((_local18._-DD[1] <= (_local16 - 1))) && ((_local18._-5Y[1] >= _local16)))){ if (_arg4 != null){ _-AF(_local17, _local18, _arg3, _arg4); } else { _-GR[_-3z] = _local17; _-3z++; }; }; } else { if ((((_local18._-DD[1] <= _local16)) && ((_local18._-5Y[1] >= (_local16 + 1))))){ if (_arg4 != null){ _-AF(_local17, _local18, _arg3, _arg4); } else { _-GR[_-3z] = _local17; _-3z++; }; }; }; }; if (((((((!((_arg4 == null))) && ((_-3z == _arg3)))) && ((_-3z > 0)))) && ((_local24 > _-2x[(_-3z - 1)])))){ break; }; if (_local8 > 0){ _local15++; if (_local15 == (_-Gc * 2)){ break; }; } else { --_local15; if (_local15 < 0){ break; }; }; _local24 = ((_-HN[0][_local15].value - _local10) / _local6); } else { if (_local25 > _local5){ break; }; if (((_local9 > 0)) ? _-HN[1][_local16].IsLower() : _-HN[1][_local16].IsUpper()){ _local17 = _-HN[1][_local16].proxyId; _local18 = _-6V[_local17]; if (_local8 >= 0){ if ((((_local18._-DD[0] <= (_local15 - 1))) && ((_local18._-5Y[0] >= _local15)))){ if (_arg4 != null){ _-AF(_local17, _local18, _arg3, _arg4); } else { _-GR[_-3z] = _local17; _-3z++; }; }; } else { if ((((_local18._-DD[0] <= _local15)) && ((_local18._-5Y[0] >= (_local15 + 1))))){ if (_arg4 != null){ _-AF(_local17, _local18, _arg3, _arg4); } else { _-GR[_-3z] = _local17; _-3z++; }; }; }; }; if (((((((!((_arg4 == null))) && ((_-3z == _arg3)))) && ((_-3z > 0)))) && ((_local25 > _-2x[(_-3z - 1)])))){ break; }; if (_local9 > 0){ _local16++; if (_local16 == (_-Gc * 2)){ break; }; } else { --_local16; if (_local16 < 0){ break; }; }; _local25 = ((_-HN[1][_local16].value - _local11) / _local7); }; }; var _local26:int; _local27 = 0; while ((((_local27 < _-3z)) && ((_local26 < _arg3)))) { _local18 = _-6V[_-GR[_local27]]; _arg2[_local27] = _local18.userData; _local27++; _local26++; }; _-3z = 0; _-Kh(); return (_local26); } public function _-1n(_arg1:uint, _arg2:_-1S):void{ var _local3:Array; var _local4:int; var _local5:uint; var _local6:uint; var _local7:_-5U; var _local8:_-5U; var _local9:_-5U; var _local10:uint; var _local11:_-DL; 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:_-DL; if ((((_arg1 == _-B9._-IO)) || ((_-Dm._-2e <= _arg1)))){ return; }; if (_arg2.use() == false){ return; }; var _local12:uint = (2 * _-Gc); var _local13:_-DL = _-6V[_arg1]; var _local14: null = new null(); _-Ko(_local14._-I7, _local14._-E4, _arg2); var _local15: null = new null(); _local5 = 0; while (_local5 < 2) { _local7 = _-HN[_local5][_local13._-DD[_local5]]; _local15._-I7[_local5] = _local7.value; _local7 = _-HN[_local5][_local13._-5Y[_local5]]; _local15._-E4[_local5] = _local7.value; _local5++; }; _local5 = 0; while (_local5 < 2) { _local16 = _-HN[_local5]; _local17 = _local13._-DD[_local5]; _local18 = _local13._-5Y[_local5]; _local19 = _local14._-I7[_local5]; _local20 = _local14._-E4[_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 _-5U).value)))) { _local7 = _local16[_local6]; _local8 = _local16[int((_local6 - 1))]; _local23 = _local8.proxyId; _local24 = _-6V[_local8.proxyId]; _local8._-9P++; if (_local8.IsUpper() == true){ if (_-5W(_local14, _local24)){ _-Gn._-6j(_arg1, _local23); }; _local3 = _local24._-5Y; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-9P++; } else { _local3 = _local24._-DD; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-9P--; }; _local3 = _local13._-DD; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-x(_local8); _local6--; }; }; if (_local22 > 0){ _local6 = _local18; while ((((_local6 < (_local12 - 1))) && (((_local16[int((_local6 + 1))] as _-5U).value <= _local20)))) { _local7 = _local16[_local6]; _local9 = _local16[int((_local6 + 1))]; _local10 = _local9.proxyId; _local11 = _-6V[_local10]; _local9._-9P++; if (_local9.IsLower() == true){ if (_-5W(_local14, _local11)){ _-Gn._-6j(_arg1, _local10); }; _local3 = _local11._-DD; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-9P++; } else { _local3 = _local11._-5Y; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-9P--; }; _local3 = _local13._-5Y; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-x(_local9); _local6++; }; }; if (_local21 > 0){ _local6 = _local17; while ((((_local6 < (_local12 - 1))) && (((_local16[int((_local6 + 1))] as _-5U).value <= _local19)))) { _local7 = _local16[_local6]; _local9 = _local16[int((_local6 + 1))]; _local10 = _local9.proxyId; _local11 = _-6V[_local10]; _local9._-9P--; if (_local9.IsUpper()){ if (_-5W(_local15, _local11)){ _-Gn._-2M(_arg1, _local10); }; _local3 = _local11._-5Y; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-9P--; } else { _local3 = _local11._-DD; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-9P++; }; _local3 = _local13._-DD; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-x(_local9); _local6++; }; }; if (_local22 < 0){ _local6 = _local18; while ((((_local6 > 0)) && ((_local20 < (_local16[int((_local6 - 1))] as _-5U).value)))) { _local7 = _local16[_local6]; _local8 = _local16[int((_local6 - 1))]; _local23 = _local8.proxyId; _local24 = _-6V[_local23]; _local8._-9P--; if (_local8.IsLower() == true){ if (_-5W(_local15, _local24)){ _-Gn._-2M(_arg1, _local23); }; _local3 = _local24._-DD; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-9P--; } else { _local3 = _local24._-5Y; _local4 = _local3[_local5]; _local4++; _local3[_local5] = _local4; _local7._-9P++; }; _local3 = _local13._-5Y; _local4 = _local3[_local5]; _local4--; _local3[_local5] = _local4; _local7._-x(_local8); _local6--; }; }; _local5++; }; } public static function _-B5(_arg1:Array, _arg2:int, _arg3:uint):uint{ var _local6:int; var _local7:_-5U; 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 59
//_-1S (Box2D.Collision._-1S) package Box2D.Collision { import _-9S.*; public class _-1S { public var _-1I:_-CE; public var _-Fu:_-CE; public function _-1S(){ _-Fu = new _-CE(); _-1I = new _-CE(); super(); } public function use():Boolean{ var _local1:Number = (_-1I.x - _-Fu.x); var _local2:Number = (_-1I.y - _-Fu.y); var _local3:Boolean = (((_local1 >= 0)) && ((_local2 >= 0))); _local3 = ((((_local3) && (_-Fu.use()))) && (_-1I.use())); return (_local3); } } }//package Box2D.Collision
Section 60
//_-38 (Box2D.Collision._-38) package Box2D.Collision { import _-9S.*; import _-9f.*; public class _-38 { public var _-Cp:int;// = 0 public var normal:_-CE; public var points:Array; public function _-38(){ points = new Array(_-Dm._-HQ); var _local1:int; while (_local1 < _-Dm._-HQ) { points[_local1] = new _-Ic(); _local1++; }; normal = new _-CE(); } public function Set(_arg1:_-38):void{ _-Cp = _arg1._-Cp; var _local2:int; while (_local2 < _-Dm._-HQ) { (points[_local2] as _-Ic).Set(_arg1.points[_local2]); _local2++; }; normal._-DC(_arg1.normal); } public function _-9F():void{ var _local1:int; while (_local1 < _-Dm._-HQ) { (points[_local1] as _-Ic)._-9F(); _local1++; }; normal._-6W(); _-Cp = 0; } } }//package Box2D.Collision
Section 61
//_-5b (Box2D.Collision._-5b) package Box2D.Collision { import _-9S.*; import _-5v.*; public class _-5b { public var _-4T:Number; public var _-HW:Number; public var normal:_-CE; public var position:_-CE; public var _-Gq:Number; public var shape1:_-Ai; public var shape2:_-Ai; public var id:_-Dt; public var _-4g:_-CE; public function _-5b(){ position = new _-CE(); _-4g = new _-CE(); normal = new _-CE(); id = new _-Dt(); super(); } } }//package Box2D.Collision
Section 62
//_-5U (Box2D.Collision._-5U) package Box2D.Collision { public class _-5U { public var value:uint; public var proxyId:uint; public var _-9P:uint; public function _-x(_arg1:_-5U):void{ var _local2:uint = value; var _local3:uint = proxyId; var _local4:uint = _-9P; value = _arg1.value; proxyId = _arg1.proxyId; _-9P = _arg1._-9P; _arg1.value = _local2; _arg1.proxyId = _local3; _arg1._-9P = _local4; } public function IsLower():Boolean{ return (((value & 1) == 0)); } public function IsUpper():Boolean{ return (((value & 1) == 1)); } } }//package Box2D.Collision
Section 63
//_-5Z (Box2D.Collision._-5Z) package Box2D.Collision { public class _-5Z { public function PairRemoved(_arg1, _arg2, _arg3):void{ } public function PairAdded(_arg1, _arg2){ return (null); } } }//package Box2D.Collision
Section 64
//_-6s (Box2D.Collision._-6s) package Box2D.Collision { public class _-6s { public var _-9u:int; public var _-EA:int; public var _-G5:int; public var _-r:int; public var _-9O:_-Dt; public function get _-Dq():int{ return (_-9u); } public function set _-I-(_arg1:int):void{ _-r = _arg1; _-9O._-9J = ((_-9O._-9J & 4278255615) | ((_-r << 16) & 0xFF0000)); } public function get _-8N():int{ return (_-G5); } public function get _-0B():int{ return (_-EA); } public function set _-Dq(_arg1:int):void{ _-9u = _arg1; _-9O._-9J = ((_-9O._-9J & 4294967040) | (_-9u & 0xFF)); } public function get _-I-():int{ return (_-r); } public function set _-8N(_arg1:int):void{ _-G5 = _arg1; _-9O._-9J = ((_-9O._-9J & 0xFFFFFF) | ((_-G5 << 24) & 4278190080)); } public function set _-0B(_arg1:int):void{ _-EA = _arg1; _-9O._-9J = ((_-9O._-9J & 4294902015) | ((_-EA << 8) & 0xFF00)); } } }//package Box2D.Collision
Section 65
//_-83 (Box2D.Collision._-83) package Box2D.Collision { public class _-83 { public var proxyId1:uint; public var proxyId2:uint; } }//package Box2D.Collision
Section 66
//_-94 (Box2D.Collision._-94) package Box2D.Collision { import _-9S.*; public class _-94 { public var id:_-Dt; public var v:_-CE; public function _-94(){ v = new _-CE(); id = new _-Dt(); super(); } } }//package Box2D.Collision
Section 67
//_-An (Box2D.Collision._-An) package Box2D.Collision { import _-9S.*; import _-9f.*; import _-5v.*; public class _-An { public static const _-4j:uint = 0xFF; private static var _-HL:_-CE = new _-CE(); public static function _-20(_arg1:_-Au, _arg2:_-IR, _arg3:int, _arg4:_-Au, _arg5:_-IR):Number{ var _local11:_-JY; var _local12:_-CE; var _local25:Number; var _local6:int = _arg1.while; var _local7:Array = _arg1._-Hs; var _local8:Array = _arg1._-9Y; var _local9:int = _arg4.while; var _local10:Array = _arg4._-Hs; _local11 = _arg2.R; _local12 = _local8[_arg3]; var _local13:Number = ((_local11._-0t.x * _local12.x) + (_local11._-8Z.x * _local12.y)); var _local14:Number = ((_local11._-0t.y * _local12.x) + (_local11._-8Z.y * _local12.y)); _local11 = _arg5.R; var _local15:Number = ((_local11._-0t.x * _local13) + (_local11._-0t.y * _local14)); var _local16:Number = ((_local11._-8Z.x * _local13) + (_local11._-8Z.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._-0t.x * _local12.x) + (_local11._-8Z.x * _local12.y))); var _local21:Number = (_arg2.position.y + ((_local11._-0t.y * _local12.x) + (_local11._-8Z.y * _local12.y))); _local12 = _local10[_local17]; _local11 = _arg5.R; var _local22:Number = (_arg5.position.x + ((_local11._-0t.x * _local12.x) + (_local11._-8Z.x * _local12.y))); var _local23:Number = (_arg5.position.y + ((_local11._-0t.y * _local12.x) + (_local11._-8Z.y * _local12.y))); _local22 = (_local22 - _local20); _local23 = (_local23 - _local21); var _local24:Number = ((_local22 * _local13) + (_local23 * _local14)); return (_local24); } public static function _-0U(_arg1:_-1S, _arg2:_-1S):Boolean{ var _local3:_-CE = _arg2._-Fu; var _local4:_-CE = _arg1._-1I; var _local5:Number = (_local3.x - _local4.x); var _local6:Number = (_local3.y - _local4.y); _local3 = _arg1._-Fu; _local4 = _arg2._-1I; 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 each(_arg1:Array, _arg2:_-Au, _arg3:_-IR, _arg4:int, _arg5:_-Au, _arg6:_-IR):void{ var _local12:_-JY; var _local13:_-CE; var _local20:_-94; var _local23:Number; var _local7:int = _arg2.while; var _local8:Array = _arg2._-9Y; var _local9:int = _arg5.while; var _local10:Array = _arg5._-Hs; var _local11:Array = _arg5._-9Y; _local12 = _arg3.R; _local13 = _local8[_arg4]; var _local14:Number = ((_local12._-0t.x * _local13.x) + (_local12._-8Z.x * _local13.y)); var _local15:Number = ((_local12._-0t.y * _local13.x) + (_local12._-8Z.y * _local13.y)); _local12 = _arg6.R; var _local16:Number = ((_local12._-0t.x * _local14) + (_local12._-0t.y * _local15)); _local15 = ((_local12._-8Z.x * _local14) + (_local12._-8Z.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._-0t.x * _local13.x) + (_local12._-8Z.x * _local13.y))); _local20.v.y = (_arg6.position.y + ((_local12._-0t.y * _local13.x) + (_local12._-8Z.y * _local13.y))); _local20.id._-6R._-Dq = _arg4; _local20.id._-6R._-0B = _local21; _local20.id._-6R._-I- = 0; _local20 = _arg1[1]; _local13 = _local10[_local22]; _local12 = _arg6.R; _local20.v.x = (_arg6.position.x + ((_local12._-0t.x * _local13.x) + (_local12._-8Z.x * _local13.y))); _local20.v.y = (_arg6.position.y + ((_local12._-0t.y * _local13.x) + (_local12._-8Z.y * _local13.y))); _local20.id._-6R._-Dq = _arg4; _local20.id._-6R._-0B = _local22; _local20.id._-6R._-I- = 1; } public static function _-KT(_arg1:_-38, _arg2:_-Au, _arg3:_-IR, _arg4:_-Au, _arg5:_-IR):void{ var _local6:_-94; var _local13:_-Au; var _local14:_-Au; var _local17:int; var _local18:uint; var _local34:int; var _local37:_-CE; var _local38:Number; var _local39:_-Ic; _arg1._-Cp = 0; var _local7:int; var _local8:Array = [_local7]; var _local9:Number = _-Fs(_local8, _arg2, _arg3, _arg4, _arg5); _local7 = _local8[0]; if (_local9 > 0){ return; }; var _local10:int; var _local11:Array = [_local10]; var _local12:Number = _-Fs(_local11, _arg4, _arg5, _arg2, _arg3); _local10 = _local11[0]; if (_local12 > 0){ return; }; var _local15:_-IR = new _-IR(); var _local16:_-IR = new _-IR(); 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 _-94(), new _-94()]; each(_local21, _local13, _local15, _local17, _local14, _local16); var _local22:int = _local13.while; var _local23:Array = _local13._-Hs; var _local24:_-CE = _local23[_local17]; var _local25:_-CE = _local24.Copy(); if ((_local17 + 1) < _local22){ _local24 = _local23[int((_local17 + 1))]; _local37 = _local24.Copy(); } else { _local24 = _local23[0]; _local37 = _local24.Copy(); }; var _local26:_-CE = _-Fk._-JS(_local37, _local25); var _local27:_-CE = _-Fk._-6N(_local15.R, _-Fk._-JS(_local37, _local25)); _local27._-9l(); var _local28:_-CE = _-Fk._-EF(_local27, 1); _local25 = _-Fk._-7(_local15, _local25); _local37 = _-Fk._-7(_local15, _local37); var _local29:Number = _-Fk._-3s(_local28, _local25); var _local30:Number = -(_-Fk._-3s(_local27, _local25)); var _local31:Number = _-Fk._-3s(_local27, _local37); var _local32:Array = [new _-94(), new _-94()]; var _local33:Array = [new _-94(), new _-94()]; _local34 = _-AN(_local32, _local21, _local27._-1g(), _local30); if (_local34 < 2){ return; }; _local34 = _-AN(_local33, _local32, _local27, _local31); if (_local34 < 2){ return; }; _arg1.normal = (_local18) ? _local28._-1g() : _local28.Copy(); var _local35:int; var _local36:int; while (_local36 < _-Dm._-HQ) { _local6 = _local33[_local36]; _local38 = (_-Fk._-3s(_local28, _local6.v) - _local29); if (_local38 <= 0){ _local39 = _arg1.points[_local35]; _local39._-HW = _local38; _local39._-A2 = _-Fk._-Ge(_arg3, _local6.v); _local39._-0A = _-Fk._-Ge(_arg5, _local6.v); _local39.id.key = _local6.id._-9J; _local39.id._-6R._-8N = _local18; _local35++; }; _local36++; }; _arg1._-Cp = _local35; } public static function _-Fs(_arg1:Array, _arg2:_-Au, _arg3:_-IR, _arg4:_-Au, _arg5:_-IR):Number{ var _local8:_-CE; var _local9:_-JY; var _local22:int; var _local23:Number; var _local24:int; var _local25:Number; var _local6:int = _arg2.while; var _local7:Array = _arg2._-9Y; _local9 = _arg5.R; _local8 = _arg4._-9b; var _local10:Number = (_arg5.position.x + ((_local9._-0t.x * _local8.x) + (_local9._-8Z.x * _local8.y))); var _local11:Number = (_arg5.position.y + ((_local9._-0t.y * _local8.x) + (_local9._-8Z.y * _local8.y))); _local9 = _arg3.R; _local8 = _arg2._-9b; _local10 = (_local10 - (_arg3.position.x + ((_local9._-0t.x * _local8.x) + (_local9._-8Z.x * _local8.y)))); _local11 = (_local11 - (_arg3.position.y + ((_local9._-0t.y * _local8.x) + (_local9._-8Z.y * _local8.y)))); var _local12:Number = ((_local10 * _arg3.R._-0t.x) + (_local11 * _arg3.R._-0t.y)); var _local13:Number = ((_local10 * _arg3.R._-8Z.x) + (_local11 * _arg3.R._-8Z.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 = _-20(_arg2, _arg3, _local14, _arg4, _arg5); if (_local17 > 0){ return (_local17); }; var _local18:int = (((_local14 - 1) >= 0)) ? (_local14 - 1) : (_local6 - 1); var _local19:Number = _-20(_arg2, _arg3, _local18, _arg4, _arg5); if (_local19 > 0){ return (_local19); }; var _local20:int = (((_local14 + 1) < _local6)) ? (_local14 + 1) : 0; var _local21:Number = _-20(_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 = _-20(_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 _-AN(_arg1:Array, _arg2:Array, _arg3:_-CE, _arg4:Number):int{ var _local5:_-94; var _local6:int; var _local7:_-CE; var _local8:_-CE; var _local9:Number; var _local11:Number; var _local12:_-CE; var _local13:_-94; _local6 = 0; _local5 = _arg2[0]; _local7 = _local5.v; _local5 = _arg2[1]; _local8 = _local5.v; _local9 = (_-Fk._-3s(_arg3, _local7) - _arg4); var _local10:Number = (_-Fk._-3s(_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 _-HY(_arg1:_-38, _arg2:_-62, _arg3:_-IR, _arg4:_-62, _arg5:_-IR):void{ var _local6:_-JY; var _local7:_-CE; var _local18:Number; var _local24:Number; var _local25:Number; _arg1._-Cp = 0; _local6 = _arg3.R; _local7 = _arg2._-Dz; var _local8:Number = (_arg3.position.x + ((_local6._-0t.x * _local7.x) + (_local6._-8Z.x * _local7.y))); var _local9:Number = (_arg3.position.y + ((_local6._-0t.y * _local7.x) + (_local6._-8Z.y * _local7.y))); _local6 = _arg5.R; _local7 = _arg4._-Dz; var _local10:Number = (_arg5.position.x + ((_local6._-0t.x * _local7.x) + (_local6._-8Z.x * _local7.y))); var _local11:Number = (_arg5.position.y + ((_local6._-0t.y * _local7.x) + (_local6._-8Z.y * _local7.y))); var _local12:Number = (_local10 - _local8); var _local13:Number = (_local11 - _local9); var _local14:Number = ((_local12 * _local12) + (_local13 * _local13)); var _local15:Number = _arg2._-9c; var _local16:Number = _arg4._-9c; 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._-Cp = 1; var _local19:_-Ic = _arg1.points[0]; _local19.id.key = 0; _local19._-HW = _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._-A2.x = ((_local22 * _arg3.R._-0t.x) + (_local23 * _arg3.R._-0t.y)); _local19._-A2.y = ((_local22 * _arg3.R._-8Z.x) + (_local23 * _arg3.R._-8Z.y)); _local22 = (_local20 - _arg5.position.x); _local23 = (_local21 - _arg5.position.y); _local19._-0A.x = ((_local22 * _arg5.R._-0t.x) + (_local23 * _arg5.R._-0t.y)); _local19._-0A.y = ((_local22 * _arg5.R._-8Z.x) + (_local23 * _arg5.R._-8Z.y)); } public static function _-10(_arg1:_-38, _arg2:_-Au, _arg3:_-IR, _arg4:_-62, _arg5:_-IR):void{ var _local6:_-Ic; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:_-CE; var _local12:_-JY; var _local17:Number; var _local32:Number; var _local33:Number; var _local34:Number; _arg1._-Cp = 0; _local12 = _arg5.R; _local11 = _arg4._-Dz; var _local13:Number = (_arg5.position.x + ((_local12._-0t.x * _local11.x) + (_local12._-8Z.x * _local11.y))); var _local14:Number = (_arg5.position.y + ((_local12._-0t.y * _local11.x) + (_local12._-8Z.y * _local11.y))); _local7 = (_local13 - _arg3.position.x); _local8 = (_local14 - _arg3.position.y); _local12 = _arg3.R; var _local15:Number = ((_local7 * _local12._-0t.x) + (_local8 * _local12._-0t.y)); var _local16:Number = ((_local7 * _local12._-8Z.x) + (_local8 * _local12._-8Z.y)); var _local18:int; var _local19:Number = -(Number.MAX_VALUE); var _local20:Number = _arg4._-9c; var _local21:int = _arg2.while; var _local22:Array = _arg2._-Hs; var _local23:Array = _arg2._-9Y; 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._-Cp = 1; _local11 = _local23[_local18]; _local12 = _arg3.R; _arg1.normal.x = ((_local12._-0t.x * _local11.x) + (_local12._-8Z.x * _local11.y)); _arg1.normal.y = ((_local12._-0t.y * _local11.x) + (_local12._-8Z.y * _local11.y)); _local6 = _arg1.points[0]; _local6.id._-6R._-0B = _local18; _local6.id._-6R._-I- = _-4j; _local6.id._-6R._-Dq = 0; _local6.id._-6R._-8N = 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._-A2.x = ((_local7 * _local12._-0t.x) + (_local8 * _local12._-0t.y)); _local6._-A2.y = ((_local7 * _local12._-8Z.x) + (_local8 * _local12._-8Z.y)); _local7 = (_local9 - _arg5.position.x); _local8 = (_local10 - _arg5.position.y); _local12 = _arg5.R; _local6._-0A.x = ((_local7 * _local12._-0t.x) + (_local8 * _local12._-0t.y)); _local6._-0A.y = ((_local7 * _local12._-8Z.x) + (_local8 * _local12._-8Z.y)); _local6._-HW = (_local19 - _local20); return; }; var _local25:int = _local18; var _local26:int = (((_local25 + 1) < _local21)) ? (_local25 + 1) : 0; _local11 = _local22[_local25]; var _local27:_-CE = _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._-6R._-0B = _-4j; _local6.id._-6R._-I- = _local25; } else { if (_local31 >= _local30){ _local32 = _local27.x; _local33 = _local27.y; _local6.id._-6R._-0B = _-4j; _local6.id._-6R._-I- = _local26; } else { _local32 = ((_local28 * _local31) + _local11.x); _local33 = ((_local29 * _local31) + _local11.y); _local6.id._-6R._-0B = _local18; _local6.id._-6R._-I- = 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._-Cp = 1; _local12 = _arg3.R; _arg1.normal.x = ((_local12._-0t.x * _local7) + (_local12._-8Z.x * _local8)); _arg1.normal.y = ((_local12._-0t.y * _local7) + (_local12._-8Z.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._-A2.x = ((_local7 * _local12._-0t.x) + (_local8 * _local12._-0t.y)); _local6._-A2.y = ((_local7 * _local12._-8Z.x) + (_local8 * _local12._-8Z.y)); _local7 = (_local9 - _arg5.position.x); _local8 = (_local10 - _arg5.position.y); _local12 = _arg5.R; _local6._-0A.x = ((_local7 * _local12._-0t.x) + (_local8 * _local12._-0t.y)); _local6._-0A.y = ((_local7 * _local12._-8Z.x) + (_local8 * _local12._-8Z.y)); _local6._-HW = (_local17 - _local20); _local6.id._-6R._-Dq = 0; _local6.id._-6R._-8N = 0; } } }//package Box2D.Collision
Section 68
//_-B9 (Box2D.Collision._-B9) package Box2D.Collision { public class _-B9 { public var proxyId1:uint; public var userData;// = null public var proxyId2:uint; public var status:uint; public var next:uint; public static var set :uint = 4; public static var _-0E:int = (_-2j - 1); public static var _-3B:uint = 2; public static var _-7T:uint = 0xFFFF; public static var switch:uint = 1; public static var _-IO:uint = 0xFFFF; public static var _-2j:int = 4096; public function _-G-():void{ status = (status | switch); } public function _-85():Boolean{ return (((status & switch) == switch)); } public function _-9A():Boolean{ return (((status & set ) == set )); } public function _-Bo():void{ status = (status & ~(_-3B)); } public function _-9d():void{ status = (status | set ); } public function _-y():Boolean{ return (((status & _-3B) == _-3B)); } public function _-Jt():void{ status = (status & ~(switch)); } public function _-Fa():void{ status = (status | _-3B); } } }//package Box2D.Collision
Section 69
//_-D- (Box2D.Collision._-D-) package Box2D.Collision { import _-9S.*; import _-9f.*; import _-5v.*; public class _-D- { private static var _-Ed:Array = [new _-CE(), new _-CE(), new _-CE()]; private static var _-0G:Array = [new _-CE(), new _-CE(), new _-CE()]; private static var _-3R:Array = [new _-CE(), new _-CE(), new _-CE()]; private static var _-9g:_-KX = new _-KX(); public static var _-Fm:int = 0; public static function _-6d(_arg1:_-CE, _arg2:Array, _arg3:int):Boolean{ var _local6:_-CE; 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 _-3l(_arg1:_-CE, _arg2:_-CE, _arg3, _arg4:_-IR, _arg5, _arg6:_-IR):Number{ var _local7:_-CE; var _local15:Number; var _local16:Number; var _local17:_-CE; var _local18:_-CE; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:int; var _local8:Array = _-0G; var _local9:Array = _-Ed; var _local10:Array = _-3R; var _local11:int; _arg1._-DC(_arg3.GetFirstVertex(_arg4)); _arg2._-DC(_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._-DC(_local17); _arg2._-DC(_local18); }; _-Fm = _local14; return (Math.sqrt(_local12)); }; switch (_local11){ case 0: _local7 = _local8[0]; _local7._-DC(_local17); _local7 = _local9[0]; _local7._-DC(_local18); _local7 = _local10[0]; _local7.x = _local19; _local7.y = _local20; _arg1._-DC(_local8[0]); _arg2._-DC(_local9[0]); _local11++; break; case 1: _local7 = _local8[1]; _local7._-DC(_local17); _local7 = _local9[1]; _local7._-DC(_local18); _local7 = _local10[1]; _local7.x = _local19; _local7.y = _local20; _local11 = _-Ee(_arg1, _arg2, _local8, _local9, _local10); break; case 2: _local7 = _local8[2]; _local7._-DC(_local17); _local7 = _local9[2]; _local7._-DC(_local18); _local7 = _local10[2]; _local7.x = _local19; _local7.y = _local20; _local11 = _-7W(_arg1, _arg2, _local8, _local9, _local10); break; }; if (_local11 == 3){ _-Fm = _local14; return (0); }; _local22 = -(Number.MAX_VALUE); _local23 = 0; while (_local23 < _local11) { _local7 = _local10[_local23]; _local22 = _-Fk._-3u(_local22, ((_local7.x * _local7.x) + (_local7.y * _local7.y))); _local23++; }; if ((((_local11 == 3)) || ((_local12 <= ((100 * Number.MIN_VALUE) * _local22))))){ _-Fm = _local14; _local15 = (_arg2.x - _arg1.x); _local16 = (_arg2.y - _arg1.y); _local12 = ((_local15 * _local15) + (_local16 * _local16)); return (Math.sqrt(_local12)); }; _local14++; }; _-Fm = _local13; return (Math.sqrt(_local12)); } public static function _-3w(_arg1:_-CE, _arg2:_-CE, _arg3:_-62, _arg4:_-IR, _arg5:_-62, _arg6:_-IR):Number{ var _local7:_-JY; var _local8:_-CE; var _local19:Number; var _local20:Number; _local7 = _arg4.R; _local8 = _arg3._-Dz; var _local9:Number = (_arg4.position.x + ((_local7._-0t.x * _local8.x) + (_local7._-8Z.x * _local8.y))); var _local10:Number = (_arg4.position.y + ((_local7._-0t.y * _local8.x) + (_local7._-8Z.y * _local8.y))); _local7 = _arg6.R; _local8 = _arg5._-Dz; var _local11:Number = (_arg6.position.x + ((_local7._-0t.x * _local8.x) + (_local7._-8Z.x * _local8.y))); var _local12:Number = (_arg6.position.y + ((_local7._-0t.y * _local8.x) + (_local7._-8Z.y * _local8.y))); var _local13:Number = (_local11 - _local9); var _local14:Number = (_local12 - _local10); var _local15:Number = ((_local13 * _local13) + (_local14 * _local14)); var _local16:Number = (_arg3._-9c - _-Dm._-6o); var _local17:Number = (_arg5._-9c - _-Dm._-6o); 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 _-7W(_arg1:_-CE, _arg2:_-CE, _arg3:Array, _arg4:Array, _arg5:Array):int{ var _local6:_-CE; var _local7:_-CE; var _local8:_-CE; var _local9:_-CE; var _local10:_-CE; var _local11:_-CE; var _local12:_-CE; var _local13:_-CE; 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:_-CE = _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._-DC(_local11); _arg2._-DC(_local14); _local9._-DC(_local11); _local12._-DC(_local14); _local6._-DC(_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._-DC(_local11); _local12._-DC(_local14); _local6._-DC(_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._-DC(_local11); _local13._-DC(_local14); _local7._-DC(_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 _-Bf(_arg1:_-CE, _arg2:_-CE, _arg3:_-Au, _arg4:_-IR, _arg5:_-62, _arg6:_-IR):Number{ var _local7:_-JY; var _local8:_-CE; var _local12:Number; var _local13:Number; var _local14:Number; var _local9:_-KX = _-9g; _local8 = _arg5._-Dz; _local7 = _arg6.R; _local9.p.x = (_arg6.position.x + ((_local7._-0t.x * _local8.x) + (_local7._-8Z.x * _local8.y))); _local9.p.y = (_arg6.position.y + ((_local7._-0t.y * _local8.x) + (_local7._-8Z.y * _local8.y))); var _local10:Number = _-3l(_arg1, _arg2, _arg3, _arg4, _local9, _-Fk._-8w); var _local11:Number = (_arg5._-9c - _-Dm._-6o); 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 _-B0(_arg1:_-CE, _arg2:_-CE, _arg3:_-Ai, _arg4:_-IR, _arg5:_-Ai, _arg6:_-IR):Number{ var _local7:int = _arg3.m_type; var _local8:int = _arg5.m_type; if ((((_local7 == _-Ai._-3X)) && ((_local8 == _-Ai._-3X)))){ return (_-3w(_arg1, _arg2, (_arg3 as _-62), _arg4, (_arg5 as _-62), _arg6)); }; if ((((_local7 == _-Ai._-HH)) && ((_local8 == _-Ai._-3X)))){ return (_-Bf(_arg1, _arg2, (_arg3 as _-Au), _arg4, (_arg5 as _-62), _arg6)); }; if ((((_local7 == _-Ai._-3X)) && ((_local8 == _-Ai._-HH)))){ return (_-Bf(_arg2, _arg1, (_arg5 as _-Au), _arg6, (_arg3 as _-62), _arg4)); }; if ((((_local7 == _-Ai._-HH)) && ((_local8 == _-Ai._-HH)))){ return (_-3l(_arg1, _arg2, (_arg3 as _-Au), _arg4, (_arg5 as _-Au), _arg6)); }; return (0); } public static function _-Ee(_arg1:_-CE, _arg2:_-CE, _arg3:Array, _arg4:Array, _arg5:Array):int{ var _local9:_-CE; var _local10:_-CE; var _local11:_-CE; var _local17:Number; var _local6:_-CE = _arg5[0]; var _local7:_-CE = _arg5[1]; var _local8:_-CE = _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._-DC(_local9); _arg2._-DC(_local11); _local8._-DC(_local9); _local10._-DC(_local11); _local6._-DC(_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 70
//_-DL (Box2D.Collision._-DL) package Box2D.Collision { public class _-DL { public var _-AX:uint; public var userData;// = null public var _-DD:Array; public var _-5Y:Array; public var _-AR:uint; public function _-DL(){ _-DD = [uint(0), uint(0)]; _-5Y = [uint(0), uint(0)]; super(); } public function _-GG():uint{ return (_-DD[0]); } public function use():Boolean{ return (!((_-AX == _-0s._-4I))); } public function _-Dp(_arg1:uint):void{ _-DD[0] = (_arg1 & 0xFFFF); } } }//package Box2D.Collision
Section 71
//_-Dt (Box2D.Collision._-Dt) package Box2D.Collision { public class _-Dt { public var _-9J:uint; public var _-6R:_-6s; public function _-Dt(){ _-6R = new _-6s(); super(); _-6R._-9O = this; } public function Set(_arg1:_-Dt):void{ key = _arg1._-9J; } public function Copy():_-Dt{ var _local1:_-Dt = new _-Dt(); _local1.key = key; return (_local1); } public function set key(_arg1:uint):void{ _-9J = _arg1; _-6R._-9u = (_-9J & 0xFF); _-6R._-EA = (((_-9J & 0xFF00) >> 8) & 0xFF); _-6R._-r = (((_-9J & 0xFF0000) >> 16) & 0xFF); _-6R._-G5 = (((_-9J & 4278190080) >> 24) & 0xFF); } public function get key():uint{ return (_-9J); } } }//package Box2D.Collision
Section 72
//_-Ef (Box2D.Collision._-Ef) package Box2D.Collision { import _-9S.*; import _-9f.*; import _-5v.*; public class _-Ef { public static var _-Ix:_-IR = new _-IR(); public static var _-9L:_-IR = new _-IR(); public static var _-Go:_-CE = new _-CE(); public static var _-5B:_-CE = new _-CE(); public static function _-I8(_arg1:_-Ai, _arg2:_-Cb, _arg3:_-Ai, _arg4:_-Cb):Number{ var _local5:Number; var _local6:Number; var _local25:Number; var _local26:_-IR; var _local27:_-IR; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local7:Number = _arg1._-Eq; var _local8:Number = _arg3._-Eq; var _local9:Number = _arg2._-6B; 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:_-CE = _-Go; var _local18:_-CE = _-5B; 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 = _-Ix; _local27 = _-9L; _arg2._-GN(_local26, _local25); _arg4._-GN(_local27, _local25); _local23 = _-D-._-B0(_local17, _local18, _arg1, _local26, _arg3, _local27); if (_local20 == 0){ if (_local23 > (2 * _-Dm._-6o)){ _local24 = (1.5 * _-Dm._-6o); } else { _local5 = (0.05 * _-Dm._-6o); _local6 = (_local23 - (0.5 * _-Dm._-6o)); _local24 = ((_local5 > _local6)) ? _local5 : _local6; }; }; if (((((_local23 - _local24) < (0.05 * _-Dm._-6o))) || ((_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 73
//_-ER (Box2D.Collision._-ER) package Box2D.Collision { import _-9S.*; public class _-ER { public var R:_-JY; public var center:_-CE; public var _-o:_-CE; public function _-ER(){ R = new _-JY(); center = new _-CE(); _-o = new _-CE(); super(); } } }//package Box2D.Collision
Section 74
//_-ET (Box2D.Collision._-ET) package Box2D.Collision { import _-9S.*; import _-9f.*; public class _-ET { public var p1:_-CE; public var p2:_-CE; public function _-ET(){ p1 = new _-CE(); p2 = new _-CE(); super(); } public function TestSegment(_arg1:Array, _arg2:_-CE, _arg3:_-ET, _arg4:Number):Boolean{ var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local5:_-CE = _arg3.p1; var _local6:Number = (_arg3.p2.x - _local5.x); var _local7:Number = (_arg3.p2.y - _local5.y); var _local8:Number = (p2.x - p1.x); var _local9:Number = (p2.y - 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 - p1.x); _local15 = (_local5.y - 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 _-DF(_arg1:_-1S):void{ _-Cq(_arg1); _-BH(_arg1); } public function _-Cq(_arg1:_-1S):void{ var aabb = _arg1; var dX:Number = (p2.x - p1.x); var dY:Number = (p2.y - p1.y); var greaterthan0:* = function (_arg1){ return ((_arg1 > 0)); }; var lambda:Number = Math.min(((dX > 0)) ? ((aabb._-1I.x - p1.x) / dX) : ((dX < 0)) ? ((aabb._-Fu.x - p1.x) / dX) : Number.POSITIVE_INFINITY, ((dY > 0)) ? ((aabb._-1I.y - p1.y) / dY) : ((dY < 0)) ? ((aabb._-Fu.y - p1.y) / dY) : Number.POSITIVE_INFINITY); p2.x = (p1.x + (dX * lambda)); p2.y = (p1.y + (dY * lambda)); } public function _-BH(_arg1:_-1S):void{ var dY:Number; var lambda:Number; var aabb = _arg1; var dX:Number = (-(p2.x) + p1.x); dY = (-(p2.y) + p1.y); var greaterthan0:* = function (_arg1){ return ((_arg1 > 0)); }; lambda = Math.min(((dX > 0)) ? ((aabb._-1I.x - p2.x) / dX) : ((dX < 0)) ? ((aabb._-Fu.x - p2.x) / dX) : Number.POSITIVE_INFINITY, ((dY > 0)) ? ((aabb._-1I.y - p2.y) / dY) : ((dY < 0)) ? ((aabb._-Fu.y - p2.y) / dY) : Number.POSITIVE_INFINITY); p1.x = (p2.x + (dX * lambda)); p1.y = (p2.y + (dY * lambda)); } } }//package Box2D.Collision
Section 75
//_-F5 (Box2D.Collision._-F5) package Box2D.Collision { import _-9S.*; import _-9f.*; public class _-F5 { public var each:int; public var _-7L:Array; public var _-AY:Array; public var _-9C:_-5Z; public var try :Array; public var _-6O:int; public var _-Hh:_-0s; public var _-3Z:uint; public function _-F5(){ var _local1:uint; super(); _-AY = new Array(_-B9._-2j); _local1 = 0; while (_local1 < _-B9._-2j) { _-AY[_local1] = _-B9._-7T; _local1++; }; try = new Array(_-Dm.import); _local1 = 0; while (_local1 < _-Dm.import) { try [_local1] = new _-B9(); _local1++; }; _-7L = new Array(_-Dm.import); _local1 = 0; while (_local1 < _-Dm.import) { _-7L[_local1] = new _-83(); _local1++; }; _local1 = 0; while (_local1 < _-Dm.import) { try [_local1].proxyId1 = _-B9._-IO; try [_local1].proxyId2 = _-B9._-IO; try [_local1].userData = null; try [_local1].status = 0; try [_local1].next = (_local1 + 1); _local1++; }; try [int((_-Dm.import - 1))].next = _-B9._-7T; each = 0; _-6O = 0; } private function _-FP(_arg1:uint, _arg2:uint, _arg3:uint):_-B9{ var _local4:_-B9; var _local5:uint = _-AY[_arg3]; _local4 = try [_local5]; while (((!((_local5 == _-B9._-7T))) && ((_-68(_local4, _arg1, _arg2) == false)))) { _local5 = _local4.next; _local4 = try [_local5]; }; if (_local5 == _-B9._-7T){ return (null); }; return (_local4); } private function _-32(_arg1:uint, _arg2:uint):_-B9{ var _local4:uint; if (_arg1 > _arg2){ _local4 = _arg1; _arg1 = _arg2; _arg2 = _local4; }; var _local3:uint = (_-9(_arg1, _arg2) & _-B9._-0E); return (_-FP(_arg1, _arg2, _local3)); } private function _-0N():void{ } public function _-FN():void{ var _local1:_-83; var _local2:int; var _local5:_-B9; var _local6:_-DL; var _local7:_-DL; var _local3:int; var _local4:Array = _-Hh._-6V; _local2 = 0; while (_local2 < _-6O) { _local1 = _-7L[_local2]; _local5 = _-32(_local1.proxyId1, _local1.proxyId2); _local5._-Jt(); _local6 = _local4[_local5.proxyId1]; _local7 = _local4[_local5.proxyId2]; if (_local5._-y()){ if (_local5._-9A() == true){ _-9C.PairRemoved(_local6.userData, _local7.userData, _local5.userData); }; _local1 = _-7L[_local3]; _local1.proxyId1 = _local5.proxyId1; _local1.proxyId2 = _local5.proxyId2; _local3++; } else { if (_local5._-9A() == false){ _local5.userData = _-9C.PairAdded(_local6.userData, _local7.userData); _local5._-9d(); }; }; _local2++; }; _local2 = 0; while (_local2 < _local3) { _local1 = _-7L[_local2]; _-n(_local1.proxyId1, _local1.proxyId2); _local2++; }; _-6O = 0; if (_-0s._-K2){ _-BU(); }; } public function _-2M(_arg1:int, _arg2:int):void{ var _local3:_-83; var _local4:_-B9 = _-32(_arg1, _arg2); if (_local4 == null){ return; }; if (_local4._-85() == false){ _local4._-G-(); _local3 = _-7L[_-6O]; _local3.proxyId1 = _local4.proxyId1; _local3.proxyId2 = _local4.proxyId2; _-6O++; }; _local4._-Fa(); if (_-0s._-K2){ _-0N(); }; } private function _-n(_arg1:uint, _arg2:uint){ var _local3:_-B9; var _local7:uint; var _local8:uint; var _local9:*; if (_arg1 > _arg2){ _local7 = _arg1; _arg1 = _arg2; _arg2 = _local7; }; var _local4:uint = (_-9(_arg1, _arg2) & _-B9._-0E); var _local5:uint = _-AY[_local4]; var _local6:_-B9; while (_local5 != _-B9._-7T) { if (_-68(try [_local5], _arg1, _arg2)){ _local8 = _local5; _local3 = try [_local5]; if (_local6){ _local6.next = _local3.next; } else { _-AY[_local4] = _local3.next; }; _local3 = try [_local8]; _local9 = _local3.userData; _local3.next = _-3Z; _local3.proxyId1 = _-B9._-IO; _local3.proxyId2 = _-B9._-IO; _local3.userData = null; _local3.status = 0; _-3Z = _local8; each--; return (_local9); } else { _local6 = try [_local5]; _local5 = _local6.next; }; }; return (null); } public function _-5r(_arg1:_-0s, _arg2:_-5Z):void{ _-Hh = _arg1; _-9C = _arg2; } public function _-6j(_arg1:int, _arg2:int):void{ var _local3:_-83; var _local4:_-B9 = _-EH(_arg1, _arg2); if (_local4._-85() == false){ _local4._-G-(); _local3 = _-7L[_-6O]; _local3.proxyId1 = _local4.proxyId1; _local3.proxyId2 = _local4.proxyId2; _-6O++; }; _local4._-Bo(); if (_-0s._-K2){ _-0N(); }; } private function _-EH(_arg1:uint, _arg2:uint):_-B9{ var _local6:uint; if (_arg1 > _arg2){ _local6 = _arg1; _arg1 = _arg2; _arg2 = _local6; }; var _local3:uint = (_-9(_arg1, _arg2) & _-B9._-0E); var _local4 = _-FP(_arg1, _arg2, _local3); if (_local4 != null){ return (_local4); }; var _local5:uint = _-3Z; _local4 = try [_local5]; _-3Z = _local4.next; _local4.proxyId1 = _arg1; _local4.proxyId2 = _arg2; _local4.status = 0; _local4.userData = null; _local4.next = _-AY[_local3]; _-AY[_local3] = _local5; each++; return (_local4); } private function _-BU():void{ } public static function _-9x(_arg1:_-83, _arg2:_-83):Boolean{ return ((((_arg1.proxyId1 == _arg2.proxyId1)) && ((_arg1.proxyId2 == _arg2.proxyId2)))); } public static function _-9(_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 _-68(_arg1:_-B9, _arg2:uint, _arg3:uint):Boolean{ return ((((_arg1.proxyId1 == _arg2)) && ((_arg1.proxyId2 == _arg3)))); } } }//package Box2D.Collision
Section 76
//_-Ic (Box2D.Collision._-Ic) package Box2D.Collision { import _-9S.*; public class _-Ic { public var _-HW:Number; public var _-0A:_-CE; public var _-Ih:Number; public var _-F3:Number; public var _-A2:_-CE; public var id:_-Dt; public function _-Ic(){ _-A2 = new _-CE(); _-0A = new _-CE(); id = new _-Dt(); super(); } public function Set(_arg1:_-Ic):void{ _-A2._-DC(_arg1._-A2); _-0A._-DC(_arg1._-0A); _-HW = _arg1._-HW; _-Ih = _arg1._-Ih; _-F3 = _arg1._-F3; id.key = _arg1.id.key; } public function _-9F():void{ _-A2._-6W(); _-0A._-6W(); _-HW = 0; _-Ih = 0; _-F3 = 0; id.key = 0; } } }//package Box2D.Collision
Section 77
//_-KX (Box2D.Collision._-KX) package Box2D.Collision { import _-9S.*; public class _-KX { public var p:_-CE; public function _-KX(){ p = new _-CE(); super(); } public function GetFirstVertex(_arg1:_-IR):_-CE{ return (p); } public function Support(_arg1:_-IR, _arg2:Number, _arg3:Number):_-CE{ return (p); } } }//package Box2D.Collision
Section 78
// else (game. else) package game { import mx.core.*; public class else extends SpriteAsset { } }//package game
Section 79
// set (game. set) package game { import mx.core.*; public class set extends SpriteAsset { } }//package game
Section 80
// var (game. var) package game { import flash.display.*; import flash.events.*; import flash.geom.*; public class var extends Sprite { var _-Jn:Number; var in :Number; private var _-7-:Class; var sky1:DisplayObject; var sky2:DisplayObject; var _-4e:Bitmap; var _-FY:Number; public function var(){ _-7- = _-Dn; super(); _-4e = new Bitmap(new BitmapData(640, 480, true, 0)); addChild(_-4e); init(); this.addEventListener(Event.ENTER_FRAME, _-E3); } protected function _-E3(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); _-Jn = _local3; sky1.x = (sky1.x + _-FY); sky2.x = (sky2.x + in ); if (sky1.x > 640){ sky1 = _-Gx(); sky1.x = -((150 + (Math.random() * 50))); sky1.y = (50 + (Math.random() * 100)); _-FY = (1 + (Math.random() * 3)); }; if (sky2.x > 640){ sky2 = _-Gx(); sky2.x = -((150 + (Math.random() * 50))); sky2.y = (50 + (Math.random() * 100)); in = (1 + (Math.random() * 3)); }; var _local4:Sprite = new Sprite(); _local4.addChild(sky1); _local4.addChild(sky2); _-4e.bitmapData.fillRect(new Rectangle(0, 0, 640, 480), 0); _-4e.bitmapData.draw(_local4); } protected function _-Gx():DisplayObject{ var _local1:int = Math.floor((Math.random() * 3)); var _local2:DisplayObject = new _-7-(); 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{ sky1 = _-Gx(); sky1.x = -((150 + (Math.random() * 50))); sky1.y = (50 + (Math.random() * 100)); _-FY = (0.25 + (Math.random() * 1.5)); sky2 = _-Gx(); sky2.x = -((150 + (Math.random() * 50))); sky2.y = (50 + (Math.random() * 100)); in = (0.25 + (Math.random() * 1.5)); } } }//package game
Section 81
//_-06 (game._-06) package game { import _-9S.*; public class _-06 { public var shift:_-CE; public var points:Array; public var _-Cr:Array; public function _-06(){ points = new Array(); _-Cr = new Array(); shift = new _-CE(); } } }//package game
Section 82
//_-0d (game._-0d) package game { import mx.core.*; public class _-0d extends BitmapAsset { } }//package game
Section 83
//_-0J (game._-0J) package game { import mx.core.*; public class _-0J extends SpriteAsset { } }//package game
Section 84
//_-0o (game._-0o) package game { import mx.core.*; public class _-0o extends BitmapAsset { } }//package game
Section 85
//_-16 (game._-16) package game { import mx.core.*; public class _-16 extends SpriteAsset { } }//package game
Section 86
//_-1A (game._-1A) package game { import mx.core.*; public class _-1A extends SpriteAsset { } }//package game
Section 87
//_-1a (game._-1a) package game { import flash.display.*; import flash.events.*; import flash.text.*; import mochi.as3.*; import flash.net.*; public class _-1a extends Sprite { private var _-EQ:Class; private var _-Cl:Class; private var _-5F:String;// = "mainMenu_FontClass1" private var _-ID:Class; public var _-Io:int; private var _-l:Class; protected var _-Iv:_-4B; protected var _-Ke:SimpleButton; protected var _-5:SimpleButton; private var function:Class; private var _-I4:Class; private var _-Gu:Class; private var _-Kr:Class; private var _-7-:Class; private var _-2L:Class; private var _-Be:Class; private var _-2X:Class; private var _-Gf:Class; private var _-B4:Class; private var _-D:Class; private var _-F2:Class; private var _-9D:Class; protected var _-Cc:SimpleButton; protected var _-KF:SimpleButton; private var _-2-:Class; protected var _-BV:int;// = 0 protected var _-7x:SimpleButton; protected var _-0-:Number; protected var _-7B:SimpleButton; protected var try:SimpleButton; protected var _-90:Sprite; public var _-27:Boolean;// = false protected var _-IA:_-9v; protected var _-C0:_-J6; protected var continue:Sprite; public function _-1a(){ _-7- = _-6b; _-2L = _-7f; _-Be = _-87; _-2X = _-2b; _-Gf = _-Iu; _-B4 = _-CI; _-D = _-Fh; _-F2 = _-2k; _-9D = _-BF; _-Gu = _-JK; _-ID = _-4t; function = _-JQ; _-I4 = _-1e; _-2- = _-GO; _-Kr = _-BO; _-EQ = _-Dv; _-Cl = _-GP; _-l = _-0o; super(); var _local1:DisplayObject = new _-2X(); addChild(_local1); var _local2:_-Al = new _-Al(); addChild(_local2); _-90 = new Sprite(); var _local3:DisplayObject = new _-7-(); _local3.x = 90; _local3.y = 100; _local3.cacheAsBitmap = true; _-90.addChild(_local3); var _local4:DisplayObject = new _-B4(); _local4.x = 400; _local4.y = 50; _local4.cacheAsBitmap = true; _-90.addChild(_local4); _-59(); } protected function _-5p(_arg1:MouseEvent):void{ _-Io = uint((_arg1.target as SimpleButton).name); _-BV = 4; _-C0._-6f(false, _-FF); } protected function _-Ec(_arg1:MouseEvent):void{ _-IT(false); _-BV = 8; } protected function _-2t(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } protected function _-Di():void{ var _local5:Sprite; var _local7:Sprite; var _local1:Sprite = new Sprite(); var _local2:DisplayObject = new _-2L(); _local2.scaleX = 1; _local2.scaleY = 1; _local1.addChild(_local2); var _local3:DisplayObject = new _-Be(); _local3.scaleX = 0.55; _local3.scaleY = 0.55; _local3.x = 50; _local3.y = 30; _local1.addChild(_local3); _local1.cacheAsBitmap = true; _-Cc = new SimpleButton(_local1, _local1, _local1, _local1); _-Cc.addEventListener(MouseEvent.CLICK, _-DR); _-Cc.x = 280; _-Cc.y = 20; _-90.addChild(_-Cc); _local2 = new _-2L(); _local2.scaleX = 1.2; _local2.scaleY = 0.5; var _local4:DisplayObject = new _-F2(); _local4.x = ((_local2.width - _local4.width) / 2); _local4.y = 9; _local5 = new Sprite(); _local5.addChild(_local2); _local5.addChild(_local4); var _local6:DisplayObject = new _-D(); _local6.x = ((_local2.width - _local6.width) / 2); _local6.y = 9; _local2 = new _-2L(); _local2.scaleX = 1.2; _local2.scaleY = 0.5; _local7 = new Sprite(); _local7.addChild(_local2); _local7.addChild(_local6); _-Ke = new SimpleButton(_local5, _local7, _local7, _local7); _-Ke.x = 200; _-Ke.y = 445; _-90.addChild(_-Ke); _-Ke.addEventListener(MouseEvent.CLICK, _-6T); _local2 = new _-2L(); _local2.scaleX = 1.2; _local2.scaleY = 0.5; _local4 = new _-9D(); _local4.x = ((_local2.width - _local4.width) / 2); _local4.y = 9; _local5 = new Sprite(); _local5.addChild(_local2); _local5.addChild(_local4); _local6 = new _-Gu(); _local6.x = ((_local2.width - _local6.width) / 2); _local6.y = 9; _local2 = new _-2L(); _local2.scaleX = 1.2; _local2.scaleY = 0.5; _local7 = new Sprite(); _local7.addChild(_local2); _local7.addChild(_local6); _-7B = new SimpleButton(_local5, _local7, _local7, _local7); _-7B.x = 340; _-7B.y = 445; _-90.addChild(_-7B); _-7B.addEventListener(MouseEvent.CLICK, _-0R); } protected function _-EV():void{ _-BV = 7; } public function _-3k():void{ continue.removeEventListener(Event.ENTER_FRAME, _-i); } protected function _-0R(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.facebook.com/sharer.php?u=http://www.bgames.com/funny-games/Colliderix.html&t=Colliderix"); navigateToURL(_local2, "_blank"); } protected function _-5t(_arg1:MouseEvent):void{ _-IT(false); _-BV = 5; } protected function _-0H(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=menu_more_games&utm_campaign=colliderix"); navigateToURL(_local2, "_blank"); _-KC._-Eu("more_games"); } protected function _-FF(_arg1:MouseEvent):void{ _-BV = 3; _-C0._-6f(false, _-FF); } protected function _-6T(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://twitter.com/home?status=Playing Colliderix at http://www.bgames.com/funny-games/Colliderix.html"); navigateToURL(_local2, "_blank"); } protected function _-3g(_arg1:MouseEvent):void{ _-BV = 1; _-IT(false); } protected function _-IT(_arg1:Boolean):void{ _-5.enabled = _arg1; _-KF.enabled = _arg1; _-7x.enabled = _arg1; try.enabled = _arg1; if (_arg1){ _-5.addEventListener(MouseEvent.CLICK, _-3g); _-KF.addEventListener(MouseEvent.CLICK, _-Ec); _-7x.addEventListener(MouseEvent.CLICK, _-5t); try.addEventListener(MouseEvent.CLICK, _-0H); } else { _-5.removeEventListener(MouseEvent.CLICK, _-3g); _-KF.removeEventListener(MouseEvent.CLICK, _-Ec); _-7x.removeEventListener(MouseEvent.CLICK, _-5t); try.removeEventListener(MouseEvent.CLICK, _-0H); }; } protected function _-i(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); _-0- = _local3; switch (_-BV){ case 1: continue.x = _-2t(continue.x, 180, 0.1); continue.alpha = _-2t(continue.alpha, 0, 0.25); if (continue.alpha <= 0.001){ continue.alpha = 0; continue.x = 640; _-BV = 2; _-C0 = new _-J6(_-Cu._-3()._-CG(), _-5p); _-C0._-6f(true, _-FF); addChild(_-C0); _-C0.x = 90; _-C0.y = 100; _-C0.alpha = 0; }; return; case 2: _-C0.alpha = _-2t(_-C0.alpha, 1, 0.25); if (_-C0.alpha >= 0.999){ _-C0.alpha = 1; _-BV = 0; }; return; case 3: _-C0.alpha = _-2t(_-C0.alpha, 0, 0.25); _-C0.x = _-2t(_-C0.x, 220, 0.1); if (_-C0.alpha < 0.001){ removeChild(_-C0); _-C0 = null; continue.x = 0; _-BV = 99; _-IT(true); }; return; case 4: _-C0.alpha = _-2t(_-C0.alpha, 0, 0.25); _-C0.x = _-2t(_-C0.x, 220, 0.1); if (_-C0.alpha < 0.001){ removeChild(_-C0); _-C0 = null; _-27 = true; }; return; case 5: continue.x = _-2t(continue.x, 180, 0.1); continue.alpha = _-2t(continue.alpha, 0, 0.1); if (continue.alpha <= 0.001){ continue.alpha = 0; _-BV = 6; _-IA = new _-9v(_-EV); _-IA.x = 150; _-IA.y = 100; addChild(_-IA); }; return; case 6: _-IA.alpha = _-2t(_-IA.alpha, 1, 0.1); if (_-IA.alpha >= 0.999){ _-IA.alpha = 1; _-BV = 0; }; return; case 7: _-IA.alpha = _-2t(_-IA.alpha, 0, 0.25); _-IA.y = _-2t(_-IA.y, 90, 0.25); if (_-IA.alpha <= 0.001){ _-IA.alpha = 0; removeChild(_-IA); _-IA = null; continue.x = 0; _-IT(true); _-BV = 99; }; return; case 8: continue.x = _-2t(continue.x, 180, 0.1); continue.alpha = _-2t(continue.alpha, 0, 0.1); if (continue.alpha <= 0.001){ continue.alpha = 0; _-BV = 9; _-Iv = new _-4B(_-1k); _-Iv.x = 150; _-Iv.y = 100; addChild(_-Iv); }; return; case 9: _-Iv.alpha = _-2t(_-Iv.alpha, 1, 0.1); if (_-Iv.alpha >= 0.999){ _-Iv.alpha = 1; _-BV = 0; }; return; case 10: _-Iv.alpha = _-2t(_-Iv.alpha, 0, 0.25); _-Iv.y = _-2t(_-Iv.y, 90, 0.25); if (_-Iv.alpha <= 0.001){ _-Iv.alpha = 0; removeChild(_-Iv); _-Iv = null; continue.x = 0; _-IT(true); _-BV = 99; }; return; case 99: continue.alpha = _-2t(continue.alpha, 1, 0.25); if (continue.alpha >= 0.999){ continue.alpha = 1; _-BV = 0; }; return; }; } protected function _-DR(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=menu_logo&utm_campaign=colliderix"); navigateToURL(_local2, "_blank"); } protected function _-1k():void{ _-BV = 10; } protected function _-59():void{ _-Di(); var _local1 = 210; continue = new Sprite(); continue.addEventListener(Event.ENTER_FRAME, _-i); continue.alpha = 0; _-BV = 99; addChild(continue); continue.addChild(_-90); var _local2:Sprite = new Sprite(); var _local3:Sprite = new Sprite(); var _local4:DisplayObject = new _-Gf(); _local2.addChild(_local4); var _local5:TextFormat = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 4928048; _local5.size = 42; var _local6:TextField = new TextField(); _local2.addChild(_local6); _local6.embedFonts = true; _local6.defaultTextFormat = _local5; _local6.selectable = false; _local6.mouseEnabled = false; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = "play"; _local6.x = 40; _local6.y = 10; var _local7:DisplayObject = new _-Gf(); _local3.addChild(_local7); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 10714960; _local5.size = 42; var _local8:TextField = new TextField(); _local3.addChild(_local8); _local8.embedFonts = true; _local8.defaultTextFormat = _local5; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "play"; _local8.x = 40; _local8.y = 10; _-5 = new SimpleButton(_local2, _local3, _local3, _local3); _-5.x = 240; _-5.y = _local1; continue.addChild(_-5); _local2 = new Sprite(); _local6 = new TextField(); _local2.addChild(_local6); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 4928032; _local5.size = 42; _local6.embedFonts = true; _local6.defaultTextFormat = _local5; _local6.selectable = false; _local6.mouseEnabled = false; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = "how to play"; _local6.width = (_local6.textWidth + 10); _local6.height = _local6.textHeight; _local3 = new Sprite(); _local8 = new TextField(); _local3.addChild(_local8); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 10714960; _local5.size = 42; _local8.embedFonts = true; _local8.defaultTextFormat = _local5; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "how to play"; _local8.width = (_local8.textWidth + 10); _local8.height = _local8.textHeight; _-KF = new SimpleButton(_local2, _local3, _local3, _local3); _-KF.x = ((640 - _local2.width) / 2); _-KF.y = (_local1 + 130); continue.addChild(_-KF); _local2 = new Sprite(); _local6 = new TextField(); _local2.addChild(_local6); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 4928032; _local5.size = 42; _local6.embedFonts = true; _local6.defaultTextFormat = _local5; _local6.selectable = false; _local6.mouseEnabled = false; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = "about"; _local6.width = (_local6.textWidth + 10); _local6.height = _local6.textHeight; _local3 = new Sprite(); _local8 = new TextField(); _local3.addChild(_local8); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 10714960; _local5.size = 42; _local8.embedFonts = true; _local8.defaultTextFormat = _local5; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "about"; _local8.width = (_local8.textWidth + 10); _local8.height = _local8.textHeight; _-7x = new SimpleButton(_local2, _local3, _local3, _local3); _-7x.x = ((640 - _local2.width) / 2); _-7x.y = (_local1 + 180); continue.addChild(_-7x); _local2 = new Sprite(); _local6 = new TextField(); _local2.addChild(_local6); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 4928032; _local5.size = 42; _local6.embedFonts = true; _local6.defaultTextFormat = _local5; _local6.selectable = false; _local6.mouseEnabled = false; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = "more games"; _local6.width = (_local6.textWidth + 10); _local6.height = _local6.textHeight; _local3 = new Sprite(); _local8 = new TextField(); _local3.addChild(_local8); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 10714960; _local5.size = 42; _local8.embedFonts = true; _local8.defaultTextFormat = _local5; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "more games"; _local8.width = (_local8.textWidth + 10); _local8.height = _local8.textHeight; try = new SimpleButton(_local2, _local3, _local3, _local3); try.x = ((640 - _local2.width) / 2); try.y = (_local1 + 80); continue.addChild(try); _-IT(true); } } }//package game
Section 88
//_-1e (game._-1e) package game { import mx.core.*; public class _-1e extends BitmapAsset { } }//package game
Section 89
//_-1o (game._-1o) package game { import flash.display.*; import flash.events.*; import flash.text.*; import mochi.as3.*; import flash.net.*; import flash.filters.*; public class _-1o extends Sprite { private var _-2X:Class; protected var _-IE:Number; protected var _-Jn:Number; protected var _-1x:DisplayObject; private var _-7-:Class; private var _-2L:Class; private var _-Be:Class; public var _-8O:SimpleButton;// = null public var _-3c:SimpleButton;// = null public var extends:SimpleButton;// = null public function _-1o(_arg1:Number, _arg2:Boolean=false){ _-7- = _-Ce; _-2L = _-2A; _-Be = _-IG; _-2X = _-J; super(); _-IE = _arg1; if (_arg2){ _-2p(); } else { _-2O(); }; init(); this.alpha = 0; this.addEventListener(Event.ENTER_FRAME, _-E3); } protected function _-E3(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); if ((_local3 - _-Jn) <= 500){ return; }; _-Jn = (_local3 - 500); this.alpha = _-2t(this.alpha, 1, 0.2); this.y = _-2t(this.y, _-IE, 0.2); if (this.alpha >= 0.999){ this.alpha = 1; this.y = _-IE; this.removeEventListener(Event.ENTER_FRAME, _-E3); }; } protected function _-6z(_arg1:MouseEvent):void{ var event = _arg1; var o:Object = {n:[8, 12, 6, 1, 13, 1, 5, 12, 7, 9, 7, 2, 12, 7, 1, 10], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; var boardID:String = o.f(0, ""); var lolz:int = _-Cu._-3()._-0Q(); _-BP._-1v({boardID:boardID, score:lolz, res:"640x480"}); } protected function _-KR(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=game-over&utm_campaign=colliderix"); navigateToURL(_local2, "_blank"); } protected function init():void{ var _local1:Date = new Date(); var _local2:Number = _local1.getTime(); _-Jn = _local2; } protected function _-2O():void{ var _local5:TextFormat; var _local6:TextField; var _local9:TextField; var _local1:DisplayObject = new _-2L(); _-1x = new _-7-(); var _local2:BitmapData = new BitmapData(_local1.width, _local1.height, true, 0); _local2.draw(_local1); var _local3:Sprite = new Sprite(); _local3.graphics.beginBitmapFill(_local2); _local3.graphics.drawRect(0, 0, (_-1x.width - 20), (_-1x.height - 10)); _local3.graphics.endFill(); _local3.x = 10; _local3.y = 10; addChild(_local3); addChild(_-1x); var _local4:Sprite = new Sprite(); _local4.x = 30; _local4.y = 100; _local4.graphics.lineStyle(1, 0x8F8F8F); _local4.graphics.beginFill(0xE4E4E4); _local4.graphics.drawRoundRect(0, 0, (_-1x.width - 60), ((_-1x.height - _local4.y) - 30), 20, 20); _local4.graphics.endFill(); addChild(_local4); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 4731422; _local5.size = 42; _local6 = new TextField(); _local6.embedFonts = true; _local6.defaultTextFormat = _local5; _local6.selectable = false; _local6.mouseEnabled = false; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = "level complete!"; _local6.width = (_local6.textWidth + 5); _local6.height = _local6.textHeight; _local6.x = ((_-1x.width - _local6.width) / 2); _local6.y = 30; addChild(_local6); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 1001815; _local5.size = 32; _local6 = new TextField(); _local6.embedFonts = true; _local6.defaultTextFormat = _local5; _local6.selectable = false; _local6.mouseEnabled = false; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = ("score " + _-Cu._-3()._-0Q().toString()); _local6.width = (_local6.textWidth + 5); _local6.height = _local6.textHeight; _local6.x = ((_-1x.width - _local6.width) / 2); _local6.y = 100; addChild(_local6); var _local7:TextFormat = new TextFormat(); _local7.font = "embed_font_1"; _local7.color = 0x8F8F8F; _local7.size = 20; var _local8:TextFormat = new TextFormat(); _local8.font = "embed_font_1"; _local8.color = 0xFFFFFF; _local8.size = 20; _local6 = new TextField(); _local6.embedFonts = true; _local6.defaultTextFormat = _local7; _local6.selectable = false; _local6.mouseEnabled = true; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = "send score"; _local6.width = (_local6.textWidth + 5); _local6.height = _local6.textHeight; _local9 = new TextField(); _local9.embedFonts = true; _local9.defaultTextFormat = _local8; _local9.selectable = false; _local9.mouseEnabled = true; _local9.antiAliasType = AntiAliasType.ADVANCED; _local9.text = "send score"; _local9.width = (_local9.textWidth + 5); _local9.height = _local9.textHeight; _-8O = new SimpleButton(_local6, _local9, _local9, _local9); _-8O.x = ((_-1x.width / 2) + 10); _-8O.y = (_-1x.height - 60); _-8O.addEventListener(MouseEvent.CLICK, _-6z); addChild(_-8O); _local6 = new TextField(); _local6.embedFonts = true; _local6.defaultTextFormat = _local7; _local6.selectable = false; _local6.mouseEnabled = true; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.text = "replay"; _local6.width = (_local6.textWidth + 5); _local6.height = _local6.textHeight; _local9 = new TextField(); _local9.embedFonts = true; _local9.defaultTextFormat = _local8; _local9.selectable = false; _local9.mouseEnabled = true; _local9.antiAliasType = AntiAliasType.ADVANCED; _local9.text = "replay"; _local9.width = (_local9.textWidth + 5); _local9.height = _local9.textHeight; _-3c = new SimpleButton(_local6, _local9, _local9, _local9); _-3c.x = (((_-1x.width / 2) - 30) - _local9.width); _-3c.y = (_-1x.height - 60); addChild(_-3c); var _local10:DisplayObject = new _-Be(); _local10.scaleX = 0.5; _local10.scaleY = 0.5; _local10.x = 145; _local10.y = 150; addChild(_local10); _local5 = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 4731422; _local5.size = 20; _local7 = new TextFormat(); _local7.font = "embed_font_1"; _local7.color = 16313019; _local7.size = 20; var _local11:TextField = new TextField(); _local11.embedFonts = true; _local11.defaultTextFormat = _local7; _local11.selectable = false; _local11.mouseEnabled = true; _local11.antiAliasType = AntiAliasType.ADVANCED; _local11.text = "next"; _local11.width = (_local11.textWidth + 5); _local11.height = _local11.textHeight; _-1D(_local11); var _local12:TextField = new TextField(); _local12.embedFonts = true; _local12.defaultTextFormat = _local5; _local12.selectable = false; _local12.mouseEnabled = true; _local12.antiAliasType = AntiAliasType.ADVANCED; _local12.text = "next"; _local12.width = (_local12.textWidth + 5); _local12.height = _local12.textHeight; _-1D(_local12); var _local13:DisplayObject = _-Bb(_local11); var _local14:DisplayObject = _-Bb(_local12); extends = new SimpleButton(_local13, _local14, _local14, _local14); extends.x = 160; extends.y = 155; addChild(extends); } protected function _-2t(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } protected function _-1D(_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]; } function _-Bb(_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 _-2p():void{ var _local4:TextFormat; var _local5:TextField; var _local8:TextField; var _local1:DisplayObject = new _-2L(); _-1x = new _-7-(); var _local2:Sprite = new Sprite(); _local2.x = 30; _local2.y = 100; _local2.graphics.lineStyle(1, 0x8F8F8F); _local2.graphics.beginFill(0xE4E4E4); _local2.graphics.drawRoundRect(0, 0, (_-1x.width - 60), ((_-1x.height - _local2.y) - 30), 20, 20); _local2.graphics.endFill(); addChild(_local2); var _local3:DisplayObject = new _-2X(); _local3.scaleX = 4; _local3.scaleY = 1.25; _local3.x = 0; _local3.y = (15 - 90); addChild(_local3); _local4 = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 16313019; _local4.size = 42; _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; _-1D(_local5); _local5.x = ((_-1x.width - _local5.width) / 2); _local5.y = (30 - 90); 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 " + _-Cu._-3()._-0Q().toString()); _local5.width = (_local5.textWidth + 5); _local5.height = _local5.textHeight; _local5.x = ((_-1x.width - _local5.width) / 2); _local5.y = 100; addChild(_local5); var _local6:TextFormat = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = 0x8F8F8F; _local6.size = 20; var _local7:TextFormat = new TextFormat(); _local7.font = "embed_font_1"; _local7.color = 0xFFFFFF; _local7.size = 20; _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local6; _local5.selectable = false; _local5.mouseEnabled = true; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = "send score"; _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 = "send score"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; _-8O = new SimpleButton(_local5, _local8, _local8, _local8); _-8O.x = ((_-1x.width / 2) + 10); _-8O.y = (_-1x.height - 60); _-8O.addEventListener(MouseEvent.CLICK, _-6z); addChild(_-8O); _local5 = new TextField(); _local5.embedFonts = true; _local5.defaultTextFormat = _local6; _local5.selectable = false; _local5.mouseEnabled = true; _local5.antiAliasType = AntiAliasType.ADVANCED; _local5.text = "replay"; _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"; _local8.width = (_local8.textWidth + 5); _local8.height = _local8.textHeight; _-3c = new SimpleButton(_local5, _local8, _local8, _local8); _-3c.x = (((_-1x.width / 2) - 30) - _local8.width); _-3c.y = (_-1x.height - 60); addChild(_-3c); var _local9:DisplayObject = new _-Be(); addChild(_local9); _local9.scaleX = 1; _local9.scaleY = 0.75; _local9.x = 100; _local9.y = 140; _local4 = new TextFormat(); _local4.font = "embed_font_1"; _local4.color = 4731422; _local4.size = 20; _local6 = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = 16313019; _local6.size = 20; _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; _-1D(_local5); _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local4; _local8.selectable = false; _local8.mouseEnabled = true; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "more games"; _local8.width = (_local5.textWidth + 5); _local8.height = _local5.textHeight; _-1D(_local8); var _local10:DisplayObject = _-Bb(_local5); var _local11:DisplayObject = _-Bb(_local8); var _local12:SimpleButton = new SimpleButton(_local10, _local11, _local11, _local11); _local12.x = 125; _local12.y = 155; _local12.addEventListener(MouseEvent.CLICK, _-KR); addChild(_local12); } } }//package game
Section 90
//_-1R (game._-1R) package game { import flash.display.*; import flash.events.*; import flash.net.*; public class _-1R extends Sprite { private var _-2L:Class; private var _-Be:Class; public function _-1R(){ _-Be = _-0J; _-2L = _-3o; super(); var _local1:Sprite = new Sprite(); var _local2:DisplayObject = new _-2L(); _local2.scaleX = 0.85; _local2.scaleY = 0.65; _local1.addChild(_local2); var _local3:DisplayObject = new _-Be(); _local3.scaleX = 0.35; _local3.scaleY = 0.35; _local3.x = 38; _local3.y = 20; _local1.addChild(_local3); _local1.cacheAsBitmap = true; var _local4:SimpleButton = new SimpleButton(_local1, _local1, _local1, _local1); _local4.addEventListener(MouseEvent.CLICK, onClick); addChild(_local4); } protected function onClick(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=ingame-logo&utm_campaign=colliderix"); navigateToURL(_local2, "_blank"); } } }//package game
Section 91
//_-2 (game._-2) package game { import mx.core.*; public class _-2 extends SpriteAsset { } }//package game
Section 92
//_-24 (game._-24) package game { import mx.core.*; public class _-24 extends SpriteAsset { } }//package game
Section 93
//_-2A (game._-2A) package game { import mx.core.*; public class _-2A extends SpriteAsset { } }//package game
Section 94
//_-2B (game._-2B) package game { import mx.core.*; public class _-2B extends BitmapAsset { } }//package game
Section 95
//_-2b (game._-2b) package game { import mx.core.*; public class _-2b extends SpriteAsset { } }//package game
Section 96
//_-2f (game._-2f) package game { import mx.core.*; public class _-2f extends SpriteAsset { } }//package game
Section 97
//_-2k (game._-2k) package game { import mx.core.*; public class _-2k extends SpriteAsset { } }//package game
Section 98
//_-2s (game._-2s) package game { public class _-2s { 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_possible_remove:Boolean; public function _-2s(){ points = new Array(); is_static = false; is_possible_remove = false; collision_group = 0; material = 0; } } }//package game
Section 99
//_-2W (game._-2W) package game { import mx.core.*; public class _-2W extends BitmapAsset { } }//package game
Section 100
//_-3o (game._-3o) package game { import mx.core.*; public class _-3o extends SpriteAsset { } }//package game
Section 101
//_-40 (game._-40) package game { import mx.core.*; public class _-40 extends BitmapAsset { } }//package game
Section 102
//_-4B (game._-4B) package game { import flash.display.*; import flash.events.*; import flash.text.*; public class _-4B extends Sprite { private var _-7-:Class; protected var _-FM:SimpleButton; private var _-2X:Class; protected var _-5Q:Function; private var _-Be:Class; public function _-4B(_arg1:Function){ _-7- = _-2W; _-Be = _-Dw; _-2X = _-8J; super(); _-5Q = _arg1; var _local2:TextFormat = new TextFormat(); _local2.font = "embed_font_1"; _local2.color = 0xFFFFFF; _local2.size = 42; var _local3:TextField = new TextField(); _local3.embedFonts = true; _local3.defaultTextFormat = _local2; _local3.selectable = false; _local3.mouseEnabled = false; _local3.antiAliasType = AntiAliasType.ADVANCED; _local3.text = "how to play"; _local3.width = (_local3.textWidth + 5); _local3.height = _local3.textHeight; addChild(_local3); var _local4:DisplayObject = new _-7-(); _local3.x = ((_local4.width - _local3.width) / 2); _local3.y = -30; _local4.x = 0; _local4.y = 30; addChild(_local4); var _local5:DisplayObject = new _-Be(); var _local6:DisplayObject = new _-2X(); _-FM = new SimpleButton(_local5, _local6, _local6, _local6); _-FM.x = 130; _-FM.y = 310; _-FM.addEventListener(MouseEvent.CLICK, _-IV); addChild(_-FM); this.addEventListener(Event.ENTER_FRAME, _-E3); this.alpha = 0; } protected function _-E3(_arg1:Event):void{ } protected function _-IV(_arg1:MouseEvent):void{ _-FM.removeEventListener(MouseEvent.CLICK, _-IV); this.removeEventListener(Event.ENTER_FRAME, _-E3); _-5Q(); } } }//package game
Section 103
//_-4K (game._-4K) package game { import flash.display.*; import flash.events.*; public class _-4K extends Sprite { protected var b:Boolean; protected var counter:int; private var function:Class; private var _-I4:Class; protected var _-8t:DisplayObject; protected var _-Ks:DisplayObject; public function _-4K(){ function = _-I9; _-I4 = _-R; super(); _-8t = new function(); addChild(_-8t); _-8t.x = 280; _-8t.y = 80; _-Ks = new _-I4(); addChild(_-Ks); _-Ks.x = 85; _-Ks.y = 145; _-8t.alpha = 0; _-Ks.alpha = 0; counter = 0; b = true; addEventListener(Event.ENTER_FRAME, update); } protected function update(_arg1:Event):void{ counter++; if (counter < 30){ return; }; if (counter < 120){ _-8t.alpha = _-2t(_-8t.alpha, 1, 0.1); return; }; if (counter < 220){ return; }; _-Ks.alpha = _-2t(_-Ks.alpha, 1, 0.1); if (_-Ks.alpha > 0.999){ _-Ks.alpha = 1; b = false; removeEventListener(Event.ENTER_FRAME, update); }; } public function set():void{ counter = 0; if (!b){ b = true; addEventListener(Event.ENTER_FRAME, update); }; _-8t.alpha = 0; _-Ks.alpha = 0; } protected function _-2t(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } } }//package game
Section 104
//_-4t (game._-4t) package game { import mx.core.*; public class _-4t extends BitmapAsset { } }//package game
Section 105
//_-4x (game._-4x) package game { import mx.core.*; public class _-4x extends BitmapAsset { } }//package game
Section 106
//_-6 (game._-6) package game { import flash.display.*; import flash.events.*; import flash.net.*; import flash.filters.*; public class _-6 extends Sprite { protected var _-Bu:Function; protected var _-75:Number;// = 0 protected var _-F:Array; protected var sky:_-Al; protected var _-9W:int;// = 12 protected var _-t:SimpleButton; private var _-7-:Class; private var _-2L:Class; private var _-Be:Class; private var _-2X:Class; private var _-Gf:Class; private var _-B4:Class; protected var get:Array; public function _-6(_arg1:Function){ var _local2:DisplayObject; _-7- = _-16; _-2L = _-AI; _-Be = _-BA; _-2X = _-KJ; _-Gf = _-AS; _-B4 = _-24; _-F = new Array(); get = new Array(); super(); _local2 = new _-2X(); addChild(_local2); _local2.x = -320; _local2.y = -240; sky = new _-Al(); addChild(sky); sky.x = -320; sky.y = -240; init(); _local2 = new _-Be(); _-t = new SimpleButton(_local2, _local2, _local2, _local2); _-t.x = -80; _-t.y = -70; addChild(_-t); _-t.addEventListener(MouseEvent.CLICK, onClick); _-Bu = _arg1; } public function _-47():void{ removeEventListener(Event.ENTER_FRAME, update); } protected function _-5E(_arg1:Event):void{ _arg1.target.alpha = _-2t(_arg1.target.alpha, 1, 0.1); _arg1.target.y = _-2t(_arg1.target.y, 140, 0.1); if (_arg1.target.alpha > 0.999){ _arg1.target.alpha = 1; _arg1.target.removeEventListener(Event.ENTER_FRAME, _-5E); }; } public function _-F1():void{ var _local1:DisplayObject = new _-Gf(); var _local2:DisplayObject = new _-B4(); var _local3:SimpleButton = new SimpleButton(_local1, _local2, _local2, _local2); _local3.x = -75; _local3.y = 190; addChild(_local3); _local3.alpha = 0; _local3.addEventListener(MouseEvent.CLICK, _-Bu); _local3.addEventListener(Event.ENTER_FRAME, _-5E); } protected function update(_arg1:Event):void{ var _local2:int; var _local5:int; var _local6:Number; var _local7:itemBall; var _local9:BlurFilter; var _local3:int = _-9W; var _local4:Number = ((2 * Math.PI) / _local3); _-75 = (_-75 + (Math.PI / 90)); if (_-75 > (Math.PI * 2)){ _-75 = (_-75 - (Math.PI * 2)); }; removeChild(_-t); _local2 = 0; while (_local2 < _local3) { removeChild(_-F[_local2].sprite); _-F[_local2].angle = (_-F[_local2].angle + (Math.PI / 90)); if (_-F[_local2].angle > (Math.PI * 2)){ _-F[_local2].angle = (_-F[_local2].angle - (Math.PI * 2)); }; get[_local2] = Math.sin(_-F[_local2].angle); _local2++; }; _local2 = 0; while (_local2 < (_local3 - 1)) { _local5 = _local2; while (_local5 < _local3) { if ( get[_local5] > get[_local2]){ _local6 = get[_local2]; get[_local2] = get[_local5]; get[_local5] = _local6; _local7 = _-F[_local2]; _-F[_local2] = _-F[_local5]; _-F[_local5] = _local7; }; _local5++; }; _local2++; }; _local2 = 0; var _local8:int; while (_local2 < _local3) { addChild(_-F[_local8].sprite); _-F[_local8].sprite.scaleX = _-2t(1, 0.5, Math.sin(_-F[_local8].angle)); _-F[_local8].sprite.scaleY = _-F[_local8].sprite.scaleX; _-F[_local8].sprite.x = (125 * Math.cos(_-F[_local8].angle)); _-F[_local8].sprite.y = (35 + (25 * Math.sin((_-75 + (_-F[_local8].angle * 2))))); if (_local2 < int((_local3 / 2))){ _local9 = new BlurFilter(); _-F[_local8].sprite.filters = [_local9]; } else { _-F[_local8].sprite.filters = []; }; if (_local2 == int((_local3 / 2))){ addChild(_-t); }; _local2++; _local8++; }; } protected function init():void{ var _local1:int; var _local4:int; var _local6:itemBall; var _local2:int = _-9W; var _local3:Number = ((2 * Math.PI) / _local2); var _local5:Boolean; _local4 = 0; while (_local4 < _local2) { _local6 = new itemBall(); _local6.angle = ((_local4 * _local3) + _-75); if (_local5){ _local6.sprite = new _-7-(); } else { _local6.sprite = new _-2L(); }; _local5 = !(_local5); _-F[_local4] = _local6; addChild(_local6.sprite); _local4++; }; addEventListener(Event.ENTER_FRAME, update); } protected function _-2t(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return ((_arg1 + (_arg3 * (_arg2 - _arg1)))); } protected function onClick(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=loading&utm_campaign=colliderix"); navigateToURL(_local2, "_blank"); } } }//package game import flash.display.*; class itemBall { public var angle:Number; public var sprite:DisplayObject; private function itemBall(){ } }
Section 107
//_-6b (game._-6b) package game { import mx.core.*; public class _-6b extends SpriteAsset { } }//package game
Section 108
//_-6D (game._-6D) package game { import flash.media.*; public class _-6D { protected var _-43:Boolean;// = false private var _-5P:Class; protected var music:Sound; protected var _-GM:SoundChannel; protected static var _-3v:_-6D; public function _-6D(){ _-5P = soundManager_Sound1; super(); music = (new _-5P() as Sound); _-GM = music.play(0, int.MAX_VALUE); } public function else():void{ var _local1:SoundTransform = new SoundTransform(); _local1.volume = 0; SoundMixer.soundTransform = _local1; _-43 = true; } public function _-6n():void{ var _local1:SoundTransform = new SoundTransform(); _local1.volume = 1; SoundMixer.soundTransform = _local1; _-43 = false; } public function _-8v():Boolean{ return (_-43); } public static function getInstance():_-6D{ if (_-3v != null){ return (_-3v); }; _-3v = new (_-6D); return (_-3v); } } }//package game
Section 109
//_-74 (game._-74) package game { import mx.core.*; public class _-74 extends SpriteAsset { } }//package game
Section 110
//_-76 (game._-76) package game { import _-9S.*; import flash.utils.*; public class _-76 { protected var _-12:Array; private var _-Gj:Class; protected var data:ByteArray; public function _-76(){ _-Gj = _-EC; super(); data = (new _-Gj() as ByteArray); _-12 = new Array(); _-KZ(); } protected function _-KZ():void{ var _local1:int; var _local2:int; data.position = 0; _local1 = data.readInt(); _-12.length = _local1; _local2 = 0; while (_local2 < _local1) { _-12[_local2] = data.readInt(); _local2++; }; } public function _-Jv():int{ return (_-12.length); } public function _-Dl(_arg1:int, _arg2:_-06):Boolean{ var _local4:int; var _local5:_-CE; var _local6:int; var _local7:int; if (_arg1 >= _-12.length){ return (false); }; data.position = _-12[_arg1]; var _local3:int = data.readInt(); _arg2.points.length = _local3; if (_local3 != 0){ _local4 = 0; while (_local4 < _local3) { _local5 = new _-CE(); _local5.x = data.readFloat(); _local5.y = data.readFloat(); _arg2.points[_local4] = _local5; _local4++; }; }; _local3 = data.readInt(); _arg2._-Cr.length = _local3; if (_local3 != 0){ _local4 = 0; while (_local4 < _local3) { _arg2._-Cr[_local4] = new _-2s(); _arg2._-Cr[_local4].sprite = data.readInt(); _arg2._-Cr[_local4].is_static = data.readBoolean(); _arg2._-Cr[_local4].collision_group = data.readInt(); _arg2._-Cr[_local4].is_possible_remove = data.readBoolean(); _arg2._-Cr[_local4].material = data.readInt(); _local6 = data.readInt(); _arg2._-Cr[_local4].points.length = _local6; if (_local6 != 0){ _local7 = 0; while (_local7 < _local6) { _arg2._-Cr[_local4].points[_local7] = data.readInt(); _local7++; }; }; _local4++; }; }; _arg2.shift = new _-CE(); _arg2.shift.x = data.readFloat(); _arg2.shift.y = data.readFloat(); return (true); } } }//package game
Section 111
//_-7e (game._-7e) package game { import mx.core.*; public class _-7e extends BitmapAsset { } }//package game
Section 112
//_-7f (game._-7f) package game { import mx.core.*; public class _-7f extends SpriteAsset { } }//package game
Section 113
//_-7o (game._-7o) package game { import mochi.as3.*; import flash.display.*; import flash.events.*; public dynamic class _-7o extends Sprite { public function _-7o(){ if (stage){ _-8c(); } else { addEventListener(Event.ADDED_TO_STAGE, _-8c); }; } public function _-8c(_arg1:Event=null):void{ removeEventListener(Event.ADDED_TO_STAGE, _-8c); _-C6.connect("145751dc8c73f5c1", this); } } }//package game
Section 114
//_-7V (game._-7V) package game { import mx.core.*; public class _-7V extends SpriteAsset { } }//package game
Section 115
//_-7y (game._-7y) package game { import mx.core.*; public class _-7y extends SpriteAsset { } }//package game
Section 116
//_-81 (game._-81) package game { import flash.display.*; import flash.events.*; public class _-81 extends Sprite { protected var _-W:Function; private var function:Class; protected var _-7s:Boolean; private var _-7-:Class; private var _-2L:Class; private var _-Be:Class; protected var _-AB:SimpleButton; protected var _-8t:Sprite; protected var _-Ks:Sprite; public function _-81(_arg1:Function){ function = _-7e; _-7- = _-AW; _-2L = _-7V; _-Be = _-I6; super(); _-W = _arg1; _-7s = false; _-8t = new Sprite(); _-Ks = new Sprite(); var _local2:DisplayObject = new _-7-(); _-8t.addChild(_local2); var _local3:DisplayObject = new _-2L(); _local3.x = 8; _local3.y = 7; _-8t.addChild(_local3); _local2 = new _-7-(); _-Ks.addChild(_local2); _local3 = new _-Be(); _local3.x = 8; _local3.y = 7; _-Ks.addChild(_local3); _-AB = new SimpleButton(_-8t, _-Ks, _-Ks, _-Ks); addChild(_-AB); _-AB.addEventListener(MouseEvent.CLICK, _-1B); } protected function _-1B(_arg1:MouseEvent):void{ if (_-W != null){ _-W(); }; } } }//package game
Section 117
//_-87 (game._-87) package game { import mx.core.*; public class _-87 extends SpriteAsset { } }//package game
Section 118
//_-8f (game._-8f) package game { import mx.core.*; public class _-8f extends BitmapAsset { } }//package game
Section 119
//_-8J (game._-8J) package game { import mx.core.*; public class _-8J extends SpriteAsset { } }//package game
Section 120
//_-8L (game._-8L) package game { import mx.core.*; public class _-8L extends BitmapAsset { } }//package game
Section 121
//_-8x (game._-8x) package game { import mx.core.*; public class _-8x extends SpriteAsset { } }//package game
Section 122
//_-9v (game._-9v) package game { import flash.display.*; import flash.events.*; import flash.text.*; public class _-9v extends Sprite { private var _-7-:Class; private var _-Be:Class; protected var _-2K:DisplayObject; protected var _-5Q:Function; protected var _-AB:SimpleButton; private var _-2X:Class; public function _-9v(_arg1:Function){ _-7- = _-40; _-Be = else; _-2X = _-C8; super(); _-5Q = _arg1; var _local2:TextFormat = new TextFormat(); _local2.font = "embed_font_1"; _local2.color = 0xFFFFFF; _local2.size = 42; var _local3:TextField = new TextField(); _local3.embedFonts = true; _local3.defaultTextFormat = _local2; _local3.selectable = false; _local3.mouseEnabled = false; _local3.antiAliasType = AntiAliasType.ADVANCED; _local3.text = "about"; _local3.width = (_local3.textWidth + 5); _local3.height = _local3.textHeight; addChild(_local3); var _local4:DisplayObject = new _-7-(); _local3.x = ((_local4.width - _local3.width) / 2); _local3.y = -35; _local4.x = 0; _local4.y = 20; addChild(_local4); var _local5:DisplayObject = new _-Be(); var _local6:DisplayObject = new _-2X(); _-AB = new SimpleButton(_local5, _local6, _local6, _local6); _-AB.x = 130; _-AB.y = 310; _-AB.addEventListener(MouseEvent.CLICK, _-4q); addChild(_-AB); this.alpha = 0; } protected function _-4q(_arg1:MouseEvent):void{ _-AB.removeEventListener(MouseEvent.CLICK, _-4q); _-5Q(); } } }//package game
Section 123
//_-AI (game._-AI) package game { import mx.core.*; public class _-AI extends SpriteAsset { } }//package game
Section 124
//_-Al (game._-Al) package game { import flash.display.*; import flash.events.*; import flash.geom.*; public class _-Al extends Sprite { var _-Jn:Number; private var function:Class; private var _-I4:Class; private var _-2-:Class; var sky1:DisplayObject; var sky2:DisplayObject; var _-4e:Bitmap; var _-FY:Number; var in :Number; public function _-Al(){ function = _-74; _-I4 = _-Hx; _-2- = _-DT; super(); _-4e = new Bitmap(new BitmapData(640, 480, true, 0)); addChild(_-4e); init(); this.addEventListener(Event.ENTER_FRAME, _-E3); } protected function _-E3(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); _-Jn = _local3; sky1.x = (sky1.x + _-FY); sky2.x = (sky2.x + in ); if (sky1.x > 640){ sky1 = _-Gx(); sky1.x = -((150 + (Math.random() * 50))); sky1.y = (50 + (Math.random() * 100)); _-FY = (1 + (Math.random() * 3)); }; if (sky2.x > 640){ sky2 = _-Gx(); sky2.x = -((150 + (Math.random() * 50))); sky2.y = (50 + (Math.random() * 100)); in = (1 + (Math.random() * 3)); }; var _local4:Sprite = new Sprite(); _local4.addChild(sky1); _local4.addChild(sky2); _-4e.bitmapData.fillRect(new Rectangle(0, 0, 640, 480), 0); _-4e.bitmapData.draw(_local4); } protected function _-Gx():DisplayObject{ var _local1:int = Math.floor((Math.random() * 3)); switch (_local1){ case 0: return (new function()); case 1: return (new _-I4()); case 2: return (new _-2-()); }; return (new function()); } protected function init():void{ sky1 = _-Gx(); sky1.x = -((150 + (Math.random() * 50))); sky1.y = (50 + (Math.random() * 100)); _-FY = (1 + (Math.random() * 3)); sky2 = _-Gx(); sky2.x = -((150 + (Math.random() * 50))); sky2.y = (50 + (Math.random() * 100)); in = (1 + (Math.random() * 3)); } } }//package game
Section 125
//_-AS (game._-AS) package game { import mx.core.*; public class _-AS extends SpriteAsset { } }//package game
Section 126
//_-AW (game._-AW) package game { import mx.core.*; public class _-AW extends SpriteAsset { } }//package game
Section 127
//_-BA (game._-BA) package game { import mx.core.*; public class _-BA extends SpriteAsset { } }//package game
Section 128
//_-BF (game._-BF) package game { import mx.core.*; public class _-BF extends SpriteAsset { } }//package game
Section 129
//_-BO (game._-BO) package game { import mx.core.*; public class _-BO extends BitmapAsset { } }//package game
Section 130
//_-BW (game._-BW) package game { import mx.core.*; public class _-BW extends SpriteAsset { } }//package game
Section 131
//_-C8 (game._-C8) package game { import mx.core.*; public class _-C8 extends SpriteAsset { } }//package game
Section 132
//_-Ce (game._-Ce) package game { import mx.core.*; public class _-Ce extends SpriteAsset { } }//package game
Section 133
//_-CI (game._-CI) package game { import mx.core.*; public class _-CI extends SpriteAsset { } }//package game
Section 134
//_-Cu (game._-Cu) package game { import flash.net.*; public class _-Cu { protected var _-IW:Array; protected var _-F-:Boolean; protected var _-S:int; protected var _-Hy:int; protected var native:int;// = 0 private static var _-0D:_-Cu = null; public function _-Cu(_arg1:int){ var _local2:int; super(); _-IW = new Array(); _-IW.length = _arg1; _-S = _arg1; _local2 = 0; while (_local2 < _arg1) { _-IW[_local2] = 0; _local2++; }; _-F- = false; _-9w(); } public function _-9G(_arg1:int):void{ if (_arg1 > native){ native = _arg1; _-4X(); }; } public function _-KP():Boolean{ return (_-F-); } protected function _-4X():void{ var _local2:uint; var _local3:uint; var _local1:SharedObject = SharedObject.getLocal("turbrono/game/002"); _local3 = _-IW.length; _local1.data.my_items = _-IW; _local1.data.magic = native; _local1.flush(); _local1.close(); } public function _-0Q():uint{ var _local1:uint; var _local2:uint; var _local3:uint; _local2 = _-IW.length; _local3 = 0; _local1 = 0; while (_local1 < _local2) { _local3 = (_local3 + _-IW[_local1]); _local1++; }; return (_local3); } public function _-0V(_arg1:uint, _arg2:uint):void{ var _local3:uint = _-IW[_arg1]; _-Hy = _arg2; if (_arg2 > _local3){ _-IW[_arg1] = _arg2; _-F- = true; _-4X(); }; } public function _-IX():void{ _-F- = false; } protected function _-9w():void{ var _local2:uint; var _local3:uint; var _local4:uint; var _local1:SharedObject = SharedObject.getLocal("turbrono/game/002"); _local3 = _-IW.length; if (_local1.data["my_items"] != null){ _-IW = _local1.data.my_items; }; if (_local1.data["magic"] != null){ native = _local1.data.magic; }; _local1.close(); } public function _-CG():int{ return (native); } public function _-1c():int{ return (_-Hy); } public static function _-3():_-Cu{ if (_-0D == null){ _-0D = new _-Cu(40); return (_-0D); }; return (_-0D); } } }//package game
Section 135
//_-Cv (game._-Cv) package game { import mx.core.*; public class _-Cv extends SpriteAsset { } }//package game
Section 136
//_-Dn (game._-Dn) package game { import mx.core.*; public class _-Dn extends BitmapAsset { } }//package game
Section 137
//_-Ds (game._-Ds) package game { import flash.display.*; import flash.events.*; public class _-Ds extends Sprite { var _-95:_-81; var _-9j:int; var _-52:_-Er; var _-1T:_-1a; var _-H4:_-1R; public function _-Ds(){ _-1T = new _-1a(); addChild(_-1T); _-9j = 0; _-6D.getInstance(); this.addEventListener(Event.ENTER_FRAME, _-E3); } protected function _-E3(_arg1:Event):void{ var _local2:int; var _local3:Boolean; switch (_-9j){ case 0: if (_-1T._-27){ _local2 = _-1T._-Io; _-9j = 1; removeChild(_-1T); _-1T._-3k(); _-1T = null; _-52 = new _-Er(); addChild(_-52); _-95 = new _-81(_-BD); addChild(_-95); _-95.x = 10; _-95.y = 445; _-H4 = new _-1R(); addChild(_-H4); _-H4.x = 10; _-H4.y = 10; _local3 = _-52._-9i(_local2); }; return; case 1: if (_-52._-0Y){ removeChild(_-52); _-52 = null; removeChild(_-95); _-95 = null; removeChild(_-H4); _-H4 = null; _-1T = new _-1a(); addChild(_-1T); _-9j = 0; }; return; }; } protected function _-BD():void{ if (_-6D.getInstance()._-8v()){ _-6D.getInstance()._-6n(); } else { _-6D.getInstance().else(); }; } } }//package game
Section 138
//_-DT (game._-DT) package game { import mx.core.*; public class _-DT extends SpriteAsset { } }//package game
Section 139
//_-Dv (game._-Dv) package game { import mx.core.*; public class _-Dv extends BitmapAsset { } }//package game
Section 140
//_-Dw (game._-Dw) package game { import mx.core.*; public class _-Dw extends SpriteAsset { } }//package game
Section 141
//_-EC (game._-EC) package game { import mx.core.*; public class _-EC extends ByteArrayAsset { } }//package game
Section 142
//_-Er (game._-Er) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; import flash.filters.*; public class _-Er extends Sprite { protected var level:_-06; public var _-0Y:Boolean;// = false protected var _-57:_-1o; protected var _-26:Sprite; protected var _-IL:_-I5; private var function:Class; private var _-I4:Class; private var _-2-:Class; private var _-Kr:Class; private var _-7-:Class; private var _-2L:Class; private var _-Be:Class; protected var _-FW:Number; private var default:Class; protected var _-Db:Boolean;// = false protected var sky:DisplayObject; protected var _-Ae:DisplayObject; protected var _-Gt:int; protected var _-Hr:Boolean;// = true protected var _-EJ:TextField; protected var _-5h:int; protected var _-Ja:_-FZ; protected var _-D6:_-76; protected var _-7v:_-4K; public function _-Er(){ var _local2:Bitmap; var _local3:Bitmap; var _local4:Sprite; var _local7:TextField; var _local8:TextField; function = _-0d; _-I4 = _-KO; _-2- = _-8f; _-Kr = _-z; default = _-8x; _-7- = set; _-2L = _-1A; _-Be = _-Cv; super(); _-26 = new Sprite(); addChild(_-26); _-Ae = new default(); _-Ae.width = 640; _-Ae.height = 480; _-26.addChild(_-Ae); _-Hr = true; sky = new _-Al(); _-26.addChild(sky); _-IL = new _-I5(); addChild(_-IL); _-IL._-9X = _-Ca; _-IL._-9V = _-7N; _-D6 = new _-76(); _-Gt = _-D6._-Jv(); level = new _-06(); this.addEventListener(MouseEvent.MOUSE_DOWN, _-8a); if (stage){ _-0u(null); } else { this.addEventListener(Event.ADDED_TO_STAGE, _-0u); }; _-Ja = new _-FZ(); _-Ja.x = ((640 / 2) - 140); _-Ja.y = (450 - 3); addChild(_-Ja); var _local1:DisplayObject = new _-7-(); _local1.x = (640 - _local1.width); _local1.y = (480 - _local1.height); addChild(_local1); _local1 = new _-2L(); _local1.scaleX = 0.85; _local1.scaleY = 0.5; _local1.x = 60; _local1.y = (480 - _local1.height); addChild(_local1); _local1 = new _-2L(); _local1.scaleX = 0.85; _local1.scaleY = 0.5; _local1.x = (640 - _local1.width); _local1.y = 10; addChild(_local1); var _local5:TextFormat = new TextFormat(); _local5.font = "embed_font_1"; _local5.color = 4731422; _local5.size = 20; var _local6:TextFormat = new TextFormat(); _local6.font = "embed_font_1"; _local6.color = 16313019; _local6.size = 20; _local7 = new TextField(); _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.text = "restart level"; _local7.width = (_local7.textWidth + 5); _local7.height = _local7.textHeight; _-1D(_local7); _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local5; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "restart level"; _local8.width = (_local7.textWidth + 5); _local8.height = _local7.textHeight; _-1D(_local8); var _local9:SimpleButton = new SimpleButton(_local7, _local8, _local8, _local8); _local9.x = 490; _local9.y = 450; addChild(_local9); _local9.addEventListener(MouseEvent.CLICK, _-3F); _local7 = new TextField(); _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.text = "menu"; _local7.width = (_local7.textWidth + 5); _local7.height = _local7.textHeight; _-1D(_local7); _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local5; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "menu"; _local8.width = (_local7.textWidth + 5); _local8.height = _local7.textHeight; _-1D(_local8); _local9 = new SimpleButton(_local7, _local8, _local8, _local8); _local9.x = 75; _local9.y = 450; addChild(_local9); _local9.addEventListener(MouseEvent.CLICK, _-CV); _local7 = new TextField(); _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.text = "0"; _local7.width = (_local7.textWidth + 5); _local7.height = _local7.textHeight; _-1D(_local7); _local7.x = (600 - _local7.width); _local7.y = 12; addChild(_local7); _-EJ = _local7; _local7 = new TextField(); _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.text = "hint"; _local7.width = (_local7.textWidth + 5); _local7.height = _local7.textHeight; _-1D(_local7); _local8 = new TextField(); _local8.embedFonts = true; _local8.defaultTextFormat = _local5; _local8.selectable = false; _local8.mouseEnabled = false; _local8.antiAliasType = AntiAliasType.ADVANCED; _local8.text = "hint"; _local8.width = (_local7.textWidth + 5); _local8.height = _local7.textHeight; _-1D(_local8); _local9 = new SimpleButton(_local7, _local8, _local8, _local8); _local9.x = 410; _local9.y = 450; addChild(_local9); _local9.addEventListener(MouseEvent.CLICK, _-D0); _local7 = new TextField(); _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.text = ("/ " + _-Gt.toString()); _local7.width = (_local7.textWidth + 5); _local7.height = _local7.textHeight; _-1D(_local7); _local7.x = 595; _local7.y = 12; addChild(_local7); _local7 = new TextField(); _local7.embedFonts = true; _local7.defaultTextFormat = _local6; _local7.selectable = false; _local7.mouseEnabled = false; _local7.antiAliasType = AntiAliasType.ADVANCED; _local7.text = "level"; _local7.width = (_local7.textWidth + 5); _local7.height = _local7.textHeight; _-1D(_local7); _local7.x = 500; _local7.y = 12; addChild(_local7); } protected function _-Fy():void{ if (((((_-5h % 4) == 0)) && (!((_-5h == 0))))){ if (_-Hr){ _-26.removeChild(_-Ae); _-26.removeChild(sky); } else { return; }; _-Ae = new _-Be(); _-26.addChild(_-Ae); _-Ae.width = 640; _-Ae.height = 480; sky = new var(); _-26.addChild(sky); _-Hr = false; } else { if (_-Hr){ return; }; _-26.removeChild(_-Ae); _-26.removeChild(sky); _-Ae = new default(); _-26.addChild(_-Ae); _-Ae.width = 640; _-Ae.height = 480; sky = new _-Al(); _-26.addChild(sky); _-Hr = true; }; } protected function _-D0(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://www.bgames.com/sponsor/colliderix.html?utm_source=sponsor_game&utm_medium=hints&utm_campaign=colliderix"); navigateToURL(_local2, "_blank"); } protected function _-3F(_arg1:MouseEvent):void{ var _local2:Date; var _local3:Number; if (_-Db){ _-IL._-G6(level); _-IL.x = -(level.shift.x); _-IL.y = -(level.shift.y); _local2 = new Date(); _local3 = _local2.getTime(); _-FW = _local3; _-Ja._-8M(_local3, _-5h); if (_-5h == 0){ _-7v.set(); }; _-Co(); }; } protected function _-8Q(_arg1:MouseEvent):void{ if ((_-5h + 1) != _-Gt){ _-9i((_-5h + 1)); } else { _-9i(0); }; _-Co(); _-Fy(); } protected function _-2R():void{ _-EJ.text = int((_-5h + 1)).toString(); _-EJ.width = (_-EJ.textWidth + 5); _-EJ.x = (595 - _-EJ.width); } protected function _-Co():void{ if (_-57){ _-57._-3c.removeEventListener(MouseEvent.CLICK, _-3F); if (_-57.extends != null){ _-57.extends.removeEventListener(MouseEvent.CLICK, _-8Q); }; removeChild(_-57); _-57 = null; }; } protected function _-Ca():void{ var _local1:_-Cu = _-Cu._-3(); var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); var _local4:int = Math.ceil(((_local3 - _-FW) / 1000)); if (_local4 <= 60){ _local4 = (((61 - _local4) * 16) + (_-5h * 10)); } else { _local4 = (_-5h * 10); }; _local1._-0V(_-5h, _local4); if ((_-5h + 1) != _-Gt){ _local1._-9G((_-5h + 1)); }; _-Ja.update(_local3); _-Ja._-47(); var _local5 = (_-Gt == (_-5h + 1)); _-57 = new _-1o(150, _local5); _-57.y = 100; _-57.x = 125; _-57._-3c.addEventListener(MouseEvent.CLICK, _-3F); if (!_local5){ _-57.extends.addEventListener(MouseEvent.CLICK, _-8Q); }; addChild(_-57); } protected function _-0u(_arg1:Event):void{ stage.addEventListener(KeyboardEvent.KEY_DOWN, _-7H); stage.focus = stage; } protected function _-CV(_arg1:MouseEvent):void{ _-0Y = true; _-Co(); } public function _-9i(_arg1:int):Boolean{ var _local2:Boolean = _-D6._-Dl(_arg1, level); if (!_local2){ return (_local2); }; _-IL._-G6(level); _-IL.x = -(level.shift.x); _-IL.y = -(level.shift.y); if (_arg1 == 0){ _-7v = new _-4K(); _-IL.addChild(_-7v); } else { if (_-7v != null){ _-IL.removeChild(_-7v); }; _-7v = null; }; var _local3:Date = new Date(); var _local4:Number = _local3.getTime(); _-FW = _local4; _-Ja._-8M(_local4, _arg1); _-5h = _arg1; _-Db = true; _-2R(); _-Fy(); return (true); } protected function _-0K(_arg1:MouseEvent):void{ } protected function _-8a(_arg1:MouseEvent):void{ if (_-Db){ _-IL._-2F(_arg1); }; } protected function _-7H(_arg1:KeyboardEvent):void{ var _local2:Date; var _local3:Number; if (_arg1.keyCode == 82){ if (_-Db){ _-IL._-G6(level); _-IL.x = -(level.shift.x); _-IL.y = -(level.shift.y); _local2 = new Date(); _local3 = _local2.getTime(); _-FW = _local3; _-Ja._-8M(_local3, _-5h); if (_-5h == 0){ _-7v.set(); }; _-Co(); }; }; } protected function _-1D(_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 _-7N():void{ _-IL._-G6(level); _-IL.x = -(level.shift.x); _-IL.y = -(level.shift.y); var _local1:Date = new Date(); var _local2:Number = _local1.getTime(); _-FW = _local2; _-Ja._-8M(_local2, _-5h); if (_-5h == 0){ _-7v.set(); }; } protected function _-BX(_arg1:MouseEvent):void{ } } }//package game
Section 143
//_-f (game._-f) package game { import mx.core.*; public class _-f extends SpriteAsset { } }//package game
Section 144
//_-Fh (game._-Fh) package game { import mx.core.*; public class _-Fh extends SpriteAsset { } }//package game
Section 145
//_-FK (game._-FK) package game { import flash.display.*; import flash.events.*; public class _-FK extends Sprite { protected var _-IW:Array; public function _-FK(){ _-IW = new Array(); addEventListener(Event.ENTER_FRAME, update); } protected function update(_arg1:Event):void{ var _local3:int; var _local6:Number; var _local2:int = _-IW.length; if (_local2 == 0){ return; }; var _local4:Date = new Date(); var _local5:Number = _local4.getTime(); _local3 = 0; while (_local3 < _local2) { if ((_local5 - _-IW[_local3].create_time) >= _-IW[_local3].live_time){ this.removeChild(_-IW[_local3].sprite); _-IW[_local3].sprite = null; _-IW.splice(_local3, 1); _-IW.length = (_local2 - 1); return; }; _local6 = ((_local5 - _-IW[_local3].create_time) / _-IW[_local3].live_time); _-IW[_local3].sprite.alpha = ((_-IW[_local3].live_time - (_local5 - _-IW[_local3].create_time)) / _-IW[_local3].live_time); _local3++; }; } public function _-Ik(_arg1:DisplayObject, _arg2:Number=500):void{ var _local3:int = _-IW.length; _-IW.length = (_local3 + 1); var _local4:Date = new Date(); var _local5:Number = _local4.getTime(); _-IW[_local3] = new EffectItem(); _-IW[_local3].sprite = _arg1; _-IW[_local3].create_time = _local5; _-IW[_local3].live_time = _arg2; addChild(_-IW[_local3].sprite); } } }//package game import flash.display.*; class EffectItem { private var create_time:Number; private var sprite:DisplayObject; private var live_time:Number;// = 500 private function EffectItem(){ } }
Section 146
//_-FZ (game._-FZ) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.filters.*; public class _-FZ extends Sprite { protected var _-Ax:TextField; protected var _-BG:int; private var _-7-:Class; protected var _-Y:Number; protected var _-8H:Boolean;// = false public function _-FZ(){ _-7- = _-HU; super(); var _local1:DisplayObject = new _-7-(); _local1.scaleX = (2.5 * 0.85); _local1.scaleY = 0.5; addChild(_local1); var _local2:TextFormat = new TextFormat(); _local2.font = "embed_font_1"; _local2.color = 4731422; _local2.size = 20; var _local3:TextFormat = new TextFormat(); _local3.font = "embed_font_1"; _local3.color = 16313019; _local3.size = 20; _-Ax = new TextField(); _-Ax.embedFonts = true; _-Ax.defaultTextFormat = _local3; _-Ax.selectable = false; _-Ax.mouseEnabled = false; _-Ax.antiAliasType = AntiAliasType.ADVANCED; _-Ax.text = ""; _-Ax.width = (_-Ax.textWidth + 5); _-Ax.height = _-Ax.textHeight; _-1D(_-Ax); addChild(_-Ax); var _local4:TextField = new TextField(); _local4.embedFonts = true; _local4.defaultTextFormat = _local3; _local4.selectable = false; _local4.mouseEnabled = false; _local4.antiAliasType = AntiAliasType.ADVANCED; _local4.text = "Time Bonus: "; _local4.width = (_local4.textWidth + 5); _local4.height = _local4.textHeight; _local4.x = 20; _local4.y = 3; _-1D(_local4); _-Ax.x = (_local4.x + _local4.width); _-Ax.y = _local4.y; addChild(_local4); } protected function _-HG(_arg1:Event):void{ var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); update(_local3); } public function _-47():void{ if (_-8H){ removeEventListener(Event.ENTER_FRAME, _-HG); }; _-8H = false; } protected function _-1D(_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 _-8M(_arg1:Number, _arg2:int):void{ _-Y = _arg1; _-BG = _arg2; if (_-8H){ removeEventListener(Event.ENTER_FRAME, _-HG); }; _-8H = true; addEventListener(Event.ENTER_FRAME, _-HG); } public function update(_arg1:Number):void{ var _local2:int = Math.ceil(((_arg1 - _-Y) / 1000)); if (_local2 <= 60){ _local2 = (((61 - _local2) * 16) + (_-BG * 10)); } else { _local2 = (_-BG * 10); }; _-Ax.text = _local2.toString(); _-Ax.width = (_-Ax.textWidth + 5); _-Ax.height = _-Ax.textHeight; } } }//package game
Section 147
//_-Gl (game._-Gl) package game { import mx.core.*; public class _-Gl extends BitmapAsset { } }//package game
Section 148
//_-GO (game._-GO) package game { import mx.core.*; public class _-GO extends BitmapAsset { } }//package game
Section 149
//_-GP (game._-GP) package game { import mx.core.*; public class _-GP extends BitmapAsset { } }//package game
Section 150
//_-HR (game._-HR) package game { import mx.core.*; public class _-HR extends BitmapAsset { } }//package game
Section 151
//_-HU (game._-HU) package game { import mx.core.*; public class _-HU extends SpriteAsset { } }//package game
Section 152
//_-Hx (game._-Hx) package game { import mx.core.*; public class _-Hx extends SpriteAsset { } }//package game
Section 153
//_-I5 (game._-I5) package game { import _-9S.*; import Box2D.Collision.*; import flash.display.*; import _-Cd.*; import _-5v.*; import flash.events.*; import test.*; import flash.geom.*; import _-Hd.*; public class _-I5 extends Sprite { protected var _-HS:int; public var _-9V:Function; protected var _-67:Sprite; private var _-ID:Class; protected var _-Jn:Number; protected var _-IL:_-Hp; private var _-I4:Class; private var _-2-:Class; private var _-Kr:Class; private var default:Class; private var _-4C:Class; private var _-Gd:Class; protected var it:_-06; protected var _-3G:_-FK; protected var _-EN:Bitmap; protected var _-4H:Sprite; public var _-9X:Function; protected var _-9a:finally; protected var _-V:Number;// = 30 protected var _-5C:Boolean;// = false protected var _-6u:int; protected var _-HK:myContactListener; public function _-I5(){ _-ID = _-Q; _-I4 = _-BW; _-2- = _-4x; _-Kr = _-2B; default = _-8L; _-4C = _-Jq; _-Gd = _-2f; super(); it = null; _-V = 30; _-67 = new Sprite(); addChild(_-67); _-67.mouseChildren = false; _-4H = new Sprite(); addChild(_-4H); _-EN = (new _-ID() as Bitmap); _-5A(); addEventListener(Event.ENTER_FRAME, update); var _local1:Date = new Date(); var _local2:Number = _local1.getTime(); _-Jn = _local2; _-3G = new _-FK(); addChild(_-3G); } public function _-2F(_arg1:MouseEvent):void{ var _local2:_-7S = _-DN(true); if (_local2 == null){ return; }; if (!_local2.m_userData.is_possible_remove){ return; }; _-67.removeChild(_local2.m_userData); _-3G._-Ik(_local2.m_userData, 100); _-IL._-Bj(_local2); _local2 = null; var _local3:_-JC = new _-JC(mouseX, mouseY, 10, 25, 250); _-3G._-Ik(_local3, 250); } public function _-G6(_arg1:_-06):void{ var _local3:int; var _local4:int; var _local5:_-D3; var _local6:_-EZ; var _local7:_-7S; var _local8:_-Kt; var _local9:int; var _local10:_-CE; var _local11:_-CE; var _local12:_-Bp; var _local13:_-Bp; var _local14:int; var _local15:int; it = _arg1; var _local2:int = it._-Cr.length; if (_local2 == 0){ return; }; _-Ek(); _-5A(); _local3 = 0; while (_local3 < _local2) { _local4 = it._-Cr[_local3].points.length; if (_local4 <= 1){ } else { _local5 = new _-D3(); _local5.position.Set(0, 0); if (_local4 == 2){ _local8 = new _-Kt(); _local6 = _local8; if (it._-Cr[_local3].is_static){ _local8.density = 0; } else { _local8.density = 1; }; _-A3(_local6, it._-Cr[_local3].material); _local9 = it._-Cr[_local3].points[0]; _local10 = it.points[_local9].Copy(); _local11 = _local10.Copy(); _local9 = it._-Cr[_local3].points[1]; _local10.Add(it.points[_local9]); _local11._-6K(it.points[_local9]); _local10.Multiply((0.5 / _-V)); _local5.position = _local10.Copy(); _local8.radius = ((_local11.class() * 0.5) / _-V); _local12 = _-HP(64, _local8.radius); _local5.userData = new _-JF(_-99(it._-Cr[_local3].sprite), _local12, _-V, (it._-Cr[_local3].collision_group == 0), 4, _-IU(it._-Cr[_local3].sprite), (it._-Cr[_local3].collision_group == 0), !((it._-Cr[_local3].collision_group == 0))); _local5.userData.is_possible_remove = it._-Cr[_local3].is_possible_remove; _local5.userData.collision_group = it._-Cr[_local3].collision_group; _-67.addChild(_local5.userData); } else { _local13 = new _-Bp(); _local6 = _local13; if (it._-Cr[_local3].is_static){ _local6.density = 0; } else { _local6.density = 1; }; _-A3(_local6, it._-Cr[_local3].material); _local13.vertexCount = _local4; _local14 = 0; while (_local14 < _local4) { _local15 = it._-Cr[_local3].points[_local14]; _local13.vertices[_local14] = it.points[_local15].Copy(); _local13.vertices[_local14].Multiply((1 / _-V)); _local14++; }; _local5.userData = new _-JF(case(it._-Cr[_local3].sprite), _local13, _-V, true, 4, _-IU(it._-Cr[_local3].sprite), ((!((it._-Cr[_local3].collision_group == 0))) || ((it._-Cr[_local3].sprite == 4)))); _local5.userData.is_possible_remove = it._-Cr[_local3].is_possible_remove; _local5.userData.collision_group = it._-Cr[_local3].collision_group; _-67.addChild(_local5.userData); }; _local7 = _-IL._-9U(_local5); _local7._-Ep(_local6); _local7._-5O(); _local7.m_mass = (_local7.m_mass * 100); }; _local3++; }; _-7l(); _-D4(); } public function _-DN(_arg1:Boolean=false):_-7S{ var _local11:_-Ai; var _local12:Boolean; var _local2:_-CE = new _-CE(); var _local3:Number = (mouseX / _-V); var _local4:Number = (mouseY / _-V); _local2.Set(_local3, _local4); var _local5:_-1S = new _-1S(); _local5._-Fu.Set((_local3 - 0.001), (_local4 - 0.001)); _local5._-1I.Set((_local3 + 0.001), (_local4 + 0.001)); var _local6 = 10; var _local7:Array = new Array(); var _local8:int = _-IL._-H0(_local5, _local7, _local6); var _local9:_-7S; var _local10:int; while (_local10 < _local8) { if ((((_local7[_local10].GetBody().IsStatic() == false)) || (_arg1))){ _local11 = (_local7[_local10] as _-Ai); _local12 = (_local7[_local10] as _-Ai).TestPoint(_local11.GetBody()._-GN(), _local2); if (_local12){ _local9 = _local11.GetBody(); break; }; }; _local10++; }; return (_local9); } protected function _-A3(_arg1:_-EZ, _arg2:int):void{ switch (_arg2){ case 0: _arg1._-4T = 0.9; _arg1._-Gq = 0; return; case 1: _arg1._-4T = 0.9; _arg1._-Gq = 0.3; return; case 2: _arg1._-4T = 0.5; _arg1._-Gq = 0; return; case 3: _arg1._-4T = 0.5; _arg1._-Gq = 0.3; return; }; } public function case(_arg1:int):Class{ switch (_arg1){ case 0: return (_-I4); case 1: return (_-ID); case 2: return (_-2-); case 3: return (_-Kr); case 4: return (default); }; return (null); } public function _-50(_arg1:MouseEvent):void{ _-5C = true; _-4H.graphics.clear(); _-9a._-3a.p1 = new _-CE((mouseX / _-V), (mouseY / _-V)); } public function _-H2(_arg1:MouseEvent):void{ if (!_-5C){ return; }; _-4H.graphics.clear(); _-4H.graphics.lineStyle(5, 0xFF0000); _-4H.graphics.moveTo((_-9a._-3a.p1.x * _-V), (_-9a._-3a.p1.y * _-V)); _-4H.graphics.lineTo(mouseX, mouseY); } protected function _-Cf():void{ var _local2:int; var _local3:_-7S; var _local1:int = _-HK.shapes.length; if (_local1 == 0){ return; }; _local2 = 0; while (_local2 < _local1) { _local3 = _-HK.shapes[_local2].m_body; _-67.removeChild(_local3.m_userData); _-3G._-Ik(_local3.m_userData); _local3.m_userData = null; _-IL._-Bj(_local3); _local3 = null; _-HS++; _local2++; }; _-HK.shapes.length = 0; if (_-HS == _-6u){ if (_-9X != null){ _-9X(); }; }; } protected function _-D4():void{ var _local2:_-CE; var _local3:Number; var _local4:Matrix; var _local5:_-JY; var _local6:_-CE; var _local1:_-7S = _-IL._-8e; while (_local1) { if ((_local1.m_userData is DisplayObject)){ _local2 = _local1._-FA(); _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 _-JY(_local3); _local6 = _-Fk._-6N(_local5, _local1.m_userData.magic_shift); _local4.tx = (_local4.tx + ((_local2.x * _-V) + _local6.x)); _local4.ty = (_local4.ty + ((_local2.y * _-V) + _local6.y)); _local1.m_userData.transform.matrix = _local4; }; _local1 = _local1._-Fv; }; } public function _-HP(_arg1:int, _arg2:Number):_-Bp{ var _local4:int; var _local5:Number; var _local6:Number; var _local3:_-Bp = new _-Bp(); _local3.vertexCount = _arg1; _local5 = ((Math.PI * 2) / _arg1); _local6 = 0; _local4 = 0; while (_local4 < _arg1) { _local3.vertices[_local4] = new _-CE((Math.cos(_local6) * _arg2), (Math.sin(_local6) * _arg2)); _local6 = (_local6 + _local5); _local4++; }; return (_local3); } protected function update(_arg1:Event):void{ if (_-IL == null){ return; }; var _local2:Date = new Date(); var _local3:Number = _local2.getTime(); _-Jn = _local3; _-IL._-GQ((1 / 30), 10); _-D4(); _-Cf(); _-0T(); } protected function _-5S():void{ var _local1:_-7S; var _local2:_-7S; var _local3:_-D3; var _local4:_-Bp; _local3 = new _-D3(); _local3.position.Set(27, 10); _local4 = new _-Bp(); _local4._-At(0.25, 10); _local4._-4T = 0.3; _local4.density = 0; _local4._-E- = true; _local3.userData = null; _local1 = _-IL._-9U(_local3); _local1._-Ep(_local4); _local3.position.Set(-0.25, 10); _local3.userData = null; _local2 = _-IL._-9U(_local3); _local2._-Ep(_local4); _local3 = new _-D3(); _local3.position.Set(13, 21); _local4 = new _-Bp(); _local4._-At(14, 0.25); _local4._-4T = 0.3; _local4.density = 0; _local4._-E- = true; _local3.userData = null; _local1 = _-IL._-9U(_local3); _local1._-Ep(_local4); } public function _-IU(_arg1:int):int{ switch (_arg1){ case 0: return (10262679); case 1: return (7879941); case 2: return (2725948); case 3: return (11481394); default: return (0); }; } public function _-7l():void{ if (_-IL == null){ return; }; _-6u = 0; _-HS = 0; var _local1:_-7S = _-IL._-8e; while (_local1) { if ((_local1.m_userData is Bitmap)){ if (_local1.m_userData.collision_group > 1){ _-6u++; }; }; _local1 = _local1._-Fv; }; if (_-6u == 0){ _-6u = int.MAX_VALUE; }; } public function _-Ek():void{ var _local1:_-7S; if (_-IL){ if (_-IL._-8e){ _local1 = _-IL._-8e; while (_local1) { if ((_local1.m_userData is Bitmap)){ _-67.removeChild(_local1.m_userData); }; _local1 = _local1._-Fv; }; }; if (_-IL._-G4){ if (_-IL._-G4._-5X){ _-67.removeChild(_-IL._-G4._-5X); }; }; _-IL = null; _-9a = null; }; } protected function _-5A():void{ var _local1:_-1S = new _-1S(); _local1._-Fu.Set(-100, -100); _local1._-1I.Set(100, 100); var _local2:_-CE = new _-CE(0, 15); _-IL = new _-Hp(_local1, _local2, true); _-HK = new myContactListener(); _-IL._-3f(_-HK); _-5S(); _-9a = new finally(_-IL); _-9a._-8X = _-67; } public function _-99(_arg1:int):Class{ switch (_arg1){ case 2: return (_-4C); case 3: return (_-Gd); }; return (case(_arg1)); } protected function _-0T():void{ var _local2:int; var _local3:_-7S; var _local1:int = _-HK.sensors.length; if (_local1 == 0){ return; }; _local2 = 0; while (_local2 < _local1) { _local3 = _-HK.sensors[_local2].m_body; _-67.removeChild(_local3.m_userData); _-IL._-Bj(_local3); _local3 = null; _local2++; }; _-HK.sensors.length = 0; if (_-9V != null){ _-9V(); }; } public function _-8i(_arg1:MouseEvent):void{ _-9a._-3a.p2 = new _-CE((mouseX / _-V), (mouseY / _-V)); _-4H.graphics.clear(); _-9a._-6a(); _-5C = false; } } }//package game import Box2D.Collision.*; import flash.display.*; import _-Cd.*; import _-5v.*; class myContactListener extends _-Ie { public var shapes:Array; public var sensors:Array; private function myContactListener(){ shapes = new Array(); sensors = new Array(); } override public function Add(_arg1:_-5b):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; if (_arg1.shape1.m_isSensor){ if (_arg1.shape2.m_isSensor){ return; }; _local2 = _arg1.shape2.m_body.m_userData.collision_group; if (_local2 >= 1){ if (!VerifySensor(_arg1.shape2)){ return; }; _local4 = sensors.length; sensors.length = (_local4 + 1); sensors[_local4] = _arg1.shape2; return; }; }; if (_arg1.shape2.m_isSensor){ _local2 = _arg1.shape1.m_body.m_userData.collision_group; if (_local2 >= 1){ if (!VerifySensor(_arg1.shape1)){ return; }; _local4 = sensors.length; sensors.length = (_local4 + 1); 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 = shapes.length; if (!VerifyShape(_arg1.shape1)){ return; }; if (!VerifyShape(_arg1.shape2)){ return; }; shapes.length = (_local5 + 2); shapes[_local5] = _arg1.shape1; shapes[(_local5 + 1)] = _arg1.shape2; }; } private function VerifyShape(_arg1:_-Ai):Boolean{ var _local3:int; var _local2:int = shapes.length; if (_local2 == 0){ return (true); }; _local3 = 0; while (_local3 < _local2) { if (shapes[_local3] == _arg1){ return (false); }; _local3++; }; return (true); } private function VerifySensor(_arg1:_-Ai):Boolean{ var _local3:int; var _local2:int = sensors.length; if (_local2 == 0){ return (true); }; _local3 = 0; while (_local3 < _local2) { if (sensors[_local3] == _arg1){ return (false); }; _local3++; }; return (true); } }
Section 154
//_-I6 (game._-I6) package game { import mx.core.*; public class _-I6 extends SpriteAsset { } }//package game
Section 155
//_-I9 (game._-I9) package game { import mx.core.*; public class _-I9 extends BitmapAsset { } }//package game
Section 156
//_-IF (game._-IF) package game { import mx.core.*; public class _-IF extends SpriteAsset { } }//package game
Section 157
//_-IG (game._-IG) package game { import mx.core.*; public class _-IG extends SpriteAsset { } }//package game
Section 158
//_-Iu (game._-Iu) package game { import mx.core.*; public class _-Iu extends SpriteAsset { } }//package game
Section 159
//_-J (game._-J) package game { import mx.core.*; public class _-J extends SpriteAsset { } }//package game
Section 160
//_-J6 (game._-J6) package game { import flash.display.*; import flash.events.*; import flash.text.*; import flash.geom.*; public class _-J6 extends Sprite { private var _-ID:Class; private var _-I4:Class; private var _-7-:Class; private var _-2L:Class; protected var _-FM:SimpleButton; private var _-2X:Class; private var _-Gf:Class; private var _-B4:Class; private var _-D:Class; protected var _-6l:Function; protected var get:int; private var _-Be:Class; public function _-J6(_arg1:int, _arg2:Function){ _-ID = _-Gl; _-I4 = _-HR; _-7- = _-7y; _-2L = _-IF; _-Be = _-Kp; _-2X = _-Ji; _-Gf = _-2; _-B4 = _-U; _-D = _-f; super(); get = _arg1; _-6l = _arg2; _-3H(); } protected function _-3H():void{ var _local1:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local10:Bitmap; var _local17:TextFormat; var _local18:TextField; var _local19:Sprite; var _local20:SimpleButton; _local1 = 52; var _local2:int = (_local1 + 5); _local5 = 10; _local6 = 10; var _local7:Bitmap = (new _-I4() as Bitmap); _local5 = 10; _local6 = 10; var _local8:DisplayObject = new _-7-(); _local8.x = 0; var _local9:DisplayObject = new _-2L(); var _local11:Sprite = new Sprite(); _local11.addChild(_local8); var _local12:Sprite = new Sprite(); _local12.addChild(_local9); var _local13:int; _local4 = 0; while (_local4 < 5) { _local3 = 0; while (_local3 < 8) { if (_local13 <= get){ _local10 = new Bitmap(new BitmapData(_local1, _local1, true, 0)); _local10.bitmapData.draw(_local12); _local17 = new TextFormat(); _local17.font = "embed_font_1"; _local17.color = 4731422; _local17.size = 30; _local18 = new TextField(); _local18.embedFonts = true; _local18.defaultTextFormat = _local17; _local18.selectable = false; _local18.mouseEnabled = false; _local18.antiAliasType = AntiAliasType.ADVANCED; _local18.text = int((_local13 + 1)).toString(); _local18.x = (((_local1 - _local18.textWidth) / 2) - 2); _local18.y = 4; _local18.width = (_local18.textWidth + 5); _local18.height = _local18.textHeight; _local19 = new Sprite(); _local19.addChild(_local10); _local19.addChild(_local18); _local20 = new SimpleButton(_local19, _local19, _local19, _local19); _local20.name = _local13.toString(); if (_-6l != null){ _local20.addEventListener(MouseEvent.CLICK, _-6l); }; _local20.x = _local5; _local20.y = _local6; addChild(_local20); } else { _local10 = new Bitmap(new BitmapData(_local1, _local1, true, 0)); _local10.bitmapData.draw(_local11); _local17 = new TextFormat(); _local17.font = "embed_font_1"; _local17.color = 4731422; _local17.size = 30; _local18 = new TextField(); _local18.embedFonts = true; _local18.defaultTextFormat = _local17; _local18.selectable = false; _local18.mouseEnabled = false; _local18.antiAliasType = AntiAliasType.ADVANCED; _local18.text = int((_local13 + 1)).toString(); _local18.x = (((_local1 - _local18.textWidth) / 2) - 2); _local18.y = 4; _local18.width = (_local18.textWidth + 5); _local18.height = _local18.textHeight; _local19 = new Sprite(); _local19.addChild(_local10); _local19.addChild(_local18); _local19.x = _local5; _local19.y = _local6; addChild(_local19); }; _local5 = (_local5 + _local2); _local13++; _local3++; }; _local5 = 10; _local6 = (_local6 + _local2); _local4++; }; var _local14:DisplayObject = new _-Be(); var _local15:DisplayObject = new _-2X(); _-FM = new SimpleButton(_local14, _local15, _local15, _local15); _-FM.x = 360; _-FM.y = 310; addChild(_-FM); var _local16:DisplayObject = new _-Gf(); _local16.x = 10; _local16.y = -40; addChild(_local16); _local16 = new _-B4(); _local16.x = 10; _local16.y = 300; addChild(_local16); _local16 = new _-D(); _local16.x = 10; _local16.y = 330; addChild(_local16); } public function _-6f(_arg1:Boolean, _arg2:Function):void{ if (_arg1){ _-FM.addEventListener(MouseEvent.CLICK, _arg2); } else { _-FM.removeEventListener(MouseEvent.CLICK, _arg2); _-FM.enabled = false; }; } protected function _-59():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 _-I4() 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 <= get){ _local8.graphics.beginFill(6144772); }; _local8.graphics.drawRoundRect(0, 0, _local1, _local1, 4, 4); if (_local10 <= get){ _local8.graphics.endFill(); } else { _local8.x = _local5; _local8.y = _local6; }; _local8.addChild(_local9); if (_local10 <= get){ _local14 = new SimpleButton(_local8, _local8, _local8, _local8); _local14.name = _local10.toString(); if (_-6l != null){ _local14.addEventListener(MouseEvent.CLICK, _-6l); }; _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 _-2X(); var _local12:DisplayObject = new _-Be(); _-FM = new SimpleButton(_local11, _local12, _local12, _local12); _-FM.x = 410; _-FM.y = 310; addChild(_-FM); } } }//package game
Section 161
//_-Ji (game._-Ji) package game { import mx.core.*; public class _-Ji extends SpriteAsset { } }//package game
Section 162
//_-JK (game._-JK) package game { import mx.core.*; public class _-JK extends SpriteAsset { } }//package game
Section 163
//_-Jq (game._-Jq) package game { import mx.core.*; public class _-Jq extends SpriteAsset { } }//package game
Section 164
//_-JQ (game._-JQ) package game { import mx.core.*; public class _-JQ extends BitmapAsset { } }//package game
Section 165
//_-KJ (game._-KJ) package game { import mx.core.*; public class _-KJ extends SpriteAsset { } }//package game
Section 166
//_-KO (game._-KO) package game { import mx.core.*; public class _-KO extends BitmapAsset { } }//package game
Section 167
//_-Kp (game._-Kp) package game { import mx.core.*; public class _-Kp extends SpriteAsset { } }//package game
Section 168
//_-Q (game._-Q) package game { import mx.core.*; public class _-Q extends SpriteAsset { } }//package game
Section 169
//_-R (game._-R) package game { import mx.core.*; public class _-R extends BitmapAsset { } }//package game
Section 170
//_-U (game._-U) package game { import mx.core.*; public class _-U extends SpriteAsset { } }//package game
Section 171
//_-z (game._-z) package game { import mx.core.*; public class _-z extends BitmapAsset { } }//package game
Section 172
//mainMenu_FontClass1 (game.mainMenu_FontClass1) package game { import mx.core.*; public class mainMenu_FontClass1 extends FontAsset { } }//package game
Section 173
//soundManager_Sound1 (game.soundManager_Sound1) package game { import mx.core.*; public class soundManager_Sound1 extends SoundAsset { } }//package game
Section 174
//_-5f (mochi.as3._-5f) package mochi.as3 { public class _-5f { public static const _-Km:String = "StoreHide"; public static const _-Fr:String = "NoUser"; public static const IO_ERROR:String = "IOError"; public static const _-8q:String = "ItemNew"; public static const get :String = "ItemOwned"; public static const _-In:String = "StoreItems"; public static const ERROR:String = "Error"; public static const _-EX:String = "StoreShow"; public static var _inventory:_-Dy; public static function _-Ay(_arg1:String, _arg2:Object):void{ _-JL._-Ay(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _-JL.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _-JL.addEventListener(_arg1, _arg2); } public static function _-6g():void{ _-C6.send("coins_getStoreItems"); } public static function get _-Cm():_-Dy{ return (_inventory); } public static function _-2r(_arg1:Object=null):void{ _-C6._-KE(); _-C6.send("coins_showStore", {options:_arg1}, null, null); } public static function _-KW(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showItem call must pass an Object with an item key"); return; }; _-C6._-KE(); _-C6.send("coins_showItem", {options:_arg1}, null, null); } public static function _-6C():String{ return (_-C6._-6C()); } public static function _-CT(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showVideo call must pass an Object with an item key"); return; }; _-C6._-KE(); _-C6.send("coins_showVideo", {options:_arg1}, null, null); } _-JL.addEventListener(_-JL._-H5, function (_arg1:Object):void{ _inventory = new _-Dy(); }); _-JL.addEventListener(_-JL._-9t, function (_arg1:Object):void{ _inventory = null; }); } }//package mochi.as3
Section 175
//_-BP (mochi.as3._-BP) package mochi.as3 { import flash.display.*; import flash.text.*; public class _-BP { private static var boardID:String; public static var _-4z:Object; public static var _-9-:Object; public static function _-1v(_arg1:Object=null):void{ var n:Number; var options = _arg1; if (options != null){ delete options.clip; _-C6._-Ip(); _-C6._-KE(); 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 _-EG)){ 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 (_-C6.clip != null){ if ((_-C6.clip is MovieClip)){ _-C6.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; }; } else { options = {}; if ((_-C6.clip is MovieClip)){ _-C6.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; if (options.onClose != null){ _-9- = options.onClose; } else { _-9- = function ():void{ if ((_-C6.clip is MovieClip)){ _-C6.clip.play(); } else { trace("Warning: Container is not a MovieClip, cannot call default onClose."); }; }; }; if (options.onError != null){ _-4z = options.onError; } else { _-4z = null; }; if (options.boardID == null){ if (_-BP.boardID != null){ options.boardID = _-BP.boardID; }; }; _-C6._-5n(options.boardID, true); trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal"); _-C6.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function _-Ii():void{ _-C6.send("scores_closeLeaderboard"); } public static function _-A0(_arg1:Object, _arg2:Object=null):void{ _-C6.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function _-F8(_arg1:Object, _arg2:Object=null):void{ _-C6.send("scores_requestList", null, _arg1, _arg2); } public static function _-JM(_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 _-1P(_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); }; }; _-C6.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (((((_arg1) && ((_arg1.error == true)))) && (_-4z))){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; _-4z(_arg1.errorCode); _-C6._-IK(); return; }; _-9-(); _-C6._-IK(); } public static function _-1J(_arg1:String):void{ _-C6._-5n(_arg1, true); _-BP.boardID = _arg1; _-C6.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi.as3
Section 176
//_-C3 (mochi.as3._-C3) package mochi.as3 { public class _-C3 { private var _-Kq:Object; public function _-C3():void{ _-Kq = {}; } public function _-Ay(_arg1:String, _arg2:Object):void{ var _local3:Object; if (_-Kq[_arg1] == undefined){ return; }; for (_local3 in _-Kq[_arg1]) { var _local6 = _-Kq[_arg1]; _local6[_local3](_arg2); }; } public function removeEventListener(_arg1:String, _arg2:Function):void{ var _local3:Object; if (_-Kq[_arg1] == undefined){ _-Kq[_arg1] = []; return; }; for (_local3 in _-Kq[_arg1]) { if (_-Kq[_arg1][_local3] != _arg2){ } else { _-Kq[_arg1].splice(Number(_local3), 1); }; }; } public function addEventListener(_arg1:String, _arg2:Function):void{ removeEventListener(_arg1, _arg2); _-Kq[_arg1].push(_arg2); } } }//package mochi.as3
Section 177
//_-C6 (mochi.as3._-C6) package mochi.as3 { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.geom.*; import flash.system.*; public class _-C6 { private static var _-1Y:Object; private static var _-1X:Boolean = false; private static var _-1G:Array; private static var _-FV:String; private static var _-17:Object; public static var _-IP:Boolean = false; private static var _-DY:LocalConnection; public static var _-I3:_-C9 = new _-C9(); private static var null:Number; private static var _-D9:MovieClip; private static var _-H8:String; private static var _-3d:String = "services.swf"; private static var _-Bg:String = "http://www.mochiads.com/static/lib/services/"; public static var widget:Boolean = false; private static var _-Jl:Timer; private static var _-Du:String; private static var _-A4:Loader; private static var _-3L:Object; private static var _-Ft:Boolean = false; private static var _mochiLocalConnection:MovieClip; private static var _-HV:String = "__ms_"; public static var onError:Object; public static var netup:Boolean = true; private static var _-KL:String = "MochiLC.swf"; public static function _-72():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function get _-89():Boolean{ return (_-1X); } private static function onReceive(_arg1:Object):void{ var methodName:String; var pkg = _arg1; var cb:String = pkg.callbackID; var cblst:Object = _-3L[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 _-3L[cb]; } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_-1X){ _mochiLocalConnection.send(_-Du, "onReceive", {methodName:_arg1, args:_arg2, callbackID:null}); } else { if ((((_-D9 == null)) || (!(_-Ft)))){ trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1)); _-7c(_arg2, _arg3, _arg4); flush(true); return; }; _-1G.push({methodName:_arg1, args:_arg2, callbackID:null}); }; if (_-D9 != null){ if (_-3L != null){ _-3L[null] = {callbackObject:_arg3, callbackMethod:_arg4}; null++; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _-H8 = _arg1; if (_arg2 != null){ _-1Y = _arg2; _-05(_arg1, _-1Y); }; } public static function get _-3r():Object{ return (_-D9); } private static function _-Fl(_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 dynamic():void{ _-1Y.addEventListener(Event.ENTER_FRAME, _-C6._-KE, false, 0, true); if (_-D9 != null){ _-D9.visible = true; }; } public static function _-Eb(_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"] = _-6C(); 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 = _-Fl(_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 (!((_-IP) || (_-1X))){ _-IP = true; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); }; } public static function _-B3():void{ if (((_-1X) || (_-Ft))){ if (_-D9 != null){ if (_-D9.parent != null){ if ((_-D9.parent is Sprite)){ Sprite(_-D9.parent).removeChild(_-D9); _-D9 = null; }; }; }; _-Ft = (_-1X = false); flush(true); try { _mochiLocalConnection.close(); } catch(error:Error) { }; }; if (_-Jl != null){ try { _-Jl.stop(); } catch(error:Error) { }; }; } public static function _-2z(_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 _-6C():String{ return ("3.8 as3"); } public static function _-IK():void{ _-1Y.removeEventListener(Event.ENTER_FRAME, _-C6._-KE); } public static function _-5n(_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 (((_-D9) && (_-1G))){ while (_-1G.length > 0) { _local2 = _-1G.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _-3L[_local2.callbackID]; }; delete _-3L[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ _-7c(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; } public static function get id():String{ return (_-H8); } private static function onEvent(_arg1:Object):void{ var _local2:String = _arg1.target; var _local3:String = _arg1.event; switch (_local2){ case "events": _-KC._-Ay(_arg1.event, _arg1.args); break; case "coins": _-5f._-Ay(_arg1.event, _arg1.args); break; case "sync": _-I3._-Ay(_arg1.event, _arg1.args); break; }; } private static function _-Bt(_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 _-Ip(_arg1:Object=null, _arg2:Boolean=true):void{ if (_-D9.parent){ _-D9.parent.removeChild(_-D9); }; if (_arg1 != null){ if ((_arg1 is DisplayObjectContainer)){ _-1Y = _arg1; }; }; if (_arg2){ if ((_-1Y is DisplayObjectContainer)){ DisplayObjectContainer(_-1Y).addChild(_-D9); }; }; } private static function _-7c(_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 else (_arg1:Object):void{ _-D9._mochiad_ctr_failed = true; trace("MochiServices could not load."); _-C6._-B3(); _-C6.onError("IOError"); } private static function _-97():void{ if (!_-1X){ trace("[SERVICES_API] connected!"); _-Ft = false; _-1X = true; _mochiLocalConnection.send(_-Du, "onReceive", {methodName:"handshakeDone"}); _mochiLocalConnection.send(_-Du, "onReceive", {methodName:"registerGame", preserved:_-17, id:_-H8, version:_-6C(), parentURL:_-1Y.loaderInfo.loaderURL}); _-D9.onReceive = onReceive; _-D9.onEvent = onEvent; _-D9.onError = function ():void{ _-C6.onError("IOError"); }; while (_-1G.length > 0) { _mochiLocalConnection.send(_-Du, "onReceive", _-1G.shift()); }; }; } private static function _-9I(_arg1:Object):void{ var loader:Loader; var clip = _arg1; loader = new Loader(); var mochiLCURL:String = (_-Bg + _-KL); 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, else ); loader.load(req); clip.addChild(loader); } private static function listen():void{ _mochiLocalConnection.connect(_-HV); _-D9.handshake = function (_arg1:Object):void{ _-C6._-JB = _arg1.newChannel; }; trace("Waiting for MochiAds services to connect..."); } public static function get clip():Object{ return (_-1Y); } public static function set _-JB(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _-Du = (_arg1 + "_fromgame"); _-97(); }; }; } private static function _-05(_arg1:String, _arg2:Object):MovieClip{ if (_-D9 != null){ return (_-D9); }; if (!_-C6._-72()){ return (null); }; if (_-Bt(_arg2).servURL){ _-Bg = _-Bt(_arg2).servURL; }; var _local3:String = (_-Bg + _-3d); if (_-Bt(_arg2).servicesURL){ _local3 = _-Bt(_arg2).servicesURL; }; _-HV = (_-HV + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999)))); _-C6._-2z(_local3); _-D9 = new MovieClip(); _-9I(_-D9); _-A4 = new Loader(); _-A4.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, else ); var _local4:URLRequest = new URLRequest(_local3); var _local5:URLVariables = new URLVariables(); _local5.listenLC = _-HV; _local5.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options; _local5.api_version = _-6C(); if (widget){ _local5.widget = true; }; _local4.data = _local5; _-A4.load(_local4); _-D9.addChild(_-A4); _-DY = new LocalConnection(); _-1G = []; null = 0; _-3L = {}; _-Jl = new Timer(10000, 1); _-Jl.addEventListener(TimerEvent.TIMER, _-Gs); _-Jl.start(); return (_-D9); } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; _-5n(id, false); if ((clip is DisplayObject)){ if (clip.stage == null){ trace("MochiServices connect requires the containing clip be attached to the stage"); }; if (((!(_-1X)) && ((_-D9 == null)))){ trace("MochiServices Connecting..."); _-Ft = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ _-C6.onError = onError; } else { if (_-C6.onError == null){ _-C6.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function _-Em(_arg1:Object):void{ _-C6.send("coins_updateCopy", _arg1, null, null); } public static function _-KE(_arg1:Event=null):void{ var e = _arg1; if (((!((_-C6.clip == null))) && (!((_-C6._-3r == null))))){ try { if (_-C6.clip.numChildren > 1){ _-C6.clip.setChildIndex(_-C6._-3r, (_-C6.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _-1Y.removeEventListener(Event.ENTER_FRAME, _-C6._-KE); }; }; } public static function _-Gs(_arg1:TimerEvent):void{ if (!_-1X){ _-D9._mochiad_ctr_failed = true; trace("MochiServices could not load. (timeout)"); _-C6._-B3(); _-C6.onError("IOError"); }; } } }//package mochi.as3
Section 178
//_-C9 (mochi.as3._-C9) package mochi.as3 { import flash.utils.*; public dynamic class _-C9 extends Proxy { private var _-Jh:Object; public static var _-Df:String = "UpdateProperty"; public static var _-1z:String = "SyncRequest"; public function _-C9():void{ _-Jh = {}; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ if (_-Jh[_arg1] == _arg2){ return; }; var _local3:String = _arg1.toString(); _-Jh[_local3] = _arg2; _-C6.send("sync_propUpdate", {name:_local3, value:_arg2}); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ return (_-Jh[_arg1]); } public function _-Ay(_arg1:String, _arg2:Object):void{ switch (_arg1){ case _-1z: _-C6.send("sync_syncronize", _-Jh); break; case _-Df: _-Jh[_arg2.name] = _arg2.value; break; }; } } }//package mochi.as3
Section 179
//_-Dy (mochi.as3._-Dy) package mochi.as3 { import flash.events.*; import flash.utils.*; public dynamic class _-Dy extends Proxy { private var _-Jl:Timer; private var _-Fi:Array; private var _-BM:Number; private var _-0a:Object; private var _-E0:Object; private var _-Ib:Number; private var _-96:Boolean; public static const READY:String = "InvReady"; public static const ERROR:String = "Error"; public static const IO_ERROR:String = "IoError"; private static const _-H6:String = " syncMaint"; public static const _-A1:String = "InvWritten"; public static const _-Ju:String = "InvNotReady"; public static const _-7r:String = "InvValueError"; private static const _-42:String = "MochiConsumables"; private static var _-GA:_-C3 = new _-C3(); public function _-Dy():void{ _-5f.addEventListener(_-5f.get , _-02); _-5f.addEventListener(_-5f._-8q, _-AP); _-JL.addEventListener(_-JL._-H5, _-4-); _-JL.addEventListener(_-JL._-9t, _-DW); _-E0 = new Object(); _-96 = false; _-Ib = 0; _-BM = 0; _-Jl = new Timer(1000); _-Jl.addEventListener(TimerEvent.TIMER, sync); _-Jl.start(); if (_-JL._-4-){ _-4-(); } else { _-DW(); }; } private function _-AP(_arg1:Object):void{ if (!this[(_arg1.id + _-H6)]){ this[(_arg1.id + _-H6)] = 0; }; if (!this[_arg1.id]){ this[_arg1.id] = 0; }; this[(_arg1.id + _-H6)] = (this[(_arg1.id + _-H6)] + _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{ _-5f.removeEventListener(_-5f._-8q, _-AP); _-JL.removeEventListener(_-JL._-H5, _-4-); _-JL.removeEventListener(_-JL._-9t, _-DW); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ if (_-0a == null){ _-Ay(ERROR, {type:_-Ju}); return (-1); }; if (_-0a[_arg1]){ return (_-EG(_-0a[_arg1]).value); }; return (undefined); } private function _-4-(_arg1:Object=null):void{ _-J2.get(_-42, _-9N); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{ if (_-0a == null){ _-Ay(ERROR, {type:_-Ju}); return (false); }; if (_-0a[_arg1] == undefined){ return (false); }; return (true); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{ return (((_arg1)>=_-Fi.length) ? 0 : (_arg1 + 1)); } private function _-Ch(_arg1:_-J2):void{ _-96 = false; if (_arg1.error){ _-Ay(ERROR, {type:IO_ERROR, error:_arg1.error}); _-Ib = -1; }; _-Ay(_-A1, {}); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ var _local3:_-EG; if (_-0a == null){ _-Ay(ERROR, {type:_-Ju}); return; }; if (!(_arg2 is Number)){ _-Ay(ERROR, {type:_-7r, error:"Invalid type", arg:_arg2}); return; }; if (_-0a[_arg1]){ _local3 = _-EG(_-0a[_arg1]); if (_local3.value == _arg2){ return; }; _local3.value = _arg2; } else { _-Fi.push(_arg1); _-0a[_arg1] = new _-EG(_arg2); }; _-BM++; } private function _-02(_arg1:Object):void{ _-E0[_arg1.id] = {properties:_arg1.properties, count:_arg1.count}; } private function sync(_arg1:Event=null):void{ var _local3:String; if (((_-96) || ((_-BM == _-Ib)))){ return; }; _-Ib = _-BM; var _local2:Object = {}; for (_local3 in _-0a) { _local2[_local3] = _-EG(_-0a[_local3]).value; }; _-J2.put(_-42, _local2, _-Ch); _-96 = true; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{ return (_-Fi[(_arg1 - 1)]); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{ if (!_-0a[_arg1]){ return (false); }; _-Fi.splice(_-Fi.indexOf(_arg1), 1); delete _-0a[_arg1]; return (true); } private function _-9N(_arg1:_-J2):void{ var _local2:String; var _local3:Number; if (_arg1.error){ _-Ay(ERROR, {type:IO_ERROR, error:_arg1.error}); return; }; _-0a = {}; _-Fi = new Array(); if (_arg1.data){ for (_local2 in _arg1.data) { _-Fi.push(_local2); _-0a[_local2] = new _-EG(_arg1.data[_local2]); }; }; for (_local2 in _-E0) { _local3 = _-E0[_local2].count; if (_-0a[(_local2 + _-H6)]){ _local3 = (_local3 - _-0a[_local2]); }; if (_local3 == 0){ } else { _-AP({id:_local2, count:_local3, properties:_-E0[_local2].properties}); }; }; _-Ay(READY, {}); } private function _-DW(_arg1:Object=null):void{ _-0a = null; } public static function _-Ay(_arg1:String, _arg2:Object):void{ _-GA._-Ay(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _-GA.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _-GA.addEventListener(_arg1, _arg2); } } }//package mochi.as3
Section 180
//_-EG (mochi.as3._-EG) package mochi.as3 { public final class _-EG { private var _-48:_-EG; private var _-80:Number; private var _-5H:Number; public function _-EG(_arg1:Number=0, _arg2:uint=0):void{ _-5H = 0; setValue(_arg1, _arg2); } public function _-J3():void{ var _local1:uint = int((2147483647 * Math.random())); _-80 = (_-80 ^ (_local1 ^ _-5H)); _-5H = _local1; } public function set value(_arg1:Number):void{ setValue(_arg1); } public function toString():String{ var _local1:String = String.fromCharCode((_-80 ^ _-5H)); if (_-48 != null){ _local1 = (_local1 + _-48.toString()); }; return (_local1); } public function setValue(_arg1:Number=0, _arg2:uint=0):void{ var _local3:String = _arg1.toString(); var _temp1 = _arg2; _arg2 = (_arg2 + 1); _-80 = (_local3.charCodeAt(_temp1) ^ _-5H); if (_arg2 < _local3.length){ _-48 = new _-EG(_arg1, _arg2); } else { _-48 = null; }; _-J3(); } public function get value():Number{ return (Number(this.toString())); } public function _-Fz(_arg1:Number):void{ value = (value + _arg1); } } }//package mochi.as3
Section 181
//_-J2 (mochi.as3._-J2) package mochi.as3 { import flash.events.*; import flash.net.*; import flash.utils.*; public class _-J2 extends EventDispatcher { public var _-Eh:Function;// = null public var _-A5:String;// = null public var error:Event;// = null public var data;// = null public var _-A4:URLLoader; public var key:String;// = null public function _-J2(_arg1:String="", _arg2:Function=null){ this.key = _arg1; this._-Eh = _arg2; } public function _-JA(_arg1):ByteArray{ var _local2:ByteArray = new ByteArray(); _local2.objectEncoding = ObjectEncoding.AMF3; _local2.writeObject(_arg1); _local2.compress(); return (_local2); } public function errorHandler(_arg1:IOErrorEvent):void{ data = null; error = _arg1; if (_-Eh != null){ _-Bq(); } else { dispatchEvent(_arg1); }; close(); } public function _-4w(_arg1):void{ _-53("put", _-JA(_arg1)); } public function _-Ha(_arg1:ByteArray){ _arg1.objectEncoding = ObjectEncoding.AMF3; _arg1.uncompress(); return (_arg1.readObject()); } public function _-Et(_arg1:SecurityErrorEvent):void{ errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString()))); } public function _-KK():void{ _-53("get", _-JA(null)); } override public function toString():String{ return ((((((((("[MochiUserData operation=" + _-A5) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]")); } public function _-Bq():void{ try { _-Eh(this); } catch(e:Error) { trace(("[MochiUserData] exception during callback: " + e)); }; } public function _-53(_arg1:String, _arg2:ByteArray):void{ var _operation = _arg1; var _data = _arg2; _-A5 = _operation; var api_url:String = _-JL._-5g(); var api_token:String = _-JL._-JP(); if ((((api_url == null)) || ((api_token == null)))){ errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in")); return; }; _-A4 = new URLLoader(); var args:URLVariables = new URLVariables(); args.op = _operation; args.key = key; var req:URLRequest = new URLRequest((((_-JL._-5g() + "/") + "MochiUserData?") + args.toString())); req.method = URLRequestMethod.POST; req.contentType = "application/x-mochi-userdata"; req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", _-C6._-6C()), new URLRequestHeader("x-mochi-api-token", api_token)]; req.data = _data; _-A4.dataFormat = URLLoaderDataFormat.BINARY; _-A4.addEventListener(Event.COMPLETE, completeHandler); _-A4.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); _-A4.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _-Et); try { _-A4.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 (_-A4.data.length){ data = _-Ha(_-A4.data); } else { data = null; }; } catch(e:Error) { errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString()))); return; }; if (_-Eh != null){ _-Bq(); } else { dispatchEvent(event); }; close(); } public function close():void{ if (_-A4){ _-A4.removeEventListener(Event.COMPLETE, completeHandler); _-A4.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); _-A4.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, _-Et); _-A4.close(); _-A4 = null; }; error = null; _-Eh = null; } public static function get(_arg1:String, _arg2:Function):void{ var _local3:_-J2 = new _-J2(_arg1, _arg2); _local3._-KK(); } public static function put(_arg1:String, _arg2, _arg3:Function):void{ var _local4:_-J2 = new _-J2(_arg1, _arg3); _local4._-4w(_arg2); } } }//package mochi.as3
Section 182
//_-JL (mochi.as3._-JL) package mochi.as3 { public class _-JL { public static const _-H5:String = "LoggedIn"; public static const _-GS:String = "ProfileHide"; public static const _-Fr:String = "NoUser"; public static const _-8K:String = "PropertiesSize"; public static const IO_ERROR:String = "IOError"; public static const _-Fb:String = "PropertySaved"; public static const _-4i:String = "WidgetLoaded"; public static const _-4S:String = "UserInfo"; public static const ERROR:String = "Error"; public static const _-6q:String = "LoginShow"; public static const _-9t:String = "LoggedOut"; public static const _-00:String = "ProfileShow"; public static const _-8R:String = "LoginShown"; public static const _-4b:String = "LoginHide"; private static var _-GA:_-C3 = new _-C3(); public static var _user_info:Object = null; public static function _-6C():String{ return (_-C6._-6C()); } public static function _-CY(_arg1:Object):void{ _-C6.send("coins_saveUserProperties", _arg1); } public static function get _-4-():Boolean{ return (!((_user_info == null))); } public static function _-Ay(_arg1:String, _arg2:Object):void{ _-GA._-Ay(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _-GA.addEventListener(_arg1, _arg2); } public static function _-7n():void{ _-C6.send("coins_getUserInfo"); } public static function _-8(_arg1:Object=null):void{ _-C6._-Ip(); _-C6._-KE(); _-C6.send("coins_showLoginWidget", {options:_arg1}); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _-GA.removeEventListener(_arg1, _arg2); } public static function _-Gk():void{ _-C6.send("coins_requestLogin"); } public static function _-5g():String{ if (!_user_info){ return (null); }; return (_user_info.api_url); } public static function _-19():void{ _-C6.send("coins_hideLoginWidget"); } public static function _-JP():String{ if (!_user_info){ return (null); }; return (_user_info.api_token); } _-JL.addEventListener(_-JL._-H5, function (_arg1:Object):void{ _user_info = _arg1; }); _-JL.addEventListener(_-JL._-9t, function (_arg1:Object):void{ _user_info = null; }); } }//package mochi.as3
Section 183
//_-KC (mochi.as3._-KC) package mochi.as3 { import flash.display.*; public class _-KC { public static const _-Fc:String = "ALIGN_BL"; public static const _-6A:String = "LongForm"; public static const _-5w:String = "ALIGN_B"; public static const _-Bi:String = "AchievementReceived"; public static const _-Jj:String = "ShortForm"; public static const _-63:String = "ALIGN_TR"; public static const var :String = "ALIGN_BR"; public static const _-9p:String = "ALIGN_T"; public static const _-BJ:String = "ALIGN_L"; public static const _-FJ:String = "ALIGN_R"; public static const _-HJ:String = "ALIGN_TL"; public static const _-1d:String = "ALIGN_C"; private static var _-GA:_-C3 = new _-C3(); private static var _-7t:Number; private static var _-Af:Number; public static function _-7M():void{ _-C6.send("events_clearRoundID", null, null, null); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _-GA.addEventListener(_arg1, _arg2); } public static function _-Eu(_arg1:String, _arg2=null):void{ _-C6.send("events_trackEvent", {tag:_arg1, value:_arg2}, null, null); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _-GA.removeEventListener(_arg1, _arg2); } public static function _-KU(_arg1:String):void{ _-C6.send("events_beginSession", {achievementID:_arg1}, null, null); } public static function _-Ay(_arg1:String, _arg2:Object):void{ _-GA._-Ay(_arg1, _arg2); } public static function _-Jr(_arg1:MovieClip, _arg2:Object):void{ var _local4:Object; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; _local3.clip = _arg1; _-C6.send("events_setNotifications", _local3, null, null); } public static function _-6C():String{ return (_-C6._-6C()); } public static function _-AL(_arg1:String="gameplay"):void{ _-C6.send("events_setRoundID", {tag:String(_arg1)}, null, null); } } }//package mochi.as3
Section 184
//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 185
//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 186
//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 187
//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 188
//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 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
//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 209
//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 210
//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 211
//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 212
//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 213
//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 214
//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 215
//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 216
//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 217
//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 218
//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 219
//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 220
//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 221
//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 222
//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 223
//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 224
//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 225
//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 226
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 227
//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 228
//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 229
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 230
//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 231
//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 232
//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 233
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import mx.core.*; import flash.events.*; import mx.events.*; import flash.system.*; import mx.utils.*; import mx.modules.*; import flash.utils.*; 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 234
//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 235
//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 236
//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 237
//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 238
//RectangularBorder (mx.skins.RectangularBorder) package mx.skins { import flash.display.*; import mx.core.*; import mx.styles.*; import flash.events.*; import mx.resources.*; import flash.system.*; import flash.geom.*; 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 239
//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 240
//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 241
//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 242
//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 243
//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 244
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 245
//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 246
//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 mx.modules.*; import flash.utils.*; 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 247
//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 248
//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 249
//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 250
//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 251
//_-DA (test._-DA) package test { import mx.core.*; public class _-DA extends BitmapAsset { } }//package test
Section 252
//_-JF (test._-JF) package test { import _-9S.*; import flash.display.*; import _-5v.*; import flash.geom.*; public class _-JF extends Bitmap { public var _-5l:Boolean; public var each :Boolean; public var _-Eo:int; public var _-Iw:uint; public var _-Bk:Number; public var magic_shift:_-CE; public var collision_group:int; public var is_possible_remove:Boolean; public var case :Class; public function _-JF(_arg1:Class, _arg2:_-Bp, _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 _local23:int; var _local24:int; var _local27:DisplayObject; var _local28:DisplayObject; var _local29:Matrix; var _local30:Matrix; var _local31:Sprite; var _local32:Sprite; case = _arg1; _-Iw = _arg6; _-5l = _arg7; each = _arg4; magic_shift = _-C2(_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); }; trace(_local10); trace(_local16); trace(_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); _local18.graphics.moveTo(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)); _local11 = 1; while (_local11 < _local10) { _local18.graphics.lineTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)); _local11++; }; _local18.graphics.endFill(); _local9.draw(_local18); _local18 = null; var _local19:int = Math.ceil(Math.sqrt(((_local9.width * _local9.width) + (_local9.height * _local9.height)))); if (_local19 > 2880){ _local19 = 2880; }; _local18 = new Sprite(); var _local20:DisplayObject = new (_arg1); var _local21:int = ((_local19 / _local20.width) + 1); var _local22:int = ((_local19 / _local20.height) + 1); var _local25:Sprite = new Sprite(); if (!_arg8){ _local23 = 0; while (_local23 < _local21) { _local24 = 0; while (_local24 < _local22) { _local27 = new (_arg1); _local27.x = (_local23 * _local20.width); _local27.y = (_local24 * _local20.height); _local25.addChild(_local27); _local24++; }; _local23++; }; } else { _local28 = new (_arg1); _local28.width = _local9.width; _local28.height = _local9.height; _local25.addChild(_local28); }; if (!_arg8){ _local25.rotation = 0; _local29 = _local25.transform.matrix; _local29.tx = -((_local19 / 2)); _local29.ty = -((_local19 / 2)); _local29.rotate(_-Bk); _local29.tx = (_local29.tx + (_local9.width / 2)); _local29.ty = (_local29.ty + (_local9.height / 2)); _local25.transform.matrix = _local29; }; _local18.addChild(_local25); if (_arg7){ _local30 = new Matrix(); _local30.createGradientBox(_local9.width, _local9.height, (Math.PI / 2), 0, 0); _local31 = new Sprite(); _local31.graphics.beginGradientFill(GradientType.LINEAR, [0xFFFFFF, 0], [0.25, 0.5], [92, 0xFF], _local30); _local31.graphics.drawRect(0, 0, _local9.width, _local9.height); _local31.graphics.endFill(); _local18.addChild(_local31); }; if (_arg4){ _local32 = new Sprite(); _local18.addChild(_local32); _local32.graphics.lineStyle(_arg5, _arg6); _local32.graphics.moveTo(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)); _local11 = 1; while (_local11 < _local10) { _local32.graphics.lineTo(((_arg2.vertices[_local11].x - _local12) * _arg3), ((_arg2.vertices[_local11].y - _local13) * _arg3)); _local11++; }; _local32.graphics.lineTo(((_arg2.vertices[0].x - _local12) * _arg3), ((_arg2.vertices[0].y - _local13) * _arg3)); }; var _local26:BitmapData = new BitmapData(_local9.width, _local9.height, true, 0); _local26.draw(_local18); _local18 = null; _local9.copyChannel(_local26, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.RED, BitmapDataChannel.RED); _local9.copyChannel(_local26, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.GREEN, BitmapDataChannel.GREEN); _local9.copyChannel(_local26, new Rectangle(0, 0, _local9.width, _local9.height), new Point(0, 0), BitmapDataChannel.BLUE, BitmapDataChannel.BLUE); _local26 = null; super(_local9, "auto", true); } protected function _-C2(_arg1:_-Bp, _arg2:Number):_-CE{ 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:_-CE = _arg1.vertices[0].Copy(); _-Eo = 0; _local9._-6K(_arg1.vertices[1]); var _local10:Number = _local9.class(); _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._-6K(_arg1.vertices[(_local4 + 1)]); } else { _local9._-6K(_arg1.vertices[0]); }; _local13 = _local9.class(); if (_local13 > _local10){ _local10 = _local13; _-Eo = _local4; }; _local4++; }; if (_-Eo != (_local3 - 1)){ _-Bk = Math.atan2((-(_arg1.vertices[_-Eo].y) + _arg1.vertices[(_-Eo + 1)].y), (_arg1.vertices[(_-Eo + 1)].x - _arg1.vertices[_-Eo].x)); } else { _-Bk = Math.atan2((-(_arg1.vertices[_-Eo].y) + _arg1.vertices[0].y), (_arg1.vertices[0].x - _arg1.vertices[_-Eo].x)); }; var _local11:_-CE = new _-CE(((_local7 - _local5) / 2), ((_local8 - _local6) / 2)); var _local12:_-CE = new _-CE(_local5, _local6); _local12.Add(_local11); _local12._-1g(); _local12.Multiply(_arg2); return (_local12); } } }//package test
Section 253
//finally (test.finally) package test { import _-9S.*; import Box2D.Collision.*; import flash.display.*; import _-Cd.*; import _-5v.*; public class finally { private var _-ID:Class; protected var tile:Bitmap; protected var _-IL:_-Hp; public var _-8X:Sprite; public var _-3a:_-ET; public function finally(_arg1:_-Hp){ _-ID = _-DA; tile = (new _-ID() as Bitmap); super(); _-IL = _arg1; _-3a = new _-ET(); } public function _-6a():void{ var _local3:int; var _local5:_-7S; var _local6:Array; var _local7:int; var _local8:_-D3; var _local9:_-7S; var _local10:_-7S; var _local1:Array = new Array(); var _local2 = 64; _local3 = _-IL._-Dj(_-3a, _local1, _local2, false, null); var _local4:int; while (_local4 < _local3) { if (_local1[_local4].GetType() != _-Ai._-HH){ //unresolved if } else { _local5 = _local1[_local4].GetBody(); if ((_local5.m_userData as _-JF).collision_group != 0){ } else { if (!(_local5.m_userData as _-JF).is_possible_remove){ } else { _local6 = new Array(2); _local6[0] = new _-Bp(); _local6[1] = new _-Bp(); _local6[0].density = 5; _local6[1].density = 5; if (_local1[_local4].GetType() == _-Ai._-3X){ _local7 = _-B8(_local1[_local4], _-3a, _local6); } else { _local7 = _-El(_local1[_local4], _-3a, _local6); }; if (_local7 == 0){ _local8 = new _-D3(); _local8.userData = new _-JF((_local5.m_userData as _-JF).case , _local6[1], 30, (_local5.m_userData as _-JF).each , 5, (_local5.m_userData as _-JF)._-Iw, (_local5.m_userData as _-JF)._-5l); _-8X.addChild(_local8.userData); _local8.userData.x = -100; _local8.userData.y = -100; _local8.userData.is_possible_remove = true; _local9 = _-IL._-9U(_local8); _local9._-Ep(_local6[1]); _local9._-5O(); _local9._-5c(_local5._-E6()); _local9._-GF(_local5._-Jc()); _local8 = new _-D3(); _local8.userData = new _-JF((_local5.m_userData as _-JF).case , _local6[0], 30, (_local5.m_userData as _-JF).each , 5, (_local5.m_userData as _-JF)._-Iw, (_local5.m_userData as _-JF)._-5l); _-8X.addChild(_local8.userData); _local8.userData.x = -100; _local8.userData.y = -100; _local8.userData.is_possible_remove = true; _local10 = _-IL._-9U(_local8); _local10._-Ep(_local6[0]); _local10._-5O(); _local10._-5c(_local5._-E6()); _local10._-GF(_local5._-Jc()); _-8X.removeChild(_local5.m_userData); _local5.m_userData = null; _-IL._-Bj(_local5); }; }; }; }; _local4++; }; } protected function _-El(_arg1:_-Au, _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:_-7S = _arg1.GetBody(); var _local9:_-IR = _local8._-GN(); if (_arg1._-HZ(_local9, _local4, _local5, _arg2, 1) != _-Ai._-8D){ return (-1); }; _local6 = _local5[0]; var _local10:_-CE = _arg2.p1.Copy(); _local10.Multiply((1 - _local4[0])); var _local11:_-CE = _arg2.p2.Copy(); _local11.Multiply(_local4[0]); _local10.Add(_local11); var _local12:_-ET = new _-ET(); _local12.p1 = _arg2.p2; _local12.p2 = _arg2.p1; if (_arg1._-HZ(_local9, _local4, _local5, _local12, 1) != _-Ai._-8D){ return (-1); }; _local7 = _local5[0]; var _local13:_-CE = _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._-66(); if (_local15 == _local16){ _local15 = 0; }; _arg3[0].vertices[0] = _local10.Copy(); _arg3[0].vertexCount = 1; while (true) { _arg3[0].vertices[_arg3[0].vertexCount] = _-Fk._-7(_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] = _-Fk._-7(_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 _-B8(_arg1:_-62, _arg2, _arg3:Array):int{ var _local16:Number; var _local17:Number; var _local18:int; var _local21:_-CE; if (_arg1 == null){ return (-1); }; if (_arg3 == null){ return (-1); }; var _local4:Array = [1]; var _local5:_-CE = new _-CE(); var _local6:_-7S = _arg1.GetBody(); var _local7:_-IR = _local6._-GN(); if (_arg1.TestSegment(_local7, _local4, _local5, _arg2, 1) != _-Ai._-8D){ return (-1); }; var _local8:_-CE = _arg2.p1.Copy(); _local8.Multiply((1 - _local4[0])); var _local9:_-CE = _arg2.p2.Copy(); _local9.Multiply(_local4[0]); _local8.Add(_local9); var _local10:_-ET = new _-ET(); _local10.p1 = _arg2.p2; _local10.p2 = _arg2.p1; if (_arg1.TestSegment(_local7, _local4, _local5, _local10, 1) != _-Ai._-8D){ return (-1); }; var _local11:_-CE = _local10.p1.Copy(); _local11.Multiply((1 - _local4[0])); _local9 = _local10.p2.Copy(); _local9.Multiply(_local4[0]); _local11.Add(_local9); var _local12:_-CE = _-Fk._-7(_arg1.m_body.m_xf, _arg1._-Dz); var _local13:Number = _arg1._-9c; 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 _-CE((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 _-CE((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); } } }//package test
Section 254
//_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 255
//_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 256
//_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 257
//_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 258
//_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 259
//_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 260
//_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 261
//_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 262
//_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 263
//_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 264
//_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 265
//_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 266
//_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 267
//_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 268
//_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 269
//_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 270
//_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 271
//_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 272
//_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 273
//_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 274
//_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 275
//_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 276
//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 277
//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 278
//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 279
//Main (Main) package { import flash.display.*; import game.*; import flash.events.*; import flash.geom.*; import _-Hd.*; public class Main extends Sprite { protected var _-3O:_-Ds; public function Main(){ if (stage){ _-8c(); } else { addEventListener(Event.ADDED_TO_STAGE, _-8c); }; } public function _-8c(_arg1:Event=null):void{ removeEventListener(Event.ADDED_TO_STAGE, _-8c); _-3O = new _-Ds(); addChild(_-3O); _-F4._-25(this, "2a7f30e9"); _-F4._-25(this, "e574fd6c"); } public function _-EL():void{ var _local1:Matrix = new Matrix(); _local1.createGradientBox(800, 600, (Math.PI / 2), 0, 0); this.graphics.beginGradientFill(GradientType.LINEAR, [0xFFFFFF, 0], [0.9, 0.1], [0, 0xFF], _local1); this.graphics.drawRect(0, 0, 800, 600); this.graphics.endFill(); } protected function onClick(_arg1:MouseEvent):void{ } public function _-J8():void{ var _local3:int; var _local1 = 10; this.graphics.lineStyle(1, 0xAAAAAA, 0.25); var _local2:int = (800 / _local1); _local3 = 0; while (_local3 < _local2) { this.graphics.moveTo((_local3 * _local1), 0); this.graphics.lineTo((_local3 * _local1), 600); _local3++; }; _local2 = (600 / _local1); _local3 = 0; while (_local3 < _local2) { this.graphics.moveTo(0, (_local3 * _local1)); this.graphics.lineTo(800, (_local3 * _local1)); _local3++; }; } } }//package

Library Items

Symbol 1 GraphicUsed by:4
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:4
Symbol 4 MovieClip {game._-Jq} [ball]Uses:1 3
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:15 61 138
Symbol 7 GraphicUsed by:14
Symbol 8 GraphicUsed by:14
Symbol 9 GraphicUsed by:12
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:12
Symbol 12 MovieClipUses:9 11Used by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:7 8 12 13Used by:15
Symbol 15 MovieClip {game._-BA} [bgames]Uses:6 14
Symbol 16 GraphicUsed by:19
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:19
Symbol 19 MovieClip {game._-2f} [ball2]Uses:16 18
Symbol 20 GraphicUsed by:23
Symbol 21 GraphicUsed by:23
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:20 21 22Used by:26 33
Symbol 24 FontUsed by:25 32
Symbol 25 TextUses:24Used by:26
Symbol 26 MovieClipUses:23 25Used by:27
Symbol 27 MovieClip {game._-AS} [loader_button2]Uses:26
Symbol 28 GraphicUsed by:31
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:31
Symbol 31 MovieClip {game._-8x} [sky]Uses:28 30
Symbol 32 TextUses:24Used by:33
Symbol 33 MovieClipUses:23 32Used by:34
Symbol 34 MovieClip {game._-24} [loader_button1]Uses:33
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClip {game._-74} [cloud1]Uses:35
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClip {game._-Hx} [cloud2]Uses:37
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:41
Symbol 41 MovieClip {game._-DT} [cloud3]Uses:40
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClip {game._-7V} [music]Uses:42
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:46
Symbol 46 MovieClip {game._-AW} [m_back]Uses:45
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClip {game._-I6} [music2]Uses:47
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:60
Symbol 51 GraphicUsed by:52 57
Symbol 52 MovieClipUses:51Used by:60
Symbol 53 GraphicUsed by:56
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClipUses:54Used by:56
Symbol 56 MovieClipUses:53 55Used by:57
Symbol 57 MovieClipUses:51 56Used by:60
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:60
Symbol 60 MovieClipUses:50 52 57 59Used by:61
Symbol 61 MovieClip {game._-6b} [game_title]Uses:6 60
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClipUses:62Used by:66
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClipUses:64Used by:66
Symbol 66 MovieClip {game._-CI} [ball_title]Uses:63 65
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClipUses:67Used by:69
Symbol 69 MovieClip {game._-BF} [fb1]Uses:68
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:73
Symbol 73 MovieClip {game._-2k} [tw2]Uses:72
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:74Used by:76
Symbol 76 MovieClipUses:75Used by:77
Symbol 77 MovieClipUses:76Used by:78
Symbol 78 MovieClip {game._-Fh} [tw3]Uses:77
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:79Used by:81
Symbol 81 MovieClipUses:80Used by:82
Symbol 82 MovieClipUses:81Used by:83
Symbol 83 MovieClip {game._-JK} [fb3]Uses:82
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClip {game._-0J} [bglogo]Uses:84
Symbol 86 Sound {game.soundManager_Sound1} [game.soundManager_Sound1]
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:89
Symbol 89 MovieClip {game. set} [help_res_buttons]Uses:88
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClip {game._-Cv} [back4]Uses:90
Symbol 92 GraphicUsed by:102
Symbol 93 GraphicUsed by:99
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94Used by:97 137
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClipUses:95 96Used by:99 125
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:93 97 98Used by:102
Symbol 100 FontUsed by:101
Symbol 101 TextUses:100Used by:102
Symbol 102 MovieClipUses:92 99 101Used by:103
Symbol 103 MovieClip {game._-U} [completed]Uses:102
Symbol 104 GraphicUsed by:107
Symbol 105 FontUsed by:106
Symbol 106 TextUses:105Used by:107
Symbol 107 MovieClipUses:104 106Used by:108
Symbol 108 MovieClip {game._-f} [completed2]Uses:107
Symbol 109 FontUsed by:110
Symbol 110 TextUses:109Used by:111
Symbol 111 MovieClip {game._-2} [select_level]Uses:110
Symbol 112 GraphicUsed by:115
Symbol 113 GraphicUsed by:115
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:112 113 114Used by:118 121
Symbol 116 FontUsed by:117 120
Symbol 117 TextUses:116Used by:118
Symbol 118 MovieClipUses:115 117Used by:119
Symbol 119 MovieClip {game._-8J} [back11]Uses:118
Symbol 120 TextUses:116Used by:121
Symbol 121 MovieClipUses:115 120Used by:122
Symbol 122 MovieClip {game._-Dw} [back22]Uses:121
Symbol 123 GraphicUsed by:125
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClip {game._-IF} [pizdec]Uses:123 97 124
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClip {game._-7y} [tile]Uses:126
Symbol 128 GraphicUsed by:131
Symbol 129 GraphicUsed by:131
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClip {game._-Iu} [sign]Uses:128 129 130
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClip {game._-Ce} [RAME]Uses:132
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClip {game._-Q} [wood]Uses:134
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClip {game._-BW} [stone]Uses:95 136
Symbol 138 MovieClip {game._-7f} [logo_back]Uses:6
Symbol 139 Bitmap {game._-40}
Symbol 140 Bitmap {game._-Gl}
Symbol 141 BinaryData {game._-EC}
Symbol 142 Bitmap {game._-2W}
Symbol 143 Bitmap {game._-HR}
Symbol 144 Bitmap {test._-DA}
Symbol 145 Bitmap {game._-4x}
Symbol 146 Bitmap {game._-1e}
Symbol 147 Bitmap {game._-JQ}
Symbol 148 Bitmap {game._-7e}
Symbol 149 Bitmap {game._-BO}
Symbol 150 Bitmap {game._-GO}
Symbol 151 Bitmap {game._-Dn}
Symbol 152 Bitmap {game._-z}
Symbol 153 Bitmap {game._-Dv}
Symbol 154 Bitmap {game._-KO}
Symbol 155 Bitmap {game._-8f}
Symbol 156 Bitmap {game._-0d}
Symbol 157 Font {game.mainMenu_FontClass1}
Symbol 158 Bitmap {game._-GP}
Symbol 159 Bitmap {game._-0o}
Symbol 160 Bitmap {game._-2B}
Symbol 161 Bitmap {game._-8L}
Symbol 162 Bitmap {game._-4t}
Symbol 163 Bitmap {game._-R}
Symbol 164 Bitmap {game._-I9}

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 1Symbol 4 as "ball"
ExportAssets (56)Timeline Frame 1Symbol 15 as "bgames"
ExportAssets (56)Timeline Frame 1Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 1Symbol 27 as "loader_button2"
ExportAssets (56)Timeline Frame 1Symbol 31 as "sky"
ExportAssets (56)Timeline Frame 1Symbol 34 as "loader_button1"
ExportAssets (56)Timeline Frame 1Symbol 36 as "cloud1"
ExportAssets (56)Timeline Frame 1Symbol 38 as "cloud2"
ExportAssets (56)Timeline Frame 1Symbol 41 as "cloud3"
ExportAssets (56)Timeline Frame 2Symbol 43 as "music"
ExportAssets (56)Timeline Frame 2Symbol 46 as "m_back"
ExportAssets (56)Timeline Frame 2Symbol 48 as "music2"
ExportAssets (56)Timeline Frame 2Symbol 61 as "game_title"
ExportAssets (56)Timeline Frame 2Symbol 66 as "ball_title"
ExportAssets (56)Timeline Frame 2Symbol 69 as "fb1"
ExportAssets (56)Timeline Frame 2Symbol 73 as "tw2"
ExportAssets (56)Timeline Frame 2Symbol 78 as "tw3"
ExportAssets (56)Timeline Frame 2Symbol 83 as "fb3"
ExportAssets (56)Timeline Frame 2Symbol 85 as "bglogo"
ExportAssets (56)Timeline Frame 2Symbol 86 as "game.soundManager_Sound1"
ExportAssets (56)Timeline Frame 2Symbol 31 as "sky"
ExportAssets (56)Timeline Frame 2Symbol 89 as "help_res_buttons"
ExportAssets (56)Timeline Frame 2Symbol 91 as "back4"
ExportAssets (56)Timeline Frame 2Symbol 103 as "completed"
ExportAssets (56)Timeline Frame 2Symbol 108 as "completed2"
ExportAssets (56)Timeline Frame 2Symbol 111 as "select_level"
ExportAssets (56)Timeline Frame 2Symbol 119 as "back11"
ExportAssets (56)Timeline Frame 2Symbol 122 as "back22"
ExportAssets (56)Timeline Frame 2Symbol 125 as "pizdec"
ExportAssets (56)Timeline Frame 2Symbol 127 as "tile"
ExportAssets (56)Timeline Frame 2Symbol 131 as "sign"
ExportAssets (56)Timeline Frame 2Symbol 133 as "RAME"
ExportAssets (56)Timeline Frame 2Symbol 135 as "wood"
ExportAssets (56)Timeline Frame 2Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 2Symbol 4 as "ball"
ExportAssets (56)Timeline Frame 2Symbol 137 as "stone"
ExportAssets (56)Timeline Frame 2Symbol 138 as "logo_back"
Tag 0x0FF (255)Timeline Frame 11 bytes "."
SerialNumber (41)Timeline Frame 1

Labels

"preloader_preloaderGameBGames"Frame 1
"Main"Frame 2




http://swfchan.com/17/82705/info.shtml
Created: 1/4 -2019 06:35:24 Last modified: 1/4 -2019 06:35:24 Server time: 22/12 -2024 08:06:20