Air 使用JavaScript在空中运行NativeProcess

Air 使用JavaScript在空中运行NativeProcess,air,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) {

我正在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>

新AdobeAIR项目
函数init(){
if(air.NativeProcess.isSupported){
警报(“支持NativeProcess”);
}否则{
警报(“不支持NativeProcess”);
}
};
它说NativeProcess不受支持

我需要编译它才能工作吗


我想我可以从Aptana内部对其进行测试。

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

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


使现代化 您需要在代码或描述符文件中的某个位置具有此属性

<supportedProfiles>extendedDesktop</supportedProfiles>
extendedDesktop

阅读本文了解有关AIR设备配置文件的更多信息:

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

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


使现代化 您需要在代码或描述符文件中的某个位置具有此属性

<supportedProfiles>extendedDesktop</supportedProfiles>
extendedDesktop
有关AIR设备配置文件的更多信息,请阅读此内容: