Friday, September 25, 2009

Flash debug player 10 and firefox 3.5

When you want to debug flash applications in a browser you need to have flash debug player
Some say that you have to unisntall original flash player first.


Download Location:
http://www.adobe.com/support/flashplayer/downloads.html

download and install it.use 'trace(flash.system.Capabilities.isDebugger);' in a flash file and run it to make sure flash debug player is installed perfectly.(it will show 'true' )
It will log the trace out puts into a text file in out PC.Though there are good articles on how to view trace outputs of flash applicationsrun in a browser,I wasnt able to figure it out for a couple of hours though i got good articles like this one

http://stackoverflow.com/questions/864155/see-trace-of-flash-when-running-in-browser/864346#864346

.I created mm.cfg ,kept changing 'TraceOutputFileName', tried putting flashlog.txt on different locations .still no hope flashlog.txt was always blank

Finally I found it .the reason was mentioned here

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=logging_125_04.html#196092

flashlog.txt location is hard coded,cant be controlled from flash player 9 version.The locations are given in the table at the bottomm.Yet I did one more wrong step.I saw that the flash log location is 'C:\Documents and Settings\user_name\Application Data\Macromedia\Flash Player\Logs\flashlog.txt ' ,but since macromedia was aquired by adobe,I it should be 'C :\Documents and Settings\user_name\Application Data\Adobe\Flash Player\Logs\flashlog.txt '.Which resutlted in loss of few more minutes.Finally i decide to give it a try to look at C:\Documents and Settings\user_name\Application Data\Macromedia\Flash Player\Logs\flashlog.txt and bingo i could see the flash trace() out puts.

I wonder why adobe is sill keeping the log file location in macromedia folder.Whatever it is I can see the trace ouptuts of flash applications run inside a browser and i am happy man :)


Operating system

Location of flashlog.txt

Macintosh OS X

MacHD:Users:user_name:Library:Preferences:Macromedia:Flash Player:Logs:flashlog.txt

Microsoft Windows Vista

C:\Users\user_name\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt

Windows 95/98/ME/2000/XP

C:\Documents and Settings\user_name\Application Data\Macromedia\Flash Player\Logs\flashlog.txt

Linux

/home/user_name/.macromedia/Flash_Player/Logs/flashlog.txt

No comments:

Post a Comment