User Guide
120 Cross-Product Extensions
Creating event handlers
To create an event handler, implement a function with the corresponding event name.
Currently, Fireworks supports the following events for Flash panels:
Event Description
onFwStartMovie Sent to the SWF file right after Fireworks has started (or
restarted) the SWF file.
onFwStopMovie Sent to the SWF file right before Fireworks stops the file
(and possibly unloads it).
onFwUnitsChange Sent when the user changes the type of units (inches,
pixels, centimeters) in the Info panel.
onFwPICollapseOrExpand Sent when the user switches the PI between two rows high
and four rows high.
onFwDocumentNameChange Sent when the name of the current document changes (for
example, when the user performs a save).
onFwCurrentFrameChange Sent when the user selects a different frame.
onFwCurrentLayerChange Sent when the user selects a different layer.
onFwHistoryChange Sent when the user creates an non-scriptable history step.
onFWIdle0 Sent when Fireworks is in the first of a sequence of idle
states. Because Fireworks may often go through a
sequence of idle states, triggering functions by this event
may impair application performance.
onFWIdle1 Sent when Fireworks is in the second of a sequence of idle
states. Because Fireworks may often go through a
sequence of idle states, triggering functions by this event
may impair application performance.
onFWIdle2 Sent when Fireworks is in the third of a sequence of idle
states. Because Fireworks may often go through a
sequence of idle states, triggering functions by this event
may impair application performance.
onFwApplicationDeactivate Sent when the Fireworks application loses focus.
onFwApplicationActivate Sent when the Fireworks application gains focus.
onFwSymbolLibraryChange Sent when the symbol library changes in some way.
onFwURLListChange Sent when a new URL is added to the document.
onFwFavoritesChange Sent when the favorite urls list is modified.
onFwPreferencesChange Sent when the preferences are changed.