EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 756

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...
756 Chapter 14: Properties
This property is useful in determining the span in the Score of a particular sprite.
This property is available only in a frame that contains the sprite. It cannot be applied to sprites in
different frames of the movie.
Example
This statement output reports the ending frame of the sprite in channel 5 in the Message window:
-- Lingo syntax
put(sprite(5).endFrame)
// JavaScript syntax
put(sprite(5).endFrame);
See also
Sprite, startFrame
endTime
Usage
-- Lingo syntax
soundChannelObjRef.endTime
// JavaScript syntax
soundChannelObjRef.endTime;
Description
Sound Channel property; specifies the end time of the currently playing, paused, or queued
sound. Read/write.
The end time is the time within the sound member when it will stop playing. It’s a floating-point
value, allowing for measurement and control of sound playback to fractions of milliseconds. The
default value is the normal end of the sound.
This property may be set to a value other than the normal end of the sound only when passed as a
parameter with the
queue() or setPlayList() methods.
Example
These statemenets check whether the sound member Jingle is set to play all the way through in
sound channel 1:
-- Lingo syntax
if (sound(1).startTime > 0 and sound(1).endTime < member("Jingle").duration) \
then
_player.alert("Not playing the whole sound.")
end if
// JavaScript syntax
if (sound(1).startTime > 0 && sound(1).endTime < member("Jingle").duration) {
_player.alert("Not playing the whole sound.");
}
See also
queue(), setPlayList(), Sound Channel