Debugging in Flash using Trace

by Nathan 30. July 2009 09:51

 

Sometimes you will need to debug your flash application when its running live, for example if you are using server side scripts that are giving an Xml Response etc.

There is a way to output this information to a text, so you can have trace("Testing Response:" + myVariable); etc

 

1. You have to uninstall the original flash player you hav

2. Download the Debugger Version of Flash (You can get this on the Adobe Website)

3. For Windows XP add a file called mm.cfg to your X:\Documents and Settings\(UserName)

Inside the file add the following lines:

MaxWarnings=0
ErrorReportingEnable=1
TraceOutputFileEnable=1

4. You will then be able to find the output in the file  X:\Documents and Settings\(UserName)\Application Data\Macromedi\Flash Player\Logos\flashlog.txt

I usually run this in a program like textpad so it will bring up the file changes automatically.

 

NOTE: To stop the output you can go to publish preferences and select omit trace actions (This will stop people reading your trace information)

 

It is also possible to out the data using External Interface calls to Javascript, I will write more on this soon.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About the author

I am a Website Developer and Designer based in Sydney, Australia. I have experience in developing websites and applications using various languages including C#, VB, C++, Flash (ActionScript), SQL and Linux. You can see some of my projects at www.nathanbaker.com.au

Page List