Flash 8 Documentation |
|||
| Components Language Reference > Delegate class | |||
Inheritance Object > Delegate
ActionScript Class Name mx.utils.Delegate
The Delegate class lets you run a function in a specific scope. This class is provided so that you can dispatch the same event to two different functions (see Delegating events to functions in Using Components), and so that you can call functions within the scope of the containing class.
When you pass a function as a parameter to EventDispatcher.addEventListener(), the function is invoked in the scope of the broadcaster component instance, not the object in which it is declared (see Delegating the scope of a function in Using Components). You can call Delegate.create() to call the function within the scope of the declaring object.
The following table lists the method of the Delegate class.
|
Method |
Description |
|---|---|
|
A static method that allows you to run a function in a specific scope. |
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00003430.html
Comments
Art Clifford said on Oct 10, 2006 at 2:13 AM : burtonrider1983 said on Apr 16, 2007 at 4:24 PM :