home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / org / cove / ape / _um83.as < prev    next >
Encoding:
Text File  |  2008-09-26  |  8.8 KB  |  340 lines

  1. package Code.org.cove.ape
  2. {
  3.    import flash.display.Sprite;
  4.    import flash.utils.getQualifiedClassName;
  5.    
  6.    public class _um83
  7.    {
  8.        
  9.       
  10.       protected var y:Number;
  11.       
  12.       private var _sprite:Sprite;
  13.       
  14.       private var _particles:Array;
  15.       
  16.       private var _constraints:Array;
  17.       
  18.       protected var x:Number;
  19.       
  20.       private var _isParented:Boolean;
  21.       
  22.       public function _um83()
  23.       {
  24.          super();
  25.          if(getQualifiedClassName(this) == "org.cove.ape::AbstractCollection")
  26.          {
  27.             throw new ArgumentError("AbstractCollection can\'t be instantiated directly");
  28.          }
  29.          _isParented = false;
  30.          _particles = new Array();
  31.          _constraints = new Array();
  32.       }
  33.       
  34.       public function get _th99() : Number
  35.       {
  36.          return y;
  37.       }
  38.       
  39.       public function _dq187(param1:_hu144) : void
  40.       {
  41.          _id359.push(param1);
  42.          if(_nt299)
  43.          {
  44.             param1.init();
  45.          }
  46.       }
  47.       
  48.       public function get _ej28() : Number
  49.       {
  50.          return x;
  51.       }
  52.       
  53.       internal function get _nt299() : Boolean
  54.       {
  55.          return _isParented;
  56.       }
  57.       
  58.       public function init() : void
  59.       {
  60.          var _loc1_:int = 0;
  61.          _loc1_ = 0;
  62.          while(_loc1_ < _id359.length)
  63.          {
  64.             _id359[_loc1_].init();
  65.             _loc1_++;
  66.          }
  67.          _loc1_ = 0;
  68.          while(_loc1_ < _rm414.length)
  69.          {
  70.             _rm414[_loc1_].init();
  71.             _loc1_++;
  72.          }
  73.       }
  74.       
  75.       public function _ek304(param1:_pa14) : void
  76.       {
  77.          var _loc2_:int = 0;
  78.          _loc2_ = _rm414.indexOf(param1);
  79.          if(_loc2_ == -1)
  80.          {
  81.             return;
  82.          }
  83.          _rm414.splice(_loc2_,1);
  84.          param1._xe147();
  85.       }
  86.       
  87.       internal function set _nt299(param1:Boolean) : void
  88.       {
  89.          _isParented = param1;
  90.       }
  91.       
  92.       public function _sb191() : Array
  93.       {
  94.          return _id359.concat(_rm414);
  95.       }
  96.       
  97.       public function get _id359() : Array
  98.       {
  99.          return _particles;
  100.       }
  101.       
  102.       public function _wr15() : void
  103.       {
  104.          var _loc1_:_hu144 = null;
  105.          var _loc2_:int = 0;
  106.          var _loc3_:int = 0;
  107.          var _loc4_:_ex17 = null;
  108.          _loc2_ = int(_particles.length);
  109.          _loc3_ = 0;
  110.          while(_loc3_ < _loc2_)
  111.          {
  112.             _loc1_ = _particles[_loc3_];
  113.             if(!_loc1_.fixed || _loc1_._yt549)
  114.             {
  115.                _loc1_._wr15();
  116.             }
  117.             if(_loc1_._ny250)
  118.             {
  119.                _loc1_._ny250.onEnterFrame();
  120.             }
  121.             _loc3_++;
  122.          }
  123.          _loc2_ = int(_constraints.length);
  124.          _loc3_ = 0;
  125.          while(_loc3_ < _loc2_)
  126.          {
  127.             if(!(_loc4_ = _constraints[_loc3_]).fixed || _loc4_._yt549)
  128.             {
  129.                _loc4_._wr15();
  130.             }
  131.             _loc3_++;
  132.          }
  133.       }
  134.       
  135.       internal function _xq123(param1:Number) : void
  136.       {
  137.          var _loc2_:int = 0;
  138.          var _loc3_:int = 0;
  139.          var _loc4_:_hu144 = null;
  140.          _loc2_ = int(_particles.length);
  141.          _loc3_ = 0;
  142.          while(_loc3_ < _particles.length)
  143.          {
  144.             (_loc4_ = _particles[_loc3_]).update(param1);
  145.             _loc3_++;
  146.          }
  147.       }
  148.       
  149.       public function get _ny250() : Sprite
  150.       {
  151.          if(_sprite != null)
  152.          {
  153.             return _sprite;
  154.          }
  155.          if(_hj251.INST.container == null)
  156.          {
  157.             throw new Error("The container property of the APEngine class has not been set");
  158.          }
  159.          _sprite = new Sprite();
  160.          _hj251.INST.container.addChild(_sprite);
  161.          return _sprite;
  162.       }
  163.       
  164.       public function _xe147() : void
  165.       {
  166.          var _loc1_:int = 0;
  167.          _loc1_ = 0;
  168.          while(_loc1_ < _id359.length)
  169.          {
  170.             if(_id359[_loc1_]._ny250.parent)
  171.             {
  172.                _id359[_loc1_]._ny250.parent.removeChild(_id359[_loc1_]._ny250);
  173.             }
  174.             _loc1_++;
  175.          }
  176.          _loc1_ = 0;
  177.          while(_loc1_ < _rm414.length)
  178.          {
  179.             if(_rm414[_loc1_]._ny250.parent)
  180.             {
  181.                _rm414[_loc1_]._ny250.parent.removeChild(_rm414[_loc1_]._ny250);
  182.             }
  183.             _loc1_++;
  184.          }
  185.       }
  186.       
  187.       public function _rw173(param1:_hu144) : void
  188.       {
  189.          var _loc2_:int = 0;
  190.          _loc2_ = _id359.indexOf(param1);
  191.          if(_loc2_ == -1)
  192.          {
  193.             return;
  194.          }
  195.          _id359.splice(_loc2_,1);
  196.          param1._xe147();
  197.          if(Boolean(param1._ny250) && Boolean(param1._ny250.parent))
  198.          {
  199.             _hj251.INST.container.removeChild(param1._ny250);
  200.          }
  201.       }
  202.       
  203.       internal function _kp242() : void
  204.       {
  205.          var _loc1_:int = 0;
  206.          var _loc2_:int = 0;
  207.          var _loc3_:_pa14 = null;
  208.          _loc1_ = int(_constraints.length);
  209.          _loc2_ = 0;
  210.          while(_loc2_ < _loc1_)
  211.          {
  212.             _loc3_ = _constraints[_loc2_];
  213.             _loc3_._ot495();
  214.             _loc2_++;
  215.          }
  216.       }
  217.       
  218.       internal function _qt487(param1:_um83) : void
  219.       {
  220.          var _loc2_:int = 0;
  221.          var _loc3_:int = 0;
  222.          var _loc4_:int = 0;
  223.          var _loc5_:_hu144 = null;
  224.          var _loc6_:int = 0;
  225.          var _loc7_:int = 0;
  226.          var _loc8_:int = 0;
  227.          var _loc9_:_hu144 = null;
  228.          var _loc10_:_ex17 = null;
  229.          var _loc11_:_ex17 = null;
  230.          var _loc12_:int = 0;
  231.          _loc2_ = int(_particles.length);
  232.          _loc3_ = 0;
  233.          while(_loc3_ < _loc2_)
  234.          {
  235.             if((_loc5_ = _particles[_loc3_])._ts56)
  236.             {
  237.                _loc6_ = int(param1._id359.length);
  238.                _loc7_ = 0;
  239.                while(_loc7_ < _loc6_)
  240.                {
  241.                   if((_loc9_ = param1._id359[_loc7_])._ts56)
  242.                   {
  243.                      _lo342.test(_loc5_,_loc9_);
  244.                   }
  245.                   _loc7_++;
  246.                }
  247.                _loc8_ = int(param1._rm414.length);
  248.                _loc7_ = 0;
  249.                while(_loc7_ < _loc8_)
  250.                {
  251.                   if((_loc10_ = param1._rm414[_loc7_])._ts56 && !_loc10_._tb36(_loc5_))
  252.                   {
  253.                      _loc10_._pv28._ho479();
  254.                      _lo342.test(_loc5_,_loc10_._pv28);
  255.                   }
  256.                   _loc7_++;
  257.                }
  258.             }
  259.             _loc3_++;
  260.          }
  261.          _loc4_ = int(_constraints.length);
  262.          _loc3_ = 0;
  263.          while(_loc3_ < _loc4_)
  264.          {
  265.             if((_loc11_ = _constraints[_loc3_])._ts56)
  266.             {
  267.                _loc6_ = int(param1._id359.length);
  268.                _loc12_ = 0;
  269.                while(_loc12_ < _loc6_)
  270.                {
  271.                   if((_loc9_ = param1._id359[_loc12_])._ts56 && !_loc11_._tb36(_loc9_))
  272.                   {
  273.                      _loc11_._pv28._ho479();
  274.                      _lo342.test(_loc9_,_loc11_._pv28);
  275.                   }
  276.                   _loc12_++;
  277.                }
  278.             }
  279.             _loc3_++;
  280.          }
  281.       }
  282.       
  283.       internal function _tf160() : void
  284.       {
  285.          var _loc1_:int = 0;
  286.          var _loc2_:int = 0;
  287.          var _loc3_:_hu144 = null;
  288.          var _loc4_:int = 0;
  289.          var _loc5_:int = 0;
  290.          var _loc6_:int = 0;
  291.          var _loc7_:_hu144 = null;
  292.          var _loc8_:_ex17 = null;
  293.          _loc1_ = int(_particles.length);
  294.          _loc2_ = 0;
  295.          while(_loc2_ < _loc1_)
  296.          {
  297.             _loc3_ = _particles[_loc2_];
  298.             if(_loc3_._ts56)
  299.             {
  300.                _loc4_ = _loc2_ + 1;
  301.                while(_loc4_ < _loc1_)
  302.                {
  303.                   if((_loc7_ = _particles[_loc4_])._ts56)
  304.                   {
  305.                      _lo342.test(_loc3_,_loc7_);
  306.                   }
  307.                   _loc4_++;
  308.                }
  309.                _loc5_ = int(_constraints.length);
  310.                _loc6_ = 0;
  311.                while(_loc6_ < _loc5_)
  312.                {
  313.                   if((_loc8_ = _constraints[_loc6_])._ts56 && !_loc8_._tb36(_loc3_))
  314.                   {
  315.                      _loc8_._pv28._ho479();
  316.                      _lo342.test(_loc3_,_loc8_._pv28);
  317.                   }
  318.                   _loc6_++;
  319.                }
  320.             }
  321.             _loc2_++;
  322.          }
  323.       }
  324.       
  325.       public function get _rm414() : Array
  326.       {
  327.          return _constraints;
  328.       }
  329.       
  330.       public function _qw214(param1:_pa14) : void
  331.       {
  332.          _rm414.push(param1);
  333.          if(_nt299)
  334.          {
  335.             param1.init();
  336.          }
  337.       }
  338.    }
  339. }
  340.