beautypg.com

Fl.reloadtools(), Fl.removeeventlistener() – Adobe Extending Flash Professional CS4 User Manual

Page 267

background image

245

EXTENDING FLASH CS4 PROFESSIONAL

flash object (fl)

fl.reloadTools()

Availability
Flash MX 2004.

Usage

fl.reloadTools()

Parameters
None.

Returns
Nothing.

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()

.