Title
Description
Body As I don't always have access to the Adobe Flash IDE, I wanted to be able to view debug output for applications developed as pure ActionScript. Using the Flex 3 SDK, I can compile SWF files on the command line. Using the Debug version of the Flash Player, I can view trace output, as long as the Flash Player has been configured for debugging. <a href="http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=logging_3.html">Configuring the Debug version of the Flash Player</a> requires adding a file in the right location for each operating system. On the Mac: <pre><code>/Library/Application Support/macromedia/mm.cfg</code></pre> On Windows XP: <pre><code>C:\Documents and Settings\user_name\mm.cfg</code></pre> Adobe provides the following content for a sample mm.cfg file: <pre><code>ErrorReportingEnable=1 TraceOutputFileEnable=1</code></pre> On the Mac, I've found that the Console provides real-time feedback from the Flash Player when reading the flashlog.txt file. The file is located here: <pre><code>/Users/user_name/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt</code></pre> Or I can use Terminal with the following command to view real-time feedback: <pre><code>cd ~/Library/Preferences/Macromedia/Flash\ Player/Logs tail -f flashlog.txt</code></pre> On Windows, I've found that I can accomplish the same thing when reading the flashlog.txt file by using Git Bash, which can be installed with <a href="http://code.google.com/p/msysgit/">Git on MSys</a> installer. The file is located here: <pre><code>C:\Documents and Settings\user_name\Application Data\Macromedia\Flash Player\Logs\flashlog.txt</code></pre> In Git Bash, I can run the following commands to get real-time trace output from the Flash Player. <pre><code>cd ~/Application\ Data/Macromedia/Flash\ Player/Logs tail -f flashlog.txt</code></pre>
Section Tutorials Contact Journal About Home
Category Applications Design History Ideas Technology
Tags
Date
DesignProjectX | The digital sandbox of Stephen Bau