deleteFrame()
287
deleteCamera
Usage
member(
whichCastmember
).deleteCamera(
cameraName
)
member(
whichCastmember
).deleteCamera(
index
)
sprite(
whichSprite
).deleteCamera(
cameraOrIndex
)
Description
3D command; in a cast member, this command removes the camera from the cast member and
the 3D world. Children of the camera are removed from the 3D world but not deleted.
It is not possible to delete the default camera of the cast member.
In a sprite, this command removes the camera from the sprite’s list of cameras. The camera is not
deleted from the cast member.
Parameters
cameraNameOrNum
Required. A string or an integer that specifies the name or index position of
the camera to delete.
Example
This statement deletes two cameras from the cast member named Room: first the camera named
Camera06, and then camera 1.
member("Room").deleteCamera("Camera06")
member("Room").deleteCamera(1)
This statement removes two cameras from the list of cameras for sprite 5: first the second camera
in the list, then the camera named Camera06
sprite(5).deleteCamera(2)
sprite(5).deleteCamera(member("Room").camera("Camera06"))
See also
newCamera
,
addCamera
,
cameraCount()
deleteFrame()
Usage
-- Lingo syntax
_movie.deleteFrame()
// JavaScript syntax
_movie.deleteFrame();
Description
Movie method; deletes the current frame and makes the next frame the new current frame during
a Score generation session only.
Parameters
None.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...