home *** CD-ROM | disk | FTP | other *** search
/ The Complete Idiot's Guide to Microsoft Excel 2010 / CIGExcel.iso / Videos / Flash / controller.swf / scripts / __Packages / com / techsmith / utils / Delegate.as < prev    next >
Encoding:
Text File  |  2010-09-09  |  500 b   |  23 lines

  1. class com.techsmith.utils.Delegate
  2. {
  3.    function Delegate()
  4.    {
  5.    }
  6.    static function create(d_scope, d_func)
  7.    {
  8.       var addArguments = new Array();
  9.       var _loc2_ = 2;
  10.       while(_loc2_ < arguments.length)
  11.       {
  12.          addArguments.push(arguments[_loc2_]);
  13.          _loc2_ = _loc2_ + 1;
  14.       }
  15.       var _loc3_ = function()
  16.       {
  17.          var _loc2_ = arguments.concat(addArguments);
  18.          d_func.apply(d_scope,_loc2_);
  19.       };
  20.       return _loc3_;
  21.    }
  22. }
  23.