Copy link to clipboard
Copied
Hello, I am having trouble then I try to use adobe's vibration and Game center ane's in a project.
debug mode log:
[SWF] com.adobe.Vibration - 857 bytes after decompression
[SWF] com.adobe.ane.gameCenter - 2079 bytes after decompression
[SWF] Vibration and Gamecenter.swf - 142 bytes after decompression
Vibration isSupported()
Vibration Constructor: Create an extension context
ArgumentError: Error #3500: The extension context does not have a method with the name initNativeCode.
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 GameCenterTest()
at GameCenterTest()
Cannot display source code at this location.
Vibration isSupported()
air sdk: 17.0.0.138
Project:
Copy link to clipboard
Copied
Hi Nitacawo,
I tried reproducing the issue. And I couldn't find the reference to the path "/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as" Is it from the swc file that is used in the project ? Can you rather provide the code so that we could find out what is going wrong here ?
-Tushar
Copy link to clipboard
Copied
Hey there tdwivedi
I am having kinda the same issue with the Vibration ane on iOS only. On Android the same code works perfect.
if (Vibration.isSupported)
{
vibe = new Vibration();
}
Here is the trace:
Vibration isSupported()
Vibration Constructor: Create an extension context
ArgumentError: Error #3500: The extension context does not have a method with the name initNativeCode.
Tested on an iPad 2
Any clue how i can get around this error?
Copy link to clipboard
Copied
Hi Rares Neamtiu,
We could successfully reproduce the issue. We will be communicating it to the concerned team for further investigation.
-Tushar
Copy link to clipboard
Copied
Thank you!
Looking forward.