Flash mm.cfg配置

2024-02-23 09:38
文章标签 配置 flash mm cfg

本文主要是介绍Flash mm.cfg配置,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在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日志输出文件名

NoteBeginning 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配置的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/738210

相关文章

SpringBoot日志配置SLF4J和Logback的方法实现

《SpringBoot日志配置SLF4J和Logback的方法实现》日志记录是不可或缺的一部分,本文主要介绍了SpringBoot日志配置SLF4J和Logback的方法实现,文中通过示例代码介绍的非... 目录一、前言二、案例一:初识日志三、案例二:使用Lombok输出日志四、案例三:配置Logback一

springboot security之前后端分离配置方式

《springbootsecurity之前后端分离配置方式》:本文主要介绍springbootsecurity之前后端分离配置方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的... 目录前言自定义配置认证失败自定义处理登录相关接口匿名访问前置文章总结前言spring boot secu

一文详解SpringBoot响应压缩功能的配置与优化

《一文详解SpringBoot响应压缩功能的配置与优化》SpringBoot的响应压缩功能基于智能协商机制,需同时满足很多条件,本文主要为大家详细介绍了SpringBoot响应压缩功能的配置与优化,需... 目录一、核心工作机制1.1 自动协商触发条件1.2 压缩处理流程二、配置方案详解2.1 基础YAML

springboot简单集成Security配置的教程

《springboot简单集成Security配置的教程》:本文主要介绍springboot简单集成Security配置的教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,... 目录集成Security安全框架引入依赖编写配置类WebSecurityConfig(自定义资源权限规则

SpringBoot中封装Cors自动配置方式

《SpringBoot中封装Cors自动配置方式》:本文主要介绍SpringBoot中封装Cors自动配置方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录SpringBoot封装Cors自动配置背景实现步骤1. 创建 GlobalCorsProperties

Spring Boot结成MyBatis-Plus最全配置指南

《SpringBoot结成MyBatis-Plus最全配置指南》本文主要介绍了SpringBoot结成MyBatis-Plus最全配置指南,包括依赖引入、配置数据源、Mapper扫描、基本CRUD操... 目录前言详细操作一.创建项目并引入相关依赖二.配置数据源信息三.编写相关代码查zsRArly询数据库数

SpringBoot配置Ollama实现本地部署DeepSeek

《SpringBoot配置Ollama实现本地部署DeepSeek》本文主要介绍了在本地环境中使用Ollama配置DeepSeek模型,并在IntelliJIDEA中创建一个Sprin... 目录前言详细步骤一、本地配置DeepSeek二、SpringBoot项目调用本地DeepSeek前言随着人工智能技

如何自定义Nginx JSON日志格式配置

《如何自定义NginxJSON日志格式配置》Nginx作为最流行的Web服务器之一,其灵活的日志配置能力允许我们根据需求定制日志格式,本文将详细介绍如何配置Nginx以JSON格式记录访问日志,这种... 目录前言为什么选择jsON格式日志?配置步骤详解1. 安装Nginx服务2. 自定义JSON日志格式各

使用Python实现网络设备配置备份与恢复

《使用Python实现网络设备配置备份与恢复》网络设备配置备份与恢复在网络安全管理中起着至关重要的作用,本文为大家介绍了如何通过Python实现网络设备配置备份与恢复,需要的可以参考下... 目录一、网络设备配置备份与恢复的概念与重要性二、网络设备配置备份与恢复的分类三、python网络设备配置备份与恢复实

Linux上设置Ollama服务配置(常用环境变量)

《Linux上设置Ollama服务配置(常用环境变量)》本文主要介绍了Linux上设置Ollama服务配置(常用环境变量),Ollama提供了多种环境变量供配置,如调试模式、模型目录等,下面就来介绍一... 目录在 linux 上设置环境变量配置 OllamPOgxSRJfa手动安装安装特定版本查看日志在