Lingo Dictionary > T-Z > trackType (sprite property) |
![]() ![]() ![]() |
trackType (sprite property)
Syntax
sprite(
whichDigitalVideoSprite
).trackType(
whichTrack
)
trackType(sprite
whichSprite
,
whichTrack
)
Description
Digital video sprite property; returns the type of media in the specified track of the specified sprite. Possible values are #video
, #sound
, #text
, and #music
.
This property can be tested but not set.
Example
The following handler checks whether track 5 of the digital video sprite assigned to channel 10 is a text track and runs the handler textFormat
if it is:
on checkForText if sprite(10).trackType(5) = #text then textFormat end
![]() ![]() ![]() |