AIR中的NativeProcess使用JavaScript

时间:2010-11-03 17:04:08

标签: air

我在Aptana内部运行以下内容:

<html>
<head>
<title>New Adobe AIR Project</title>
<script type="text/javascript" src="lib/air/AIRAliases.js"></script>
<script>
function init() {
   if(air.NativeProcess.isSupported) {
        alert("NativeProcess is supported.");
    } else {
        alert("NativeProcess not supported.");
    }

};
</script>
</head>
<body onload="init()">
</body>
</html>

它说不支持NativeProcess。

我是否需要编译它才能使其正常工作?

我以为我可以从Aptana里面测试它。

1 个答案:

答案 0 :(得分:4)

我从未使用过Aptana,虽然我认为解决方案是相同的,但在Flash CS5中,您可以通过在AIR设置中仅选择扩展桌面配置文件来使用ADL测试本机进程。

本机进程仅适用于打包为本机安装程序的桌面应用程序。


更新

您需要在代码或描述符文件中的某处

<supportedProfiles>extendedDesktop</supportedProfiles>

有关AIR的设备配置文件的详细信息,请阅读此文件:Device Profiles

相关问题