Lingo Dictionary > S > setTrackEnabled

 

setTrackEnabled

Syntax

sprite(whichSprite).setTrackEnabled(whichTrack, trueOrFalse ) 
setTrackEnabled(sprite whichSprite, whichTrack, trueOrFalse)

Description

Command; determines whether the specified track in the digital video is enabled to play.

When setTrackEnabled is TRUE, the specified track is enabled and playing.

When setTrackEnabled is FALSE, the specified track is disabled and muted. For video tracks, this means they will no longer be updated on the screen.

To test whether a track is already enabled, test the trackEnabled sprite property.

Example

This statement enables track 3 of the digital video assigned to sprite channel 8:

sprite(8).setTrackEnabled(3, TRUE)

See also

trackEnabled