To view an object using the Inspect Object button:
In the Script window, highlight the part of a statement that refers to an object.
1
In the Script window, click Inspect Object. If the object has subproperties, a plus sign (+)
2
appears to the left of it.
Click the plus sign. The properties of the object appear below it. Properties with subproperties
3
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
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:
Right-click (Windows) or Control-click (Macintosh) in the Object inspector. The Object
1
inspector context menu appears.
Select Autopoll from the context menu. When Autopoll is on, a check mark appears next to the
2
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:
Double-click the value to the right of the item name.
1
Enter the new value for the item.
2
Press Enter (Windows) or Return (Macintosh). The new value is set and reflected in your
3
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
milliseconds
to the expression
sprite(8).locH + 20
and
are only updated in the Object
colorDepth
.
Debugging in the Object inspector
93
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers