Main Page | Packages | Class Tree | Index | Help

mx.utils

class Delegate

Object
  |
  +--mx.utils.Delegate


class Delegate
extends Object

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.



Fields inherited from class Object

__proto__, constructor, prototype

Constructor


Delegate ( f: Function)


Method Summary

static
create ( obj: Object, func: Function ): Function
Creates a functions wrapper for the original function so that it runs in the provided context.


createDelegate ( obj: Object ): Function


Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Constructor Documentation

Delegate

function Delegate(f: Function)

Method Documentation

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

The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc