So you’ve worked for hours on that award winning Flash project and you need to place your SWF in a HTML container for the world to see… The obvious solution is to open the publish settings and check the HTML format, allowing Flash to build everything you need. But is that really all you need? The default Flash embed code works fine for the little stuff, but lets say you want to make your code standards compliant or you want an easy way to make your site friendly for viewers without the Flash player installed (your grandparents or googlebot). In that case take advantage of the added features of Geoff Stearns’ great SWFObject
A few of the SWFObject features that might make your life easier:
- Fixes the dreaded Microsoft “Click to Activate” error in IE 6 and 7
- Creates clean standard compliant code
- Can detect a Flash player version and push an upgrade
- Provide users with alternate (non-Flash) content for search engines or those without Flash
- Allows for an easy way to pass data into Flash at run time.