User Guide

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 resources 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.