Please note that we are no longer able to support this project and are not contributing to it.
This is an Air native extension for Flurry analytics on the iOS and Android platforms.
This is version 0.5.0 of this extension. The compiled extension contains version 4.4.0 of the Flurry Analytics library for iOS and version 3.4.0 of the Flurry Analytics library for Android.
If you wish to use a different version of the Flurry Analytics library, you may do so by following the instructions below to compile the extension.
The bin folder contains the compiled extension and the default swc, which can be used for local testing if required by your development environment (Flash Builder shouldn’t need it, but other IDEs may).
At its simplest, you initialize the extension with your application’s identifier as follows
Flurry.startSession( "your flurry id" );
You should only start the session once, after which you can log as many events as you wish.
On Android, this ends the current session (and sends the accumulated event data to Flurry). On iOS it does nothing, the session automatically ends when your app enters the background.
Flurry.endSession();
You may then log events with Flurry like this
Flurry.logEvent( "User did something" );
You can pass parameters through to a Flurry event via a simple object, as follows
Flurry.logEvent( "Screen resolution", { width : Capabilities.screenResolutionX, height : Capabilities.screenResolutionY, dpi : Capabilities.screenDPI } );
Flurry will also log timed events. This is a two-step process. You first start the timed event.
Flurry.startTimedEvent( "User playing game" );
Then, later, you end the timed event.
Flurry.endTimedEvent( "User playing game" );
You can also log errors with Flurry
Flurry.logError( "NullPointer", "Attempt to use a reference to a null pointer" );
That’s just a starter. All the features of the Flurry api have been implemented. Read the documentation in the Actionscript source code for all the features.
This project is licensed under the BSD license