Fragsworth
Fragsworth

Reputation: 35497

Actionscript 3 top-level exception handling

Is it possible to catch ALL exceptions at some top-level in Actionscript 3? If so, how?

Upvotes: 3

Views: 699

Answers (2)

George Profenza
George Profenza

Reputation: 51837

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

Upvotes: 3

daniel.sedlacek
daniel.sedlacek

Reputation: 8629

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

Upvotes: -2

Related Questions