816
Chapter 14: Properties
isVRMovie
Usage
-- Lingo syntax
memberOrSpriteObjRef
.isVRMovie
// JavaScript syntax
memberOrSpriteObjRef
.isVRMovie;
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.
-- Lingo syntax
on checkForVR(theSprite)
if sprite(theSprite).member.type = #quickTimeMedia then
if sprite(theSprite).isVRMovie then
_player.alert("This is a QTVR asset.")
else
_player.alert("This is not a QTVR asset.")
end if
else
_player.alert("This is not a QuickTime asset.")
end if
end
// JavaScript syntax
function checkForVR(theSprite) {
var memType = sprite(theSprite).member.type;
if (memType = "quickTimeMedia") {
var isType = sprite(theSprite).isVRMovie;
if (isType = 1) {
_player.alert("This is a QTVR asset.");
} else {
_player.alert("This is not a QTVR asset.");
} else {
_player.alert("This is not a QuickTime asset.");
}
}
}
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...