fl.removeEventListener()

Availability

Flash CS3 Professional.

Usage

fl.removeEventListener(eventType)

Parameters

eventType
A string that specifies the event type to remove from this callback function. Acceptable values are "documentNew", "documentOpened", "documentClosed", "mouseMove", "documentChanged", "layerChanged", and "frameChanged".

Returns

A Boolean value of true if the event listener was successfully removed; false if the function was never added to the list with the fl.addEventListener() method.

Description

Unregisters a function that was registered using fl.addEventListener().

Example

The following example removes the event listener associated with the documentClosed event:

fl.removeEventListener("documentClosed");