Packagesekati.utils
Classpublic class Delegate

A delegation proxy (similar to AS2 Delegate) for times when the built-in method closure doesn't cut it.



Public Methods
 MethodDefined by
  
Delegate Static Constructor
Delegate
  
create(target:Object, fn:Function, ... args):Function
[static] Similar to Delegate
Delegate
Constructor detail
Delegate()constructor
public function Delegate()

Delegate Static Constructor

Method detail
create()method
public static function create(target:Object, fn:Function, ... args):Function

Similar to Delegate

Parameters
target:Object
 
fn:Function
 
... args

Returns
Function

Example
Usage: private function quack( num:int, s:String ):void { trace( "hello" + num + " " + s ); } var f:Function = Delegate.create(this, quack, 1, "duck"); f( ); // outputs "hello1 duck"