Debugging Projectors And Shockwave Movies - MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference

Director scripting reference
Table of Contents

Advertisement

When you are finished debugging, you can exit the Debugger at any time:
To resume normal execution of code an exit the Debugger window:
Click the Run Script button.
To exit the Debugger and stop playback of the movie:
Click the Stop Debugging button.
Editing scripts in debugging mode
When you are in debugging mode, you may edit your scripts directly in the Debugger window.
This enables you to fix bugs as soon as you find them and then continue debugging.
To edit a script in the Debugger window:
Click in the Script pane and place the insertion point where you want to begin typing.
1
Enter the changes to the script.
2
You can jump to a specific handler by selecting the name of the handler and clicking the Go To
Handler button.
When you are finished debugging and editing scripts, click the Stop Debugging button. The
3
Script window returns to Script mode.
Click the Recompile All Modified Scripts button.
4

Debugging projectors and Shockwave movies

This section discusses debugging during runtime in Director projectors and movies that contain
Macromedia Shockwave content. You can use either the Message window or enable full script
error dialog boxes to debug projectors and movies that contain Shockwave content.
To debug using the Message window:
Set the Player object's
When this property is
content opens a Message window (Windows) or a Message text file (Macintosh), and the
results of any
If at any time during the movie the
Message window or text file is closed and cannot be opened again during that playback session,
even if
debugPlaybackEnabled
To debug by enabling full script error dialogs:
In an .ini file for a projector or a movie that contains Shockwave content, set the
DisplayFullLingoErrorText
This generates more descriptive error text in the script error dialog box than the generic error
text. For example, a generic error message might look like:
Script error: Continue?
Setting the
DisplayFullLingoErrorText
error message:
Script error: list expected
For information on creating and modifying an appropriate .ini file for a projector or a movie
that contains Shockwave content, see the Director.ini template file in the root Director
installation folder.
98
Chapter 4: Debugging Scripts in Director
debugPlaybackEnabled
, playing back a projector or a movie that contains Shockwave
TRUE
or
function calls are output to these formats.
put()
trace()
is set back to
property to 1.
property to
debugPlaybackEnabled
later in that session.
TRUE
property to 1 could generate the following
.
TRUE
property is set to
FALSE
, the

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx 2004

Table of Contents