MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 864

Director scripting reference
Table of Contents

Advertisement

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
parameter. If no model resource exists for the specified parameter, the command returns
index
. As
void
modelResource.count
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 = 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
from the movie file.
When the
modified
read from the movie file.
864
Chapter 14: Properties
whichModelResource
, the command returns the number of model resources found
.
thismodelResource
property is
TRUE
property is
FALSE
, or is found at the index position specified by the
.
(
), the cast member has been modified since it was read
1
(
), the cast member has not been modified since it was
0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents