home *** CD-ROM | disk | FTP | other *** search
/ Canadian Forces: A World of Opportunities / CanadianForces-AWorldOfOpportunities-WinMac.bin / 04_WhatOptions_FR.swf / scripts / __Packages / mx / utils / Delegate.as
Text File  |  2006-07-20  |  541b  |  25 lines

  1. class mx.utils.Delegate extends Object
  2. {
  3.    function Delegate(f)
  4.    {
  5.       super();
  6.       this.func = f;
  7.    }
  8.    static function create(obj, func)
  9.    {
  10.       var _loc2_ = function()
  11.       {
  12.          var _loc2_ = arguments.callee.target;
  13.          var _loc3_ = arguments.callee.func;
  14.          return _loc3_.apply(_loc2_,arguments);
  15.       };
  16.       _loc2_.target = obj;
  17.       _loc2_.func = func;
  18.       return _loc2_;
  19.    }
  20.    function createDelegate(obj)
  21.    {
  22.       return mx.utils.Delegate.create(obj,this.func);
  23.    }
  24. }
  25.