我如何获得有关用户浏览器中的Flex信息?如何获得、器中、用户、信息

2023-09-11 00:32:04 作者:走开我要放屁!

我想知道用户使用的是什么浏览器来查看我的Flex应用程序。我怎样才能在用户代理字符串等信息得到什么呢?

I'd like to know what Browser the User is using to view my Flex application. How can I get at the User Agent string and other information?

推荐答案

JavaScript可以帮你的浏览器检测和计算出的UserAgent。使用ExternalInterface的使Javascript的跟你的Flex应用程序。下面是一个ExternalInterface的教程。

Javascript can help you with browser detection and figuring out UserAgent. Use ExternalInterface to make the Javascript talk to your flex application. Here's an ExternalInterface tutorial.