User Guide
Flash panels 121
Example
function onFwDocumentNameChange()
{
// your code goes here
}
Example
_global.onFwDocumentNameChange = function ()
{
// your code goes here
}
Both examples show how to implement a handler for the document name changed event.
However, the second example will only work if the assignment executes before or during the
onFwStartMovie handler.
onFWDocuementOpen Sent when the document is opened.
onFWDocumentClosed Sent when the document is closed.
onFWDocumentSave Sent when a
save action is performed in the document.
onFwDocumentSizeChange Sent when the document is resized.
onFwActiveViewChange Sent when the active view changes. This happens when
the user changes focus in 2- or 4-Up view.
onFwPixelSelectionChange Sent when the pixel selection changes.
onFwActiveSelectionChange Sent when the selection changes in a document.
onFwActiveDocumentChange Sent when the user creates a new document, closes a
document, opens a document, or switches between open
documents.
onFwActiveToolParamsChange Sent when the user changes the tool stroke or fill attributes.
onFwActiveToolChange Sent when the user changes tools.
onFwZoomChange Sent when the zoom setting for the current document
changes.
onFwObjectSettingChange Sent when a stroke or fill setting is changed for the
selected object.
NOTE
The event handler must be implemented in the global namespace. Any events that are in
the SWF file but aren't global, or are read only after Fireworks checks for events, will not
work correctly.
Event Description