
Few days ago, I was worked on design of my site, I wanted to include flash slide show into it, I added flash normally. my work was perfect, everything worked fine, but W3C has founded some error in my site, this errors were because of flash <embed> element, later I have read this blog http://alistapart.com/articles/flashsatay, here is written about, one of the most used and popular technique, how to add flash movie in your content with W3C specification.
This technique is simple, <embed> element was created by Netscape, it’s not part of the XHTML specification and because of that W3C has found there errors. We can remove <embed> element and all will be ok there will be no errors, but movie will be displayed only in IE, not in Mozilla or Netscape what to do ? here is example
If we want to include flash movie with name slide.swf normally we will add this code in our page
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com /pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="300" id="movie" align=""> <param name="movie" value="http://Full Location URL/slide.swf"> <embed src="http://Full Location URL/slide.swf" quality="high" width="400" height="300" name="movie" align="" type="application/x-shockwave-flash" plug inspage="http://www.macromedia.com/go/getflashplayer"> </object>
that was normal flash displaying method, which used by many web masters.
This is W3C friendly method, we have deleted <embed> and added some optimized parameters, look at the code
<object type="application/x-shockwave-flash data="http://Full Location URL/slide.swf?path=movie.swf?path=movie.swf" width="400" height="300"> <param name="movie" value="http://Full Location URL/slide.swf?path=movie.swf?path=movie.swf" /> <img src="noflash.gif" width="200" height="100" alt="" /> </object>
How you see we have not used <embed> any more, we displayed flash movie, with this “http://Full Location URL/slide.swf?path=movie.swf” parameter which we added in <object> and <param>. Thats all, I think that was simple, if you want full information you can found it at that blog http://alistapart.com/articles/flashsatay. You can use this technique when you want to display flash movie at you page.:)














Be The First To Comment
Related Post
Please Leave Your Comments Below