removeFromWorld
503
Example
This statement registers the
messageReceived
event handler found in a movie script to be called
when the model named Player receives the custom user defined event named
#message
:
member("Scene").model("Player").registerScript(#message, \
#messageReceived, 0)
This statement registers the
collisionResponder
event handler found in the same script as the
registerScript
command to be called each time a collision occurs between the model named
Player and any other model using the
#collision
modifier:
member("Scene").model("Player").registerScript(#collideWith, \
#collisionResponder, me)
See also
registerForEvent()
,
sendEvent
,
setCollisionCallback()
removeBackdrop
Usage
member(
whichCastmember
).camera(
whichCamera
).removeBackdrop(
index
)
Description
3D command; removes the backdrop found in a specified position from the camera’s list of
backdrops to display.
Parameters
index
Required. Specifies the index position of the backdrop in the list of backdrops.
Example
The following statement removes the third backdrop from the list of backdrops for camera 1
within the member named Scene. The backdrop will disappear from the stage if there are any
sprites currently using this camera.
member("Scene").camera[1].removeBackdrop(3)
removeFromWorld
Usage
member(
whichCastmember
).model(
whichModel
).removeFromWorld()
member(
whichCastmember
).light(
whichLight
).removeFromWorld()
member(
whichCastmember
).camera(
whichCamera
).removeFromWorld()
member(
whichCastmember
).group(
whichGroup
).removeFromWorld()
Description
3D command; for models, lights, cameras or groups whose parent hierarchy terminates in the
world object, this command sets their parent to void and removes them from the world.
For objects whose parent hierarchy does not terminate in the world, this command does nothing.
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...