Or, if you don't want to include all 10k of SWFObject just for a single line of Flash detection logic, here's it pulled out as its own line of code:
https://gist.github.com/675496 --Kyle From: Sam Sherlock Sent: Monday, February 14, 2011 5:53 AM To: [email protected] Subject: Re: [SWFObject] I just want to detect Flash . . . not Load or Run SWFObject has API methods to check the installed player version or to get the current version. swfobject.getFlashPlayerVersion() swfobject.hasFlashPlayerVersion(versionStr) http://code.google.com/p/swfobject/wiki/api hope these help - S On 14 February 2011 05:21, jacleaves <[email protected]> wrote: I have already coded the loading and playing/timing issues for loading everything (including 2 flash .swf's) on a web page, but still am struggling with coding Javascript to detect Flash. What I am using works on everything now except Opera and doesn't appear to work right on mobile devices. I really can't finish this project until I can make sure it works on everything. I would have liked to use SWFObject to do this, but have already coded & tested some complex timing issues to my satisfaction and would like to avoid redoing all of that work. How can I use SWFObject just for the Flash detection? Or is there another script that you think would be better for this? I am planning on using SWFObject for projects in the future, but at this point just want to avoid a lot of extra work. Thanks for taking the time to provide this great product and for your support! -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en. -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en. -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
