EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 1050

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...
1050 Chapter 14: Properties
Example
This statement determines the number of tracks in the digital video sprite assigned to channel 10
and displays the result in the Message window:
-- Lingo syntax
put(sprite(10).trackCount())
// JavaScript syntax
trace(sprite(10).trackCount());
trackEnabled
Usage
-- Lingo syntax
spriteObjRef.trackEnabled(whichTrack)
// JavaScript syntax
spriteObjRef.trackEnabled(whichTrack);
Description
Digital video sprite property; indicates the status of the specified track of a digital video. This
property is
TRUE if the track is enabled and playing. This property is FALSE if the track is disabled
and no longer playing or is not updating.
This property cannot be set. Use the
setTrackEnabled property instead.
Example
This statement checks whether track 2 of digital video sprite 1 is enabled:
-- Lingo syntax
put(sprite(1).trackEnabled(2))
// JavaScript syntax
put(sprite(1).trackEnabled(2));
See also
setTrackEnabled()
trackNextKeyTime
Usage
-- Lingo syntax
spriteObjRef.trackNextKeyTime(whichTrack)
// JavaScript syntax
spriteObjRef.trackNextKeyTime(whichTrack);
Description
Digital video sprite property; indicates the time of the keyframe that follows the current time in
the specified digital video track.
This property can be tested but not set.