MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 845

Director scripting reference
Table of Contents

Advertisement

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
See also
loopCount, queue(), setPlayList(),
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
This property can only be set when passed as a property in a
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(),
property in the
queue()
Sound
Channel,
or
methods.
setPlayList()
Sound Channel
of the sound if no loop has been defined.
startTime
queue()
startTime
or
setPlaylist()
loopStartTime
845

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Director mx 2004

Table of Contents