Chapter 16: Delegate Class - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

CHAPTER 16
Delegate class
Inheritance
Object > Delegate
ActionScript Class Name
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
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()
Method summary for the Delegate class
The following table lists the method of the Delegate class.
Method
Delegate.create()
mx.utils.Delegate
EventDispatcher.addEventListener()
to call the function within the scope of the declaring object.
Description
A static method that allows you to run a function in a specific scope.
1 6
, the
461

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents