| Package | system.events |
| Class | public class Delegate |
| Inheritance | Delegate Object |
| Implements | Cloneable, EventListener, Runnable |
Note :
Delegate class implements EventListener interface. you can use a Delegate instances in the addEventListener method for all IEventDispatcher implementations.Delegate class implements system.process.Runnable interface| Property | Defined By | ||
|---|---|---|---|
| arguments : Array
Determinates the Array representation of all arguments called in the proxy method. | Delegate | ||
| method : Function [read-only]
Indicates the proxy method reference. | Delegate | ||
| scope : * [read-only]
Indicates the scope reference of the proxy target. | Delegate | ||
| Method | Defined By | ||
|---|---|---|---|
Delegate(scope:*, method:Function, ... args)
Creates a new Delegate instance. | Delegate | ||
addArguments(... args):void
Adds arguments in the list of all arguments passed-in the proxy method. | Delegate | ||
clone():*
Returns a shallow copy of the instance. | Delegate | ||
create(scope:*, method:Function, ... arguments):Function [static]
Creates a method that delegates its arguments to a specified scope. | Delegate | ||
handleEvent(e:Event):void
Handles the event. | Delegate | ||
run(... arguments):void
Run the proxy method in the provided context. | Delegate | ||
| arguments | property |
arguments:Array
Determinates the Array representation of all arguments called in the proxy method.
public function get arguments():Array public function set arguments(value:Array):void| method | property |
method:Function [read-only] Indicates the proxy method reference.
public function get method():Function| scope | property |
scope:* [read-only] Indicates the scope reference of the proxy target.
public function get scope():*| Delegate | () | Constructor |
public function Delegate(scope:*, method:Function, ... args)Creates a new Delegate instance.
Parametersscope:* — the scope to be used by calling this method.
| |
method:Function — the method to be executed.
| |
... args — the optional argument to pass in the method.
|
| addArguments | () | method |
public function addArguments(... args):voidAdds arguments in the list of all arguments passed-in the proxy method.
Parameters
... args |
| clone | () | method |
public function clone():*Returns a shallow copy of the instance.
Returns* — a shallow copy of the instance.
|
| create | () | method |
public static function create(scope:*, method:Function, ... arguments):FunctionCreates a method that delegates its arguments to a specified scope. This static method is a wrapper for MM compatibility.
Parameters
scope:* — this scope to be used by calling this method.
| |
method:Function — the method to be called.
| |
... arguments |
Function — a Function that delegates its call to a custom scope, method and arguments.
|
| handleEvent | () | method |
public function handleEvent(e:Event):voidHandles the event.
Parameters
e:Event |
| run | () | method |
public function run(... arguments):voidRun the proxy method in the provided context.
Parameters
... arguments |