User Guide

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.