问题描述
我需要使用Javascript以编程方式检测浏览器中安装的Flash版本.
I need to programmatically detect the version of Flash installed in the browser, using Javascript.
我知道swfobject.getFlashPlayerVersion(),但它只返回Flash版本的major.minor.release部分,我还需要内部版本号(例如M.m.r.build).
I know about swfobject.getFlashPlayerVersion(), but it only returns the major.minor.release parts of the Flash version, and I need the build number (e.g. M.m.r.build) as well.
似乎有一种方法可以获取ActionScript中的内部版本号,但是我需要使用Javascript来执行此操作,因此可以将值传递回服务器.
There seems to be a way to get at the build number in ActionScript, but I need to do this from Javascript, so I can pass the value back to the server.
有什么想法吗?
推荐答案
我正在查看 JavaScript Flash检测库,它似乎会返回带有内部版本号的完整版本.您只需要解析返回的字符串.函数FlashDetect.raw
似乎是该函数.
I was looking at the JavaScript Flash Detection Library and it appears to return the full version with build number. You would just need to parse the returned string.Function FlashDetect.raw
appears to be the function.
这篇关于如何以编程方式获取包含版本号的Flash版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!