Ane air native extension local expansion airProgramSource and local environmentCodeInteractive Technology.
This article mainly analyzes the application of ANE technology by obtaining the Electronic Compass data of mobile devices.
Azimuth: The moving direction relative to the positive North (in integer ).
==========================================
Overview:
I. iOS Azimuth
2. Android Azimuth
1. Android Library
2. ActionScript Library
3. ADT Packaging
4. Demo program
3. Download source code
==========================================
IOS Azimuth
When I write xcode code in a VM and encounter the heading attribute of cllocationmanager, Adobe has encapsulated the azimuth data in IOS in the flex API. In essence, it is called by Ane, but Android is not supported.
Geolocationevent
Event. Heading attributes
The moving direction relative to the positive North (in integer ).
Note:Heading is not supported on Android devices.Heading
The attribute value is alwaysNan
(Not a number ).
Call code:
If (geolocation. issupported ){
VaR GEO: geolocation = new geolocation ();
Geo. addeventlistener (geolocationevent. Update, function (Event: geolocationevent): void {
Trace ("Heading --->" + event. Heading); // Azimuth
});
}