【问题标题】:NativeProcess in AIR using JavaScriptAIR 中的 NativeProcess 使用 JavaScript
【发布时间】:2010-11-03 17:04:07
【问题描述】:

我正在 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 内部对其进行测试。

【问题讨论】:

    标签: air


    【解决方案1】:

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

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


    更新

    你需要在你的代码或描述符文件的某个地方有这个

    <supportedProfiles>extendedDesktop</supportedProfiles>
    

    阅读此文章以了解有关 AIR 设备配置文件的更多信息:Device Profiles

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-13
      • 1970-01-01
      • 1970-01-01
      • 2012-10-08
      相关资源
      最近更新 更多