I’ve always been amazed by what can be acheived in Macromedia (now Adobe) Flash. However, whilst trying to improve standards compliance within my websites and web-based applications, its a whore.
The problem ? XHTML compliance when embedding it into a page. Flash has always come with a way of generating code to embed a flash movie (.swf) into a HTML page, but the markup is UGLY.
I recently recoded our knickers2you site, and came across this problem.
Generated code :
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab
#version=6,0,29,0″ width=”500″ height=”62″>
<param name=”movie” value=”k2u.swf” />
<param name=”quality” value=”high” />
<embed src=”k2u.swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”500″ height=”62″></embed>
</object>
after alot of investigation into the matter, I found this article : http://www.alistapart.com/articles/flashsatay/ which really cleared-up a few of the points I’d already figured out.
so… my end code :
<object type=”application/x-shockwave-flash” data=”k2u.swf” width=”400″ height=”300″>
<param name=”movie” value=”k2u.swf” />
</object>