简体   繁体   English

如何调试SWF文件

[英]how to debug a swf file

I'm quite new to AS3 and now I need to solve a swf crash problem. 我是AS3的新手,现在需要解决swf崩溃问题。

I have the source code and fla file, so I can debug/run it in FL, I can use trace to print out log. 我有源代码和fla文件,因此可以在FL中调试/运行它,也可以使用trace来打印日志。 The problem is, on my machine, either run in FL or generated swf embed in IE works correctly. 问题是,在我的计算机上,无论是在FL中运行还是在IE中嵌入生成的swf都能正常工作。 But the swf always crashes on tester's machine. 但是swf总是在测试仪的机器上崩溃。

Because the swf is run in IE, trace seems doesn't work, so I'd like to know if there's any tool I can use so that I can see all the trace output on tester's machine. 由于swf是在IE中运行的,因此跟踪似乎不起作用,所以我想知道是否可以使用任何工具,以便可以在测试仪的计算机上看到所有跟踪输出。

Thanks 谢谢

Trace only works while working directly with Adobe Flash. 跟踪仅在直接使用Adobe Flash时有效。

What you can do is call a javascript alert to display the Trace elements inside a BROWSER. 您可以做的是调用JavaScript警报,以在浏览器中显示Trace元素。 Please note it will not work while directly opening the .swf 请注意,直接打开.swf时它将不起作用

ExternalInterface.call("alert",output);

But their should be no different in handling any .swf except for the installed Version of the Flashplayer on each computer. 但是,除了在每台计算机上安装的Flashplayer版本外,它们在处理任何.swf时应该没有什么不同。

If it runs fine on your IE, then it should on the other as long as Flash Version and IE Version are the same. 如果它在您的IE上运行良好,那么只要Flash版本和IE版本相同,它就应该在其他版本上运行。

Outdate Version usually lead to this sort of conflict. 过时的版本通常会导致这种冲突。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM