|
||||||
|
||||||
Flash Keyword: addEventListner
This is what Macromedia Flash MX04 help
says about addEventListener:
addEventListener
Method;
registers
a
listener
object
with
a
component
instance
that
is
broadcasting
an
event.
When
the
event
occurs,
the
listener
object
or
function
is
notified.
You
can
call
this
method
from
any
component
instance.
For
example,
the
following
code
registers
a
listener
to
the
component
instance
myButton:
myButton.addEventListener("click", myListener);
You must define the listener as either an object or a function before you call addEventListener() to register the listener with the component instance. If the listener is an object, it must have a callback function defined that is