如何从 Intranet 安装 AIR 应用程序?
Adobe AIR 文档告诉我(我无法再次找到确切的页面!)我可以下载您通常从 http://airdownload.adobe.com/air/browserapi/air.swf。我已经完成了此操作并将其加载到我自己的“獾”脚本中。
基本参考:http://livedocs.adobe.com /flex/3/html/help.html?content=distributing_apps_3.html
加载后,第一次调用 air.getStatus() 有效,根据我的非安装状态,我看到正确的“已安装”或“可用” - 连接互联网的客户端是否有 AIR。 我还可以运行air.installApplication() 和air.launchApplication()。但每当我运行air.getApplicationVersion()时,回调函数总是收到“null”。当我从 adobe.com 加载 air.swf 时,一切都很完美,所以我认为代码很好。
我想这一定与这个函数使用回调而其他函数不使用这一事实有关。
我这样做的目的是能够为非互联网连接的计算机安装和/或运行 AIR 应用程序。 有人有什么建议吗?
谢谢 阿德里安
The Adobe AIR documents tell me (I can't find the exact page again!) that I can download the air.swf that you normally call from http://airdownload.adobe.com/air/browserapi/air.swf. I have done this and load it in my own 'badger' script.
Base reference: http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_3.html
After loading, the first call to air.getStatus() works and I see a correct "installed" or "available" based on whether my non-internet connected client has AIR or not.
I can also run air.installApplication() and air.launchApplication(). But whenever I run air.getApplicationVersion() the callback function always receives "null". The moment that I load the air.swf from adobe.com everything is perfect so I think the code is fine.
I suppose it must be something to do with the fact that this function is using a callback wheras the others don't.
My purpose with this is to be able to install and/or run an AIR application for non-internet connected computers.
Does anyone have any advice?
Thanks
Adrian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
进入您的 [yourproject]-app.xml 文件(通常位于项目的 /src 文件夹中),然后查找“allowBrowserInitation”标签。
它将被注释掉,如下所示:
将该行更改为:
调用 getApplicationVersion() 的回调函数中的返回值将不再始终为 null。
Go in to your [yourproject]-app.xml file (typically located in the /src folder of the project), and look for the 'allowBrowserInvocation' tag.
It will be commented out, like this:
Change that line to read:
And your return value in the callback function from your call to getApplicationVersion() will no longer always be null.