About Event Properties And Event Propagation - Adobe 65009333 - InCopy CS4 - PC Manual

Scripting guide: javascript
Hide thumbs Also See for 65009333 - InCopy CS4 - PC:
Table of Contents

Advertisement

Events
User-Interface
event
Revert
Save
Save A Copy
Save As

About event properties and event propagation

When an action—whether initiated by a user or by a script—triggers an event, the event can spread, or
propagate, through the scripting objects capable of responding to the event. When an event reaches an
object that has an
An event can be handled by more than one object as it propagates.
There are three types of event propagation:
None — Only the
beforeDisplay
Capturing — The event starts at the top of the scripting object model—the application—then
propagates through the model to the target of the event. Any
responding to the event registered to objects above the
Bubbling — The event starts propagation at its
registered to the
triggering any qualifying
object model hierarchy.
The following table provides more detail on the properties of an
to event propagation through the scripting object model.
Event name
Description
Appears after a document revert
beforeRevert
request is made but before the
document is reverted to an earlier
saved state.
Appears after a document is reverted
afterRevert
to an earlier saved state.
Appears after a save document
beforeSave
request is made but before the
document is saved.
Appears after a document is saved.
afterSave
Appears after a document
beforeSaveACopy
save-a-copy-as request is made but
before the document is saved.
Appears after a document is saved.
afterSaveACopy
Appears after a document save-as
beforeSaveAs
request is made but before the
document is saved.
Appears after a document is saved.
afterSaveAs
registered for that event, the
eventListener
registered to the event target are triggered by the event. The
eventListeners
event is an example of an event that does not propagate.
. The event then proceeds upward through the scripting object model,
target
eventListeners
Understanding the event scripting model 72
eventListener
eventListeners
will process the event.
target
and triggers any qualifying
target
registered to objects above the
event
Object type
DocumentEvent
DocumentEvent
DocumentEvent
DocumentEvent
DocumentEvent
DocumentEvent
DocumentEvent
DocumentEvent
is triggered by the event.
capable of
eventListeners
in the scripting
target
and the ways in which they relate

Advertisement

Table of Contents
loading

This manual is also suitable for:

Incopy cs4

Table of Contents