Macromedia fireworks mx 2004-extending fireworks Manual Do Utilizador

Página de 296
Flash panels
93
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: 
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 only read after Fireworks checks for events, will not work correctly.
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.
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.
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.