Class org.aswing.utils.Delegate

Description

Mtasc compileable Delegate class.

Method Index

new Delegate()
create(), createDelegate()

Constructor Detail

Delegate

function Delegate(f:Function)

Method Detail

create

static function create(obj:Object, func:Function):Function

Creates a functions wrapper for the original function so that it runs in the provided context.

Parameters

objContext in which to run the function.
funcFunction to run. you can add custom parameters after this to be the additional parameters when called the created function.

createDelegate

public function createDelegate(obj:Object):Function