864
Chapter 14: Properties
modelResource
Usage
member(
whichCastmember
).modelResource(
whichModelResource
)
member(
whichCastmember
).modelResource[
index
]
member(
whichCastmember
).modelResource.count
member(
whichCastmember
).modelResource(
whichModelResource
).\
propertyName
member(
whichCastmember
).modelResource[
index
].propertyName
Description
3D command; returns the model resource found within the referenced cast member that has the
name specified by
whichModelResource
, or is found at the index position specified by the
index
parameter. If no model resource exists for the specified parameter, the command returns
void
. As
modelResource.count
, the command returns the number of model resources found
within the referenced cast member. This command also allows access to the specified
model resource’s properties.
Model resource name string comparisons are not case-sensitive. The index position of a particular
model resource may change when objects at lower index positions are deleted.
Example
This statement stores a reference to the model resource named HouseA in the variable
thismodelResource
.
thismodelResource = member("3DWorld").modelResource("HouseA")
This statement stores a reference to the fourteenth model resource of the cast member named
3DWorld in the variable
thismodelResource
.
thismodelResource = member("3DWorld").modelResource[14]
This statement shows that there are ten model resources in the member of sprite 1.
put sprite(1).member.modelResource.count
--10
modified
Usage
-- Lingo syntax
memberObjRef
.modified
// JavaScript syntax
memberObjRef
.modified;
Description
Member property; indicates whether a cast member has been modified since it was read from a
movie file. Read-only.
•
When the
modified
property is
TRUE
(
1
), the cast member has been modified since it was read
from the movie file.
•
When the
modified
property is
FALSE
(
0
), the cast member has not been modified since it was
read from the movie file.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...