home *** CD-ROM | disk | FTP | other *** search
/ Practice Anatomy Lab / PAL.ISO / pc / PAL.swf / scripts / __Packages / ascb / util / Proxy.as
Encoding:
Text File  |  2007-03-19  |  536 b   |  24 lines

  1. class ascb.util.Proxy
  2. {
  3.    function Proxy()
  4.    {
  5.    }
  6.    static function create(oTarget, fFunction)
  7.    {
  8.       var aParameters = new Array();
  9.       var _loc2_ = 2;
  10.       while(_loc2_ < arguments.length)
  11.       {
  12.          aParameters[_loc2_ - 2] = arguments[_loc2_];
  13.          _loc2_ = _loc2_ + 1;
  14.       }
  15.       var _loc4_ = function()
  16.       {
  17.          var _loc2_ = arguments.concat(aParameters);
  18.          _loc2_.push(arguments.callee);
  19.          fFunction.apply(oTarget,_loc2_);
  20.       };
  21.       return _loc4_;
  22.    }
  23. }
  24.