MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 290

Director scripting reference
Table of Contents

Advertisement

deleteModelResource
Usage
member(whichCastmember).deleteModelResource(whichModelResource)
member(whichCastmember).deleteModelResource(index)
Description
3D command; removes the model resource from the cast member and the 3D world.
Models using the deleted model resource become invisible, because they lose their geometry, but
they are not deleted or removed from the world.
Parameters
resourceNameOrNum
the model resource to delete.
Example
These examples delete two model resources from the cast member named StreetScene.
member("StreetScene").deleteModelResource("HouseB")
member("StreetScene").deleteModelResource(3)
See also
newModelResource,
deleteMotion
Usage
member(whichCastmember).deleteMotion(whichMotion)
member(whichCastmember).deleteMotion(index)
Description
3D command; removes the motion from the cast member.
Parameters
motionNameOrNum
motion to delete.
Example
The first line of this example deletes the motion named BackFlip from the cast member named
PicnicScene. The second line deletes the fifth motion in PicnicScene.
member("PicnicScene").deleteMotion("BackFlip")
member("PicnicScene").deleteMotion(5)
See also
newMotion(),
290
Chapter 12: Methods
Required. A string or integer that specifies the name or index position of
newMesh
Required. A string or integer that specifies the name or index position of the
removeLast()

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

This manual is also suitable for:

Director mx 2004

Table of Contents