EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 1065

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
type (model resource) 1065
// JavaScript syntax
function checkFormat() {
if (member("Today’s News").type != "field") {
_player.alert("Sorry, this cast member must be a field.");
}
}
See also
Member
type (model resource)
Usage
member(whichCastmember).modelResource(whichModelResource).type
Description
3D model resource property; the resource type of the referenced model resource. This property’s
possible values are:
• #box indicates that this model resource is a primitive box resource created using the
newModelResource command.
• #cylinder indicates that this model resource is a primitive cylinder resource created using the
newModelResource command.
• #extruder indicates that this model resource is a primitive text extruder resource created
using the
extrude3d command.
• #mesh indicates that this model resource is a primitive mesh generator resource created using
the
newMesh command.
• #particle indicates that this model resource is a primitive particle system resource created
using the
newModelResource command.
• #plane indicates that this model resource is a primitive plane resource created using the
newModelResource command.
• #sphere indicates that this model resource is a primitive sphere resource created using the
newModelResource command.
• #fromFile indicates that this model resource was created external to Director and was loaded
from an external file or a cast member.
Example
The following statement displays the type property of the model resource named Helix.
put member("helix models").modelResource("Helix").type
-- #fromFile
See also
newModelResource, newMesh, extrude3D