I have to check if a specific version of flash player 10.2.161.23 is installed on the client's machine or not from my javascript code. Client's system has many other versions with same "Major version" like 10.1.102.64 etc.. I tried the following code snippet
for(var i = 10; i > 0; i--)
{
try
{
flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+String(i));
}
catch(e)
{
alert("in ctach");
}
version = flash.GetVariable("$version");
alert(version);
}
Client has 10.1.102.64 & 10.2.161.23 on his system and my above code is recognizing only, 10.1.102.64 but not recognizing the other version with the same "Major version no:".
Can I use new ActiveXObject("MacromediaFlashPaper.MacromediaFlashPaper"); instead of Shockwaveflash.shockwaveflash. Does this have any impact? The flash player version I want to detect is a 64 bit version.
Can anyone kindly let me know the reason and fix for this please. Thanks In advance.
Try following script