on deactivateApplication
163
•
channelID
The number of the sound or sprite channel for the file where the cue
point occurred.
•
cuePointNumber
The ordinal number of the cue point that triggers the event in the list of
the cast member’s cue points.
•
cuePointName
The name of the cue point that was encountered.
The message is passed—in order—to sprite, cast member, frame, and movie scripts. For the sprite
to receive the event, it must be the source of the sound, like a QuickTime movie or SWA cast
member. Use the
isPastCuePoint
property to check cues in behaviors on sprites that don’t
generate sounds.
Example
This handler placed in a Movie or Frame script reports any cue points in sound channel 1 to the
Message window:
-- Lingo syntax
on cuePassed channel, number, name
if (channel = #Sound1) then
put("CuePoint" && number && "named" && name && "occurred in sound 1")
end if
end
// JavaScript syntax
function cuePassed(channel, number, name) {
if (channel == symbol("Sound1")) {
put("CuePoint " + " named " + name + "occurred in sound 1");
}
}
See also
scriptInstanceList
,
cuePointNames
,
cuePointTimes
,
isPastCuePoint()
on deactivateApplication
Usage
-- Lingo syntax
on deactivateApplication
statement(s)
end
// JavaScript syntax
function deactivateApplication() {
statement(s);
}
Description
Built-in handler; runs when the projector is sent to the background. This handler is useful when
a projector runs in a window and the user can send it to the background to work with other
applications. Any MIAWs running in the projector can also make use of this handler.
During authoring, this handler is called only if Animate in Background is turned on in
General Preferences.
On Windows, this handler is not called if the projector is merely minimized and no other
application is brought to the foreground.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...