ActionScript 2.0 Components Language Reference |
|
|
|
| Delegate class > Delegate.create() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
Delegate.create(scopeObject,function)
scopeObject A reference to an object. This is the scope in which to run the function.
function A reference to a function.
Method (static); allows you to delegate events to specific scopes and functions. Use the following syntax:
import mx.utils.Delegate;compInstance.addEventListener("eventName", Delegate.create(scopeObject,function));
The scopeObject parameter specifies the scope in which the specified function is called.
For examples of Delegate.create(), see Delegating events in Using ActionScript 2.0 Components.
EventDispatcher.addEventListener()
|
|
|
|