MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 503

Director scripting reference
Table of Contents

Advertisement

Example
This statement registers the
when the model named Player receives the custom user defined event named
member("Scene").model("Player").registerScript(#message, \
#messageReceived, 0)
This statement registers the
registerScript
Player and any other model using the
member("Scene").model("Player").registerScript(#collideWith, \
#collisionResponder, me)
See also
registerForEvent(), sendEvent,
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
Required. Specifies the index position of the backdrop in the list of backdrops.
index
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.
messageReceived
collisionResponder
command to be called each time a collision occurs between the model named
#collision
setCollisionCallback()
event handler found in a movie script to be called
event handler found in the same script as the
modifier:
:
#message
removeFromWorld
503

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