User Guide

Chapter 18466
Using 3D behaviors
Director MX includes a library of behaviors that let you build and control a 3D environment
without any knowledge of Lingo. Although scripting is still required for complex projects, you
can build simple 3D movies with behaviors alone.
Behavior types
Director MX provides two types of 3D behaviors: trigger and action. Action behaviors are divided
into three types: local, public, and independent. These behavior types and subtypes are detailed in
the following table.
If you’re familiar with behaviors from earlier versions of Director, you’ll recognize that the trigger/
action distinction is new. In previous versions, the trigger instruction had to be included as a
handler, such as
on mouseDown, inside the behavior. The trigger behavior type makes it easier to
reuse action behaviors in different ways with different triggers. These behaviors can be used with
any 3D cast member.
displayFace Get and set Faces of shape to display. #front
#tunnel
#back
Default is to show all three
faces
displayMode Get and set Specifies how the text appears. #modeNormal
#Mode3D
Default is #modeNormal, which
is 2D text
member(1).
extrude3d
(member(2))
Not applicable Creates a new model resource in
member 2 by extruding the text in
member 1. Member 1 must be a text cast
member.
Specify an existing 3D cast
member
smoothness Get and set Number of subdivisions for curved
outlines.
Integer from 1 to 100
Default is 5
tunnelDepth Get and set Extrusion depth. Floating-point value from 1.0
to 100.0
Type Function
Trigger A behavior that sends an event, such as a mouse click, to an action behavior
Local action A behavior that is attached to a particular sprite and that can accept triggers only
from that sprite
Public action A behavior that can be triggered by any sprite
Independent action A behavior that needs no trigger
Property Access Description Range or
Default