2 Replies Latest reply on Oct 22, 2013 1:11 PM by Josh_2013

    ANE - Vibration error: Cannot access a property or method of a null object reference.

    WellyOz

      Hi all,

       

      I'm trying to use the Vibration ANE but keep getting the following error:

       

      Vibration isSupported()

      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:

       

              var vibe:Vibration;

              if (Vibration.isSupported)

              {

                vibe = new Vibration();

                vibe.vibrate(2000);

              }

       

       

      Not really sure why this might be occurring. If anyone has any suggestions, it would be well appreciated!

       

      Thanks,

       

      Alastair