Chapter 3
184
deleteLight
Syntax
member(
whichCastmember
).deleteLight(
whichLight
)
member(
whichCastmember
).deleteLight(
index
)
Description
3D command; removes the light from the cast member and the 3D world. Children of the light
are removed from the 3D world but not deleted.
Examples
These examples delete lights from the cast member named Room.
member("Room").deleteLight("ambientRoomLight")
member("Room").deleteLight(6)
See also
newLight
deleteModel
Syntax
member(
whichCastmember
).deleteModel(
whichModel
)
member(
whichCastmember
).deleteModel(
index
)
Description
3D command; removes the model from the cast member and the 3D world. Children of the
model are removed from the 3D world but not deleted.
Examples
The first line of this example deletes the model named Player3 from the cast member named
gbWorld. The second line deletes the ninth model of gbWorld.
member("gbWorld").deleteModel("Player3")
member("gbWorld").deleteModel(9)
See also
newModel
deleteModelResource
Syntax
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.
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
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...