How to track Flash events with Mixpanel
It's easy to send data to Mixpanel directly from your Flash application. We've built an Actionscript 3 library that wraps the Javascript one, giving you all of the same familiar function calls you are used to.
Setup
The first thing to do is include the Javascript library on the page your Flash project is embedded in. This is critical, because the Actionscript library needs to be able to communicate with it for things to work.
Next, download our Actionscript library, located at http://mixpanel.com/site_media/api/MixpanelLib.as. Add the library to your Flash project, and then import it to start tracking things immediately.
Usage
Tracking things in Actionscript works exactly the same as it does in Javascript. Here is some example code.
For more examples, see the Javascript integration page.
