
12 Using Director MX 2004 behaviors
Drag Model to Rotate allows the user to view all sides of a 3D model by rotating the model in
space. You can specify which axis, or pair of axes, the model can rotate about.
Model Rollover Cursor changes the pointer to any of the available system pointers when the
mouse pointer is over a model.
Play Animation allows the user to initiate an animation. Animations must be preexisting in the
cast member.
Create Box adds a box to the world. Boxes can be of preset or random width, height, and length.
Image cast members can be selected and wrapped around the box. You can vary the shader to
define how the box’s surface will look.
Create Particle System produces numerous effects by varying its many settings. Fireworks and
explosions are examples of its uses. Gravity, wind, and drag can be applied to particles along
any axis.
Create Sphere adds a sphere to the world. Spheres can be of preset or random diameter. Image
cast members can be selected and wrapped around the sphere. You can vary the shader to define
how the surface will look.
Level of Detail enables the 3D level of detail modifier for the sprite and controls the amount of
detail that is put into a model. It dynamically scales the number of polygons used to render the
model depending on the model’s distance from the camera.
Sub Division Surface enables the subdivision surfaces modifier for the sprite and adds geometric
detail to models. Unlike the level of detail modifier, which removes detail, this modifier
synthesizes additional detail to smooth out curves as the camera gets nearer to the model. It may
cause performance problems if a model using this modifier is visible in more than one sprite or
camera at the same time.
Generic Do allows use of the trigger behaviors to send common strings to call custom handlers in
your own movie scripts.
Toggle Redraw allows the 3D redraw to be turned on or off. This has an effect that is similar to
setting the trails of a sprite. When set to
FALSE, redraw is inactive, causing a trails effect. When set
to
TRUE, redraw is turned on, preventing a trails effect.
Toon allows the imitation of a cartoon-style rendering of a model’s surface by applying a toon
modifier to the sprite. This modifier draws a model using only a handful of colors.
Show Axis draws axis lines for each model. This can be useful for debugging and is intended only
for this purpose. The blue line indicates the z-axis. The red line indicates the x-axis. The green
line indicates the y-axis.
3D triggers
Mouse Left enables other 3D action behaviors (rotate, zoom, etc.) to receive left mouse button
events (including events from the Macintosh mouse button).
Mouse Right enables other 3D action behaviors (rotate, zoom, etc.) to receive right mouse
button events (including events from the Macintosh mouse button).
Mouse Enter sends Mouse Enter event triggers to 3D action behaviors (rotate, zoom, etc.).
Mouse Within sends Mouse Within event triggers to 3D action behaviors (rotate, zoom, etc.).
Mouse Leave sends Mouse Leave event triggers to 3D action behaviors (rotate, zoom, etc.).
Keyboard Input sends keyboard event triggers to 3D actions behaviors (rotate, zoom, etc.).
Commentaires sur ces manuels