EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 845

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...
loopStartTime 845
loopsRemaining
Usage
-- Lingo syntax
soundChannelObjRef.loopsRemaining
// JavaScript syntax
soundChannelObjRef.loopsRemaining;
Description
Sound Channel property; specifies the number of times left to play a loop in the current sound
playing in a sound channel. Read-only.
If the sound had no loop specified when it was queued, this property is 0. If this property is tested
immediately after a sound starts playing, it returns one less than the number of loops defined with
the
#loopCount property in the queue() or setPlayList() methods.
See also
loopCount, queue(), setPlayList(), Sound Channel
loopStartTime
Usage
-- Lingo syntax
soundChannelObjRef.loopStartTime
// JavaScript syntax
soundChannelObjRef.loopStartTime;
Description
Sound Channel property; specifies the start time, in milliseconds, of the loop for the current
sound being played by a sound channel. Read-only.
Its value is a floating-point number, allowing you to measure and control sound playback to
fractions of a millisecond. The default is the
startTime of the sound if no loop has been defined.
This property can only be set when passed as a property in a
queue() or setPlaylist()
methods.
Example
This handler plays sound cast member introMusic in sound channel 2. Playback loops five times
between two points 8 seconds and 8.9 seconds into the sound.
-- Lingo syntax
on playMusic
sound(2).play([#member:member("introMusic"), #startTime:3000, #loopCount:5 \
#loopStartTime:8000, #loopEndTime:8900])
end playMusic
// JavaScript syntax
function playMusic() {
sound(2).play(propList("member",member("introMusic"), "startTime",3000,
"loopCount",5, "loopStartTime",8000, "loopEndTime",8900));
}
See also
queue(), setPlayList(), Sound Channel, startTime