beautypg.com

Fl.removeeventlistener(), Fl.resetas3packagepaths() – Adobe Extending Flash Professional CS5 User Manual

Page 272

background image

250

EXTENDING FLASH PROFESSIONAL

flash object (fl)

Last updated 5/2/2011

Description
Method; rebuilds the Tools panel from the toolconfig.xml file. This method is used only when creating extensible tools.
Use this method when you need to reload the Tools panel, for example, after modifying the JSFL file that defines a tool
that is already present in the panel.

Example
The following example is a one-line script that you can place in the Commands folder. When you need to reload the
Tools panel, run the script from the Commands menu.

fl.reloadTools();

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");

See also

fl.addEventListener()

fl.resetAS3PackagePaths()

Availability
Flash CS3 Professional.

Usage

fl.resetAS3PackagePaths()

This manual is related to the following products: