711
18
CHAPTER 18
Debugging Applications
Macromedia Flash Basic 8 and Macromedia Flash Professional 8 provide several tools for
testing ActionScript in your SWF files. The Debugger lets you find errors in a SWF file while
it’s running in the Flash Debug Player (see
“Debugging your scripts” on page 711
). Flash also
provides the following additional debugging tools:
■
The Output panel, which shows error messages, including some runtime errors, and lists
of variables and objects (see
“Using the Output panel” on page 724
)
■
The
trace
statement, which sends programming notes and values of expressions to the
Output panel (see
“Using the trace statement” on page 728
)
■
The
throw
and
try..catch..finally
statements, which let you test and respond to
runtime errors from within your script.
This section describes how to debug your scripts and Flash applications by using the
Debugger, and how to use the Output panel. For more information, see the following topics:
Debugging your scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 711
Using the Output panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .724
Debugging your scripts
The Debugger in Flash 8 helps you find errors in your SWF file while it runs in Flash Player.
You must view your SWF file in a special version of Flash Player, which is called
Flash Debug
Player
. When you install the authoring tool, Flash Debug Player is installed automatically. So
if you install Flash and browse a website that has Flash content, or use the Test Movie option,
you’re using Flash Debug Player. You can also run the installer in the following directory in
Windows or Macintosh:
Flash install directory
\Players\Debug\ directory or start the stand-
alone Flash Debug Player from the same directory.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...