Saturday, May 22, 2010

Flash Output Log File

This post is just guide on where the flash log is situated and in case if not available then, how to make it available.

The flashlog.txt is a log file created by the Flash Player. Output of all trace statement along with error reports and warning messages which are generated during compilation and/or running of a flash application are written in this log file by flash player. Existing log file is deleted and new one is created, each time flash application is started.

The flashlog.txt file is located at following location on machine

Operating System Path
Window XP : C:/Documents and Settings/<user_name>/Application Data/Macromedia/Flash Player/Logs/flashlog.txt
Window Vista : C:/Users/<user_name>/AppData/Roaming/Macromedia/Flash Player/Logs/flashlog.txt

In case if flashlog.txt file is not available at above mention location [based on operating system], follow below mention steps:

  1. Open command prompt
  2. Type 'echo %HOMEDRIVE%HOMEPATH%' and then press enter.
    Above line of code when executed will specify location where macromedia configuration file [mm.cfg] will be found.
  3. Open Window Explorer and traverse to the folder location displayed on command prompt.
  4. If macromedia configuration file [mm.cfg] file is missing at above location then open a Notepad file type in below mention line of code as is and then save Notepad file as 'mm.cfg' at above location and close it.
    ErrorReportingEnable=1
    TraceOutputFileEnable=1
  5. Close all open flash application [IDE, AIR application and Web Browsers].
  6. Now re-run flash application and all the trace statement along with error reports and warning messages will be displayed in flashlog.txt file available at location mention in table above.

The sets listed above will be useful for debugging and getting all flash logs in flashlog.txt file when flash application is running in the standalone flash player. In order to get trace statement for flash application running through web browser, you need to install Flash Debug Player for web browser.


Steps to install Flash Debug Player
  1. Uninstall Flash player
  2. Install Flash Debug Player location [http://www.adobe.com/support/flashplayer/downloads.html]
  3. Restart your browser and launch any website containing SWF. Right-click [ctrl+click] on SWF, it will display 'Debugger' option in context menu.

Once Flash Debug Player is installed, you will be able to view logs in flashlog.txt file even for flash application running from web browser.

No comments:

Post a Comment