apache-flex - 如何获取 AIR 应用程序中 AIR 运行时的版本?

标签 apache-flex air

在 Flex Web 应用程序中,您可以使用以下命令打印正在使用的 Flash 播放器的版本:

var version:String = Capabilities.version

根据the docs ,这应该返回 flash 播放器或 AIR 运行时版本,但在我的测试中没有。在 AIR 中运行时,我不断获得 Flash 播放器版本。

有没有办法获得AIR版本?我在 AIR 3.2 上运行

(我想在应用程序的“关于”框中显示 AIR 运行时版本以进行故障排除)

最佳答案

威尔this work for you

引用:

The NativeApplication object has a runtimeVersion property, which is the version of the runtime in which the application is running (a string, such as "1.0.5"). The NativeApplication object also has a runtimePatchLevel property, which is the patch level of the runtime (a number, such as 2960). The following code uses these properties:

air.trace(air.NativeApplication.nativeApplication.runtimeVersion); air.trace(air.NativeApplication.nativeApplication.runtimePatchLevel);

关于apache-flex - 如何获取 AIR 应用程序中 AIR 运行时的版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10900428/

相关文章:

apache-flex - 找不到提供程序com.bea.xml.stream.MXParserFactory

apache-flex - Flex - crossdomain.xml 请求尝试在 http 端口上使用 https 并超时

android - 使用 Air App 为移动设备创建共享对象

ios - 如何在 iOS 模拟器上的不同 iOS 设备中调试 AIR 应用程序?

JQuery VS Flex - 选择 SAAS 平台

apache-flex - Flex 4 IntelliJ IDEA 包装器 html 崩溃浏览器

apache-flex - 文本区语法高亮,flex 4

java - 使用 google-play-services jar 文件的两个 adobe air native 扩展

apache-flex - 不了解 Flex 中动态数据绑定(bind)(绑定(bind)属性)的基础知识

actionscript-3 - 如何将许可协议(protocol)添加到 AIR 应用程序安装程序?