I'm using Flash on a webpage. But iPad and iPhone devices can not display Flash and shows blank area. How can I detect if a device visiting my page has Flash or not? If it supports Flash, I want to display Flash. If not, I want to display a static image.
I would recommend using the SWObject JavaScript just to detect the Flash version so as to strip out the object tag if the version of Flash available is too old. That way you still have a good chance of having the Flash work even where JavaScript is disabled.
SWFObject also comes with an "ExpressInstall" SWF, if you for example specify that your flash requires version 9 and the user has version 8, the ExpressInstall will kick in and ask them to upgrade.
(Though this path obviously will not work if the user chooses not to upgrade, in which case felgall's solution would be the way to go)
Bookmarks