Packagedom.events
Interfacepublic interface EventListener

Introduced in: DOM 2 Events 

The EventListener interface is the primary way for handling events. Users implement the EventListener interface and register their event listener on an EventTarget. The users should also remove their EventListener from its EventTarget after they have completed using the listener.

Copying a Node, with methods such as Node.cloneNode or Range.cloneContents, does not copy the event listeners attached to it. Event listeners must be attached to the newly created Node afterwards if so desired.

Moving a Node, with methods Document.adoptNode, Node.appendChild, or Range.extractContents, does not affect the event listeners attached to it.

See also

W3C - DOM 3 Events: EventListener
dom.events.EventTarget


Public Methods
 MethodDefined By
  
DOM 2 Events handleEvent(evt:Event):void
This method is called whenever an event occurs of the event type for which the EventListener interface was registered.
EventListener
Method Detail
DOM 2 Events handleEvent()method
public function handleEvent(evt:Event):void

Introduced in: DOM 2 Events 

This method is called whenever an event occurs of the event type for which the EventListener interface was registered.

Parameters

evt:Event — The Event contains contextual information about the event.

See also