终于解决了。
每次运行flex,F11编译的时候就会弹出一个对话框:
Installed Flash Player Is Not a Debugger
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?
点“yes”之后就会出现无法编译,在调试器也无法输出“trace"信息。
解决办法是安装debugger版本的flash piayer,点击“Do you want to try to debug with the current version?”,会进入adobe的官网,然后选择相应的flash player版本就可以了,IE和遨游等以IE为内核的浏览器下载active,debugger版的,firefox浏览器下载pulgin,debugger版本的就可以了。debug版本flash player就是具有编译功能的版本。