We have recently dropped support for IE6 at my job. The other developers have have opted for a generic object embed method:

<object type="application/x-shockwave-flash" data="example.swf" width="800" height="600" > 
      <param name="movie" value="example.swf"> 
      <param name="allowScriptAccess" value="always">
</object> 

This seems to work in all modern browsers but it really rubs me the wrong way. I'm sure this is wrong in several ways and is clearly a big step back in sophistication. So my question is in 2 parts, what is wrong with the above method? Is swfObject still best practice and what issues does it solve (besides IE6 click-activate)?

1 answer

1
point

A List Apart seems to like the <object> tag the best. However, any solution has its drawbacks. swfObject is no good if javascript is turned off, for example. Check out the article to see all the pros and cons.

Answered over 6 years ago by Abinadi Ayerdis
  • The static embed method of swfObject will work with JavaScript turned off. That list apart article is more then 2 years old. The makers of swfObject are still supporting and improving the library so it's at least relevant for its API. I'm currently considering contacting them to see what they have to say and encourage them to post an article somewhere on the current state of this tech. Armitage over 6 years ago
  • You can also include alternate content using swfObject for those without JavaScript turned on. :) BPartch over 6 years ago