These statements start playing 10 seconds into chapter 2 and finish playing at 17 seconds:
member(15).play([#title:2, #seconds:10], [#title:2, #seconds:17])
See also
DVD, startTimeList,
play() (Sound Channel)
Usage
-- Lingo syntax
soundChannelObjRef.play()
soundChannelObjRef.play(memberObjRef)
soundChannelObjRef.play(propList)
// JavaScript syntax
soundChannelObjRef.play();
soundChannelObjRef.play(memberObjRef);
soundChannelObjRef.play(propList);
Description
Sound Channel method; begins playing any sounds queued in a sound channel, or queues and
begins playing a given cast member.
Sound cast members take some time to load into RAM before they can begin playback. It's
recommended that you queue sounds with
then use the first form of this method. The second two forms do not take advantage of the pre-
loading accomplished with the
By using an optional property list, you can specify exact playback settings for a sound.
To see an example of
Learning/Lingo folder inside the Director application folder.
Parameters
Required if playing a specific cast member. A reference to the cast member object
memberObjRef
to queue and play.
Required if specifying playback settings for a sound. A property list that specifies the
propList
exact playback settings for the sound. These properties may be optionally set:
Property
#member
#startTime
#endTime
#loopCount
#loopStartTime
450
Chapter 12: Methods
stopTimeList
queue()
used in a completed movie, see the Sound Control movie in the
play()
Description
The sound cast member to queue. This property must be provided; all others are
optional.
The time within the sound at which playback begins, in milliseconds. The default is
the beginning of the sound. See
The time within the sound at which playback ends, in milliseconds. The default is
the end of the sound. See
The number of times to play a loop defined with
. The default is 1. See
#loopEndTime
The time within the sound to begin a loop, in milliseconds. See
before you want to begin playing them and
queue()
command.
.
startTime
.
endTime
.
loopCount
and
#loopStartTime
loopStartTime
.
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