EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 533

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.