Flash Player Version Sniffer Using SWFObject

Written by

Here is a quick and easy way to detect a users Flash Player Version using SWFObject:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!-- SWFObject js files -->
<script type="text/javascript" src="js/swfobject.js"></script>
      
<script type="text/javascript">

  var minMajorVersion = 9;
          
  var flashVersion = swfobject.getFlashPlayerVersion();
          
  if(flashVersion['major'] >= minMajorVersion){
          alert("Flash Player Version correct");
  }
          
</script>

Comments