December 10, 200619 yr ****Newbie Alert!**** Anybody know what the code is for embedding a flash file into an XHTML I tried it will the normal HTML but it doesn't work. plus I get loads of validation errors when I use the HTML coding. oh wait sorted, do I do the no repeat in the coding or in flash MX
December 10, 200619 yr Author Sorted that aswell http://purlnetwork.com/xzide not finished yet but what do you think to my portfolio?
December 10, 200619 yr Oliver - you've embedded flash into XHTML but your pages don't validate. I couldn't link to anything but the homepage either - guess you're still in the middle of building it... I've always approached the flash / XHTML problem by using a container swf file that pulls my animation in - this is the code that I use: <div id="flash"> <object type="application/x-shockwave-flash" data="headers/container.swf?path=headers/home.swf" width="698" height="160"> <param name="movie" value="headers/container.swf?path=headers/home.swf" /> <param name="quality" value="high" /> <param name="menu" value="false" /> <param name="bgcolor" value="#deedf6" /> </object> </div> Basically this is called the flash satay methid as outlined in this article on the A List Apart site: Flash Satay Method You can also use: <object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128"> <param name="movie" value="images/banner.swf" /> <img src="banner.gif" width="288" height="128" alt="banner" /> </object> Which I've found by doing a search on google - here's a link to the page that explains the code: Valid Flash example I've not tried this myself so can't vouch for it, but think I might give this a go next time I need to put flash into my XHTML files. Hope that helps E
Create an account or sign in to comment