User Guide

168 Chapter 10: Events and Messages
See also
DVD
on endSprite
Usage
-- Lingo syntax
on endSprite
statement(s)
end
// JavaScript syntax
function endSprite() {
statement(s);
}
Description
System message and event handler; contains Lingo that runs when the playhead leaves a sprite
and goes to a frame in which the sprite doesnt exist. It is generated after
exitFrame.
Place
on endSprite handlers in a behavior script.
Director destroys instances of any behavior scripts attached to the sprite immediately after the
endSprite event occurs.
The event handler is passed the behavior or frame script reference
me if used in a behavior.
This endSprite message is sent after the exitFrame message if the playhead plays to the end
of the frame.
The
go(), play(), and updateStage() methods are disabled in an on endSprite handler.
UOPchange
Occurs when one of the available playback or search mechanisms has
changed.
The following additional information is passed to
DVDeventNotification
when this event occurs:
eventArg2 - An integer or address that indicates which playback or
search mechanisms the DVD disc explicitly disabled.
warning
Occurs when a DVD warning condition is encountered.
The following additional information is passed to
DVDeventNotification
when this event occurs:
eventArg2 - An integer or address that indicates the warning condition.
The warning condition will be one of the following values.
invalidDVD1_0Disc. DVD-Video disc is authored incorrectly. Playback
can continue, but unexpected behavior might occur.
formatNotSupported. A decoder would not support the current format.
Playback of a stream might not function.
illegalNavCommand. The internal DVD Navigation command processor
attempted to process an illegal command.
open.
seek.
read.
Event Description