User Guide

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 cameras 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.