View the UNCAUGHT_ERROR event .
An update to respond to the comment left by the 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
source
share