在 Flex Web 应用程序中,您可以使用以下命令打印正在使用的 Flash 播放器的版本:
var version:String = Capabilities.version
根据the docs ,这应该返回 flash 播放器或 AIR 运行时版本,但在我的测试中没有。在 AIR 中运行时,我不断获得 Flash 播放器版本。
有没有办法获得AIR版本?我在 AIR 3.2 上运行
(我想在应用程序的“关于”框中显示 AIR 运行时版本以进行故障排除)
最佳答案
引用:
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/