The new Macromedia Flash Player detection kit
With the announcement of Flash 8 today, Macromedia also quietly pushed out their new detection kit. The detection kit has has been around for the last few versions of Flash, and usually changes with each version to include whatever the latest trends in Flash detection are.
It’s no wonder then, that the latest version uses Javascript as the suggested detection method. Unfortuntely, it’s not perfect. While it’s a good first try, it is greatly lacking in a few basic needs of most web developers. Here’s the issues I have with it:
- Inline Javascript code (and lots of it) - Who wants to copy a bunch of Javascript and VBscript onto every single page that uses Flash? While it might be possible to move the Javascript into an external file, you would still have a small amount of VBScript on each page (or another external file to include). I’m not sure why they decided to leave in the VBScript when there are other reliable ways to create and test for ActiveX objects. Also: what happens if you need to upgrade the Javascript for some reason? While the code should be very futureproof, you never know when a bug might pop up, and you’ll be stuck editing all of your HTML files that have Flash movies included in them.
- Tough to modify the code - It suffers from the same drawbacks as most Javascript embed techniques - placing tons of Javascript
document.write()calls and writing out your object or embed tags to the page. This is a hassle to edit if you need to make changes, and makes it very tough for designers who don’t know Javascript to go in and modify attributes. - It’s not valid HTML or XHTML - Valid XHTML documents aren’t for everyone, but when you have clients specifically asking for them it’s nice to be able to deliver. The new detection doesn’t even come close to validating.
If you want to compare the new Macromedia detection to my FlashObject script, check out this new article that shows how to use it:
Best Practices for Flash Player Detection
Then compare the steps needed to get that working with using FlashObject:
- Include single .js file.
- Add a few lines of code (see example of bare minimum).
- Sit back, relax.
I think the choice is clear.
Now when you downloaded the new detection kit you may have noticed another folder hiding out in there with the name of “Express Installation.” This is Macrmedia’s new way of upgrading your Flash player without the need to go to macromedia and download the new plugin. I’ll be writing up a new entry soon that gives some tips and best practices on using this method in the very near future.
About this page
blog.deconcept.com is a blog about nerdy internet stuff edited by Geoff Stearns since late 2004.
This entry was published on August 8th, 2005 and is tagged as flash, javascript, usability, xhtml.
You can follow any responses to this entry through the RSS 2.0 feed.

Comments are closed
Comments are currently closed on this entry.