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.
精彩评论