home *** CD-ROM | disk | FTP | other *** search
- package Code.org.cove.ape
- {
- import flash.display.Sprite;
- import flash.utils.getQualifiedClassName;
-
- public class _um83
- {
-
-
- protected var y:Number;
-
- private var _sprite:Sprite;
-
- private var _particles:Array;
-
- private var _constraints:Array;
-
- protected var x:Number;
-
- private var _isParented:Boolean;
-
- public function _um83()
- {
- super();
- if(getQualifiedClassName(this) == "org.cove.ape::AbstractCollection")
- {
- throw new ArgumentError("AbstractCollection can\'t be instantiated directly");
- }
- _isParented = false;
- _particles = new Array();
- _constraints = new Array();
- }
-
- public function get _th99() : Number
- {
- return y;
- }
-
- public function _dq187(param1:_hu144) : void
- {
- _id359.push(param1);
- if(_nt299)
- {
- param1.init();
- }
- }
-
- public function get _ej28() : Number
- {
- return x;
- }
-
- internal function get _nt299() : Boolean
- {
- return _isParented;
- }
-
- public function init() : void
- {
- var _loc1_:int = 0;
- _loc1_ = 0;
- while(_loc1_ < _id359.length)
- {
- _id359[_loc1_].init();
- _loc1_++;
- }
- _loc1_ = 0;
- while(_loc1_ < _rm414.length)
- {
- _rm414[_loc1_].init();
- _loc1_++;
- }
- }
-
- public function _ek304(param1:_pa14) : void
- {
- var _loc2_:int = 0;
- _loc2_ = _rm414.indexOf(param1);
- if(_loc2_ == -1)
- {
- return;
- }
- _rm414.splice(_loc2_,1);
- param1._xe147();
- }
-
- internal function set _nt299(param1:Boolean) : void
- {
- _isParented = param1;
- }
-
- public function _sb191() : Array
- {
- return _id359.concat(_rm414);
- }
-
- public function get _id359() : Array
- {
- return _particles;
- }
-
- public function _wr15() : void
- {
- var _loc1_:_hu144 = null;
- var _loc2_:int = 0;
- var _loc3_:int = 0;
- var _loc4_:_ex17 = null;
- _loc2_ = int(_particles.length);
- _loc3_ = 0;
- while(_loc3_ < _loc2_)
- {
- _loc1_ = _particles[_loc3_];
- if(!_loc1_.fixed || _loc1_._yt549)
- {
- _loc1_._wr15();
- }
- if(_loc1_._ny250)
- {
- _loc1_._ny250.onEnterFrame();
- }
- _loc3_++;
- }
- _loc2_ = int(_constraints.length);
- _loc3_ = 0;
- while(_loc3_ < _loc2_)
- {
- if(!(_loc4_ = _constraints[_loc3_]).fixed || _loc4_._yt549)
- {
- _loc4_._wr15();
- }
- _loc3_++;
- }
- }
-
- internal function _xq123(param1:Number) : void
- {
- var _loc2_:int = 0;
- var _loc3_:int = 0;
- var _loc4_:_hu144 = null;
- _loc2_ = int(_particles.length);
- _loc3_ = 0;
- while(_loc3_ < _particles.length)
- {
- (_loc4_ = _particles[_loc3_]).update(param1);
- _loc3_++;
- }
- }
-
- public function get _ny250() : Sprite
- {
- if(_sprite != null)
- {
- return _sprite;
- }
- if(_hj251.INST.container == null)
- {
- throw new Error("The container property of the APEngine class has not been set");
- }
- _sprite = new Sprite();
- _hj251.INST.container.addChild(_sprite);
- return _sprite;
- }
-
- public function _xe147() : void
- {
- var _loc1_:int = 0;
- _loc1_ = 0;
- while(_loc1_ < _id359.length)
- {
- if(_id359[_loc1_]._ny250.parent)
- {
- _id359[_loc1_]._ny250.parent.removeChild(_id359[_loc1_]._ny250);
- }
- _loc1_++;
- }
- _loc1_ = 0;
- while(_loc1_ < _rm414.length)
- {
- if(_rm414[_loc1_]._ny250.parent)
- {
- _rm414[_loc1_]._ny250.parent.removeChild(_rm414[_loc1_]._ny250);
- }
- _loc1_++;
- }
- }
-
- public function _rw173(param1:_hu144) : void
- {
- var _loc2_:int = 0;
- _loc2_ = _id359.indexOf(param1);
- if(_loc2_ == -1)
- {
- return;
- }
- _id359.splice(_loc2_,1);
- param1._xe147();
- if(Boolean(param1._ny250) && Boolean(param1._ny250.parent))
- {
- _hj251.INST.container.removeChild(param1._ny250);
- }
- }
-
- internal function _kp242() : void
- {
- var _loc1_:int = 0;
- var _loc2_:int = 0;
- var _loc3_:_pa14 = null;
- _loc1_ = int(_constraints.length);
- _loc2_ = 0;
- while(_loc2_ < _loc1_)
- {
- _loc3_ = _constraints[_loc2_];
- _loc3_._ot495();
- _loc2_++;
- }
- }
-
- internal function _qt487(param1:_um83) : void
- {
- var _loc2_:int = 0;
- var _loc3_:int = 0;
- var _loc4_:int = 0;
- var _loc5_:_hu144 = null;
- var _loc6_:int = 0;
- var _loc7_:int = 0;
- var _loc8_:int = 0;
- var _loc9_:_hu144 = null;
- var _loc10_:_ex17 = null;
- var _loc11_:_ex17 = null;
- var _loc12_:int = 0;
- _loc2_ = int(_particles.length);
- _loc3_ = 0;
- while(_loc3_ < _loc2_)
- {
- if((_loc5_ = _particles[_loc3_])._ts56)
- {
- _loc6_ = int(param1._id359.length);
- _loc7_ = 0;
- while(_loc7_ < _loc6_)
- {
- if((_loc9_ = param1._id359[_loc7_])._ts56)
- {
- _lo342.test(_loc5_,_loc9_);
- }
- _loc7_++;
- }
- _loc8_ = int(param1._rm414.length);
- _loc7_ = 0;
- while(_loc7_ < _loc8_)
- {
- if((_loc10_ = param1._rm414[_loc7_])._ts56 && !_loc10_._tb36(_loc5_))
- {
- _loc10_._pv28._ho479();
- _lo342.test(_loc5_,_loc10_._pv28);
- }
- _loc7_++;
- }
- }
- _loc3_++;
- }
- _loc4_ = int(_constraints.length);
- _loc3_ = 0;
- while(_loc3_ < _loc4_)
- {
- if((_loc11_ = _constraints[_loc3_])._ts56)
- {
- _loc6_ = int(param1._id359.length);
- _loc12_ = 0;
- while(_loc12_ < _loc6_)
- {
- if((_loc9_ = param1._id359[_loc12_])._ts56 && !_loc11_._tb36(_loc9_))
- {
- _loc11_._pv28._ho479();
- _lo342.test(_loc9_,_loc11_._pv28);
- }
- _loc12_++;
- }
- }
- _loc3_++;
- }
- }
-
- internal function _tf160() : void
- {
- var _loc1_:int = 0;
- var _loc2_:int = 0;
- var _loc3_:_hu144 = null;
- var _loc4_:int = 0;
- var _loc5_:int = 0;
- var _loc6_:int = 0;
- var _loc7_:_hu144 = null;
- var _loc8_:_ex17 = null;
- _loc1_ = int(_particles.length);
- _loc2_ = 0;
- while(_loc2_ < _loc1_)
- {
- _loc3_ = _particles[_loc2_];
- if(_loc3_._ts56)
- {
- _loc4_ = _loc2_ + 1;
- while(_loc4_ < _loc1_)
- {
- if((_loc7_ = _particles[_loc4_])._ts56)
- {
- _lo342.test(_loc3_,_loc7_);
- }
- _loc4_++;
- }
- _loc5_ = int(_constraints.length);
- _loc6_ = 0;
- while(_loc6_ < _loc5_)
- {
- if((_loc8_ = _constraints[_loc6_])._ts56 && !_loc8_._tb36(_loc3_))
- {
- _loc8_._pv28._ho479();
- _lo342.test(_loc3_,_loc8_._pv28);
- }
- _loc6_++;
- }
- }
- _loc2_++;
- }
- }
-
- public function get _rm414() : Array
- {
- return _constraints;
- }
-
- public function _qw214(param1:_pa14) : void
- {
- _rm414.push(param1);
- if(_nt299)
- {
- param1.init();
- }
- }
- }
- }
-