Class mx.utils.Delegate

Object
   +--mx.utils.Delegate

Description

The Delegate class creates a function wrapper to let you run a function in the context of the original object, rather than in the context of the second object, when you pass a function from one object to another.

Field Index

func
Inherited from Object
__proto__, constructor, prototype

Method Index

new Delegate()

create(), createDelegate()
Inherited from Object
addProperty(), hasOwnProperty(), isPropertyEnumerable(), isPrototypeOf(), registerClass(), toLocaleString(), toString(), unwatch(), valueOf(), watch()

Constructor Detail

Delegate

function Delegate(f:
Function)

Field Detail

func

private func: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.

createDelegate

function createDelegate(obj:
Object):Function