Remember about a year or so ago, the whole uproar over the Microsoft EOLAS lawsuit and how Microsoft broke the web? Well, the web is still here, and as far as I am concerned it’s a better place because of it – and we should give Billy and the crew a big thanks. Why thank him you ask? Didn’t that one decision make thousands if not hundreds of thousands of websites add yet another blockade to the user viewing dynamic and interactive content? Yes it did, but it also forced the development community as a whole to start looking at existing technologies and alternatives to the <embed> tag problem that has existed since its inception.
Enter SWFObject, the best solution on the web for displaying Flash content within a page. You can argue this if you like, but it will be a one person argument with yourself – since you would be wrong to disagree with me. I’ve written about using SWF Object to maintain the integrity of your site, especially since the SWF may wind up in the search results being linked do directly, but this isn’t about that. It’s about the venerable SEO. Yes, an acronym! Search engine optimization is an important part of building any site, regardless if it find its roots in Flash or not, so why not get the most out of your site?
We all know by now that search engines can get inside your swf file and see the text, and that it’s a good idea to give that text a good face to be read – so what you want to convey gets conveyed, not gotoAndPlay(this.fatch). SWFObject performs the task of creating an environment where you can have the best of both worlds – a arse kickin awesome Flash site chock full of animated interactive goodness, and the best laid path of keywords, links and alternative text that a brain can produce; and the best part is that it’s super easy to do.
Lay it out
First, simply create your Flash file and the page it sits in, the place the SWFObject code within the page:
var so = new SWFObject("mainUI_Loader.swf", "kickin flash site", "750", "625", "8", "#FFFFFF");
No reason not too
It’s so simple and reliable to get this done, there’s no reason not to. In fact you’re doing you site and users a disfavor by not using this code to implement your Flash sites. So change it. Now! There are plenty of examples on how to use SWFObject various ways on deconcept, so there isn’t much of a learning curve to it, and if you’re in San Francisco – give Geoff a warm welcome when he gets there….
Oh yeah, and thanks again to Microsoft for getting their arse handed to them in a hat – it makes us all very happy…..