开发者

no flashlog.txt

开发者 https://www.devze.com 2023-03-05 12:47 出处:网络
I have troubles with the FlashPlayer logging. Yes, I have installed the debugging version, a mm.cfg file (co开发者_StackOverflow社区ntent is ErrorReportingEnable=1 TraceOutputFileEnable=1) exists in m

I have troubles with the FlashPlayer logging.

Yes, I have installed the debugging version, a mm.cfg file (co开发者_StackOverflow社区ntent is ErrorReportingEnable=1 TraceOutputFileEnable=1) exists in my profile folder, but there is no flashlog.txt.

I am using Windows 7 (x64) and IE8 if that's important.


A solution:

  1. Install the Firebug add-on in Firefox
  2. Create a log function in AS3.

The code:

import flash.external.ExternalInterface;

function log(msg:String):void {
    ExternalInterface.call("console.log", msg);
}

The above function calls the javascript console.log function. When you execute the following command from you movieclip:

log("I'm testing my movieclip");

you will see that message in your Firebug console.


I had similar problem year or two ago on linux and solution was to create flashlog.txt file at default place.

0

精彩评论

暂无评论...
验证码 换一张
取 消