•
channelID
point occurred.
•
cuePointNumber
the cast member's cue points.
•
cuePointName
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
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 " + number + " named " + name + "occurred in sound 1");
}
}
See also
scriptInstanceList, cuePointNames, cuePointTimes,
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.
The number of the sound or sprite channel for the file where the cue
The ordinal number of the cue point that triggers the event in the list of
The name of the cue point that was encountered.
property to check cues in behaviors on sprites that don't
isPastCuePoint
isPastCuePoint()
on deactivateApplication
163
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers