With ActionScript 3.0, 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. However, in the ActionScript 3.0 Debugger, remote debugging is limited to files located on the same localhost as the Flash authoring application, being played in the stand alone debug player, ActiveX control, or plugin.
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 passwordIn ActionScript 3.0 FLA files, code in frame scripts cannot be debugged. Only code in external AS files can be debugged with the ActionScript 3.0 Debugger.
Activate the Debugger from a remote locationThe section "Activate the Debugger from a remote location" mentions an SWD file, but that's only for AS2. At least, there's no other mention of an SWD file in any other page in the "Debugging ActionScript 3.0" folder, and no SWD is produced for an AS3 project when debugging in Flash, as there is when you debug an AS2 project.
Jay4
said on
Mar 6, 2008
at
11:56 AM :
You are correct. Only the AS2 debugger uses SWD files for debugging. They are note used for debugging AS3 files. The sentence above in step 3 that refers to SWD files should be ignored.nolty said on May 6, 2008 at 5:16 PM :
Hi -- In general I find much of this page confusing. Anyway one thing I figured out that isn't specifically mentioned is that one needs to run the .MSI installer from the Players/Debug directory in order to have the debug version of the plugin or activeX control running in my browser. (I'm doing some debugging that interacts with PHP so I have to run the SWF file in a browser for it to work.)nolty said on May 6, 2008 at 5:21 PM :
Also, it wouldn't hurt to specify that even if the SWF is on a remote computer, I can play it in a browser on my local computer where Flash is installed, and make the debug connection using localhost.
I hope in the next release you'll have the ability to debug code in a frame for AS3.
Respectfully,
Bob
Is there a way to get out of debug mode while you are waiting for the connection to happen?
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/UsingFlash/WSE9184681-3417-4849-B487-8D6C2F8CC688.html
Comments
Comments are no longer accepted for Flash CS3. Flash CS4 is the current version. To discuss Flash CS3, please use the Adobe forum.