Fork me on GitHub

airkinect-2-core by AS3NUI

AIRKinect Extension is a Native Extension for use with Adobe AIR 3.0. AIRKinect allows AIR developers to tap into the rich experience of the Microsoft Kinect and push interactivity to a new level.



View documentation online

Driver Installation

Before you can use the native extension in your AIR project, you will need to install the kinect drivers. You have several options, depending on your platform.


MS SDK version: (airkinect-2-core-mssdk.ane)

  1. Install Microsoft Kinect SDK:
  2. That's it

OpenNI version: (airkinect-2-core-openni.ane)

You can use the instructions "Install OpenNI,NITE and the Sensor Driver" of the SimpleOpenNI project to get OpenNI up and running on your windows 7 machine: Make sure you install the 32-bit version. AIRKinect does not work with the 64-bit version.

OSX 10.6+:

You can use the instructions "Install OpenNI the short way" of the SimpleOpenNI project to get OpenNI up and running on your OSX machine:

Linking AIRKinect to your project

All you need is the ane file matching your driver. If you are using the MS SDK, you will need airkinect-2-core-mssdk.ane, if you are using OpenNI, you will need airkinect-2-core-openni.ane.

Once you have the correct file, you will need to link it to your AIR project:

Flash Builder 4.6

  1. Right click on your AIR for desktop project and choose properties.
  2. Select Actionscript build path > Library path and click on Add SWC… Select the ane file you just downloaded.
  3. In that same window, choose Native Extensions and click on Add ANE… Select that same ane file.
  4. Select Actionscript Build Packaging > Native extensions. Check the checkbox next to the native extension. Ignore the warning that says the extension isn't used.

Flash CS6

  1. Go the File > Actionscript settings.
  2. On the Library Path tab, click on the "Browse to a Native Extension (ANE)" button (button to the right of the SWC button)
  3. Choose the ane file you just downloaded.

IntelliJ IDEA

  1. Right click on your module and choose "Open Module Settings".
  2. Select the build configuration for your Module and open the Dependencies tab
  3. Click on the plus (+) button on the bottom of that window and choose "New Library…"
  4. Choose the ane file you just downloaded

Basic Usage

AIRKinect has a lot of built-in features. You can check some examples in our examples repository.

A quick example, showing the depth image would be something like this:

private var depthBitmap:Bitmap;
private var device:Kinect;

public function Demo() {
    if (Kinect.isSupported()) {
        device = Kinect.getDevice();
        depthBitmap = new Bitmap();
device.addEventListener(CameraImageEvent.DEPTH_IMAGE_UPDATE, depthImageUpdateHandler);
        var settings:KinectSettings = new KinectSettings();
        settings.depthEnabled = true;            

protected function depthImageUpdateHandler(event:CameraImageEvent):void {
    depthBitmap.bitmapData = event.imageData;