User Guide
393
CHAPTER 17
Controlling the 3D World
Macromedia Director MX 2004 provides powerful methods for overall control of the
three-dimensional (3D) world, including Lingo and JavaScript syntax for handling new 3D-
generated events, selecting models (picking), vector math operations, and transforms. In addition,
the properties and methods of the Director global renderer services object supply common
rendering properties for all 3D sprites and cast members. Finally, 3D cast member and sprite
properties and methods allow additional control of their content during playback.
The methods and properties that you see here in tabular form are also available with
accompanying syntax, definitions, and examples in the Scripting Reference topics in the Director
Help Panel.
3D Lingo or JavaScript syntax events
Event handling lets you use the registerForEvent method to specify a handler to run when a
particular event occurs within a specific cast member. With the
registerForEvent method, you
specify the type of event that will trigger the handler, the handler name, and the script object that
contains the handler. The Lingo or JavaScript syntax object can be a child script, an instance of a
behavior attached to a sprite, or any other script. If the object isn’t specified, the handler is called
in the first movie script in which it is found.