Adobe released a native extension for accessing a devices Gyroscope which measures angular momentum. a great thing for games eg- steering wheel in car game.
a lot of people were having trouble getting it working on iOS (i haven’t tested on droid yet but i think it’s the same deal) with the different packaging commands available with ADT (Air Developer Tool).
http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html
the problem i and others were having was that it worked when packaging with ipa-debug-interpreter but not with ipa-ad-hoc or ipa-app-store which are the final optimized packaging options used for testing and releasing a final version. the packaging options that have ‘interpreter’ in their name are not converted to iOS machine code. they compile more quickly and send traces to the debugger but the ActionScript bytecode is interpreted not translated. the other packaging options like ipa-ad-hoc translate the AS bytecode into machine code and it runs much much better but as soon as the Gyroscope class was instantiated the app would crash.
anyway… i’ve got it working! solution is simple. for ipa-ad-hoc or ipa-app-store (translated code) the Gyroscope.swc should be removed from exports. the ane should of course still be referenced in the application descriptor file. in FDT this is done by setting the swc to “Use as Runtime Shared Code” under project properties > FDT Build Path > Build Order. i imagine there’s a similar option in Flash Builder and Flash CS5 or 6. as i understand it, this is how all ANE’s work.
i saw this information in the description of a variant of the Adobe Gyroscope developed by Christoph Ketzler found here..
http://code.google.com/p/air-native-extension-euler-gyroscope/downloads/detail?name=EulerGyroscope-2012-03-18-RELEASE.zip&can=2&q=