User Guide
trackType (Sprite) 1055
// JavaScript syntax
member("Archives").text = sprite(20).trackText(5).toString();
trackType (Member)
Usage
-- Lingo syntax
memberObjRef.trackType(whichTrack)
// JavaScript syntax
memberObjRef.trackType(whichTrack);
Description
Digital video cast member property; indicates which type of media is in the specified track of the
specified cast member. 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 cast member Today’s News is a
text track and then runs the handler
textFormat if it is:
-- Lingo syntax
on checkForText
if member("Today's News").trackType(5) = #text then
textFormat
end if
end
// JavaScript syntax
function checkForText() {
var tt = member("Today's News").trackType(5);
if (tt = "text") {
textFormat();
}
}
trackType (Sprite)
Usage
-- Lingo syntax
spriteObjRef.trackType(whichTrack)
// JavaScript syntax
spriteObjRef.trackType(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:
-- Lingo syntax
on checkForText