freshplanet / ANE-DeviceId

Provides access to the device unique id.
Apache License 2.0
51 stars 25 forks source link

Variable com.freshplanet.ane::AirDeviceId is not defined #16

Closed sebbdk closed 9 years ago

sebbdk commented 9 years ago

I get that error when i include the ANE in my project.

I tried grabbing the extension-context manually also like this.

var _extCtx:ExtensionContext = ExtensionContext.createExtensionContext( 'com.freshplanet.ane.AirDeviceId', null );

But it returns null.

I am using Air 14 and Flash builder 4.6 The extensionID IS present in my app.xml.

AFAIK the configuration should be correct.

sebbdk commented 9 years ago

Never mind my bad, if anyone else get this error.

Go to project properties->actionscript build packaging select platform then "native extensions" and check the checkbox to enable the plugin.

Somehow, this was not really made clear to me in the adobe docs.