SWFObject 2.0 not returning userAgent in IE6 (anyone else encounter this?)

UPDATE: The new SWFObject 2.0 (Release Candidate 2) resolved this issue. The examples below should now give you the browser agent info when using IE6…

The one caveat, Firefox on XP needs wmode to be set to either “transparent” or “opaque”, otherwise a pop-up occurs.

******

Screenshot…
http://www.easternstorm.net/sassie/useragenttest/versionresults.jpg
On the left side observe IE6 loading the same swf, embedded in
standard Flex 3, SWFO 1.5, SWFO 2.0. Please note that that in SWFO
2.0 we receive “null”.
Now, the left two columns shows several other browsers loading the 3rd
template:
http://www.easternstorm.net/sassie/useragenttest/useragenttestSWFO20….
Note that it is working fine on Firefox XP, Safari 3 XP, Opera XP,
Firefox OSX, Safari 3 OSX. The only other exception being Safari 2,
which has known issues with externalInterface as I recall.
So clearly there is something not quite right with SWFObject 2.0
running IE6
***
Here are the three embed templates:
http://www.easternstorm.net/sassie/useragenttest/useragenttest.html
http://www.easternstorm.net/sassie/useragenttest/useragenttestSWFO15….
http://www.easternstorm.net/sassie/useragenttest/useragenttestSWFO20….
***
Source code of example:
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml
layout=”absolute” viewSourceURL=”srcview/index.html”>
<mx:Script>
<![CDATA[
private function Test():void{
Debug.text = “<<” + ExternalInterface.call(“function getBrowser()
{varBrowser = ”+ navigator.userAgent;alert(varBrowser);return
varBrowser;}”) + “>>”;
}
]]>
</mx:Script>
<mx:VBox x=”10″ y=”10″>
<mx:Button id=”btnTest” label=”Click to View userAgent Info”
click=”Test()”/>
<mx:TextArea id=”Debug” width=”450″ color=”Navy” borderColor=”Red”/>
</mx:VBox>
</mx:Application>

Advertisements

1 Response to “SWFObject 2.0 not returning userAgent in IE6 (anyone else encounter this?)”


  1. 1 JWomm December 1, 2009 at 7:18 am

    …having as well issues with swfobject 2 and IE6 – getting a blank page and Server not found! Any solution out there?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




February 2008
M T W T F S S
« Jan   Mar »
 123
45678910
11121314151617
18192021222324
2526272829