Flash and Web Standards
Wednesday 21 April, 2004 (10:50AM GMT)
Firstly a warning: I am no Flash expert by any stretch of the imagination. In fact, I avoid it like the plague whenever possible.
But, you know, sometimes you have to embed a Flash movie in HTML. It's quite commonly recognised that the method provided by Macromedia is completely inadequate because it involves the
embed tag. Crap.
But then Drew McLellan came up with 'Flash Satay' that involves using only
object tags. Great. That's what they're there for. But this method requires fiddling with the Flash movie itself because of IE's problems with streaming.
Now Hixie's come up with a valid, non-
embed method, which relies on Internet Explorer's conditional comments. Proprietary ugliness.
From what I understand, the following code (taken from 'Flash Satay') should work but by using it, IE simply won't stream:
<object type="application/x-shockwave-flash" data="movie.swf">
<param name="movie" value="movie.swf" />
To get around the streaming problem, IE needs the
codebase attributes, but these mess up the whole thing for other browsers. And this is where Hixie's method works.
As far as I can see, the best way to embed Flash in HTML is to serve up different code to different browsers using PHP, ASP or whatever.
Again, not perfect by any means.
There has to be a better way...