使用 Actionscript 2 和 Debug Flash Player 生成错误消息的代码?
我想验证我的调试 Flash 播放器的行为是否符合预期,并且能够尝试代码并查看用户可以看到哪些类型的运行时错误。我只想要一些 Actionscript 2 代码,当使用调试 Flash Player 时会显示错误。我尝试了除以零之类的方法,但这不起作用(它将其视为“无穷大”)。谢谢!
I want to verify that my debug Flash player is behaving as expected, and also to be able to experiment with code and see what kinds of run-time errors are visible to the user. I just want some Actionscript 2 code that will show an error when the Debug Flash Player is used. I tried things like dividing by zero, but that didn't work (it treated it as "Infinity"). Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
调试播放器中经常显示的一个相当简单的错误(即使对于应该稳定的页面)是 I/O 错误。我不太确定在 ActionScript 2 中这是如何完成的,因为自从我使用它以来已经有一段时间了,但是您可以尝试简单地加载一个不存在的 URL。
A rather simple error that is quite common to being shown in the debug player (even for pages that are supposed to be stable) are I/O errors. I’m not perfectly sure how this is done in ActionScript 2, as it’s been quite a while since I used it, but you could try to simply load an URL that does not exist.