Flash mm.cfg配置
来源:互联网 发布:伺服电机的编程. 编辑:程序博客网 时间:2024/05/18 01:01
在Flash开发中可以通过配置mm.cfg文件,来对Debugger版本的Flash Player进行一些配置。例如设置trace() 日志输出到本地文件中,设置策略文件请求记录到本地文件中等。
在Flash Player 10.1或更高版本中,根据不同的操作系统,mm.cfg文件存放路径如下(如果相应的路径下没有该文件,创建一个即可):
一、mm.cfg文件路径
操作系统
路径
Macintosh OS X
Flash Player first checks the user’s home directory (~). If none is found, then Flash Player looks in /Library/Application Support/Macromedia
Windows 2000/XP
%HOMEDRIVE%\%HOMEPATH%
The default value is “c:\Documents and settings\username”.
Your system administrator might map the home directory to a shared network drive. In that case, check with your system administrator to determine how to configure your debugger Player.
Windows Vista/7/8
%HOMEDRIVE%\%HOMEPATH%
The default value is “c:\Users\username”.
Your system administrator might map the home directory to a shared network drive. In that case, check with your system administrator to determine how to configure your debugger Player.
Linux
/home/username
二、mm.cfg文件中相关属性的设置:
Property
Description
ErrorReportingEnable
是否记录错误信息。
取值0或1。
当取值为1时打开此功能。
默认取值是0。
MaxWarnings
Sets the number of warnings to log before stopping.
The default value of theMaxWarningsproperty is 100. After 100 messages, the debugger version of Flash Player writes a message to the file stating that further error messages will be suppressed.
Set theMaxWarningsproperty to override the default message limit. For example, you can set it to 500 to capture 500 error messages.
Set theMaxWarningsproperty to 0 to remove the limit so that all error messages are recorded.
PolicyFileLog
是否记录策略文件请求消息。
取值0或1。
当取值为1时打开此功能。
默认取值是0。
PolicyFileLogAppend
Lets you save the contents of the policy file log file.
Set thePolicyFileLogAppendproperty to 1 to save previous policy file log entries. The default value is 0.
IfPolicyFileLogAppendis not enabled, each new root-level SWF clears the log file. If PolicyFileLogAppend is enabled, the previous contents of the log file will always be kept, and the log file will grow at the end.
If many different root-level SWF files are loaded during your testing, you will probably want to enablePolicyFileLogAppend. However, if you enablePolicyFileLogAppend, you will probably need to manually rename or delete the log file from time to time, since otherwise it will grow to a large size, and it will be difficult to determine where previous output ends and new output begins.
TraceOutputFileEnable
是否打开trace日志的记录功能
取值0或1。
当取值为1时打开此功能。
默认取值是0。
TraceOutputFileName
trace日志输出文件名
Note: Beginning with the Flash Player 9 Update, Flash Player ignores theTraceOutputFileNameproperty and stores the flashlog.txt file in a hard-coded location based on operating system.
Sets the location of the log file. By default, the debugger version of Flash Player writes error messages to a file named flashlog.txt, located in the same directory in which the mm.cfg file is located.
SetTraceOutputFileNameto override the default name and location of the log file by specifying a new location and name in the following form: On Macintosh OS X, you should use colons to separate directories in the TraceOutputFileName path rather than slashes.
TraceOutputFileName=<fully qualified path/filename>
三、trace日志文件路径
Flash Player 9 更新之后,trace日志文件路径貌似已经不能修改了,其默认地址如下:
Operating System
Log file location
Windows 95/98/ME/2000/XP
C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs
Windows Vista/7/8
C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs
Macintosh OS X
/Users/username/Library/Preferences/Macromedia/Flash Player/Logs/
Linux
/home/username/.macromedia/Flash_Player/Logs/
四、一个配置样例
ErrorReportingEnable=1
PolicyFileLog=1
TraceOutputFileEnable=1
- Flash mm.cfg配置
- Flex 下 mm.cfg 文件配置详解
- flex 日志 mm.cfg
- 配置Flash Player mms.cfg 不存在的解决办法
- hibernate.cfg.xml配置
- hibernate.cfg配置
- hibernate.cfg.com 配置
- hibernate.cfg的配置
- bnbt.cfg配置说明
- hibernate.cfg.xml配置
- jbpm.cfg.xml配置
- Proguard.cfg 配置
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- Proguard.cfg 配置
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- Hibernate.cfg.xml 配置
- 考研那些天--倒计时131
- Eclipse打开已存在的Android项目
- Dangling meta character '?' near index 0
- 扩展juery 将 js object对象 转成 json结构字符串 用于ajax 传递json (验证可用)后台 对应fastJSON
- 从游戏中学到的6堂人生课
- Flash mm.cfg配置
- C# WinForm程序退出的方法
- 百度联盟与Google AdSense的比较
- wireshark分析SIP协议——注册
- Hadoop迁移namenode
- 技术宅的浪漫:花五个月做游戏向女友求婚
- 光耦的参数的理解
- 查看oracle连接数历史最大值
- JNI方法命名规则