See trace() of Flash when running in browser

前端 未结 9 1038
天命终不由人
天命终不由人 2020-12-23 14:55

What\'s an easy way to see the trace() output of Flash/Flex movies when running in any browser?

相关标签:
9条回答
  • 2020-12-23 15:16

    Download and install the content debugger version of Flash Player.

    Enable trace logging (official guide) by adding an mm.cfg file:

    ErrorReportingEnable=1
    
        TraceOutputFileEnable=1
    

    Where to save mm.cfg depends on the OS:

    • Mac OS X: /Library/Application Support/Macromedia
    • Windows: %HOMEDRIVE%\%HOMEPATH%
    • Linux: /home/user name

    The log file, flashlog.txt, can be found at:

    • Windows 95/98/ME/2000/XP: C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs
    • Windows Vista: C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs
    • Mac OS X: /Users/username/Library/Preferences/Macromedia/Flash Player/Logs/
    • Linux: /home/username/.macromedia/Flash_Player/Logs/

    Optionally, you can install the Firefox add-on FBTracer which displays the trace output in a Firebug panel.

    0 讨论(0)
  • 2020-12-23 15:16

    Vizzy makes life easier if you want a basic logfile viewer. You just install the debug player and then install Vizzy. It is a window that tails the flashlog file. The sweet thing is that is does all the mm.cfg file b.s. for you.

    http://code.google.com/p/flash-tracer/

    0 讨论(0)
  • 2020-12-23 15:25

    Probably not as fancy as the others or cutting edge, but I used to create my own log function in the flash movie (funnily enough, called log) that called trace and also called a js function on the page (using whatever method your comfortable with). The function on the page was just a simple console.log() with Firebug. Simple and worked a treat.

    0 讨论(0)
提交回复
热议问题