User Guide
324
The following example displays information in cast member “field 2” about the music playing in
sound channel 1. If the music is not yet past cue point “climax”, the text of “field 2” is “This is the
beginning of the piece.” Otherwise, the text reads “This is the end of the piece.”
if not sound(1).isPastCuePoint("climax") then
member("field 2").text = "This is the beginning of the piece."
else
member("field 2").text = "This is the end of the piece."
end if
isVRMovie
Syntax
member(whichCastMember).isVRMovie
isVRMovie of member whichCastMember
sprite(whichSprite).isVRMovie
isVRMovie of sprite whichSprite
Description
QuickTime cast member and sprite property; indicates whether a cast member or sprite is a
QuickTime VR movie that has not yet been downloaded (
TRUE), or whether the cast member or
sprite isn’t a QuickTime VR movie (
FALSE).
Testing for this property in anything other than an asset whose type is #quickTimeMedia
produces an error message.
This property can be tested but not set.
Example
The following handler checks to see if the member of a sprite is a QuickTime movie. If it is, the
handler further checks to see if it is a QTVR movie. An alert is posted in any case.
on checkForVR theSprite
if sprite(theSprite).member.type = #quickTimeMedia then
if sprite(theSprite).isVRMovie then
alert "This is a QTVR asset."
else
alert "This is not a QTVR asset."
end if
else
alert "This is not a QuickTime asset."
end if
end
item...of
Syntax
textMemberExpression.item[whichItem]
item whichItem of fieldOrStringVariable
textMemberExpression.item[firstItem..lastItem]
item firstItem to lastItem of fieldOrStringVariable
Description
Keyword; specifies an item or range of items in a chunk expression. An item in this case is
any sequence of characters delimited by the current delimiter as determined by the
itemDelimiter property.