EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 290

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...
290 Chapter 12: Methods
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
Required. A string or integer that specifies the name or index position of
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, newMesh
deleteMotion
Usage
member(whichCastmember).deleteMotion(whichMotion)
member(whichCastmember).deleteMotion(index)
Description
3D command; removes the motion from the cast member.
Parameters
motionNameOrNum
Required. A string or integer that specifies the name or index position of the
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(), removeLast()

Related product manuals