Initialize Raygun in your main Stage instance:
_raygunAs = new RaygunAS(this,RAYGUN_API_KEY, APP_VERSION);
_raygunAs.addEventListener(RaygunAS.READY_TO_ZAP, onRaygunReady);
_raygunAs.chargeRaygun();
}
private function onRaygunReady( event:Event ):void
{
//do logic here
}
... and you're done!
Blogpost with more detailed usage
Copyright 2013 Marks and Spencer. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the LICENSE handle.
Zan Markan
[email protected]