开发者

Air2.0, Error while accessing Native process API

开发者 https://www.devze.com 2023-01-12 06:15 出处:网络
I am using native process API of Air2 in HTML/Js framework. The problem comes when i try to make object of NativeProcessStartupInfo.

I am using native process API of Air2 in HTML/Js framework.

The problem comes when i try to make object of NativeProcessStartupInfo.

Here is mine code

if(air.NativeProcess.isSupported){

var nativeProcessStartupInfo = new air.NativeProcessStartupInfo();

Whenever i try to execute this code i 开发者_JAVA技巧got this error.

TypeError: Result of expression 'air.NativeProcessStartupInfo' [] is not a constructor.

Any suggestions on what i am doing wrong ?


Check your application.xml file. Make sure the name space is "http://ns.adobe.com/air/application/2.0", not "1.0". That screwed me over for a while...

0

精彩评论

暂无评论...
验证码 换一张
取 消