MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 287

Director scripting reference
Table of Contents

Advertisement

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
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,
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.
Required. A string or an integer that specifies the name or index position of
cameraCount()
deleteFrame()
287

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