User Guide
681
Example
This statement assigns the text in track 5 of the digital video assigned at the current time to sprite
20 to the field cast member Archives:
member("Archives").text = string(sprite(20).trackText(5))
trackType (cast member property)
Syntax
member(whichDigitalVideoCastmember).trackType(whichTrack)
trackType(member whichCastMember, 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:
on checkForText
if member("Today’s News").trackType(5) = #text then textFormat
end
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
trails
Syntax
sprite(whichSprite).trails
the trails of sprite whichSprite
Description
Sprite property; for the sprite specified by whichSprite, turns the trails ink effect on (1 or TRUE)
or off (0 or
FALSE). For the value set by Lingo to last beyond the current sprite, the sprite must
be a puppet.