tags:

views:

36

answers:

2

Hi guys how to detect all the browsers that are installed in a system.By using Flex

+2  A: 

You cannot do that from Flex or, as far as I can tell, from any web application. A web app being able to go through the list of installed applications on client machine is bad from a privacy and security point of view.

Maximum you can do is to read the user agent string from the HTTP headers (which can be easily modified and hence need not be accurate) to check what's the current browser being used to access your application. Even this, you can't do from Flex, you'll have to do it using some server script and send the information to the Flex app.

Amarghosh
A: 

@Amargosh, while you do have to go through the server page to get client information, you can simply get browser information by executing Javascript from Flex:

var result:String = ExternalInterface.call("eval", "navigator.userAgent");

This will do the trick.

adamcodes
That might give you access to the userAgent of the current browser; but will not provide the SWF any information about other browsers installed on the system.
www.Flextras.com
I know. I was referencing part of Amargosh's reply. I guess I should have commented instead.
adamcodes
Ya, you're right.
Amarghosh