I'm trying to use the Vibration ANE but keep getting the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Vibration Constructor: Create an extension context
at com.adobe.nativeExtensions::Vibration$/initExtension()[/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:58]
at com.adobe.nativeExtensions::Vibration$/get isSupported()[/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:43]
at views::Tour/onMarkerClick()[/<path to project here>/src/views/Tour.mxml:204]
The code I'm using is straight from the example:
vibe = new Vibration();
Not really sure why this might be occurring. If anyone has any suggestions, it would be well appreciated!
I figured it out. It seems the native extension wasn't packaged correctly (check project settings, Flex Build Path and Native Extension for both iOS and Android).
Can you explain the incorrect packaging, I'm experiencing the same situation and I am at a stall point.