Categories
Geeky/Programming

Detecting Flash – FlashObject

There are many ways to detect flash in a browser, but today I came across an elegant solution that I think is the best I have seen so far, and better yet – works with all browsers, and lets you expose minimal code. With around 10 lines of code you can detect flash, and set up your alternate content, etc. Pretty sweet if you ask me, especially compared to some of the hacks I have seen to try to detect the browser and OS and if flash is installed and what version and you get the picture. With FlashObject, you reference the js file, and then you set up a div tag for alt content, and a JavaScript block with your flash code (2 lines of code). It seems a lot more easier then the default shockwave EMBED method. If you have to detect flash on multiple browser, I suggest you check out FlashObject.

FlashObject

By Steve Novoselac

Director of Digital Technology @TrekBikes, Father, Musician, Cyclist, Homebrewer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.