artcoder — 2012-01-02T23:19:47-05:00 — #1
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.
felgall — 2012-01-02T23:32:08-05:00 — #2
Wrap the flash object tag around the img tag. That way if the object cannot be processed the image it wraps will display instead.
aussiejohn — 2012-01-02T23:48:23-05:00 — #3
It will detect whether you have Flash available or not and inject the correct <object> tag for you.
The SWObject Documentation page has examples for both techniques.
felgall — 2012-01-03T15:59:37-05:00 — #4
aussiejohn — 2012-01-03T18:56:28-05:00 — #5
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)