开发者

Actionscript 3 top-level exception handling

Is it possible to catch ALL exceptions at some top-level in Actionscript 3? If so, h开发者_开发知识库ow?


Check out the UNCAUGHT_ERROR event.

Updating to respond to the comment left by original poster, the event itself is available for both Flash and the AIR 2 runtime:

Language Version: ActionScript 3.0 Runtime Versions: Flash Player 10.1, AIR 2


I don't think it is possible to catch all synchronous and asynchronous events generated by AS3 code in one place.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜