473,774 Members | 2,138 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can actionscript retrieve navigator.userA gent

85 New Member
can we get the navigator.userA gent string from actionscript just like in javascript
Nov 20 '07 #1
2 3158
rohitchawla
85 New Member
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 New Member
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:JavaScrip tProxy = new JavaScriptProxy (_root.lcId, this);

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

function getBrowserInfoR eturn(browser:O bject):Void
{
//can get more info from System.capabili ties
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
3391
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 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322) or
13
11200
by: ima | last post by:
Where can I find a list of valid names for Navigator.AppName?
3
3104
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
1277
by: Aurelio | last post by:
Hello. How can i know what is the navigator of the client? Thanks
1
3011
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
2190
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 getPageX() method. This method is supposed to give the same value in IE as other browsers for the event position relative to the left of the page. This value will be greater than the position relative to the left of the browser if the browser is...
1
2207
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 instances of LoadVars, one to send and one to receive data var postalOut:LoadVars = new LoadVars(); var postalIn:LoadVars = new LoadVars(); // define what should happen when the response is received,
10
6006
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 "en-us". I had this code below just to test what language setting should the page read from the user. <script language="JavaScript"> var a = navigator.browserLanguage; var b = navigator.userLanguage; var c = navigator.systemLanguage; ...
4
2206
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 jsData = new Array(); jsData = {bowl:"I", year:1967, winner:"Packers", winScore:35, loser:"Chiefs", losScore:10}; jsData = {bowl:"II", year:1968, winner:"Packers", winScore:33,
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10040
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.