setPlayList()
533
colorObjOrIntValue
Required if setting the color to a color object or an integer value. A
reference to a color object that specifies the color of the pixel, or an integer that specifies the color
value of the pixel.
Example
This Lingo statement draws a horizontal black line 50 pixels from left to right in cast member 5:
See also
color()
,
draw()
,
fill()
,
getPixel()
,
image()
setPlayList()
Usage
-- Lingo syntax
soundChannelObjRef
.setPlayList(
linearListOfPropLists
)
// JavaScript syntax
soundChannelObjRef
.setPlayList(
linearListOfPropLists
);
Description
Sound Channel method; sets or resets the playlist of a sound channel.
This method is useful for queueing several sounds at once.
To see an example of
setPlaylist()
used in a completed movie, see the Sound Control movie
in the Learning/Lingo folder inside the Director application folder.
Parameters
linearListOfPropLists
Required. A linear list of property lists that specifies parameters of a
playlist. You can specify these parameters for each sound to be queued:
Property
Description
#member
The sound cast member to queue. This property must be provided; all others
are optional.
#startTime
The time within the sound at which playback begins, in milliseconds. The default
is the beginning of the sound. See
startTime
.
#endTime
The time within the sound at which playback ends, in milliseconds. The default is
the end of the sound. See
endTime
.
#loopCount
The number of times to play a loop defined with
#loopStartTime
and
#loopEndTime
. The default is 1. See
loopCount
.
#loopStartTime
The time within the sound to begin a loop, in milliseconds. See
loopStartTime
.
#loopEndTime
The time within the sound to end a loop, in milliseconds. See
loopEndTime
.
#preloadTime
The amount of the sound to buffer before playback, in milliseconds.
See
preloadTime
.
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...