User Guide
328 Chapter 15: The 3D Cast Member, 3D Text, and 3D Behaviors
Behavior types
Director 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 defined 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.
Using the 3D Behavior Library
All 3D behaviors are listed in the Behavior Library. The Behavior Library is divided into two
sublibraries: actions and triggers.
To view 3D trigger behavio
rs:
1 Click the Library Palette button on the Director toolbar.
2 Click the Library List button and select 3D.
3 Select Triggers from the 3D submenu.
The trigger behaviors appear, as shown in the following figure.
Type Function
Trigger behavior A behavior that sends an event, such as a mouse click, to an
action behavior
Local action behavior A behavior that is attached to a particular sprite and that can
accept triggers only from that sprite
Public action behavior A behavior that can be triggered by any sprite
Independent action behavior A behavior that needs no trigger