Posted By

BenJD on 03/09/11


Tagged

flash


Versions (?)

Detect if flash is available via swfobject


 / Published in: JavaScript
 

  1. function isFlashAvailable()
  2. {
  3. var result = true;
  4.  
  5. try
  6. {
  7. if (swfobject.getFlashPlayerVersion().major < 9)
  8. result = false;
  9. }
  10. catch(e)
  11. {
  12. result = false;
  13. }
  14.  
  15. return result;
  16.  
  17. }

Report this snippet  

You need to login to post a comment.