Testing for Flash
Posted on 2004-10-28
Ok, possibly another stupid question but...
I'm writing a website that uses flash, however, I'm sure that some of my visitors won't have Flash player installed so...
Is there any way my site can query the visitors browser to find out if Flash player is installed? I'd imagine there is a way of putting a flash movie on a site and if it loads it can redirect to flash-enabled pages but if it's not installed, the visitor will be prompted to install it (or at least that's my understanding)
The site is written so that PHP serves every page and, depending on whether or not $flash is set to 1 or 0 will serve either plain HTML or my spiced-up content. At the minute, users can select whether or not they want to view flash pages and that information is saved in a cookie. If the visitor has cookies disabled then it will default to showing flash content (I want the defaul to be flash-enabled as most people won't bother trying to change this setting and I want a nice default look if possible)
That was quite a rambling description but I think you understand what I need.
Any help greatly appreciated. Thanks!