Adobe FLASH CS3 PRO User Manual page 407

Hide thumbs Also See for FLASH CS3 PRO:
Table of Contents

Advertisement

Important: When you use a non-English application on an English system, the Test Movie command fails if any part of
the SWF file path has characters that cannot be represented with the MBCS encoding scheme. For example, Japanese
paths on an English system do not work.
Other debugging tools
Flash also provides the following debugging tools:
• The Compiler Errors panel, which shows errors encountered when Flash compiles your scripts
• The Output panel, which shows runtime error messages, and lists of variables and objects
• The
statement, which sends programming notes and values of expressions to the Output panel
trace()
• The
and
throw
try..catch..finally
your script
Debug a local SWF file
Open the FLA document.
1
2
Select Debug > Debug Movie.
This command exports the SWF file with debugging information (the SWD file). It opens the Debugger and opens
the SWF file in the test environment. The SWD file is used to debug ActionScript, and contains information that lets
you use breakpoints and step through code.
Debug a remote ActionScript 2.0 SWF file
You can debug a remote SWF file by using the stand-alone, ActiveX, or plug-in version of the Debug Flash Player,
which you can find in the Flash install directory/Players/Debug/ directory.
To permit remote debugging of the file, enable debugging in the Publish settings. You can also publish your file with
a debugging password to ensure that only trusted users can debug it.
As in JavaScript or HTML, users can view client-side variables in ActionScript. To store variables securely, send them
to a server-side application instead of storing them in your file. However, as a developer, you may have other trade
secrets, such as movie clip structures, that you do not want to reveal. You can use a debugging password to protect
your work.
Enable remote debugging of a SWF file and set a debugging password
Open the FLA file.
1
2
Select File > Publish Settings.
On the Flash tab of the Publish Settings dialog box, select Permit Debugging.
3
To set a password, enter a password in the Password box.
4
After you set this password, no one can download information to the Debugger without the password.
Close the Publish Settings dialog box, and select one of the following commands:
5
• Debug > Debug Movie
• File > Export > Export Movie
• File > Publish
statements, which let you test and respond to runtime errors from within
FLASH CS3
401
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs3 professional

Table of Contents