0

I need to programmatically detect the version of Flash installed in the browser, using Javascript.

I know about swfobject.getFlashPlayerVersion(), but it only returns the major.minor.release parts of the Flash version, and I need the build number (e.g. M.m.r.build) as well.

There seems to be a way to get at the build number in ActionScript, but I need to do this from Javascript, so I can pass the value back to the server.

Any ideas?

tristan
  • 91
  • 4
  • Can you include a tiny Flash movie on the page? If so, you could use the Actionscript method and relay the information to javascript via `ExternalInterface`. – Brian Sep 09 '14 at 19:23
  • Don't know any Actionscript -- so this would have to be only as a last resort... – tristan Sep 10 '14 at 15:57

1 Answers1

0

I was looking at the JavaScript Flash Detection Library and it appears to return the full version with build number. You would just need to parse the returned string. Function FlashDetect.raw appears to be the function.

Grice
  • 1,345
  • 11
  • 24
  • The documentation does imply that the FlashDetect.raw call does this:"This property is used to retrieve the ActiveX object variable $version (e.g., WIN 9,0,28,0) of the installed Flash Player for Windows Internet Explorer or the enabledPlugin.description property for all other browsers." --- but it is not true. I tried it in FF, IE11 and Chrome, and it still only reports the major, minor, release, not the build number :-( – tristan Sep 10 '14 at 15:55