Installation

Adobe Air is supported using the third party provider RaygunAS.

Clone the repository and build the .swc file.

Copy the .swc file to wherever you have your libs and all is set.


Go to your app and put the following lines in the main Sprite class, after some initial setup is complete, but before the main drawing begins:

_raygunAs = new RaygunAS(this, paste_your_api_key_here, APP_VERSION);
_raygunAs.addEventListener(RaygunAS.READY_TO_ZAP, onRaygunReady);
    _raygunAs.chargeRaygun();
}

private function onRaygunReady( event:Event ):void
{
    //do logic here
}

Initialize your main method in the onRaygunReady callback, this will allow RaygunAS to capture an error at any point in the stack.

If you create an Error, RaygunAS will be triggered and send the Error report to your app's dashboard.

Additionally you can attach a RaygunAs.RAYGUN_COMPLETE listener to your RaygunAS instance in order to catch those error. It handles _UncaughtErrorEvent.UNCAUGHT_ERROR_ events.


Deploy Raygun into your production environment for best results, or raise a test exception. Once we detect your first error event, the Raygun app will automatically update.


The provider is open source and available at the RaygunAS repository.