collision (modifier)
693
Example
These statements try to set
closedCaptions
to TRUE, and display an alert if they cannot
be enabled:
-- Lingo syntax
member(3).closedCaptions = TRUE
if (member(3).closedCaptions = FALSE) then
_player.alert("Closed captions cannot be enabled.")
end if
// JavaScript syntax
member(3).closedCaptions = true
if (member(3).closedCaptions == false) {
_player.alert("Closed captions cannot be enabled.");
}
Currently unsupported on Macintosh.
See also
DVD
collision (modifier)
Usage
member(
whichCastmember
).model(
whichModel
).\
collision.
collisionModifierProperty
Description
3D modifier; manages the detection and resolution of collisions. Adding the
collision
modifier
to a model by using the
addModifier
command allows access to the following
collision
modifier properties:
enabled (collision)
indicates whether collisions with the model are detected.
resolve
indicates whether collisions with the model are resolved.
immovable
indicates whether a model can be moved from frame to frame.
mode (collision)
indicates the geometry used for collision detection.
Note:
For more detailed information about these properties, see the individual property entries.
The collision modifier generates the following events. For more information about using collision
events, see the
registerForEvent()
entry.
A
#collideAny
event is generated when a collision occurs between models to which the
collision
modifier has been attached.
A
#collideWith
event is generated when a collision occurs with a specific model to which the
collision
modifier has been attached.
The
collisionData
object is sent as an argument with the
#collideAny
and
#collideWith
events. See the
collisionData
entry for details of its properties.
See also
addModifier
,
removeModifier
,
modifiers
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...