Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to detect flash using SWFObject

I have downloaded SWFObject, and included it in my website. Now I want to simply get a true or false value based on whether or not Flash is installed in the users browser when they visit my site.

How can I do this?

like image 760
Mazatec Avatar asked Apr 19 '11 13:04

Mazatec


1 Answers

if (swfobject.hasFlashPlayerVersion("9.0.18")) {
  // has Flash
}
else {
  // no Flash
}

or replace "9.0.18" with the minimum version you require

like image 127
andynormancx Avatar answered Sep 21 '22 03:09

andynormancx