
296
EXTENDING FIREWORKS
Cross-Product Extensions
Las
t
up
d
a
ted
12/8/2009
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.
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.
Publishing
When testing your script, use the File > Publish menu option in Adobe Flash. The Shockwave file is in the same place
as the FLA file after publishing.
onFwFavoritesChange
Sent when the favorite URLs list is modified.
onFwPreferencesChange
Sent when the preferences are changed.
onFwDocumentOpen
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.
Event
Description
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...