Note that there are some explanatory texts on larger screens.

plurals
  1. PONative Context not available using Leapmotion AS3 ANE file
    primarykey
    data
    text
    <p>I´m getting this error while trying to compile a Flashdevelop AIR project:</p> <pre><code>Native Context not available. The Config class is only available in Adobe AIR. </code></pre> <p>My setup:</p> <ul> <li>Using Starling.</li> <li>Using the ANE file from <a href="https://github.com/logotype/LeapMotionAS3" rel="nofollow">https://github.com/logotype/LeapMotionAS3</a></li> <li>Using Flex SDK 4.6.0/AIR 3.8 in Flashdevelop 4.4.4 RTM</li> <li>Extended Desktop profile is on.</li> </ul> <p>The error fires up when I try to use the controller.config() or screen.* as in:</p> <pre><code>if(leap.config().setFloat("Gesture.Swipe.MinLength", 200.0) &amp;&amp; leap.config().setFloat("Gesture.Swipe.MinVelocity", 500)) leap.config().save(); </code></pre> <p>My onConnect();</p> <pre><code>private function alConectar(event:LeapEvent):void{ trace("conectado"); leap.enableGesture(Gesture.TYPE_SWIPE); leap.enableGesture(Gesture.TYPE_SCREEN_TAP); if(leap.config().setFloat("Gesture.Swipe.MinLength", 200.0) &amp;&amp; leap.config().setFloat("Gesture.Swipe.MinVelocity", 500)) leap.config().save(); if(leap.config().setFloat("Gesture.ScreenTap.MinForwardVelocity", 30.0) &amp;&amp; leap.config().setFloat("Gesture.ScreenTap.HistorySeconds", .5) &amp;&amp; leap.config().setFloat("Gesture.ScreenTap.MinDistance", 1.0)) leap.config().save(); //etc... } </code></pre> <p>The full output:</p> <pre><code>Running process: C:\Program Files\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\CASA\Documents\00_INTERACTIVE\LEAP\Leap_AirAS3Proj\Leap_AirAS3Proj.as3proj" -ipc 8b4c615f-60f6-46ac-aec0-093781073835 -version "3.8.0" -compiler "C:\Program Files\FlashDevelop\Tools\ascsdk" -library "C:\Program Files\FlashDevelop\Library" Building Leap_AirAS3Proj mxmlc-cli -load-config="C:\Program Files\FlashDevelop\Tools\ascsdk/frameworks/air-config.xml" -load-config+=obj\Leap_AirAS3ProjConfig.xml -debug=true -inline=true +configname=air -swf-version=21 -o obj\Leap_AirAS3Proj635190875306772137 Running java as: java.exe Loading configuration: C:\Program Files\FlashDevelop\Tools\ascsdk\frameworks\air-config.xml Loading configuration: C:\Users\CASA\Documents\00_INTERACTIVE\LEAP\Leap_AirAS3Proj\obj\Leap_AirAS3ProjConfig.xml 206311 bytes written to C:\Users\CASA\Documents\00_INTERACTIVE\LEAP\Leap_AirAS3Proj\obj\Leap_AirAS3Proj635190875306772137 in 6.156 seconds Build succeeded Done(0) [Starting debug session with FDB] [Starling] Initialization complete. [Starling] Display Driver: DirectX9 (Baseline Constrained) init conectado [Fault] exception, information=Error: Native Context not available. The Config class is only available in Adobe AIR. </code></pre> <p>Already change the bat/SetupSDK to: set FLEX_SDK=C:\Program Files\FlashDevelop\Tools\ascsdk to reflect the SDK (Thanks to Philippe from Flashdevelop).</p> <p>Any help is welcome. Regards!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload