Collisions - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

Use these methods to set up event handling:
Method
registerForEvent
(eventName,
handlerName,
scriptInstance,
model)
unregister
AllEvents()_
sendEvent
(eventName,
arg1,arg2...)

Collisions

By attaching the collision modifier (
automatically respond to collisions with other models. By using the properties of the collision
modifier, you can control the details of how the model responds to collisions. For more
information about collisions, see
Collision properties
When a collision occurs, it generates a
event passes an argument to the handler that is declared with the
collideWith
registerForEvent
called a
collisionData
the collision.
394
Chapter 17: Controlling the 3D World
Description
The event
eventName
: Called when any collision occurs.
#collideAny
: Called when a collision with a specific
#collideWith
model occurs and implicitly registered when
setCollisionCallback(...)
calling
model.collision.setCollision
.
Callback
: Sets up a time-based simulation callback
#timeMS
using the format
registerForEvent
(timeMS, handlerName, scriptInstance)
begin, period, repetitions
The
and
begin
period
milliseconds. If
repetitions
continues indefinitely.
: Called whenever a keyFrame or
#animationStarted
bones motion begins.
: Called whenever a keyFrame or
#animationEnded
bones motion ends.
Any user-defined symbol: Registers to receive any
user-defined event sent from a SendEvent call.
Unregisters all events.
Sends an event named
registered to receive it.
Similar to
sendAllSprites()
delivered only to scripts that are registered to receive
it.
#collision
"Modifiers" on page
collideAny
,
, or
registerScript
object and contains a property list with detailed information about
is one of the following:
is called. Equivalent to
.
arguments are in
is set to
, the simulation
0
to all scripts
eventName
except that the event is
) to a model, you can enable that model to
366.
event or a
collideWith
setCollisionCallBack
Returns
if the
TRUE (1)
operation succeeds.
if the
FALSE (0)
operation fails.
Nothing.
A script error is
generated if the
operation fails.
Nothing.
A script error is
generated if the
operation fails.
event.The
method. This argument is

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents