Debugging in the Object inspector
93
To view an object using the Inspect Object button:
1
In the Script window, highlight the part of a statement that refers to an object.
2
In the Script window, click Inspect Object. If the object has subproperties, a plus sign (+)
appears to the left of it.
3
Click the plus sign. The properties of the object appear below it. Properties with subproperties
appear with a plus sign to their left. Click each plus sign to display the subproperties.
Note:
Inspecting large numbers of objects or large individual objects in the Object inspector can
cause noticeable performance issues during authoring, particularly when Auto Poll is enabled. For
example, inspecting a list that contains 10,000 entries can make Director appear to hang while the
display is updating.
Navigating objects
You can also navigate the contents of the Object inspector with the arrow keys on your keyboard.
To move up or down in the list of items:
•
Use the Up and Down arrow keys.
To view an item’s subproperties:
•
Select the item and press the Right arrow key.
To hide an item’s subproperties:
•
Select the item and press the Left arrow key.
Using Autopoll
System properties, such as
milliseconds
and
colorDepth
are only updated in the Object
inspector when the Autopoll option is turned on. Using Autopoll increases the processor
workload, which can slow your movie’s performance when you add more than a few system
properties to the Object inspector.
To turn on Autopoll:
1
Right-click (Windows) or Control-click (Macintosh) in the Object inspector. The Object
inspector context menu appears.
2
Select Autopoll from the context menu. When Autopoll is on, a check mark appears next to the
Autopoll item in the context menu.
To turn off Autopoll:
•
Select Autopoll from the context menu again.
Modifying object or property values
You can set the value of an object or property in the Object inspector by entering a new value in
the box to the right of the object or property name.
To set an object or property value:
1
Double-click the value to the right of the item name.
2
Enter the new value for the item.
3
Press Enter (Windows) or Return (Macintosh). The new value is set and reflected in your
movie immediately.
You can enter a script expression as the value for an item. For example, you might set the value of
sprite(3).locH
to the expression
sprite(8).locH + 20
.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...