Hi,
It seems that SWFObject is not up to date when it comes to detecting
Flash 10 on IE7.
After a lot of research (I'm not too familiar with activeXcontrols), I
found out that Flash 10's activeXcontrol name is
"ShockwaveFlash.ShockwaveFlash10". This is true at least on one of the
machines I've been doing the tests on.
Thus I have done a slight modification to the swfobject.js file by
replacing the following lines:
----------------------------------------------
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7");
}
catch(e) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6");
playerVersion = [6,0,21];
a.AllowScriptAccess = "always"; // Introduced in fp6.0.47
}
catch(e) {
if (playerVersion[0] == 6) {
fp6Crash = true;
}
}
if (!fp6Crash) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
}
catch(e) {}
}
}
----------------------------------------------
with the following :
----------------------------------------------
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".10");
}
catch(e) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7");
}
catch(e) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6");
playerVersion = [6,0,21];
a.AllowScriptAccess = "always"; // Introduced in
fp6.0.47
}
catch(e) {
if (playerVersion[0] == 6) {
fp6Crash = true;
}
}
if (!fp6Crash) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
}
catch(e) {}
}
}
}
--------------------------------------------
I'm guessing it would be a good idea to do this on the official
download of swfobject.
Best,
OZ
http://semiaddict.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---