473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

can actionscript retrieve navigator.userAgent

can we get the navigator.userAgent string from actionscript just like in javascript
Nov 20 '07 #1
2 3138
i have embedded the flash file in an html page and when a user opens that page, can we retrieve his browsers userAgent string from actionscript
Nov 22 '07 #2
rsdev
149 100+
i have embedded the flash file in an html page and when a user opens that page, can we retrieve his browsers userAgent string from actionscript
Try this;

import com.macromedia.javascript.*;

var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);

function getBrowserInfo():Void
{
proxy.call("getBrowserInfo");
}

function getBrowserInfoReturn(browser:Object):Void
{
//can get more info from System.capabilities
for(var x:String in browser)
{
trace(x + " : " + browser[x]);
}
}

getBrowserInfo();

And check here for implementation.

http://osflash.org/projects/flashjs/...s/jsinfo2flash
Nov 22 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Jan Buchwald | last post by:
navigator.userAgent returns information about the user operting system, Browser etc. Usually you get somthing like: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) or Mozilla/4.0...
13
by: ima | last post by:
Where can I find a list of valid names for Navigator.AppName?
3
by: Q. John Chen | last post by:
Is there an easy way to get following info of the client machine? machine name OS version IE or Netscape, and there version etc. Lan, Broadbank, or modem connection? Speed?
1
by: Aurelio | last post by:
Hello. How can i know what is the navigator of the client? Thanks
1
by: juglesh | last post by:
are $_SERVER in php and navigator.userAgent in js the same thing? always? I just need to determine if the browser is IE5+ on win32 (.png issues).
10
by: petermichaux | last post by:
Hi, I'm picking apart the Yahoo! UI event.js library and stripping it down to just what I need. I'm also trying to make the parts I use better. I'm stumped on how to fix the code for the...
1
by: Rocky86 | last post by:
hi people how do I retrieve some value from a php file that I have created? do I do something like the code below? var passingurl= mainurl+"passing.php"; //link to pass url // create two new...
10
by: dharyl | last post by:
Hi Everyone, I'm dharyl from Philippines, I had a problem in knowing the user's browser Language. I was asked to have an alert pop up when the user of the site is using other language than...
4
by: Harry | last post by:
Hi Guys I dont really know how to do this: if there are a page of others, some data are embedded inside the data array like this: <script language="JavaScript" type="text/javascript"> <!-- var...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.