[SWFObject] Variable set when flash detected?

Geoff Stearns geoff at deconcept.com
Fri Jul 21 11:14:33 PDT 2006


when you call fo.write() it returns true or false depending on  
whether the use has flash or not. so you can do stuff like this:

so = new SWFObject(....
...
if (so.write("content")) {
  // do stuff
} else {
  // do other stuff
}




On Jul 20, 2006, at 8:16 PM, Jeremy Nicoll wrote:

>    I have a quick question, is there a variable that is set when  
> flash is detected?  I would like some JavaScript to run only if  
> flash is actually installed.  The JS does not have anything to do  
> with Flash itself, but rather the display of other parts of the page.
>
> Thanks,
> Jeremy
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060721/ebb9c5b4/attachment-0005.htm>


More information about the Swfobject mailing list