---
title: "Flex中trace()"
author: "zwh910621"
date: "2009-11-27T21:44:19Z"
tags: []
slug: "flex-trace"
draft: false
lastmod: "2009-11-27T21:44:19Z"
id: 531492
url: "https://javaheart88.iteye.com/blog/531492"
---

Flex中trace()调试时flash player版本问题  
关键字: flex, trace(), flash player  
Flex builder 3.0中使用trace( )调试时（debug方式运行，也可直接按F11运行。如果不是debug方式运行，trace函数的内容是不会输出的），弹出提示：

Installed Flash Player Is Not a Debugger

C:\\Windows\\System32\\Macromed\\Flash\\Flash10a.ocx  
Flex Builder cannot locate the required debugger version of Flash Player. You might need to install the debugger version of Flash Player 9 or reinstall Flex Builder.  
Do you want to try to debug with the current version?

这是因为：flex builder 3 默认安装的是flash player debugger 9.而最新的是 player 10 debugger版。如果安装的是10a，也会偶尔提示这个错误。

下载[http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer\_10\_ax\_debug.exe](http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_ax_debug.exe)

安装后就可以了。

如果出现不能安装的情况，可能是版本冲突，无法自动卸载已安装的版本。

解决安装 Adobe Flash Player ActiveX 控件失败的方法（这是我在网上找到的，也可以试试只执行第3步卸载操作）  
1、下载安装微软subinacl.msi  
[http://download.microsoft.com/download/1/7/d/17d82b72-bc6a-4dc8-bfaa-98b37b22b367/subinacl.msi](http://download.microsoft.com/download/1/7/d/17d82b72-bc6a-4dc8-bfaa-98b37b22b367/subinacl.msi)

2.、下载reset\_minimal  
[http://www.adobe.com/support/flashplayer/ts/documents/fb1634cb/reset\_minimal.zip](http://www.adobe.com/support/flashplayer/ts/documents/fb1634cb/reset_minimal.zip)

解压缩后，将 reset\_minimal 复制到subinacl.msi的安装目录下），执行 reset\_minimal，执行完毕后提示"按任意键退出"。

3、下载 Flash Player 卸载器，执行卸载操作  
[http://download.macromedia.com/pub/flashplayer/current/uninstall\_flash\_player.exe](http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe);